Update-AzRecoveryServicesAsrProtectionContainerMapping
更新 Azure Site Recovery 保護容器對應。
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
Update-AzRecoveryServicesAsrProtectionContainerMapping Cmdlet 會更新指定的 Azure Site Recovery 保護容器對應。
範例
範例 1
Update-AzRecoveryServicesAsrProtectionContainerMapping -InputObject $ASRProtectionContainerMapping -AzureToAzure -DisableAutoUpdate
啟動作業以停用容器的自動更新。
範例 2
Update-AzRecoveryServicesAsrProtectionContainerMapping -InputObject $ASRProtectionContainerMapping -AzureToAzure -EnableAutoUpdate -AutomationAccountId $automationAccountId
啟動作業以停用容器的自動更新。
參數
-AutomationAccountId
指定用於自動更新的自動化 accountId。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AzureToAzure
指定 Azure 至 Azure 保護容器。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
執行 Cmdlet 之前先提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisableAutoUpdate
切換參數以停用自動更新。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnableAutoUpdate
切換參數以啟用自動更新。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
保護容器對應的物件。
Type: | ASRProtectionContainerMapping |
Aliases: | ProtectionContainerMapping |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |