azure-cli: AKS create fails (not specifying --node-osdisk-diskencryptionset-id)

Describe the bug

AKS create fails. Seems similar to this

Command Name az aks create

Errors:

Property id '' at path 'properties.diskEncryptionSetID' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here…
  • az aks create -g {} -n {} --enable-aad --aad-admin-group-object-id {}

Expected Behavior

To succesfully create an AKS resource

Environment Summary

Windows-10-10.0.17763-SP0
Python 3.6.8
Installer: MSI

azure-cli 2.11.0

Extensions:
azure-devops 0.11.0

Additional Context

Seems to have been introduced by this

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 27 (12 by maintainers)

Most upvoted comments

It’s fixed in aks-preview so a work around is to install that: az extension add --name aks-preview

Thanks for the fix. I hope you’re able to prioritize the release to Cloud Shell sooner than Sep 22. Something as basic as this walkthrough https://docs.microsoft.com/en-in/azure/aks/kubernetes-walkthrough is broken.

I can also repro this.

This is a regression that has broken Microsoft Learn content that relies on Az CLI in the Azure Cloud Shell. See: https://aka.ms/learn-microservices

image

cc: @scottaddie @nishanil @wadepickett

It works for me az extension add --name aks-preview

fixed by https://github.com/Azure/azure-cli/pull/14920, is azure-cli 2.11.0 released? I could only find 2.10.1 release in this project now.