azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

Unable to set up Azure AD applications for Azure Arc-enabled Kubernetes

Open starbuckscoffee opened this issue 2 years ago • 3 comments

Hello Azure team

[Enter feedback here] When I followed instraction, the script, "ad ad app permission grant xxxx", could not run. Error Message: "the following arguments are required: --scope" Need to explain what scope should be added when I run the script, for example Directory.ReadWrite.All , or Directory.Read.All...

Where the error happend? at Step 4 of "Create a server application" at Step 4 of "Create a client application"

Best Regards Hisashi Goto


Document Details

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

starbuckscoffee avatar Aug 12 '22 04:08 starbuckscoffee

@starbuckscoffee Thanks for your feedback! We will investigate and update as appropriate.

YashikaTyagii avatar Aug 12 '22 15:08 YashikaTyagii

I too am having issues with this article. It would appear that numerous commands are not correct, perhaps they were written for an older version of the Azure CLI? I'm running azure-cli version 2.39.0.

Some examples I noticed:

SERVER_APP_SECRET=$(az ad sp credential reset --name "${SERVER_APP_ID}" --credential-description "ArcSecret" --query password -o tsv

Produces and error stating that the --name and --credential-description arguments are unrecognized.

CLIENT_APP_ID=$(az ad app create --display-name "${CLUSTER_NAME}Client" --native-app --reply-urls "api://${TENANT_ID}/ServerAnyUniqueSuffix" --query appId -o tsv)
echo $CLIENT_APP_ID

Produces and error stating that the --native-app and --reply-urls arguments are unrecognized.

It would seem that the entire article and instructions need to be evaluated and possibly re-written to ensure its working.

I'm very excited about this feature, but disappointed by the complexity of setting-up Azure AD RBAC. My company is currently evaluating Arc-enabled Kubernetes for a potential project where we'd be deploying 30+ new clusters, but not having Azure AD-integrated RBAC would be a show stopper for us.

mrecek avatar Aug 16 '22 00:08 mrecek

@starbuckscoffee thank you for reporting this issue. I am assigning it to our content team for further review and update.

@JnHs , can you please review the issue and share your thoughts. Thank you

ManoharLakkoju-MSFT avatar Aug 17 '22 09:08 ManoharLakkoju-MSFT

Hi @starbuckscoffee and @mrecek - thanks to both of you for your detailed feedback. We are in the process of reviewing and updating this topic to address several issues, including those mentioned here, and ensure it's up to date. It may take some time before this is completed, so I will leave this issue open for now and close it after the changes have been made. We appreciate your taking the time to help us improve our documentation!

JnHs avatar Aug 22 '22 16:08 JnHs

Hello again @starbuckscoffee and @mrecek - thanks for your patience! The information in this document has been updated to reflect the current experience. I believe your concerns are all addressed, so I will close this Github issue now, but please let us know if you have further questions or suggestions. Thanks again for taking the time to share your feedback with us and help improve our docs! #please-close

JnHs avatar Nov 07 '22 18:11 JnHs