Using workload profiles with ManagedEnvironment throws error code "WorkloadProfileRelatedApiNotSupported" #2667
Labels
kind/bug
Some behavior is incorrect or out of spec
resolution/by-design
This issue won't be fixed because the functionality is working as designed
What happened?
When using workload profiles when setting up a
AzureNative.App.ManagedEnvironment
, it fails with the following error:The documentation (https://www.pulumi.com/registry/packages/azure-native/api-docs/app/managedenvironment) examples shows usage of the
WorkloadProfiles
property but this sample will not work. The documentation also indicates that the underlying API version being used is2022-10-01
while it appears workload profiles requires at least2022-11-01-preview
.Expected Behavior
Should be using the latest API version when creating container app environments in order to use new features.
Steps to reproduce
Try to create a container apps environment using workload profiles:
Output of
pulumi about
Additional context
Same bug in the Azure Dev repo: Azure/azure-dev#2402
Fix in the Azure Dev repo: Azure/azure-dev#2412
Could be useful in resolving this: #2467
Bicep example: https://github.com/microsoft/azure-container-apps/blob/main/docs/templates/bicep/workloadProfiles/managed-env-workload-profiles.bicep
The latest API version for this is 2023-05-01 and removes
WorkloadProfileType
in favour of 1WorkloadProfileName1 when linking a container app toa profile. The Pulumi API for container app (https://www.pulumi.com/registry/packages/azure-native/api-docs/app/containerapp/) would need to be updated to align with this as well.WorkloadProfileArgs
is missing the name property argument.Suggestion:
WorkloadProfileType
can be an enum for:General Purpose: D4/8/16/32 or Memory: E4/8/16/32
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: