Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions avm/res/management/management-group/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

The latest version of the changelog can be found [here](https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/management/management-group/CHANGELOG.md).

## 0.1.3

### Changes

- Update API version to latest stable release

### Breaking Changes

- None


## 0.1.2

### Changes
Expand Down
2 changes: 1 addition & 1 deletion avm/res/management/management-group/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ For examples, please refer to the [Usage Examples](#usage-examples) section.

| Resource Type | API Version | References |
| :-- | :-- | :-- |
| `Microsoft.Management/managementGroups` | 2021-04-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.management_managementgroups.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Management/2021-04-01/managementGroups)</li></ul> |
| `Microsoft.Management/managementGroups` | 2023-04-01 | <ul style="padding-left: 0px;"><li>[AzAdvertizer](https://www.azadvertizer.net/azresourcetypes/microsoft.management_managementgroups.html)</li><li>[Template reference](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Management/2023-04-01/managementGroups)</li></ul> |

## Usage examples

Expand Down
4 changes: 2 additions & 2 deletions avm/res/management/management-group/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ resource avmTelemetry 'Microsoft.Resources/deployments@2024-03-01' = if (enableT
}
}

resource parentManagementGroup 'Microsoft.Management/managementGroups@2021-04-01' existing = {
resource parentManagementGroup 'Microsoft.Management/managementGroups@2023-04-01' existing = {
name: parentId
scope: tenant()
}

resource managementGroup 'Microsoft.Management/managementGroups@2021-04-01' = {
resource managementGroup 'Microsoft.Management/managementGroups@2023-04-01' = {
name: name
scope: tenant()
properties: {
Expand Down
6 changes: 3 additions & 3 deletions avm/res/management/management-group/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.32.4.45862",
"templateHash": "16098269805793528146"
"version": "0.39.26.7824",
"templateHash": "11842660099387271962"
},
"name": "Management Groups",
"description": "This template will prepare the management group structure based on the provided parameter.\n\nThis module has some known **limitations**:\n- It's not possible to change the display name of the root management group (the one that has the tenant GUID as ID)\n- It can't manage the Root (/) management group"
Expand Down Expand Up @@ -70,7 +70,7 @@
},
{
"type": "Microsoft.Management/managementGroups",
"apiVersion": "2021-04-01",
"apiVersion": "2023-04-01",
"scope": "/",
"name": "[parameters('name')]",
"properties": {
Expand Down