Condividi tramite


Get-AzStandbyVMPoolStatus

Ottenere standbyVirtualMachinePoolRuntimeViewResource

Sintassi

Get-AzStandbyVMPoolStatus
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStandbyVMPoolStatus
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStandbyVMPoolStatus
   -InputObject <IStandbyPoolIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStandbyVMPoolStatus
   -StandbyVirtualMachinePoolInputObject <IStandbyPoolIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Descrizione

Ottenere standbyVirtualMachinePoolRuntimeViewResource

Esempio

Esempio 1: Ottenere la visualizzazione runtime di un pool di macchine virtuali standby

Get-AzStandbyVMPoolStatus `
-SubscriptionId f8da6e30-a9d8-48ab-b05c-3f7fe482e13b `
-ResourceGroupName test-standbypool `
-Name testPool

Id                           : /subscriptions/f8da6e30-a9d8-48ab-b05c-3f7fe482e13b/resourceGroups/test-standbypool/providers/Microsoft.Standb
                               yPool/standbyVirtualMachinePools/testPool/runtimeViews/latest
InstanceCountSummary         : {{
                                 "instanceCountsByState": [
                                   {
                                     "state": "Creating",
                                     "count": 0
                                   },
                                   {
                                     "state": "Starting",
                                     "count": 0
                                   },
                                   {
                                     "state": "Running",
                                     "count": 1
                                   },
                                   {
                                     "state": "Deallocating",
                                     "count": 0
                                   },
                                   {
                                     "state": "Deallocated",
                                     "count": 0
                                   },
                                   {
                                     "state": "Deleting",
                                     "count": 0
                                   }
                                 ]
                               }}
Name                         : latest
ProvisioningState            : Succeeded
ResourceGroupName            : test-standbypool
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
Type                         : Microsoft.StandbyPool/standbyVirtualMachinePools/runtimeViews

Il comando precedente ottiene un'installazione in fase di esecuzione del pool di macchine virtuali standby.

Parametri

-DefaultProfile

Il parametro DefaultProfile non è funzionale. Usare il parametro SubscriptionId quando disponibile se si esegue il cmdlet su una sottoscrizione diversa.

Tipo:PSObject
Alias:AzureRMContext, AzureCredential
Posizione:Named
Valore predefinito:None
Necessario:False
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

-InputObject

Parametro Identity

Tipo:IStandbyPoolIdentity
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:True
Accettare caratteri jolly:False

-Name

Nome del pool di macchine virtuali standby

Tipo:String
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

-ResourceGroupName

Nome del gruppo di risorse. Il nome non fa distinzione tra maiuscole e minuscole.

Tipo:String
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

-StandbyVirtualMachinePoolInputObject

Parametro Identity

Tipo:IStandbyPoolIdentity
Posizione:Named
Valore predefinito:None
Necessario:True
Accettare l'input della pipeline:True
Accettare caratteri jolly:False

-SubscriptionId

ID della sottoscrizione di destinazione. Il valore deve essere un UUID.

Tipo:String[]
Posizione:Named
Valore predefinito:(Get-AzContext).Subscription.Id
Necessario:False
Accettare l'input della pipeline:False
Accettare caratteri jolly:False

Input

IStandbyPoolIdentity

Output

IStandbyVirtualMachinePoolRuntimeViewResource