-
Notifications
You must be signed in to change notification settings - Fork 301
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
Unable to read groups from Azure GroupsClient.BaseClient.Get()
(403 error code)
#789
Comments
GroupsClient.BaseClient.Get()
(403 error code)
I'm authenticating in Azure through a |
Apparently, the problem was After using those commands it was able to do the az account clear
az login |
@64J0 Thanks for following up. It's worth noting that we recommend using the provider's native support for authenticating using a service principal rather than relying on When using Azure CLI for authentication, the access token, which contains your scopes and roles at the time of issuance, is cached by az-cli and accordingly you'll need to sign out and back in again to have new permissions take effect before this cache expires. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
I'm having trouble to authenticate my service principal and make it read Groups from Azure AD. I have assigned all the required permissions and it is still not working.
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
azuread_group
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
I want to use this configuration code to create this group for me.
Actual Behavior
When I do
terraform plan
I get this message:Those are my service principal API permissions:
Steps to Reproduce
terraform apply
Important Factoids
Running in a Azure from Brazil.
References
The text was updated successfully, but these errors were encountered: