diff --git a/arm/Microsoft.Compute/galleries/.bicep/nested_roleAssignments.bicep b/arm/Microsoft.Compute/galleries/.bicep/nested_roleAssignments.bicep index 99c49b914f..0186f68665 100644 --- a/arm/Microsoft.Compute/galleries/.bicep/nested_roleAssignments.bicep +++ b/arm/Microsoft.Compute/galleries/.bicep/nested_roleAssignments.bicep @@ -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, '/')) } diff --git a/arm/Microsoft.Compute/galleries/deploy.bicep b/arm/Microsoft.Compute/galleries/deploy.bicep index 1395e0b980..79c44f1104 100644 --- a/arm/Microsoft.Compute/galleries/deploy.bicep +++ b/arm/Microsoft.Compute/galleries/deploy.bicep @@ -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 diff --git a/arm/Microsoft.Compute/galleries/images/.bicep/nested_roleAssignments.bicep b/arm/Microsoft.Compute/galleries/images/.bicep/nested_roleAssignments.bicep index 9ce610eb30..caa9501f85 100644 --- a/arm/Microsoft.Compute/galleries/images/.bicep/nested_roleAssignments.bicep +++ b/arm/Microsoft.Compute/galleries/images/.bicep/nested_roleAssignments.bicep @@ -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]}' } diff --git a/arm/Microsoft.Compute/galleries/images/deploy.bicep b/arm/Microsoft.Compute/galleries/images/deploy.bicep index b25780dd5e..e7d9eeaade 100644 --- a/arm/Microsoft.Compute/galleries/images/deploy.bicep +++ b/arm/Microsoft.Compute/galleries/images/deploy.bicep @@ -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 diff --git a/arm/Microsoft.Compute/galleries/images/readme.md b/arm/Microsoft.Compute/galleries/images/readme.md index f0066920d8..578ab26887 100644 --- a/arm/Microsoft.Compute/galleries/images/readme.md +++ b/arm/Microsoft.Compute/galleries/images/readme.md @@ -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 diff --git a/arm/Microsoft.Compute/galleries/readme.md b/arm/Microsoft.Compute/galleries/readme.md index 53cdd21d98..5865fa0c01 100644 --- a/arm/Microsoft.Compute/galleries/readme.md +++ b/arm/Microsoft.Compute/galleries/readme.md @@ -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