< Back

Set-AzureRmSiteRecoveryProtectionEntity

Thu Apr 04, 2019 5:40 am

NAME Set-AzureRmSiteRecoveryProtectionEntity



SYNOPSIS

Sets the state for a Site Recovery protection entity.





SYNTAX

Set-AzureRmSiteRecoveryProtectionEntity [-DefaultProfile <IAzureContextContainer>] [-Force] -OS {Windows | Linux} -OSDiskName <String> -Policy

<ASRPolicy> -Protection {Enable | Disable} -ProtectionEntity <ASRProtectionEntity> -RecoveryAzureStorageAccountId <String> [-WaitForCompletion]

[-Confirm] [-WhatIf] [<CommonParameters>]



Set-AzureRmSiteRecoveryProtectionEntity [-DefaultProfile <IAzureContextContainer>] [-Force] -Policy <ASRPolicy> -Protection {Enable | Disable}

-ProtectionEntity <ASRProtectionEntity> [-WaitForCompletion] [-Confirm] [-WhatIf] [<CommonParameters>]



Set-AzureRmSiteRecoveryProtectionEntity [-DefaultProfile <IAzureContextContainer>] [-Force] -Policy <ASRPolicy> -Protection {Enable | Disable}

-ProtectionEntity <ASRProtectionEntity> -RecoveryAzureStorageAccountId <String> [-WaitForCompletion] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Set-AzureRmSiteRecoveryProtectionEntity cmdlet enables or disables protection on an Azure Site Recovery protection entity.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Force [<SwitchParameter>]

Forces the command to run without asking for user confirmation.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-OS <String>

Specifies the operating system type. The acceptable values for this parameter are:



- Windows



- Linux



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-OSDiskName <String>

Specifies the name of the disk that contains the operating system.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Policy <ASRPolicy>

Specifies the Site Recovery policy object.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Protection <String>

Specifies whether protection should be enabled or disabled. The acceptable values for this parameter are:



- Enable



- Disable



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ProtectionEntity <ASRProtectionEntity>

Specifies the protection entity object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-RecoveryAzureStorageAccountId <String>

Specifies the ID of the target Azure Storage account.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WaitForCompletion [<SwitchParameter>]

Indicates that the command waits for completion before returning.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs.



The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

ASRProtectionEntity

Parameter 'ProtectionEntity' accepts value of type 'ASRProtectionEntity' from the pipeline





OUTPUTS

Microsoft.Azure.Commands.SiteRecovery.ASRJob







NOTES











RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... tionentity

Get-AzureRmSiteRecoveryProtectionEntity