Open MCFrandsen opened 1 year ago
This is kinda resolved. Through Terraform's documentation of backup policy, it can be found that policyType V1 and V2 refers to Standard and Enhanced respectively. When using V2, you must also use SimpleSchedulePolicyV2.
The bug is now lack of proper documentation.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @pvrk, @adityabalaji-msft. Please see https://aka.ms/biceptypesinfo for troubleshooting help.
Bicep version 0.14.0
Describe the bug
When creating a Backup Policy, it defaults to 'Standard' as the policy sub type. There is no option for creating a Enhanced Backup Policy through Bicep. Documentation
To Reproduce This step doesn't make sense in this context.
Additional context
An Enhanced Backup Policy is needed to backup trusted launch VM's and cannot use the Standard Policy. In addition, it cannot be created through the az cli either. The az has a list function with subtype but create has none:
documentation
This is a bug report because the Bicep template is missing a key component in order to create backup policies as IaaC. If, however, it is a feature request, let me know.