MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.29k stars 21.47k forks source link

ARM template availability for AADv2 clusters #51539

Closed chelnak closed 4 years ago

chelnak commented 4 years ago

The document provides an Azure CLI example. Is it possible to have an ARM template example added? Or maybe visibility of the API version used to create the v2 clusters?

Thank you!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

VikasPullagura-MSFT commented 4 years ago

@chelnak Thanks for the feedback! I have assigned the issue to content author to check and update the document as appropriate.

VikasPullagura-MSFT commented 4 years ago

@mlearned Can you please check and add your comments on this doc update request as applicable.

aelij commented 4 years ago

Note this is a non-authritative answer (I'm not on the AKS team). I believe the ARM schema required for AAD-v2 is here (API version 2020-03-01): https://github.com/Azure/azure-rest-api-specs/blob/8a8166f86f35400e9a277498064886810f0a5429/specification/containerservice/resource-manager/Microsoft.ContainerService/stable/2020-03-01/managedClusters.json#L2205-L2217

So it should be something like

"aadProfile": {
  "managed": true,
  "adminGroupObjectIDs": [ ... ]
}

Note you still need to register the feature before:

az feature register --name AAD-V2 --namespace Microsoft.ContainerService
weinong commented 4 years ago

https://gist.github.com/weinong/e0390c1884a7eb1120b045cb14f86c95

chelnak commented 4 years ago

Love this. Thank you so much!

TomGeske commented 4 years ago

please-close

aelij commented 4 years ago

@TomGeske I think this issue should remain open until the documentation is updated with information about ARM.

TomGeske commented 4 years ago

@aelij: we are maintaining the ARM template here.

We can possibly link it but not sure we should replicate into every doc.

aelij commented 4 years ago

Got it, thanks