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

[BUG]Error assigning role to service principal, exiting... #188

Open
SridharArrabelly opened this issue Oct 6, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@SridharArrabelly
Copy link

Describe the bug
I followed the steps as explained in the deployment guide. It appears the provisioning of services has been completed successfully. but the problem with assigning roles after.

To Reproduce
Steps to reproduce the behavior:

  1. run bash deploy.sh -p deploy.parameters.json
  2. you will see the error as in the attached screenshot.

Screenshots
Screenshot 2024-10-06 164042

Desktop (please complete the following information):

  • OS: Windows 11
  • Bicep: 0.30.23

Additional context
Resource group and OpenAI are in the same subscription..

@SridharArrabelly SridharArrabelly added the bug Something isn't working label Oct 6, 2024
@timothymeyers
Copy link
Contributor

@SridharArrabelly - can you verify that your user (or service principal executing the deployment) has the Role Based Access Control (RBAC) Administrator role assigned on your subscription?

I've found this is generally the issue, where this role is either not assigned or is limited in scope to particular resources.

@DOliana
Copy link

DOliana commented Oct 8, 2024

I had a similar issue - for me restarting the deployment helped. It seems there are some timing issues. Also at some point the issue was that the nodes inthe AKS cluster were still starting.

@soon-nl
Copy link

soon-nl commented Oct 8, 2024

I had a similar issue - for me restarting the deployment helped. It seems there are some timing issues. Also at some point the issue was that the nodes inthe AKS cluster were still starting.

Having the same error. Did you just run bash deploy.sh -p deploy.parameters.json again?

@SridharArrabelly
Copy link
Author

SridharArrabelly commented Oct 9, 2024

@DOliana @soon-nl redploy/run again didn't work.
@timothymeyers I can confirm that i have the Role Based Access Control (RBAC) Administrator role. please see attached.

Screenshot 2024-10-09 062044

@DOliana
Copy link

DOliana commented Oct 21, 2024

I had a similar issue - for me restarting the deployment helped. It seems there are some timing issues. Also at some point the issue was that the nodes inthe AKS cluster were still starting.

Having the same error. Did you just run bash deploy.sh -p deploy.parameters.json again?

yes exactly. rerunning it did the trick for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants