Update-AzRecoveryServicesAsrProtectionContainerMapping
Update the Azure site recovery protection container mapping.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
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
Specifies the automation accountId used for auto udpate.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Specifies Azure to Azure protection container.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Switch parameter to disable auto update.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Switch parameter to enable auto update.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Object for protection container mapping.
| Type: | ASRProtectionContainerMapping |
| Aliases: | ProtectionContainerMapping |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |