Skip to content

Commit c7370ce

Browse files
Ba4besCopilot
andcommitted
updates added for PR comments
Co-authored-by: Copilot <copilot@github.com>
1 parent a8b490a commit c7370ce

7 files changed

Lines changed: 42 additions & 41 deletions

File tree

plugin/skills/azure-iac-generator/SKILL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Reverse-engineer live Azure resources or Draw.io diagrams into deployment-ready,
1313

1414
## Prerequisites
1515

16-
- Authenticated Azure CLI session (`az login`)
1716
- Azure MCP and Bicep MCP servers available
1817
- For diagram source: a `.drawio` file in the workspace
18+
- For live Azure / `azure-to-bicep`: an authenticated Azure CLI session (`az login`) with access to the target subscription and resource group
1919

2020
## When to Use This Skill
2121

@@ -34,7 +34,7 @@ Reverse-engineer live Azure resources or Draw.io diagrams into deployment-ready,
3434

3535
## Design Notes
3636

37-
Named `azure-iac-generator` rather than `azure-bicep-generator` to accommodate future IaC tooling such as Terraform. Bicep is the only supported target today; Terraform support is reserved for a future iteration.
37+
Named `azure-iac-generator` rather than `azure-bicep-generator` to leave room for future expansion to additional Infrastructure as Code targets. Bicep is the only supported target today.
3838

3939
## Routing — MUST follow the matched workflow
4040

plugin/skills/azure-iac-generator/references/azure-resource-model.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ Each Azure environment is represented as a **resource model** — a JSON structu
3232

3333
| Field | Type | Required | Description |
3434
|-------|------|----------|-------------|
35-
| `id` | string | Yes | Unique identifier within the model. Use a short slug (e.g., `vm-web-01`). |
36-
| `type` | string | Yes | Azure resource provider type (e.g., `Microsoft.Compute/virtualMachines`). |
35+
| `id` | string | Yes | **Canonical ARM resource ID** (for example, `/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Compute/virtualMachines/vm-web-01`). This is the primary key for matching resources across workflows. |
36+
| `localId` | string | No | Optional short slug for readability (for example, `vm-web-01`). Do not use as the canonical identifier. |
37+
| `type` | string | Yes | Azure resource provider type (for example, `Microsoft.Compute/virtualMachines`). Must align with `id`. |
3738
| `name` | string | Yes | Display name of the resource. |
3839
| `resourceGroup` | string | No | Resource group the resource belongs to. |
3940
| `location` | string | No | Azure region (e.g., `eastus`, `westeurope`). |
@@ -52,16 +53,16 @@ Each Azure environment is represented as a **resource model** — a JSON structu
5253
| `secures` | Security association | NSG secures Subnet |
5354
| `routes` | Traffic routing | Load Balancer routes to VM |
5455

55-
## Usage by Skill
56+
## Usage by Workflow
5657

57-
- **azure-to-bicep**: Builds a resource model from live Azure resources; generates Bicep from it.
58-
- **azure-to-diagram**: Builds a resource model from live Azure resources; generates Draw.io XML from it.
59-
- **bicep-diagram-sync**: Parses both Bicep and Draw.io into resource models and compares them.
60-
- **bicep-policy-check**: Parses Bicep into a resource model to evaluate against Azure Policy.
61-
- **bicep-whatif**: Parses Bicep into a resource model and compares it against live Azure state.
62-
- **diagram-azure-sync**: Produces two resource models (diagram + live Azure) and compares them (quick or deep mode).
63-
- **diagram-to-bicep**: Parses Draw.io XML into a resource model; enriches it with configuration manifest; generates Bicep.
64-
- **sketch-to-diagram**: Produces a resource model from image analysis; generates Draw.io XML via stencil mapping.
58+
- **Azure to Bicep workflow**: Builds a resource model from live Azure resources; generates Bicep from it.
59+
- **Azure to diagram workflow**: Builds a resource model from live Azure resources; generates Draw.io XML from it.
60+
- **Bicep and diagram comparison workflow**: Parses both Bicep and Draw.io into resource models and compares them.
61+
- **Bicep policy evaluation workflow**: Parses Bicep into a resource model to evaluate against Azure Policy.
62+
- **Bicep what-if comparison workflow**: Parses Bicep into a resource model and compares it against live Azure state.
63+
- **Diagram and Azure sync workflow**: Produces two resource models (diagram + live Azure) and compares them (quick or deep mode).
64+
- **Diagram to Bicep workflow**: Parses Draw.io XML into a resource model; enriches it with configuration manifest; generates Bicep.
65+
- **Sketch to diagram workflow**: Produces a resource model from image analysis; generates Draw.io XML via stencil mapping.
6566

6667
## Common Azure Resource Types
6768

plugin/skills/azure-iac-generator/references/resource-configs-compute.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Per-resource property retrieval for compute and container resource types.
88

99
### Microsoft.Compute/virtualMachines
1010

11-
**MCP Tool**: `mcp_azure_compute`
11+
**MCP Tool**: `mcp_azure_mcp_compute`
1212
**Fallback**: `az vm show --ids <resourceId> -o json`
1313

1414
| Property | ARM JSON Path | Notes |
@@ -27,7 +27,7 @@ Per-resource property retrieval for compute and container resource types.
2727

2828
### Microsoft.Compute/virtualMachineScaleSets
2929

30-
**MCP Tool**: `mcp_azure_compute`
30+
**MCP Tool**: `mcp_azure_mcp_compute`
3131
**Fallback**: `az vmss show --ids <resourceId> -o json`
3232

3333
| Property | ARM JSON Path | Notes |
@@ -39,7 +39,7 @@ Per-resource property retrieval for compute and container resource types.
3939

4040
### Microsoft.Web/serverfarms
4141

42-
**MCP Tool**: `mcp_azure_appservice`
42+
**MCP Tool**: `mcp_azure_mcp_appservice`
4343
**Fallback**: `az appservice plan show --ids <resourceId> -o json`
4444

4545
| Property | ARM JSON Path | Notes |
@@ -52,7 +52,7 @@ Per-resource property retrieval for compute and container resource types.
5252

5353
### Microsoft.Web/sites
5454

55-
**MCP Tool**: `mcp_azure_appservice`
55+
**MCP Tool**: `mcp_azure_mcp_appservice`
5656
**Fallback**: `az webapp show --ids <resourceId> -o json` + `az webapp config show --ids <resourceId> -o json`
5757

5858
| Property | ARM JSON Path | Notes |
@@ -68,7 +68,7 @@ Per-resource property retrieval for compute and container resource types.
6868

6969
### Microsoft.Web/sites/functions
7070

71-
**MCP Tool**: `mcp_azure_appservice`
71+
**MCP Tool**: `mcp_azure_mcp_appservice`
7272
**Fallback**: `az functionapp show --ids <resourceId> -o json`
7373

7474
| Property | ARM JSON Path | Notes |
@@ -80,7 +80,7 @@ Per-resource property retrieval for compute and container resource types.
8080

8181
### Microsoft.ContainerService/managedClusters
8282

83-
**MCP Tool**: `mcp_azure_aks`
83+
**MCP Tool**: `mcp_azure_mcp_aks`
8484
**Fallback**: `az aks show --ids <resourceId> -o json`
8585

8686
| Property | ARM JSON Path | Notes |
@@ -95,7 +95,7 @@ Per-resource property retrieval for compute and container resource types.
9595

9696
### Microsoft.App/managedEnvironments
9797

98-
**MCP Tool**: `mcp_azure_containerapps`
98+
**MCP Tool**: `mcp_azure_mcp_containerapps`
9999
**Fallback**: `az containerapp env show --ids <resourceId> -o json`
100100

101101
| Property | ARM JSON Path | Notes |
@@ -105,7 +105,7 @@ Per-resource property retrieval for compute and container resource types.
105105

106106
### Microsoft.App/containerApps
107107

108-
**MCP Tool**: `mcp_azure_containerapps`
108+
**MCP Tool**: `mcp_azure_mcp_containerapps`
109109
**Fallback**: `az containerapp show --ids <resourceId> -o json`
110110

111111
| Property | ARM JSON Path | Notes |
@@ -120,7 +120,7 @@ Per-resource property retrieval for compute and container resource types.
120120

121121
### Microsoft.ContainerRegistry/registries
122122

123-
**MCP Tool**: `mcp_azure_acr`
123+
**MCP Tool**: `mcp_azure_mcp_acr`
124124
**Fallback**: `az acr show --ids <resourceId> -o json`
125125

126126
| Property | ARM JSON Path | Notes |

plugin/skills/azure-iac-generator/references/resource-configs-data.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Per-resource property retrieval for data and storage resource types.
88

99
### Microsoft.Storage/storageAccounts
1010

11-
**MCP Tool**: `mcp_azure_storage`
11+
**MCP Tool**: `mcp_azure_mcp_storage`
1212
**Fallback**: `az storage account show --ids <resourceId> -o json`
1313

1414
| Property | ARM JSON Path | Notes |
@@ -24,7 +24,7 @@ Per-resource property retrieval for data and storage resource types.
2424

2525
### Microsoft.Sql/servers
2626

27-
**MCP Tool**: `mcp_azure_sql`
27+
**MCP Tool**: `mcp_azure_mcp_sql`
2828
**Fallback**: `az sql server show --ids <resourceId> -o json`
2929

3030
| Property | ARM JSON Path | Notes |
@@ -35,7 +35,7 @@ Per-resource property retrieval for data and storage resource types.
3535

3636
### Microsoft.Sql/servers/databases
3737

38-
**MCP Tool**: `mcp_azure_sql`
38+
**MCP Tool**: `mcp_azure_mcp_sql`
3939
**Fallback**: `az sql db show --ids <resourceId> -o json`
4040

4141
| Property | ARM JSON Path | Notes |
@@ -49,7 +49,7 @@ Per-resource property retrieval for data and storage resource types.
4949

5050
### Microsoft.DocumentDB/databaseAccounts
5151

52-
**MCP Tool**: `mcp_azure_cosmos`
52+
**MCP Tool**: `mcp_azure_mcp_cosmos`
5353
**Fallback**: `az cosmosdb show --ids <resourceId> -o json`
5454

5555
| Property | ARM JSON Path | Notes |
@@ -64,7 +64,7 @@ Per-resource property retrieval for data and storage resource types.
6464

6565
### Microsoft.Cache/redis
6666

67-
**MCP Tool**: `mcp_azure_redis`
67+
**MCP Tool**: `mcp_azure_mcp_redis`
6868
**Fallback**: `az redis show --ids <resourceId> -o json`
6969

7070
| Property | ARM JSON Path | Notes |

plugin/skills/azure-iac-generator/references/resource-configs-platform.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Per-resource property retrieval for platform, security, and integration resource
88

99
### Microsoft.KeyVault/vaults
1010

11-
**MCP Tool**: `mcp_azure_keyvault`
11+
**MCP Tool**: `mcp_azure_mcp_keyvault`
1212
**Fallback**: `az keyvault show --ids <resourceId> -o json`
1313

1414
| Property | ARM JSON Path | Notes |
@@ -22,7 +22,7 @@ Per-resource property retrieval for platform, security, and integration resource
2222

2323
### Microsoft.Insights/components
2424

25-
**MCP Tool**: `mcp_azure_applicationinsights`
25+
**MCP Tool**: `mcp_azure_mcp_applicationinsights`
2626
**Fallback**: `az monitor app-insights component show --ids <resourceId> -o json`
2727

2828
| Property | ARM JSON Path | Notes |
@@ -33,7 +33,7 @@ Per-resource property retrieval for platform, security, and integration resource
3333

3434
### Microsoft.OperationalInsights/workspaces
3535

36-
**MCP Tool**: `mcp_azure_monitor`
36+
**MCP Tool**: `mcp_azure_mcp_monitor`
3737
**Fallback**: `az monitor log-analytics workspace show --ids <resourceId> -o json`
3838

3939
| Property | ARM JSON Path | Notes |
@@ -43,7 +43,7 @@ Per-resource property retrieval for platform, security, and integration resource
4343

4444
### Microsoft.ServiceBus/namespaces
4545

46-
**MCP Tool**: `mcp_azure_servicebus`
46+
**MCP Tool**: `mcp_azure_mcp_servicebus`
4747
**Fallback**: `az servicebus namespace show --ids <resourceId> -o json`
4848

4949
| Property | ARM JSON Path | Notes |
@@ -54,7 +54,7 @@ Per-resource property retrieval for platform, security, and integration resource
5454

5555
### Microsoft.EventHub/namespaces
5656

57-
**MCP Tool**: `mcp_azure_eventhubs`
57+
**MCP Tool**: `mcp_azure_mcp_eventhubs`
5858
**Fallback**: `az eventhubs namespace show --ids <resourceId> -o json`
5959

6060
| Property | ARM JSON Path | Notes |

plugin/skills/azure-iac-generator/references/version-currency.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ All generated code must use current, supported versions. Stale defaults cause se
1919

2020
## Bicepparam Version Comments
2121

22-
Always note the version choice in `.bicepparam` comments:
23-
24-
```bicep
22+
Always note the version choice in `.bicepparam` comments. Treat the example below as a template only: look up the current supported runtime and support window at generation time rather than copying literal versions or dates from this document.
23+
***bicep
2524
// Runtime stack for the App Service.
26-
// DOTNET|10.0 → .NET 10 (LTS, supported until Nov 2028)
27-
// NODE|22-lts → Node.js 22 LTS (supported until Apr 2027)
28-
// PYTHON|3.13 → Python 3.13 (supported until Oct 2029)
29-
// JAVA|21 → Java 21 LTS (supported until Sep 2028)
30-
param appServiceRuntimeStack = 'DOTNET|10.0'
25+
// Replace the placeholders below with the current supported values at generation time.
26+
// → (, supported until )
27+
// → (, supported until )
28+
// → (, supported until )
29+
// → (, supported until )
30+
param appServiceRuntimeStack = ''
3131
```
3232
3333
## Hybrid Runtime Rule

tests/azure-iac-generator/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const SAMPLE_DRAWIO_XML = `<?xml version="1.0" encoding="UTF-8"?>
5454
</root>
5555
</mxGraphModel></diagram></mxfile>`;
5656

57-
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
57+
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
5858
const agent = useAgentRunner();
5959

6060
// ──────────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)