Skip to content

Commit a8b490a

Browse files
Ba4besCopilot
andcommitted
Fix comments in PR
Co-authored-by: Copilot <copilot@github.com>
1 parent ba2296a commit a8b490a

14 files changed

Lines changed: 49 additions & 103 deletions

ba4bes-unific-travis.sln

Lines changed: 0 additions & 64 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "Generate deployment-ready Bicep templates from existing Azure envi
44
license: MIT
55
metadata:
66
author: Microsoft
7-
version: "1.0.1"
7+
version: "0.0.0-placeholder"
88
---
99

1010
# Azure IaC Generator

plugin/skills/azure-iac-generator/references/auto-detection-rules.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ Settings automatically applied based on diagram topology during Bicep generation
1414
| Private Endpoint exists in a subnet | Set `privateEndpointNetworkPolicies: "Disabled"` on that subnet |
1515
| VM exists without NIC in diagram | Auto-add NIC resource |
1616
| App Service exists without App Service Plan | Auto-add App Service Plan |
17-
| Subnet index N | Set `addressPrefix: "10.0.N.0/24"` (auto-increment) |
17+
| Subnet index N | Derive `addressPrefix` from the VNet `addressSpace` when present; otherwise require or prompt for a base CIDR before auto-assigning a non-overlapping subnet |
18+

plugin/skills/azure-iac-generator/references/azure-deployment-verification.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Azure Deployment Verification Rules
22

3-
> **Canonical copy:** Shared deployment-verification rules used by Azure IaC skills. Keep local copies aligned when this rule set changes.
4-
5-
63
Shared pre-deployment verification rules for generated Bicep templates. These cover **gotcha-prone constraints** that are easy to miss — SKU dependencies, resource compatibility, and networking rules that cause deployment failures.
74

85
For rules not listed here (security defaults like TLS 1.2, HTTPS enforcement, runtime version currency), verify against Bicep MCP `get_az_resource_type_schema`, [bicep-best-practices.md](bicep-best-practices.md), and Microsoft documentation.

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
# Azure Resource Metadata Model
22

3-
> **Canonical copy:** Shared resource-model schema used across Azure IaC and diagram skills. Keep local copies aligned when this schema changes.
43

54

6-
Shared internal representation used by AzVerify skills (sketch-to-diagram, diagram-to-bicep, diagram-azure-sync).
7-
85
## Schema
96

107
Each Azure environment is represented as a **resource model** — a JSON structure with the following shape:

