Skip to content

Commit

Permalink
fix: bump vnet version for sub-vending (Azure#3561)
Browse files Browse the repository at this point in the history
## Description

Fixes Azure#3386 

## Pipeline Reference

<!-- Insert your Pipeline Status Badge below -->

| Pipeline |
| -------- |
|
[![avm.ptn.lz.sub-vending](https://github.com/sebassem/bicep-registry-modules/actions/workflows/avm.ptn.lz.sub-vending.yml/badge.svg?branch=avm-lz-sub-vending-rbac-delegation)](https://github.com/sebassem/bicep-registry-modules/actions/workflows/avm.ptn.lz.sub-vending.yml)
|

## Type of Change

<!-- Use the checkboxes [x] on the options that are relevant. -->

- [ ] Update to CI Environment or utilities (Non-module affecting
changes)
- [ ] Azure Verified Module updates:
- [X] Bugfix containing backwards-compatible bug fixes, and I have NOT
bumped the MAJOR or MINOR version in `version.json`:
- [X] Someone has opened a bug report issue, and I have included "Closes
#{bug_report_issue_number}" in the PR description.
- [ ] The bug was found by the module author, and no one has opened an
issue to report it yet.
- [ ] Feature update backwards compatible feature updates, and I have
bumped the MINOR version in `version.json`.
- [ ] Breaking changes and I have bumped the MAJOR version in
`version.json`.
  - [ ] Update to documentation

## Checklist

- [X] I'm sure there are no other open Pull Requests for the same
update/change
- [X] I have run `Set-AVMModule` locally to generate the supporting
module files.
- [X] My corresponding pipelines / checks run clean and green without
any errors or warnings

<!-- Please keep up to date with the contribution guide at
https://aka.ms/avm/contribute/bicep -->
  • Loading branch information
sebassem authored Oct 15, 2024
1 parent 0b236a5 commit 55ee2c8
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 27 deletions.
2 changes: 1 addition & 1 deletion avm/ptn/lz/sub-vending/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ This section gives you an overview of all local-referenced module files (i.e., o
| `br/public:avm/ptn/authorization/role-assignment:0.1.0` | Remote reference |
| `br/public:avm/res/managed-identity/user-assigned-identity:0.2.2` | Remote reference |
| `br/public:avm/res/network/network-security-group:0.3.0` | Remote reference |
| `br/public:avm/res/network/virtual-network:0.4.0` | Remote reference |
| `br/public:avm/res/network/virtual-network:0.4.1` | Remote reference |
| `br/public:avm/res/resources/deployment-script:0.2.3` | Remote reference |
| `br/public:avm/res/resources/resource-group:0.2.4` | Remote reference |
| `br/public:avm/res/storage/storage-account:0.9.1` | Remote reference |
Expand Down
52 changes: 28 additions & 24 deletions avm/ptn/lz/sub-vending/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "2644636658214532574"
"templateHash": "15297648363887235052"
},
"name": "Sub-vending",
"description": "This module deploys a subscription to accelerate deployment of landing zones. For more information on how to use it, please visit this [Wiki](https://github.com/Azure/bicep-lz-vending/wiki).",
Expand Down Expand Up @@ -663,7 +663,7 @@
"_generator": {
"name": "bicep",
"version": "0.30.23.60470",
"templateHash": "2549730186599602050"
"templateHash": "16600088245608261230"
},
"name": "`/subResourcesWrapper/deploy.bicep` Parameters",
"description": "This module is used by the [`bicep-lz-vending`](https://aka.ms/sub-vending/bicep) module to help orchestrate the deployment",
Expand Down Expand Up @@ -2339,8 +2339,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "15949466154563447171"
"version": "0.30.23.60470",
"templateHash": "5074972058800471543"
},
"name": "Virtual Networks",
"description": "This module deploys a Virtual Network (vNet).",
Expand Down Expand Up @@ -2954,7 +2954,7 @@
"condition": "[parameters('enableTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2024-03-01",
"name": "[format('46d3xbcp.res.network-virtualnetwork.{0}.{1}', replace('0.4.0', '.', '-'), substring(uniqueString(deployment().name, parameters('location')), 0, 4))]",
"name": "[format('46d3xbcp.res.network-virtualnetwork.{0}.{1}', replace('0.4.1', '.', '-'), substring(uniqueString(deployment().name, parameters('location')), 0, 4))]",
"properties": {
"mode": "Incremental",
"template": {
Expand Down Expand Up @@ -3138,8 +3138,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "5699372618313647761"
"version": "0.30.23.60470",
"templateHash": "6677157161292207910"
},
"name": "Virtual Network Subnets",
"description": "This module deploys a Virtual Network Subnet.",
Expand Down Expand Up @@ -3517,8 +3517,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "5206620163504251868"
"version": "0.30.23.60470",
"templateHash": "345394220621166229"
},
"name": "Virtual Network Peerings",
"description": "This module deploys a Virtual Network Peering.",
Expand Down Expand Up @@ -3623,7 +3623,8 @@
}
},
"dependsOn": [
"virtualNetwork"
"virtualNetwork",
"virtualNetwork_subnets"
]
},
"virtualNetwork_peering_remote": {
Expand Down Expand Up @@ -3674,8 +3675,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "5206620163504251868"
"version": "0.30.23.60470",
"templateHash": "345394220621166229"
},
"name": "Virtual Network Peerings",
"description": "This module deploys a Virtual Network Peering.",
Expand Down Expand Up @@ -3780,7 +3781,8 @@
}
},
"dependsOn": [
"virtualNetwork"
"virtualNetwork",
"virtualNetwork_subnets"
]
}
},
Expand Down Expand Up @@ -13697,8 +13699,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "15949466154563447171"
"version": "0.30.23.60470",
"templateHash": "5074972058800471543"
},
"name": "Virtual Networks",
"description": "This module deploys a Virtual Network (vNet).",
Expand Down Expand Up @@ -14312,7 +14314,7 @@
"condition": "[parameters('enableTelemetry')]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2024-03-01",
"name": "[format('46d3xbcp.res.network-virtualnetwork.{0}.{1}', replace('0.4.0', '.', '-'), substring(uniqueString(deployment().name, parameters('location')), 0, 4))]",
"name": "[format('46d3xbcp.res.network-virtualnetwork.{0}.{1}', replace('0.4.1', '.', '-'), substring(uniqueString(deployment().name, parameters('location')), 0, 4))]",
"properties": {
"mode": "Incremental",
"template": {
Expand Down Expand Up @@ -14496,8 +14498,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "5699372618313647761"
"version": "0.30.23.60470",
"templateHash": "6677157161292207910"
},
"name": "Virtual Network Subnets",
"description": "This module deploys a Virtual Network Subnet.",
Expand Down Expand Up @@ -14875,8 +14877,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "5206620163504251868"
"version": "0.30.23.60470",
"templateHash": "345394220621166229"
},
"name": "Virtual Network Peerings",
"description": "This module deploys a Virtual Network Peering.",
Expand Down Expand Up @@ -14981,7 +14983,8 @@
}
},
"dependsOn": [
"virtualNetwork"
"virtualNetwork",
"virtualNetwork_subnets"
]
},
"virtualNetwork_peering_remote": {
Expand Down Expand Up @@ -15032,8 +15035,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.29.47.4906",
"templateHash": "5206620163504251868"
"version": "0.30.23.60470",
"templateHash": "345394220621166229"
},
"name": "Virtual Network Peerings",
"description": "This module deploys a Virtual Network Peering.",
Expand Down Expand Up @@ -15138,7 +15141,8 @@
}
},
"dependsOn": [
"virtualNetwork"
"virtualNetwork",
"virtualNetwork_subnets"
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions avm/ptn/lz/sub-vending/modules/subResourceWrapper.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ module tagResourceGroup 'tags.bicep' = if (virtualNetworkEnabled && !empty(virtu
}
}

module createLzVnet 'br/public:avm/res/network/virtual-network:0.4.0' = if (virtualNetworkEnabled && !empty(virtualNetworkName) && !empty(virtualNetworkAddressSpace) && !empty(virtualNetworkLocation) && !empty(virtualNetworkResourceGroupName)) {
module createLzVnet 'br/public:avm/res/network/virtual-network:0.4.1' = if (virtualNetworkEnabled && !empty(virtualNetworkName) && !empty(virtualNetworkAddressSpace) && !empty(virtualNetworkLocation) && !empty(virtualNetworkResourceGroupName)) {
dependsOn: [
createResourceGroupForLzNetworking
]
Expand Down Expand Up @@ -579,7 +579,7 @@ module createDsStorageAccount 'br/public:avm/res/storage/storage-account:0.9.1'
}
}

module createDsVnet 'br/public:avm/res/network/virtual-network:0.4.0' = if (!empty(resourceProviders)) {
module createDsVnet 'br/public:avm/res/network/virtual-network:0.4.1' = if (!empty(resourceProviders)) {
scope: resourceGroup(subscriptionId, deploymentScriptResourceGroupName)
name: deploymentNames.createdsVnet
params: {
Expand Down

0 comments on commit 55ee2c8

Please sign in to comment.