Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fehler beim Anlegen eines Service Principals #5

Closed
hsirtl opened this issue Sep 6, 2022 · 3 comments
Closed

Fehler beim Anlegen eines Service Principals #5

hsirtl opened this issue Sep 6, 2022 · 3 comments

Comments

@hsirtl
Copy link

hsirtl commented Sep 6, 2022

Die Zeile

az ad sp create-for-rbac --sdk-auth --name ContosoAds-CICD --role contributor --scopes "/subscriptions/$subscription_id"

zeigt zumindest bei mir (kann auch einer etwas instabilen Ubuntu-distro liegen) die Warnung

"Option '--sdk-auth' has been deprecated and will be removed in a future release."

an und gibt zudem nicht das benötigte JSON aus.

Erst wenn ich es ohne den SDK-Parameter mache, funktioniert's mit der JSON-Ausgabe:

ubscription_id"```

@joergjo
Copy link
Owner

joergjo commented Sep 7, 2022

--sdk-auth is actually deprecated, but is still available to support GitHub Actions (see Azure/azure-cli#21219). The output of az ad sp create-for-rbac is different from --sdk-auth, so I'm surprised that this has worked for -- unless GH actions now support the new condensed JSON output.

@joergjo
Copy link
Owner

joergjo commented Sep 10, 2022

I've added a note that the deprecation warning is to be expected right now.

@hsirtl Are you saying that the output of az ad sp create without --sdk-auth worked for you in GH Actions?

@hsirtl
Copy link
Author

hsirtl commented Sep 12, 2022

az ad sp create gave all the info needed for the secrets (copying single values to the respective fields in the secrets template, e.g. appID -> clientID). It's fine to have the deprecated warning.

@joergjo joergjo closed this as completed Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants