Get-AzDataProtectionResourceGuard
Restituisce un oggetto ResourceGuard appartenente a un gruppo di risorse.
Sintassi
Get-AzDataProtectionResourceGuard
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzDataProtectionResourceGuard
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzDataProtectionResourceGuard
-InputObject <IDataProtectionIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Descrizione
Restituisce un oggetto ResourceGuard appartenente a un gruppo di risorse.
Esempio
Esempio 1: Recuperare una protezione risorse con un nome specifico
Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName" -Name "ResourceGuardName"
ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name
---- -- ------------------- ---------------- ------------ -------- ----
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardName centraluseuap ResourceGuardName
Ottiene una protezione delle risorse in un gruppo di risorse con nome "ResourceGuardName"
Esempio 2: Recuperare tutte le guardie delle risorse in un gruppo di risorse
Get-AzDataProtectionResourceGuard -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -ResourceGroupName "RGName"
ETag Id IdentityPrincipalId IdentityTenantId IdentityType Location Name Type
---- -- ------------------- ---------------- ------------ -------- ---- ----
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard1 centraluseuap rguard1 Microsoft.DataProtection/resourceGuards
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard2 centraluseuap rguard2 Microsoft.DataProtection/resourceGuards
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard3 centraluseuap rguard3 Microsoft.DataProtection/resourceGuards
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/RGName/providers/Microsoft.DataProtection/resourceGuards/rguard4 centraluseuap rguard4 Microsoft.DataProtection/resourceGuards
Ottiene tutte le guardie delle risorse in un gruppo di risorse
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 Per costruire, vedere la sezione NOTES per le proprietà INPUTOBJECT e creare una tabella hash.
Tipo: | IDataProtectionIdentity |
Posizione: | Named |
Valore predefinito: | None |
Necessario: | True |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
-Name
Nome di ResourceGuard
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 |
-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 |