Error XenonWorkersNotAllowedInResourceGroup when trying to create Web App for Containers / Windows

Bill Reynen 5 Reputation points
2023-12-02T18:32:14.35+00:00

I am trying to create a Web App for Containers. I select 'Docker Container' and 'Windows'. I try to source it from Docker Hub.

I am using a test/trial/free subscriptions. I have tried creating resource groups in many different regions and different pricing plans. I always end up getting this error when I try to create it

{"code":"InvalidTemplateDeployment","details":[{"code":"ValidationForResourceFailed","message":"Validation failed for a resource. Check 'Error.Details[0]' for more information.","details":[{"code":"XenonWorkersNotAllowedInResourceGroup","message":"Windows containers are not allowed in resource group 'DevResourceGroup2'. Please use a new resource group."}]}],"message":"The template deployment 'Microsoft.Web-WebApp-Portal-5a3ec6a9-9eab' is not valid according to the validation procedure. The tracking id is '7f9277e3-79fb-4539-ba29-70f44bd08f2d'. See inner errors for details."}

{   "deploymentStatusCode": -1,   "stage": 6,   "expected": true,   "error": {     "code": "InvalidTemplateDeployment",     "details": [       {         "code": "ValidationForResourceFailed",         "message": "Validation failed for a resource. Check 'Error.Details[0]' for more information.",         "details": [           {             "code": "XenonWorkersNotAllowedInResourceGroup",             "message": "Windows containers are not allowed in resource group 'DevResourceGroup2'. Please use a new resource group."           }         ]       }     ],     "message": "The template deployment 'Microsoft.Web-WebApp-Portal-5a3ec6a9-9eab' is not valid according to the validation procedure. The tracking id is '7f9277e3-79fb-4539-ba29-70f44bd08f2d'. See inner errors for details."   },   "subscriptionId": "58a0efa7-2176-4030-98b3-6822bd1a9d65",   "resourceGroupName": "DevResourceGroup2",   "location": "East US",   "deploymentName": "Microsoft.Web-WebApp-Portal-5a3ec6a9-9eab",   "details": {     "code": "InvalidTemplateDeployment",     "message": "The template deployment 'Microsoft.Web-WebApp-Portal-5a3ec6a9-9eab' is not valid according to the validation procedure. The tracking id is '7f9277e3-79fb-4539-ba29-70f44bd08f2d'. See inner errors for details.",     "details": [       {         "code": "ValidationForResourceFailed",         "message": "Validation failed for a resource. Check 'Error.Details[0]' for more information.",         "details": [           {             "code": "XenonWorkersNotAllowedInResourceGroup",             "message": "Windows containers are not allowed in resource group 'DevResourceGroup2'. Please use a new resource group."           }         ]       }     ]   },   "notificationTimestamp": "2023-12-02T18:23:27.622Z" }
Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
428 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Bill Reynen 5 Reputation points
    2023-12-02T20:14:03.6033333+00:00

    I may have answered my own question. I tried a non-trial subscription and did not have an error. So I guess it is a limitation of my free subscription

    0 comments No comments

  2. deherman-MSFT 35,556 Reputation points Microsoft Employee
    2023-12-05T21:17:38.0933333+00:00

    @Bill Reynen

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others

    Error Message:

    {"code":"InvalidTemplateDeployment","details":[{"code":"ValidationForResourceFailed","message":"Validation failed for a resource. Check 'Error.Details[0]' for more information.","details":[{"code":"XenonWorkersNotAllowedInResourceGroup","message":"Windows containers are not allowed in resource group 'DevResourceGroup2'. Please use a new resource group."}]}],"message":"The template deployment 'Microsoft.Web-WebApp-Portal-5a3ec6a9-9eab' is not valid according to the validation procedure. The tracking id is '7f9277e3-79fb-4539-ba29-70f44bd08f2d'. See inner errors for details."}
    
    

    Issue:

    Error XenonWorkersNotAllowedInResourceGroup when trying to create Web App for Containers / Windows

    Solution:

    As you noted this was failing due to being a limitation of the trial subscription.

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    I hope this helps!

    If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments