Skip to content

Commit

Permalink
[Backup] az backup protection enable-for-vm: Add a linux specific e…
Browse files Browse the repository at this point in the history
…xample (#22805)
  • Loading branch information
akshayneema authored Jun 9, 2022
1 parent 14f3905 commit 07ae0e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/azure-cli/azure/cli/command_modules/backup/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,13 @@
- name: Start protecting a previously unprotected Azure VM as per the specified policy to a Recovery services vault. (autogenerated)
text: az backup protection enable-for-vm --policy-name MyPolicy --resource-group MyResourceGroup --vault-name MyVault --vm myVM
crafted: true
- name: Start protecting a previously unprotected Azure VM as per the specified policy to a Recovery services vault using a Linux shell.
text: |
az backup protection enable-for-vm \\
--resource-group myResourceGroup \\
--vault-name myRecoveryServicesVault \\
--policy-name DefaultPolicy \\
--vm "$(az vm show -g VMResourceGroup -n MyVm --query id)"
"""

helps['backup protection enable-for-azurefileshare'] = """
Expand Down

0 comments on commit 07ae0e3

Please sign in to comment.