Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var builtInRoleNames = {
'User Access Administrator': subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '18d7d88d-d35e-4fb5-a5c3-7773c20a72d9')
}

resource gallery 'Microsoft.Compute/galleries@2020-09-30' existing = {
resource gallery 'Microsoft.Compute/galleries@2021-10-01' existing = {
name: last(split(resourceId, '/'))
}

Expand Down
2 changes: 1 addition & 1 deletion arm/Microsoft.Compute/galleries/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource defaultTelemetry 'Microsoft.Resources/deployments@2021-04-01' = if (ena
}
}

resource gallery 'Microsoft.Compute/galleries@2020-09-30' = {
resource gallery 'Microsoft.Compute/galleries@2021-10-01' = {
name: name
location: location
tags: tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ var builtInRoleNames = {
'myCustomRoleAtSub': subscriptionResourceId('Microsoft.Authorization/roleDefinitions', '60cb79d9-783a-50a4-9f05-d4c579fb8ce3')
}

resource galleryImage 'Microsoft.Compute/galleries/images@2020-09-30' existing = {
resource galleryImage 'Microsoft.Compute/galleries/images@2021-10-01' existing = {
name: '${split(resourceId, '/')[8]}/${split(resourceId, '/')[10]}'
}

Expand Down
4 changes: 2 additions & 2 deletions arm/Microsoft.Compute/galleries/images/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ resource defaultTelemetry 'Microsoft.Resources/deployments@2021-04-01' = if (ena
}
}

resource gallery 'Microsoft.Compute/galleries@2020-09-30' existing = {
resource gallery 'Microsoft.Compute/galleries@2021-10-01' existing = {
name: galleryName
}

resource image 'Microsoft.Compute/galleries/images@2020-09-30' = {
resource image 'Microsoft.Compute/galleries/images@2021-10-01' = {
name: name
parent: gallery
location: location
Expand Down
2 changes: 1 addition & 1 deletion arm/Microsoft.Compute/galleries/images/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This module deploys an Image Definition in a Shared Image Gallery.
| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.Authorization/roleAssignments` | [2020-10-01-preview](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-10-01-preview/roleAssignments) |
| `Microsoft.Compute/galleries/images` | [2020-09-30](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Compute/2020-09-30/galleries/images) |
| `Microsoft.Compute/galleries/images` | [2021-10-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Compute/2021-10-01/galleries/images) |

## Parameters

Expand Down
4 changes: 2 additions & 2 deletions arm/Microsoft.Compute/galleries/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ This module deploys an Azure compute gallery (formerly known as shared image gal
| :-- | :-- |
| `Microsoft.Authorization/locks` | [2017-04-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2017-04-01/locks) |
| `Microsoft.Authorization/roleAssignments` | [2020-10-01-preview](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-10-01-preview/roleAssignments) |
| `Microsoft.Compute/galleries` | [2020-09-30](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Compute/2020-09-30/galleries) |
| `Microsoft.Compute/galleries/images` | [2020-09-30](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Compute/2020-09-30/galleries/images) |
| `Microsoft.Compute/galleries` | [2021-10-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Compute/2021-10-01/galleries) |
| `Microsoft.Compute/galleries/images` | [2021-10-01](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Compute/2021-10-01/galleries/images) |

## Parameters

Expand Down