Creating a service principal for a pipeline, when you're not a subscription owner #696
Unanswered
aaronpowell
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm contributing some
azd
work to a a project, including usingazd
to deploy using GitHub Actions.The deployment is going into a subscription that I don't have owner or contributor access to, but I do have access to the resource group (so I can view the deployed resources once done).
When I run
azd pipeline config
it fails as I don't have permissions, so I'd like to give an Azure CLI command to someone else to run so that they can provide the service principal, but I'm not sure the command.I've tried the
az ad sp create-for-rbac
as described https://github.com/marketplace/actions/azure-login#configure-a-service-principal-with-a-secret but it doesn't look like it has enough permissions, failing with the following error:What's the "raw"
az ad sp create-for-rbac
that would need to be run to create the a service principal with the required permissions?Beta Was this translation helpful? Give feedback.
All reactions