sig image-version create managed-image parameter should map to new VM backend field #28488
Closed
1 task done
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
Compute
az vm/vmss/image/disk/snapshot
feature-request
Milestone
Preconditions
Related command
az sig image-version create
Resource Provider
Microsoft.Compute
Description of Feature or Work Requested
Currently, the --managed-image parameter of the az sig image-version create command maps to the properties.storageprofile.source.id field. We need it to map to the properties.storageprofile.source.virtualMachineId field ONLY when the source provided is a VM id.
Minimum API Version Required
2023_07_03
Swagger PR link / SDK link
Azure/azure-rest-api-specs#27518
Request Example
Example of how it would be mapped today:
{
"name": "1.0.0",
"location": "South Central US STG",
"properties": {
"storageProfile": {
"source": {
"id": "{virtual machine id}"
}
}
}
}
The new mapping:
{
"name": "1.0.0",
"location": "South Central US STG",
"properties": {
"storageProfile": {
"source": {
"virtualMachineId": "{virtual machine id}"
}
}
}
}
Not we should only use the virtualMachineId if the id is a virtual machine. If the id is a managed image then we should continue to use the old field.
Target Date
As soon as possible
PM Contact
[email protected]
Engineer Contact
tiregan, jerch, kagarwal
Additional context
No response
The text was updated successfully, but these errors were encountered: