-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Data Source azurerm_api_management fails when not having the required service level permission #19582
Comments
I have the same issue and I consider this a bug. The tenant information should only be read if the |
@martin-fuhrer the
|
@martin-fuhrer what roles or permission your SPN have if use SPN to run the Terraform? Assume u use SPN to do the auth, can you try grant the |
@xuzhang3 In the organization which I work for, it's not an option. The Api Management resource is managed organization wide by another Team. Each consumer team have permission for their own Api, but very few permissions at APIM level. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@xuzhang3 Downgrading the provider version means getting stuck to this version forever |
This comment was marked as off-topic.
This comment was marked as off-topic.
hey @arkiaconsulting Thanks for opening this issue. Please disregard the comments about downgrading the provider version from @xuzhang3 here, this is a bug in the Provider - whilst we do require new permissions from time-to-time in Resources (since we need to retrieve additional information to be able to manage it effectively) - Data Sources should handle the missing permissions gracefully by outputting this as an empty list instead. I've tagged this as a Thanks! |
Hi @arkiaconsulting, thanks for raising this issue. I have submitted PR to fix this issue. Could you track if for more updates? |
This functionality has been released in v3.36.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.3.5
AzureRM Provider Version
3.34.0
Affected Resource(s)/Data Source(s)
azurerm_api_management
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The Azure Api management resource is populated correctly (was the case in 3.33.0)
Actual Behaviour
Unauthorized error when the data source is fetched.
Steps to Reproduce
terraform plan
Important Factoids
For organization reasons, the identity executing the plan has restricted access to the Azure APIM service level resources..
References
#19422
The text was updated successfully, but these errors were encountered: