microsoftlearning/trainer-demo-deploy/az-consolidated

Claude Code and agent skill by microsoftlearning/trainer-demo-deploy

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Consolidated skill for Azure demo scenario generation: defaults, AVM-first Bicep, architecture diagrams, artifact templates, and demo guide patterns.

Install

npx vskill@latest install microsoftlearning/trainer-demo-deploy/az-consolidated

SKILL.md

The same SKILL.md was published earlier as microsoftlearning/trainer-demo-deploy/az-consolidated.

Azure Demo Builder — Consolidated Skill

Single reference for all agents. Covers Azure defaults, Bicep patterns, architecture diagrams, artifact templates, and demo guide generation.


1. Azure Defaults

Default Regions
ServiceDefault RegionReason
All resourceseastus2Primary Azure Region
Static Web AppswesteuropeNot available in swedencentral
Azure OpenAIswedencentralLimited availability — verify first
Fallbackwestus3Secondary Azure Region (if needed)
Required Tags
TagRequiredExample Values
EnvironmentYesAZD Environment Name
ManagedByYesBicep
ProjectYesProject identifier
SecurityControlYesIgnore
bicep
tags: {
Environment: azd environment name
ManagedBy: 'Bicep'
Project: projectName
SecurityControl: 'Ignore'
}
Resource Group Tags: When using targetScope = 'resourceGroup', azd
creates the RG without tags. Add this to main.bicep to tag the RG:
```bicep
resource rgTags 'Microsoft.Resources/tags@2024-03-01' = {
name: 'default'
properties: { tags: tags }
}
```
Unique Suffix Pattern

Generate ONCE in main.bicep, pass to ALL modules:

bicep
var uniqueSuffix = uniqueString(resourceGroup().id)
Security Baseline
SettingValueApplies To
supportsHttpsTrafficOnlytrueStorage accounts
minimumTlsVersion'TLS1_2'All services
allowBlobPublicAccessfalseStorage accounts
publicNetworkAccess'Disabled'Data services
AuthenticationManaged IdentityPrefer over keys/strings
SQL AuthAzure AD-onlyazureADOnlyAuthentication: true
Naming Conventions
ResourceAbbreviationName PatternMax Length
Resource Grouprgrg-{project}-{env}90
Virtual Networkvnetvnet-{project}-{env}64
Subnetsnetsnet-{purpose}-{env}80
NSGnsgnsg-{purpose}-{env}80
Key Vaultkvkv-{short}-{env}-{suffix}24
Storage Accountstst{short}{env}{suffix}24
App Service Planaspasp-{project}-{env}40
App Serviceappapp-{project}-{env}60
SQL Serversqlsql-{project}-{env}63
SQL Databasesqldbsqldb-{project}-{env}128
Static Web Appstappstapp-{project}-{env}40
Log Analyticsloglog-{project}-{env}63
App Insightsappiappi-{project}-{env}255
Container Appcaca-{project}-{env}32
Container Envcaecae-{project}-{env}60
Cosmos DBcosmoscosmos-{project}-{env}44
Service Bussbsb-{project}-{env}50

Length-constrained resources (Key Vault, Storage — 24 char limit):

bicep
var kvName = 'kv-${take(projectName, 8)}-${take(environment, 3)}-${take(uniqueSuffix, 6)}'
var stName = 'st${take(replace(projectName, '-', ''), 8)}${take(environment, 3)}${take(uniqueSuffix, 6)}'

Rules: lowercase with hyphens, include uniqueSuffix in globally unique names, use take() to truncate, no hyphens in Storage Account names.

azure.yaml Naming Convention

Every generated-scenarios/{project}/azure.yaml MUST follow this naming pattern:

yaml
name: tdd-azd-{project}
metadata:
template: tddazd-{project}@1.0.0
infra:
provider: bicep
path: ./infra
FieldPatternExample (newfoundrydemo)
nametdd-azd-{project}tdd-azd-newfoundrydemo
templatetddazd-{project}@1.0.0tddazd-newfoundrydemo@1.0.0
[!IMPORTANT]
The name field uses tdd-azd- prefix (with hyphens).
The template field uses tddazd- prefix (no hyphens before project name).
This is mandatory for all scenarios — agents generating azure.yaml must apply this.

2. Azure Verified Modules (AVM)

AVM-First Policy
  1. ALWAYS check AVM availability first via mcp_bicep_list_avm_metadata
  2. Use AVM module defaults for SKUs when available
  3. NEVER write raw Bicep for a resource that has an AVM module
Common AVM Modules
ResourceModule PathMin Version
Key Vaultbr/public:avm/res/key-vault/vault0.11.0
Virtual Networkbr/public:avm/res/network/virtual-network0.5.0
Storage Accountbr/public:avm/res/storage/storage-account0.14.0
App Service Planbr/public:avm/res/web/serverfarm0.4.0
App Servicebr/public:avm/res/web/site0.12.0
SQL Serverbr/public:avm/res/sql/server0.10.0
Log Analyticsbr/public:avm/res/operational-insights/workspace0.9.0
App Insightsbr/public:avm/res/insights/component0.4.0
NSGbr/public:avm/res/network/network-security-group0.5.0
Static Web Appbr/public:avm/res/web/static-site0.4.0
Container Appbr/public:avm/res/app/container-app0.11.0
Container Envbr/public:avm/res/app/managed-environment0.8.0
Cosmos DBbr/public:avm/res/document-db/database-account0.10.0
Front Doorbr/public:avm/res/cdn/profile0.7.0
Service Busbr/public:avm/res/service-bus/namespace0.10.0
Container Registrybr/public:avm/res/container-registry/registry0.6.0
AVM Usage Pattern
bicep
module keyVault 'br/public:avm/res/key-vault/vault:0.11.0' = {
name: '${kvName}-deploy'
params: {
name: kvName
location: location
tags: tags
enableRbacAuthorization: true
enablePurgeProtection: true
}
}
AVM Known Pitfalls
ModuleIssueFix
Log AnalyticsdailyQuotaGb is int, not stringUse dailyQuotaGb: 5
Container EnvappLogsConfiguration deprecatedUse logsConfiguration with destination obj
Container AppscaleSettings is object, not arrayCheck AVM schema for exact shape
SQL Serversku is typed object {name,tier,cap}Pass full SKU object
App ServiceInstrumentation key deprecatedUse APPLICATIONINSIGHTS_CONNECTION_STRING
Key VaultsoftDeleteRetentionInDays is immutableSet correctly on first deploy (default: 90)
Static Web AppFree SKU unreliable via ARM in some regionsUse Standard for reliable Bicep deployment
Static Web Apps regionOnly 5 regions availableUse westeurope for EU

3. Bicep Patterns

Private Endpoint Wiring

Three-resource pattern: private endpoint → DNS zone group → DNS zone link.

bicep
resource privateEndpoint 'Microsoft.Network/privateEndpoints@2024-01-01' = {
name: 'pe-${serviceName}-${uniqueSuffix}'
location: location
tags: tags
properties: {
subnet: { id: subnetId }
privateLinkServiceConnections: [
{
name: 'plsc-${serviceName}'
properties: {
privateLinkServiceId: targetResourceId
groupIds: [groupId]
}
}
]
}
}
resource privateDnsZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2024-01-01' = {
parent: privateEndpoint
name: 'default'
properties: {
privateDnsZoneConfigs: [
{
name: 'config'
properties: { privateDnsZoneId: privateDnsZoneId }
}
]
}
}

Group IDs by service type:

ServiceGroup IDDNS Zone
Storage Blobblobprivatelink.blob.core.windows.net
Storage Tabletableprivatelink.table.core.windows.net
Key Vaultvaultprivatelink.vaultcore.azure.net
SQL ServersqlServerprivatelink.database.windows.net
Cosmos DBSqlprivatelink.documents.azure.com
App Servicesitesprivatelink.azurewebsites.net
Event Hubnamespaceprivatelink.servicebus.windows.net
Container Regregistryprivatelink.azurecr.io
Diagnostic Settings

Every resource must send logs and metrics to a workspace:

bicep
param logAnalyticsWorkspaceName string
resource workspace 'Microsoft.OperationalInsights/workspaces@2023-09-01' existing = {
name: logAnalyticsWorkspaceName
}
resource diagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = {
name: 'diag-${parentResourceName}'
scope: parentResource
properties: {
workspaceId: workspace.id
logs: [{ categoryGroup: 'allLogs', enabled: true }]
metrics: [{ category: 'AllMetrics', enabled: true }]
}
}
Conditional Deployment
bicep
@description('Deploy a Redis cache for session state')
param deployRedis bool = false
module redis 'modules/redis.bicep' = if (deployRedis) {
name: 'redis-cache'
params: {
name: 'redis-${projectName}-${environment}-${uniqueSuffix}'
location: location
tags: tags
}
}
output redisHostName string = deployRedis ? redis.outputs.hostName : ''
Module Composition Contract

Every module accepts name, location, tags, logAnalyticsWorkspaceName. Every module outputs resourceId, resourceName, principalId.

bicep
// modules/storage.bicep
@description('Storage account name (max 24 chars)')
param name string
@description('Azure region')
param location string
@description('Resource tags')
param tags object
@description('Log Analytics workspace name for diagnostics')
param logAnalyticsWorkspaceName string
// ... resource definition ...
@description('Resource ID of the storage account')
output resourceId string = storageAccount.id
@description('Name of the storage account')
output resourceName string = storageAccount.name
@description('Principal ID of the managed identity (empty if none)')
output principalId string = storageAccount.identity.?principalId ?? ''
Managed Identity Binding

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
31
Repository forks
26
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/microsoftlearning/trainer-demo-deploy/az-consolidated/badge)](https://verified-skill.com/skills/microsoftlearning/trainer-demo-deploy/az-consolidated)

Something wrong with this skill or its page? Tell us.