Get-AzCloudService
Visa information om en molntjänst.
Syntax
Get-AzCloudService
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCloudService
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCloudService
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCloudService
-InputObject <ICloudServiceIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Visa information om en molntjänst.
Exempel
Exempel 1: Hämta alla molntjänster under en resursgrupp
Get-AzCloudService -ResourceGroupName "ContosOrg"
ResourceGroupName Name Location ProvisioningState
----------------- ---- -------- -----------------
ContosOrg ContosoCS eastus2euap Succeeded
ContosOrg ContosoCSTest eastus2euap Failed
Det här kommandot hämtar alla molntjänster i resursgruppen med namnet ContosOrg
Exempel 2: Hämta molntjänst
$cloudService = Get-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS"
$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
Det här kommandot hämtar molntjänsten ContosoCS som tillhör resursgruppen med namnet ContosOrg.
Parametrar
-DefaultProfile
Parametern DefaultProfile fungerar inte. Använd parametern SubscriptionId när den är tillgänglig om du kör cmdleten mot en annan prenumeration.
Typ: | PSObject |
Alias: | AzureRMContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-InputObject
Identitetsparameter För att skapa, se AVSNITTET ANTECKNINGAR för INPUTOBJECT-egenskaper och skapa en hash-tabell.
Typ: | ICloudServiceIdentity |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Name
Namnet på molntjänsten.
Typ: | String |
Alias: | CloudServiceName |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ResourceGroupName
Namnet på resursgruppen.
Typ: | String |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-SubscriptionId
Prenumerationsautentiseringsuppgifter som unikt identifierar Microsoft Azure-prenumeration. Prenumerations-ID:t utgör en del av URI:n för varje tjänstanrop.
Typ: | String[] |
Position: | Named |
Standardvärde: | (Get-AzContext).Subscription.Id |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
Indata
Utdata
Azure PowerShell