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

feature: RetryGetAfterPut configurable via provider #737

Open
sdeguchi opened this issue Jan 22, 2025 · 2 comments
Open

feature: RetryGetAfterPut configurable via provider #737

sdeguchi opened this issue Jan 22, 2025 · 2 comments

Comments

@sdeguchi
Copy link

Using the terraform-azurerm-avm-ptn-alz to create management groups and policy assignments, we want to use a service principle that does not have the entra role global admin assigned to it and only contributor role at the root management group. Creating the management group with these lowered permissions requires setting the env variable AZAPI_RETRY_GET_AFTER_PUT_MAX_TIME(https://github.com/Azure/terraform-provider-azapi/blob/main/internal/services/common.go#L14) to at least 20m as each level of management group takes at least 10m to create.

It would remove a step for customers to set the env variable if we could make this configurable through the provider.

@ms-henglu
Copy link
Member

Hi @sdeguchi ,

Thank you for taking time to report this issue.

I think it would be better to use customized retry configurations in the management group and policy assignments, so these configs would be part of the module and transparent to the module users(which means users don't need to set up the environment variables).

WDYT? More could be found here

@matt-FFFFFF
Copy link
Member

See #745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants