Azure / Azure/Microsoft-Defender-for-Cloud

Lab Deployment in Azure fails - Invalid Template Deployment

Open
#1,002 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
1.9k
Forks
871
Avg merge
3d 10h
Merged PRs (30d)
1

Description

**Describe the bug**
In section 1 of the Welcome to Microsoft Defender for Cloud Labs!, deploying the lab environment fails due to a deprecated feature in the template

**To Reproduce**
Error is as follows in azure when i try to do the deployment:
{
"code": "InvalidTemplateDeployment",
"details": [
{
"code": "InvalidAgentPoolType",
"message": "Preflight validation check for resource(s) for container service asclab-aks in resource group asclab failed. Message: The VMAS (AvailabilitySet) agent pool has been deprecated and is no longer available for creation.. Details: "
}
],
"message": "The template deployment 'Microsoft.Template-20251013174302' is not valid according to the validation procedure. The tracking id is 'e554fe70-e958-435d-95e0-2eba250b2306'. See inner errors for details."
}

Contributor guide

Open the contributing guide

Research direction

Start with the section 1 deployment in the “Welcome to Microsoft Defender for Cloud Labs!” and reproduce the Azure error for the asclab-aks resource. Inspect the lab’s deployment template and verify that the deployment completes without the InvalidAgentPoolType error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, kubernetes
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.