diff --git a/src/azure-cli/azure/cli/command_modules/backup/_help.py b/src/azure-cli/azure/cli/command_modules/backup/_help.py index 6598f99fc9c..a2b6b421b2a 100644 --- a/src/azure-cli/azure/cli/command_modules/backup/_help.py +++ b/src/azure-cli/azure/cli/command_modules/backup/_help.py @@ -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'] = """