Skip to content

[Backup] az backup protection enable-for-vm: Update in warning message while protecting Trusted Launch virtual machines #31062

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

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: 2 additions & 5 deletions src/azure-cli/azure/cli/command_modules/backup/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,11 +868,8 @@ def enable_protection_for_vm(cmd, client, resource_group_name, vault_name, vm, p
vault = vaults_cf(cmd.cli_ctx).get(resource_group_name, vault_name)
policy = show_policy(protection_policies_cf(cmd.cli_ctx), resource_group_name, vault_name, policy_name)

logger.warning('Ignite (November) 2023 onwards Virtual Machine deployments using PS and CLI will default to '
'security type Trusted Launch. Please ensure Policy Name used with "az backup '
'protection enable-for-vm" command is of type Enhanced Policy for Trusted Launch VMs. Non-Trusted '
'Launch Virtual Machines will not be impacted by this change. To know more about default change '
'and Trusted Launch, please visit https://aka.ms/TLaD.')
logger.warning('Starting in May 2025, Trusted Launch virtual machines can be protected with both'
' standard and enhanced policies via PS and CLI')

# throw error if policy has more than 1000 protected VMs.
if policy.properties.protected_items_count >= 1000:
Expand Down