Azure Cloud Service(추가 지원) 배포에 대한 정보 검색
이러한 샘플은 기존 Azure Cloud Service(추가 지원) 배포에 대한 정보를 검색하는 다양한 기능을 다룹니다.
리소스 그룹 아래의 모든 Cloud Services 가져오기
Get-AzCloudService -ResourceGroupName "ContosOrg"
ResourceGroupName Name Location ProvisioningState
----------------- ---- -------- -----------------
ContosOrg ContosoCS eastus2euap Succeeded
ContosOrg ContosoCSTest eastus2euap Failed
단일 Cloud Service 가져오기
Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS"
ResourceGroupName Name Location ProvisioningState
----------------- ---- -------- -----------------
ContosOrg ContosoCS eastus2euap Succeeded
PS C:\> $cloudService = Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS"
PS C:\> $cloudService | Format-List
ResourceGroupName : ContosOrg
Configuration : xxxxxxxx
ConfigurationUrl :
ExtensionProfile : xxxxxxxx
Id : xxxxxxxx
Location : East US
Name : ContosoCS
NetworkProfile : xxxxxxxx
OSProfile : xxxxxxxx
PackageUrl : xxxxxxxx
ProvisioningState : Succeeded
RoleProfile : xxxxxxxx
StartCloudService :
Tag : {
"Owner": "Contos"
}
Type : Microsoft.Compute/cloudServices
UniqueId : xxxxxxxx
UpgradeMode : Auto
Cloud Service 인스턴스 보기 가져오기
PS C:\>$cloudServiceInstanceView = Get-AzCloudServiceInstanceView -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS"
PS C:\>$cloudServiceInstanceView
RoleInstanceStatusesSummary Statuses
--------------------------- --------
{{ProvisioningState/succeeded : 4}, {PowerState/started : 4}} {Provisioning succeeded, Started, Current Upgrade Domain of cloud service is -1., Max Upgrade Domain of cloud service is 1.}
PS C:\>$cloudServiceInstanceView.ToJsonString()
{
"roleInstance": {
"statusesSummary": [
{
"code": "ProvisioningState/succeeded",
"count": 4
},
{
"code": "PowerState/started",
"count": 4
}
]
},
"statuses": [
{
"code": "ProvisioningState/succeeded",
"displayStatus": "Provisioning succeeded",
"level": "Info",
"time": "2020-10-28T13:26:48.8109686Z"
},
{
"code": "PowerState/started",
"displayStatus": "Started",
"level": "Info",
"time": "2020-10-28T13:26:48.8109686Z"
},
{
"code": "CurrentUpgradeDomain/-1",
"displayStatus": "Current Upgrade Domain of cloud service is -1.",
"level": "Info"
},
{
"code": "MaxUpgradeDomain/1",
"displayStatus": "Max Upgrade Domain of cloud service is 1.",
"level": "Info"
}
]
}
다음 단계
- Azure Cloud Services(추가 지원)에 대한 자세한 내용은 Azure Cloud Services(추가 지원) 개요를 참조하세요.
- Cloud Services(추가 지원) 샘플 리포지토리를 방문합니다.