Azure / Azure/azure-cli

Customer feedback | az aks create | CLI example incorrect

Open
#29,842 1 comment 0 reactions 1 assignee Claimed by @mbifeld View on GitHub
act-observability-squad AKS Auto-Assign bug Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

This GitHub issue is being moved from MicrosoftDocs/azure-docs-cli GitHub issue [4596](https://github.com/MicrosoftDocs/azure-docs-cli/issues/4596).

**************************************************
### Type of issue

Typo

### Feedback

The example in this document is incorrect. There should be a "/" in front of the "subscriptions/SubID..."
`az aks create -g MyResourceGroup -n MyMC --kubernetes-version 1.20.9 --node-vm-size VMSize --assign-identity "subscriptions/SubID/resourceGroups/RGName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myID" --enable-managed-identity --crg-id "subscriptions/SubID/resourceGroups/RGName/providers/Microsoft.ContainerService/CapacityReservationGroups/MyCRGID"`

### Page URL

https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest

### Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/aks.yml

### Screen print
![image](https://github.com/user-attachments/assets/60898b6d-87b7-4ad3-a8b5-caa5cb9fa776)

### Related command

az aks create

### Errors

autogenerated example has syntax error, it is missing a `/`

### Issue script & Debug output

n/a

### Expected behavior

n/a

### Environment Summary

Azure CLI 2.64.0

### 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.