A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
As attached below when selecting the test-vm(VM) and accept to delete it will remove both the VM and the disk.
I don't have no option to untick the delete with the VM.
The following option Azure CLI is not working :
az resource update --resource-group myResourceGroup --name myVM --resource-type virtualMachines --namespace Microsoft.Compute --set properties.storageProfile.osDisk.deleteOption=detach
with the following error,
The client 'xxxxxxxxxx@.xxx' with object id 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm' or the scope is invalid.