Azure / Azure/azure-cli

enable-auto-update, Error: WindowsConfiguration

Open
#19,318 2 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-observability-squad Compute customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**
Enable-auto-update is incompatible with some Win Images

**To Reproduce**
```
myRG="wenl-rdsm-dev-rg-00"; \
myImage="MicrosoftWindowsServer:WindowsServer:2019-datacenter-smalldisk-g2:latest"; \
az vm create -n deleteme01 -g ${myRG} --image ${myImage} \
--admin-username superadminlocal \
--admin-password MyPA$$W00rd \
--enable-auto-update true

```
**The error:**
![image](https://user-images.githubusercontent.com/15262462/130512576-333e2bfe-263a-4b2a-9d9d-2b46084e5f19.png)

**Solution 1: Remove enable-auto-update**
If you remove the last line works fine:
![image](https://user-images.githubusercontent.com/15262462/130512470-31b73e3d-94bb-4d0e-b11f-24039c1b298c.png)
(Note: put enable-auto-update false, won't solve the problem)

**Solution 2: Choose other window image (Windows desktop)**
Other images support this option: "MicrosoftWindowsDesktop:Windows-10:21h1-evd-g2:latest"

**Expected**
* In the [manual](https://docs.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest#az_vm_create) there is not reference about this incompatibility
* The Error msg is not too clear

**Environment summary**
```
azure-cli 2.27.2
Python (Linux) 3.6.10
```

**Additional context**

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.