Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Enable-AzRecoveryServicesBackupProtection.md #18364

Merged
merged 5 commits into from
Jun 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ schema: 2.0.0
# Enable-AzRecoveryServicesBackupProtection

## SYNOPSIS
Enables backup for an item with a specified Backup protection policy.
Enables or resumes backup for an item with a specified Backup protection policy.

## SYNTAX

Expand Down Expand Up @@ -50,9 +50,7 @@ Enable-AzRecoveryServicesBackupProtection [[-Policy] <PolicyBase>] [-Item] <Item
```

## DESCRIPTION
The **Enable-AzRecoveryServicesBackupProtection** cmdlet enables the backup by associating a protection policy with the item.
If policy ID is not present or the backup item is not associated with any policy, then this command will expect a policyID.
Set the vault context by using the Set-AzRecoveryServicesVaultContext cmdlet before you use the current cmdlet.
The **Enable-AzRecoveryServicesBackupProtection** cmdlet enables the backup by associating a protection policy with the item. If policy ID is not present or the backup item is not associated with any policy, then this command will expect a policyID. You can also use the same command to resume backup for a resource for which you've stopped protection with the data retention option. Set the vault context by using the Set-AzRecoveryServicesVaultContext cmdlet before you use the current cmdlet.

## EXAMPLES

Expand All @@ -74,8 +72,7 @@ The second cmdlet specifies the disk LUNs which are to be backed up and stores i
The third cmdlet sets the Backup protection policy for the ARM virtual machine named V2VM using the policy in $Pol.

### Example 2

Enables backup for an item with a specified Backup protection policy. (autogenerated)
Enables backup for an item with a specified Backup protection policy or resumes backup for an item that has data retained when backup was stopped.

<!-- Aladdin Generated Example -->
```powershell
Expand Down