查找云 IDFind your Cloud ID

本主题介绍如何使用管理员门户或特权终结点 (PEP) 获取云 ID。This topic covers how to get your Cloud ID by using the Administrator portal or the privileged endpoint (PEP). 云 ID 是用于跟踪从特定缩放单元上传的支持数据的唯一 ID。The Cloud ID is the unique ID for tracking support data uploaded from a specific scale unit. 当上传诊断日志进行支持分析时,可以通过云 ID 将这些日志与该缩放单元相关联。When diagnostic logs are uploaded for support analysis, the Cloud ID is how the logs are associated with that scale unit.

使用管理员门户Use the administrator portal

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

  2. 选择“区域管理”。Select Region management.

    仪表板的屏幕截图

  3. 选择“属性”并复制“缩放单元云 ID”。Select 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