az vmss disk attach
on flexible orchestration mode vmss gives no attribute image_reference
#30028
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
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
Running the command
az vmss disk attach -g {} --vmss-name {} --instance-id {} --disk {} --lun 0
on existing virtual machine and existing disk results in error:'NoneType' object has no attribute 'image_reference'
The VM does not have previous data disks, but has one OS disk.
Related command
az vmss disk attach -g {} --vmss-name {} --instance-id {} --disk {} --lun 0
Errors
Issue script & Debug output
Expected behavior
The disk is attached as data disk to the virtual machine. This works when the VMSS is not an orchestrated vmss.
Environment Summary
azure-cli 2.64.0
core 2.64.0
telemetry 1.1.0
Dependencies:
msal 1.30.0
azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3'
Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.11.8 (main, Aug 28 2024, 05:45:28) [GCC 9.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: