question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TravisCragg-MSFTcommented, Jan 20, 2022

This is now fixed, please post here if this issue is encountered again in an updated CLI version.

0reactions
TravisCragg-MSFTcommented, Jan 20, 2022

I am driving this forward, please let me know if anyone else has this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az disk - Microsoft Learn
Update a managed disk. az disk wait. Place the CLI in a waiting state until a condition of a managed disk is met....
Read more >
Azure CLI - How to Update Disk Encryption Settings
SOLVED: You just have to run the following command: az disk update --name MyDisk --resource-group MyResourceGroup --set ...
Read more >
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
Updating the BIOS (Basic Input Output System) - HP Support
1. Go to HP Image Assistant (HPIA) and download and install the most recent version from the SoftPaq column. 2. In the File...
Read more >
Buying and Selling Your Vehicle - FAQ - ADOT
What should I do when I buy a vehicle from a private sale? ... Can I drive it? No. ... Where do I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found