Unable to add environment variables in container apps

Desmond Sindatry 36 Reputation points
2024-04-25T16:01:34.32+00:00

I am trying to add environment variables to my container app and getting this error. Tried searching but not able to find where to update this version.

az containerapp update -g ${resourceGroupName} -n ${containerAppName} --container-name abv \

> --set-env-vars \

> "SAS_DETECTION_SERVICE_URL=http://localhost:8777" \

> "PORT=8777"

(WorkloadProfilePropertyNotSupportedInApiVersion) WorkloadProfiles configuration is not supported in 2022-10-01 api version. Use 2022-11-01-preview or above.

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
705 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 16,945 Reputation points MVP Moderator
    2024-04-25T17:18:30.0233333+00:00

    Hi Desmond,

    Can you verify if you are using latest az modules and cli version , if running through az cli command

    Image for ref

    User's image

    Kindly accept answer , if it helps, Thanks!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.