plugin/skills/azure-iac-generator/references/azure-stencil-mapping.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
2-
"_canonicalCopy": {
3-
"description": "Shared Azure stencil mapping copied into azure-iac-generator so diagram-parsing references resolve locally.",
4-
"maintainers": [
5-
"Azure IaC skills"
6-
]
7-
},
82
"resources": [
93
{
104
"type": "Microsoft.Compute/virtualMachines",

plugin/skills/azure-iac-generator/references/azure-to-bicep-workflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Follow [bicep-best-practices.md](bicep-best-practices.md) strictly. Call Bicep M
6363
| File | Contents |
6464
|---|---|
6565
| `main.bicep` | `targetScope = 'resourceGroup'`; all params with `@description()` and `@secure()` where needed; one `module` block per category; outputs for key endpoints/IDs |
66-
| `<scope>.bicepparam` | `using 'main.bicep'`; every param value matching current Azure config; 1-3 line comments per param (what it controls, alternatives with cost impact, version EOL dates); `readEnvironmentVariable()` for secrets |
66+
| `main.bicepparam` | `using 'main.bicep'`; every param value matching current Azure config; 1-3 line comments per param (what it controls, alternatives with cost impact, version EOL dates); `readEnvironmentVariable()` for secrets |
6767
| `modules/networking.bicep` | VNets, subnets, NSGs, private endpoints, NICs, firewalls |
6868
| `modules/compute.bicep` | VMs, App Services, Functions, Container Apps — follow the runtime defaulting rules in [version-currency.md](version-currency.md) |
6969
| `modules/data.bicep` | Storage, SQL, Cosmos DB, Redis, Key Vault |

plugin/skills/azure-iac-generator/references/bicep-best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Bicep Best Practices
22

3-
Mandatory rules for all Bicep generation in AzVerify skills. Before generating any Bicep, also call the Bicep MCP server's `get_bicep_best_practices` tool for the latest guidance.
3+
Mandatory rules for all Bicep generation. Before generating any Bicep, also call the Bicep MCP server's `get_bicep_best_practices` tool for the latest guidance.
44

55
---
66

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
# Azure Authentication Check
22

3-
> **Canonical copy:** Shared authentication gate used by Azure IaC and diagram skills. Keep local copies aligned when this procedure changes.
4-
5-
6-
Canonical procedure for verifying Azure session before any Azure operations. Referenced by all skills that interact with Azure.
73

84
---
95

106
## Procedure
117

12-
1. **Verify session**: Run `az account show` or `Get-AzContext` in the terminal, OR attempt a lightweight Azure MCP call (e.g., `mcp_azure_subscription_list`)
8+
1. **Verify session**: Run a lightweight Azure MCP call (e.g., `mcp_azure_mcp_subscription_list`), or run `az account show` or `Get-AzContext` in the terminal
139

1410
2. **If authenticated**:
1511
- Display the active subscription name and ID
@@ -18,7 +14,7 @@ Canonical procedure for verifying Azure session before any Azure operations. Ref
1814
3. **If NOT authenticated**:
1915
- Present this message:
2016

21-
```
17+
```markdown
2218
## Azure Authentication Required
2319

2420
You need an active Azure session.
@@ -32,4 +28,4 @@ Canonical procedure for verifying Azure session before any Azure operations. Ref
3228
After authenticating, run this skill again.
3329
```
3430

35-
- **HARD GATE** — Stop execution. Do not proceed without authentication.
31+
- **HARD GATE** — Stop execution. Do not proceed without authentication.

plugin/skills/azure-iac-generator/references/procedures/bicep-parsing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Bicep Parsing Procedure
22

3-
> **Canonical copy:** Shared Bicep parsing procedure used by Azure IaC and comparison skills. Keep local copies aligned when this procedure changes.
4-
53

64
Parse Bicep templates into a structured resource model for comparison. Referenced by skills that analyze existing Bicep files.
75

@@ -15,7 +13,9 @@ Read the `.bicepparam` file and extract all parameter values. These are needed t
1513

1614
### 2. Read Template Files
1715

18-
Read `main.bicep` and parse all `module` declarations to find referenced Bicep files. Module paths are relative to the file containing the `module` statement — they may reference files outside `modules/` (e.g., `'../shared/networking.bicep'` or `'br:myregistry.azurecr.io/bicep/networking:v1'`). Read each resolved module file recursively to discover nested module references.
16+
Read `main.bicep` and parse all `module` declarations to find referenced Bicep files. Module paths are relative to the file containing the `module` statement — they may reference files outside `modules/` (e.g., `'../shared/networking.bicep'`). Read each resolved module file recursively to discover nested module references.
17+
18+
> **Registry modules** (`br:` references like `'br:myregistry.azurecr.io/bicep/networking:v1'`) are not local file paths. They require `bicep restore` to download into the local module cache before they can be read. If restoration is not possible, flag these modules as "external — cannot resolve locally" and skip recursive parsing for them.
1919
2020
### 3. Extract Resources
2121

@@ -57,4 +57,4 @@ Output the parsed Bicep resource model in chat for user verification. Schema per
5757
|---|---|---|
5858
| Shallow | Type, name, file location | Quick comparison / drift detection |
5959
| Standard | Above + params, parent refs, conditions | Sync, what-if |
60-
| Deep | Above + all property values resolved | Policy check, detailed what-if |
60+
| Deep | Above + all property values resolved | Policy check, detailed what-if |

0 commit comments

Comments
 (0)