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

[Backup] az backup protection enable-for-vm: Add a linux specific example #22805

Merged
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
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