Error "does not have authorization to perform action 'Microsoft.ContainerService/register/action'" when trying to create a Container Apps environments to use existing Virtual Network

Tung Nguyen Xuan 70 Reputation points
2024-10-29T05:08:28.5+00:00

As in the title, I'm having problem creating a container apps environment that uses existing virtual network.
The error also persists if I create a new virtual network using "Create new" option during creating the container apps environment. I thought ContainerService is only required for AKS, as shown here
https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers

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

Accepted answer
  1. Prrudram-MSFT 28,366 Reputation points Microsoft Employee Moderator
    2024-10-29T10:14:18.3+00:00

    Hi @Tung Nguyen Xuan

    This isn't explicity covered in the container apps document, however you can see here in this section of creating an environment where the first step suggests to register Microsoft.ContainerService resource provider.

    User's image

    Additionally, the Microsoft.ContainerService resource provider is required for several Azure services, including:

    Azure Kubernetes Service (AKS): For managing and orchestrating containerized applications using Kubernetes.

    Azure Red Hat OpenShift: For deploying and managing containerized applications using Red Hat OpenShift.

    Azure Container Apps: For executing event-driven, serverless code.

    Azure Container Instances: For running containers without managing the underlying infrastructure.

    Azure Service Fabric: For building, deploying, and managing scalable and reliable microservices using containers.

    Solution: For your scenario. Yes, you could ask the owner or a contributor to register this service from the subscriptions->resource providers and then try creating a container app in the RG where you have permissions to create a resource.

    User's image

    If I have answered your question, please accept this as answer and upvote as a token of appreciation.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.