-
Notifications
You must be signed in to change notification settings - Fork 35
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
Principals of type Application cannot validly be used in role assignments. #1
Comments
I'm getting the same error (Principals of type Application cannot validly be used in role assignments) when trying to add deploy role assignments via ARM template I've tried parsing the appId and objectId of the service principle |
Getting the same errors as well. |
Same issue in ARM template for type |
I had the same issue. Paying more attention to the name of the variable in my terraform.tfvars definition I realized I was using the wrong object_id. Indeed it is required the one related to my subscription instead of the application object id. |
And as an additional input for everyone else stumbling into this: When you create a new "app registration" in the Azure portal, actually two objects are created: An application object and a service principal object. The object ID which appears in the Azure portal is the application object ID, not the service principal object ID. So what you can do is: Create a SP: List details for the newly created SP: Use the object ID from the CLI as the object ID you enter in Terraform. |
So why not to show in the portal the Service Principal Object ID ? |
You can also find the object id through the Enterprise Application. |
I tried this, but there was no key |
same issue |
I found the answer. The json response has an |
I have to agree this is missleading. Application_id i understand, but ojbect_id i don't. And things changed, as this requires the object_id ( |
Getting below error on
terraform apply
:Using object ID.
I also tried with using tenant ID but getting PrincipalNotFound error.
The text was updated successfully, but these errors were encountered: