編輯

共用方式為


Update-AzRecoveryServicesAsrProtectionContainerMapping

Update the Azure site recovery protection container mapping.

Syntax

Update-AzRecoveryServicesAsrProtectionContainerMapping
      -InputObject <ASRProtectionContainerMapping>
      [-AzureToAzure]
      [-EnableAutoUpdate]
      -AutomationAccountId <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzRecoveryServicesAsrProtectionContainerMapping
      -InputObject <ASRProtectionContainerMapping>
      [-AzureToAzure]
      [-DisableAutoUpdate]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Update-AzRecoveryServicesAsrProtectionContainerMapping cmdlet updates the specified Azure Site Recovery protection container mapping.

Examples

Example 1

Update-AzRecoveryServicesAsrProtectionContainerMapping -InputObject $ASRProtectionContainerMapping -AzureToAzure -DisableAutoUpdate

Start the operation to disable auto update for container.

Example 2

Update-AzRecoveryServicesAsrProtectionContainerMapping -InputObject $ASRProtectionContainerMapping  -AzureToAzure -EnableAutoUpdate -AutomationAccountId $automationAccountId

Start the operation to disable enable auto update for container.

Parameters

-AutomationAccountId

Specifies the automation accountId used for auto update.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AzureToAzure

Specifies Azure to Azure protection container.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisableAutoUpdate

Switch parameter to disable auto update.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-EnableAutoUpdate

Switch parameter to enable auto update.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Object for protection container mapping.

Type:ASRProtectionContainerMapping
Aliases:ProtectionContainerMapping
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRProtectionContainerMapping

Outputs

ASRJob