Skip to content

Commit d4cc7ec

Browse files
[Backup] BREAKING CHANGE: az backup protection enable-for-vm: Support for protecting TVM with standard policy (Azure#31410)
1 parent c5bd23f commit d4cc7ec

File tree

1 file changed

+0
-10
lines changed
  • src/azure-cli/azure/cli/command_modules/backup

1 file changed

+0
-10
lines changed

src/azure-cli/azure/cli/command_modules/backup/custom.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -892,16 +892,6 @@ def enable_protection_for_vm(cmd, client, resource_group_name, vault_name, vm, p
892892
Use the relevant get-default policy command and use it to protect the workload.
893893
""")
894894

895-
if (hasattr(vm, 'security_profile') and hasattr(vm.security_profile, 'security_type') and
896-
vm.security_profile.security_type is not None and
897-
vm.security_profile.security_type.lower() == 'trustedlaunch'):
898-
if policy.properties.policy_type != 'V2':
899-
raise InvalidArgumentValueError(
900-
"""
901-
Trusted VM can only be protected using Enhanced Policy. Please provide a valid IaasVM Enhanced Policy
902-
in --policy-name argument.
903-
""")
904-
905895
# Get protectable item.
906896
protectable_item = _get_protectable_item_for_vm(cmd.cli_ctx, vault_name, resource_group_name, vm_name, vm_rg)
907897
if protectable_item is None:

0 commit comments

Comments
 (0)