Unable to add environment variables in container apps

Desmond Sindatry 26 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.
324 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshukatara-6769 6,715 Reputation points
    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!