az disk update does not update to Allow Private
See original GitHub issue
az feedback
auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug When running the command to update a disk to use a disk access object, the script is not running as intended.
To Reproduce diskAccessId=$(az disk-access show -n $diskAccessName -g $rg --query [id] -o tsv) az disk update --name $diskname --resource-group $rgdisk --network-access-policy AllowPrivate --disk-access $diskAccessId >> /tmp/pe.log
Expected behavior
When running the above I am receiving this error which I should not be receiving as I am passing a valid diskAccessId. I had a coworker confirm this as well.
(ConflictingUserInput) AllowPrivate NetworkAccessPolicy can only supported with Disk Access. Expected behavior is to attach the disk access to the disk and set the network settings to allow private.
Environment summary CLI version = latest as this behavior occurs in the Cloud shell as well as on linux.
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (3 by maintainers)
This is now fixed, please post here if this issue is encountered again in an updated CLI version.
I am driving this forward, please let me know if anyone else has this issue.