Skip to content

Commit 716b10f

Browse files
authored
[Compute] Fix a compatibility issue of old API version (Azure#17906)
1 parent 3ecfd4d commit 716b10f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/azure-cli/azure/cli/command_modules/vm/_template_builder.py

+4
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,10 @@ def _build_storage_profile():
516516
'vTpmEnabled': enable_vtpm
517517
}
518518

519+
# Compatibility of various API versions
520+
if vm_properties['securityProfile'] == {}:
521+
del vm_properties['securityProfile']
522+
519523
if platform_fault_domain is not None:
520524
vm_properties['platformFaultDomain'] = platform_fault_domain
521525

0 commit comments

Comments
 (0)