-
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
Support for default workload_profile #24198
Comments
Hi @kaganmersin et al - The The short version of this is that workload profiles are always enabled behind the scenes, and the cli / portal options are, imo, a little misleading. Does this help / cover your use case? Thanks! |
Hello @jackofallops I am aware of the situation that Also regarding to your following statement ;
but when I add new workload profile to the existing │ Managed Environment Name: "testenv1"): performing CreateOrUpdate: unexpected status 400 with error: EnvironmentNotCreatedWithWorkloadProfile: To add a new workload profile, environment should be created with a Workload Profile Thanks ! |
Hi @kaganmersin - Thanks for the additional context. When Profiles were first introduced that was not the behaviour we experienced and, unfortunately, a bug in the test coverage for that use case appears to have hidden the failure from us. I'll work with @jiaweitao001 on the implementation of #24277 to correct this behaviour appropriately in the resource. |
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
Description
Thank you for recently adding support for
workload_profile
in 3.84I notice this creates a dedicated profile which needs to be deleted after deployment. While it's not a massive issue I can't see why terraform couldn't support what az cli already does with --enable-workload-profiles.
This enables workload profiles and adds a default Consumption (not to be confused with Consumption Only) so no deletion is required post deployment.
It would be great if we could provide an additional parameter to container_app_environment sort of like this:
New or Affected Resource(s)/Data Source(s)
azurerm_container_app_environment
Potential Terraform Configuration
References
#23478
The text was updated successfully, but these errors were encountered: