This section describes how to update the Azure Stack Hub credentials.
This section describes how to update the Azure Stack Hub credentials.
Before running the procedure:
If you have changed the iDRAC credentials, to update the BMC credentials the Azure Stack Hub, see Update the baseboard management controller (BMC) credential on the Microsoft support website.
To manage and update the Cloud Admin credentials:
$PEP = New-PSSession -ComputerName <PEP IP Address> -ConfigurationName "PrivilegedEndpoint" -Credential (Get-Credential) -SessionOption (New-PSSessionOption -Culture en-US -UICulture en-US)
Invoke-Command -Session $PEP -ScriptBlock {
Get-CloudAdminUserList
} | ft Name, DateCreated, PasswordLastUpdated
Invoke-Command -Session $PEP -ScriptBlock {
New-CloudAdminUser -UserName CloudAdmin2
}
Invoke-Command -Session $PEP -ScriptBlock {
Set-CloudAdminUserPassword -UserName CloudAdmin2
}
For information about rotating secrets in Azure Stack Hub and the available tools, see Rotate secrets in Azure Stack Hub.