Edit

Share via


Get-AzRecoveryServicesResourceGuardMapping

Gets the resource guard mapping added to the recovery services vault.

Syntax

Default (Default)

Get-AzRecoveryServicesResourceGuardMapping
    [-VaultId <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

Gets the resource guard mapping added to the recovery services vault. This cmdlet fetches the mapping between the recovery services vault and resource guard

Examples

Example 1 Fetch the resource guard mapping

Get-AzRecoveryServicesResourceGuardMapping -VaultId $vault.ID

The above command fetches the existing mapping between the vault and the resource guard.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VaultId

ARM ID of the Recovery Services Vault.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

ResourceGuardProxyBaseResource