From 6c690efb7d616677efe5eae47f53f6758f8bce34 Mon Sep 17 00:00:00 2001 From: Sebastian Graef Date: Wed, 22 May 2024 15:51:40 +1000 Subject: [PATCH 1/3] feat: Update Event Hub namespace version to 2024-01-01 --- avm/res/event-hub/namespace/main.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avm/res/event-hub/namespace/main.bicep b/avm/res/event-hub/namespace/main.bicep index a6cda2cc83..a833a1addb 100644 --- a/avm/res/event-hub/namespace/main.bicep +++ b/avm/res/event-hub/namespace/main.bicep @@ -189,7 +189,7 @@ resource avmTelemetry 'Microsoft.Resources/deployments@2023-07-01' = } } -resource eventHubNamespace 'Microsoft.EventHub/namespaces@2022-10-01-preview' = { +resource eventHubNamespace 'Microsoft.EventHub/namespaces@2024-01-01' = { name: name location: location tags: tags From 6ebddcdab4c49a570a2632ad8b86302a735ad0b6 Mon Sep 17 00:00:00 2001 From: Sebastian Graef Date: Fri, 24 May 2024 12:07:57 +1000 Subject: [PATCH 2/3] feat: Update Event Hub namespace version to 2024-01-01 --- avm/res/event-hub/namespace/README.md | 2 +- avm/res/event-hub/namespace/main.json | 34 +++++++++++++-------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/avm/res/event-hub/namespace/README.md b/avm/res/event-hub/namespace/README.md index 237e7d1941..8b4526ecd3 100644 --- a/avm/res/event-hub/namespace/README.md +++ b/avm/res/event-hub/namespace/README.md @@ -17,7 +17,7 @@ This module deploys an Event Hub Namespace. | :-- | :-- | | `Microsoft.Authorization/locks` | [2020-05-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-05-01/locks) | | `Microsoft.Authorization/roleAssignments` | [2022-04-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2022-04-01/roleAssignments) | -| `Microsoft.EventHub/namespaces` | [2022-10-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.EventHub/2022-10-01-preview/namespaces) | +| `Microsoft.EventHub/namespaces` | [2024-01-01](https://learn.microsoft.com/en-us/azure/templates/Microsoft.EventHub/2024-01-01/namespaces) | | `Microsoft.EventHub/namespaces/authorizationRules` | [2022-10-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.EventHub/2022-10-01-preview/namespaces/authorizationRules) | | `Microsoft.EventHub/namespaces/disasterRecoveryConfigs` | [2022-10-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.EventHub/2022-10-01-preview/namespaces/disasterRecoveryConfigs) | | `Microsoft.EventHub/namespaces/eventhubs` | [2022-10-01-preview](https://learn.microsoft.com/en-us/azure/templates/Microsoft.EventHub/2022-10-01-preview/namespaces/eventhubs) | diff --git a/avm/res/event-hub/namespace/main.json b/avm/res/event-hub/namespace/main.json index 95d0847f8a..e63c171d6a 100644 --- a/avm/res/event-hub/namespace/main.json +++ b/avm/res/event-hub/namespace/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "5884251970985873966" + "version": "0.27.1.19265", + "templateHash": "17155929804559949638" }, "name": "Event Hub Namespaces", "description": "This module deploys an Event Hub Namespace.", @@ -724,7 +724,7 @@ }, "eventHubNamespace": { "type": "Microsoft.EventHub/namespaces", - "apiVersion": "2022-10-01-preview", + "apiVersion": "2024-01-01", "name": "[parameters('name')]", "location": "[parameters('location')]", "tags": "[parameters('tags')]", @@ -854,8 +854,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "15327912662565121564" + "version": "0.27.1.19265", + "templateHash": "8813943813948617548" }, "name": "Event Hub Namespace Authorization Rule", "description": "This module deploys an Event Hub Namespace Authorization Rule.", @@ -951,8 +951,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "11732013494690054024" + "version": "0.27.1.19265", + "templateHash": "14979139814432874856" }, "name": "Event Hub Namespace Disaster Recovery Configs", "description": "This module deploys an Event Hub Namespace Disaster Recovery Config.", @@ -1067,8 +1067,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "14538170733088329405" + "version": "0.27.1.19265", + "templateHash": "4976741061595991628" }, "name": "Event Hub Namespace Event Hubs", "description": "This module deploys an Event Hub Namespace Event Hub.", @@ -1478,8 +1478,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "7757490711276971084" + "version": "0.27.1.19265", + "templateHash": "5847658940513938806" }, "name": "Event Hub Namespace Event Hub Consumer Groups", "description": "This module deploys an Event Hub Namespace Event Hub Consumer Group.", @@ -1582,8 +1582,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "15301134976738274567" + "version": "0.27.1.19265", + "templateHash": "11948548202226583623" }, "name": "Event Hub Namespace Event Hub Authorization Rules", "description": "This module deploys an Event Hub Namespace Event Hub Authorization Rule.", @@ -1718,8 +1718,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "3984181780336367181" + "version": "0.27.1.19265", + "templateHash": "10618868316670404260" }, "name": "Event Hub Namespace Network Rule Sets", "description": "This module deploys an Event Hub Namespace Network Rule Set.", @@ -2527,14 +2527,14 @@ "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('eventHubNamespace', '2022-10-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[coalesce(tryGet(tryGet(reference('eventHubNamespace', '2024-01-01', 'full'), 'identity'), 'principalId'), '')]" }, "location": { "type": "string", "metadata": { "description": "The location the resource was deployed into." }, - "value": "[reference('eventHubNamespace', '2022-10-01-preview', 'full').location]" + "value": "[reference('eventHubNamespace', '2024-01-01', 'full').location]" }, "eventHubResourceIds": { "type": "array", From f07882cc4f4dd8b5291aba26e39224db2efadaca Mon Sep 17 00:00:00 2001 From: Sebastian Graef Date: Fri, 24 May 2024 12:16:47 +1000 Subject: [PATCH 3/3] fix: Update name parameter in main.test.bicep --- avm/res/event-hub/namespace/tests/e2e/encr/main.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avm/res/event-hub/namespace/tests/e2e/encr/main.test.bicep b/avm/res/event-hub/namespace/tests/e2e/encr/main.test.bicep index ae8a447877..c946bb1ba1 100644 --- a/avm/res/event-hub/namespace/tests/e2e/encr/main.test.bicep +++ b/avm/res/event-hub/namespace/tests/e2e/encr/main.test.bicep @@ -53,7 +53,7 @@ module testDeployment '../../../main.bicep' = { scope: resourceGroup name: '${uniqueString(deployment().name, resourceLocation)}-test-${serviceShort}' params: { - name: '${namePrefix}${serviceShort}001' + name: '${namePrefix}${serviceShort}${substring(uniqueString(baseTime), 0, 3)}' location: resourceLocation publicNetworkAccess: 'SecuredByPerimeter' skuName: 'Premium'