查找云 IDFind your Cloud ID

本主题介绍如何使用管理员门户或特权终结点 (PEP) 获取云 ID。This topic covers how to get you Cloud ID by using the Administrator portal or the privileged endpoint (PEP).

使用管理员门户Use the administrator portal

  1. 打开管理员门户。Open the Administrator portal.

  2. 单击“区域管理”。Click Region management.

    仪表板的屏幕截图

  3. 单击“属性”并复制“印花云 ID”。Click Properties and copy the Stamp Cloud ID.

    具有印花云 ID 的区域属性的屏幕截图

使用特权终结点Use the privileged endpoint

  1. 打开权限提升的 PowerShell 会话,运行以下脚本。Open an elevated PowerShell session and run the following script. 根据环境需要,替换 PEP VM 的 IP 地址和云管理员凭据。Replace the IP address of the PEP VM and Cloud Admin credentials as needed for your environment.

    $ipAddress = "<IP ADDRESS OF THE PEP VM>" # You can also use the machine name instead of IP here.
    
    $password = ConvertTo-SecureString "<CLOUD ADMIN PASSWORD>" -AsPlainText -Force
    $cred = New-Object -TypeName System.Management.Automation.PSCredential ("<DOMAIN NAME>\CloudAdmin", $password)
    $session = New-PSSession -ComputerName $ipAddress -ConfigurationName PrivilegedEndpoint -Credential $cred
    
    $stampInfo = Invoke-Command -Session $session { Get-AzureStackStampInformation }
    if ($session) {
        Remove-PSSession -Session $session
    }
    
    $stampInfo.CloudID
    

后续步骤Next steps