Search-AzDataProtectionBackupVaultInAzGraph
Searches for Backup vaults in Azure Resource Graph and retrieves the expected entries
Syntax
Search-AzDataProtectionBackupVaultInAzGraph
-Subscription <String[]>
[-ResourceGroup <String[]>]
[-Vault <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Searches for Backup vaults in Azure Resource Graph and retrieves the expected entries
Examples
Example 1: Get a specific vault with its name.
Search-AzDataProtectionBackupVaultInAzGraph -Subscription "xxxxxxxx-xxxx-xxxxxxxxxxxx" -ResourceGroup $resourceGroupName -Vault $vaultName
ETag IdentityPrincipalId IdentityTenantId IdentityType Location Name Type
---- ------------------- ---------------- ------------ -------- ---- ----
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx SystemAssigned centraluseuap sarath-vault Microsoft.DataProtection/backupVaults
This command gets a specific vault by given vault name from ARG (Azure Resource Graph).
Parameters
-DefaultProfile
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroup
Resource Group of Vault
Type: | String[] |
Aliases: | ResourceGroupName |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Subscription
Subscription of Vault
Type: | String[] |
Aliases: | SubscriptionId |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Vault
Name of the vault
Type: | String[] |
Aliases: | VaultName |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell