Configuring dedicated workload profiles with container app dynamic session pools

Sam Bacaner 5 Reputation points
2024-08-13T16:42:10.53+00:00

The documentation for Container Apps Dynamic Sessions product (in beta) says that it only works with an container app environment configured with a dedicated workflow profile. However, when I create a workflow profile in an environment, I can't seem to create a session pool using that workload profile.

Here you can see that my env, testenv3 does have a dedicated workload profile with 1 D4 instance.

$ az containerapp env show -n testenv3 -g <rg>

{
...
"workloadProfiles": [
      {
        "name": "Consumption",
        "workloadProfileType": "Consumption"
      },
      {
        "maximumCount": 1,
        "minimumCount": 1,
        "name": "e4-profile",
        "workloadProfileType": "D4"
      }
    ],
...
}

When I try to create a session with the following, the operation always seems to be "InProgress" in the JSON in the Portal. I think this is because it doesn't know which nodes to run the pod on. How can I configure the workload profile when creating a session pool? There doesn't seem to be an option in az containerapp sessionpool create to do this.

$ az containerapp sessionpool create --name fifth-pool --resource-group 
<rg> --environment testenv3 --location westus2 --registry-server <registry> --registry-username sbappregistry --registry-password <password> --container-type CustomContainer --image <image> --cpu 0.25 --memory 0.5Gi  --network-status EgressDisabled --max-sessions 1 --ready-sessions 0 

Furthermore, where can I go in the Portal to view the node that is up in this e4-profile

workflow? It seems like there used to be a tab for that in the environment page, but it has been removed. See the screenshot embedded in this post.

I'm creating it with 0 ready sessions as you can see above. Do I need to, perhaps, create it with 1 ready session for things to work? Will that get me out of the InProgress state?

Note that I have followed the tutorial here, but I can't seem to get it to work.

Thank you.

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

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.