-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Describe the bug
we received a mail for "Upcoming Breaking Changes to Azure Compute Gallery Image Publishing"
If you use blobs as source to create ACG Image versions:
If you're using the old property ‘properties.storageProfile.[osDiskImage/dataDiskImages].source.Id,‘ you should move to the property ’properties.storageProfile.osDiskImage.source.storageAccountId’. This property requires minimum api-version 2022-03-03.
az cli uses the old property:
https://github.com/Azure/azure-cli/blob/azure-cli-2.69.0/src/azure-cli/azure/cli/command_modules/vm/custom.py#L4974
after clarification with MSFT support, we got that
Not using storageAccountId won’t work
effectively breaking az cli and terraform provider.
Related command
az sig image-version create
Errors
no error
Issue script & Debug output
az sig image-version create --resource-group frigo-we --location westeurope --gallery-image-version 1.0.0 --gallery-image-definition rawhide --gallery-name frigo_images --os-vhd-storage-account /subscriptions/78362438-0caf-49c7-8967-d88c96baf291/resourceGroups/frigo-we/providers/Microsoft.Storage/storageAccounts/frigowesa --os-vhd-uri https://frigowesa.blob.core.windows.net/vhd/foo --debug
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: {"location": "westeurope", "properties": {"publishingProfile": {"targetRegions": [{"name": "westeurope"}]}, "storageProfile": {"osDiskImage": {"source": {"id": "/subscriptions/78362438-0caf-49c7-8967-d88c96baf291/resourceGroups/frigo-we/providers/Microsoft.Storage/storageAccounts/frigowesa", "uri": "https://frigowesa.blob.core.windows.net/vhd/foo"}}}}, "tags": {}}
Expected behavior
should see storageAccountId used here
Environment Summary
azure-cli 2.70.0
core 2.70.0
telemetry 1.1.0
Extensions:
ssh 2.0.6
Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3'
Config directory '/home/frigo/.azure'
Extensions directory '/home/frigo/.azure/cliextensions'
Python (Linux) 3.12.8 (main, Feb 26 2025, 06:47:10) [GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Unable to check if your CLI is up-to-date. Check your internet connection.
Additional context
also noticed by terraform users https://discuss.hashicorp.com/t/azure-compute-gallery-possible-breaking-change-15-march-2025/73248