From 07ae0e327f4be3692262d61fef61104b39167510 Mon Sep 17 00:00:00 2001 From: Akshay Neema Date: Thu, 9 Jun 2022 19:09:38 +0530 Subject: [PATCH] [Backup] `az backup protection enable-for-vm`: Add a linux specific example (#22805) --- src/azure-cli/azure/cli/command_modules/backup/_help.py | 7 +++++++ 1 file changed, 7 insertions(+) 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'] = """