Azure / Azure/azure-cli

az vm creation fails whilst using "--patch-mode"

Open
#29,206 1 comment 0 reactions 2 assignees Claimed by @zhoxing-ms View on GitHub
act-observability-squad Auto-Assign Azure CLI Team Compute customer-reported potential-pruning question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

Using the "--patch-mode" to "Manual" whilst creating a Azure Windows VM is producing 'windowsConfiguration' error.

### Related command

`az vm create --resource-group $resourceGroup --name $clusterPrefix --image $image$imageVersion --subnet $subnet --size Standard_D16ads_v5 --os-disk-name $clusterPrefix-OS-DISK --os-disk-size-gb 256 --storage-sku Premium_LRS --admin-username $username --admin-password $password --patch-mode Manual --private-ip-address $ip`

### Errors

`'windowsConfiguration'`

### Issue script & Debug output

[debug-logs.txt](https://github.com/user-attachments/files/15898547/debug-logs.txt)

### Expected behavior

Create VM without any issues

### Environment Summary

{
"azure-cli": "2.61.0",
"azure-cli-core": "2.61.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"azure-devops": "1.0.1"
}
}

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.