Skip to content

[Reference feedback]: ADE Decryption steps give an az disk create --upload-type error #32211

Description

@anthonysomerset

Type of issue

Code doesn't work

Reference command name

az disk create

Feedback

documentation page with issue https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption-migrate

on this page is the following snippet:

# Get the source disk ID
SOURCE_DISK_ID=$(az disk show --resource-group "MyResourceGroup" --name "MySourceDisk" --query "id" -o tsv)

# Create a new disk from the source disk
az disk create --resource-group "MyResourceGroup" --name "MyTargetDisk" 
  --source "$SOURCE_DISK_ID" --upload-type "Copy"

# For OS disks, specify --os-type "Linux" or --os-type "Windows"

however with most current version of az cli installed (MacOS) this will generate an error like:

az disk create: 'Copy' is not a valid value for '--upload-type'. Allowed values: Upload, UploadWithSecurityData.

AZ version info

az --version                                              
azure-cli                         2.77.0

core                              2.77.0
telemetry                          1.1.0

Extensions:
account                            0.2.5
aks-preview                     13.0.0b2
alb                                2.0.0
arcappliance                      0.2.33
connectedmachine                   0.6.0
connectedvmware                    0.2.1
customlocation                     0.1.3
k8s-extension                      1.4.5

Dependencies:
msal                            1.34.0b1
azure-mgmt-resource               23.3.0

Python location '/opt/homebrew/Cellar/azure-cli/2.77.0/libexec/bin/python'
Config directory '/Users/asomerset/.azure'
Extensions directory '/Users/asomerset/.azure/cliextensions'

Python (Darwin) 3.13.7 (main, Aug 14 2025, 11:12:11) [Clang 17.0.0 (clang-1700.0.13.3)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

the equivalent PS script does at least work as a workaround

Page URL

https://learn.microsoft.com/en-us/azure/virtual-machines/disk-encryption-migrate

Content source URL

No response

Author

No response

Document Id

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageThis is a new issue that needs to be triaged to the appropriate team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions