From 50ac9d24465c29a5b96a884ff1c043f591360272 Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Tue, 28 Jan 2025 14:58:43 +0100 Subject: [PATCH] fix: Fixed test for System-Assigned Identity output (#4112) ## Description - Fixed test to work with avm-common-types - Added more tests to validate that the output exactly matches the UDT. For example - Should be a string - Should be nullable - Should not have a default value - Regenerated docs ## Pipeline Reference | Pipeline | | -------- | [![avm.res.key-vault.vault](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.key-vault.vault.yml/badge.svg?branch=users%2Falsehr%2FudtTestFix&event=workflow_dispatch)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.key-vault.vault.yml) [![avm.res.data-factory.factory](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.data-factory.factory.yml/badge.svg?branch=users%2Falsehr%2FudtTestFix&event=workflow_dispatch)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.data-factory.factory.yml) ## Type of Change - [x] Update to CI Environment or utilities (Non-module affecting changes) - [x] Azure Verified Module updates: - [ ] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] 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 --------- Co-authored-by: Benjamin P. Jung Co-authored-by: Benjamin P. Jung --- avm/res/api-management/service/version.json | 4 +- avm/res/app/container-app/main.bicep | 2 +- avm/res/app/container-app/main.json | 7 +- avm/res/app/job/version.json | 2 +- avm/res/app/managed-environment/main.bicep | 2 +- avm/res/app/managed-environment/main.json | 9 +-- avm/res/app/managed-environment/version.json | 2 +- avm/res/cache/redis/main.bicep | 2 +- avm/res/cache/redis/main.json | 15 +++-- avm/res/cdn/profile/main.bicep | 2 +- avm/res/cdn/profile/main.json | 55 +++++++-------- avm/res/cdn/profile/version.json | 4 +- .../communication-service/main.bicep | 2 +- .../communication-service/main.json | 7 +- .../communication-service/version.json | 2 +- .../compute/disk-encryption-set/main.bicep | 2 +- avm/res/compute/disk-encryption-set/main.json | 15 +++-- .../compute/disk-encryption-set/version.json | 2 +- .../virtual-machine-scale-set/main.bicep | 2 +- .../virtual-machine-scale-set/main.json | 39 +++++------ .../virtual-machine-scale-set/version.json | 4 +- avm/res/compute/virtual-machine/main.bicep | 2 +- avm/res/compute/virtual-machine/main.json | 63 ++++++++--------- avm/res/compute/virtual-machine/version.json | 2 +- .../registry/credential-set/main.bicep | 2 +- .../registry/credential-set/main.json | 7 +- .../container-registry/registry/main.bicep | 2 +- avm/res/container-registry/registry/main.json | 30 +++++---- avm/res/data-factory/factory/main.bicep | 2 +- avm/res/data-factory/factory/main.json | 23 ++++--- avm/res/data-factory/factory/version.json | 2 +- .../data-protection/backup-vault/main.bicep | 2 +- .../data-protection/backup-vault/main.json | 11 +-- .../data-protection/backup-vault/version.json | 2 +- .../databricks/access-connector/main.bicep | 2 +- avm/res/databricks/access-connector/main.json | 7 +- .../databricks/access-connector/version.json | 2 +- .../endpoint--event-hub/main.bicep | 2 +- .../endpoint--event-hub/main.json | 7 +- .../endpoint--service-bus/main.bicep | 2 +- .../endpoint--service-bus/main.json | 7 +- .../digital-twins-instance/main.bicep | 2 +- .../digital-twins-instance/main.json | 25 ++++--- .../digital-twins-instance/version.json | 4 +- .../document-db/database-account/main.bicep | 2 +- .../document-db/database-account/main.json | 51 +++++++------- .../document-db/database-account/version.json | 2 +- avm/res/elastic-san/elastic-san/version.json | 4 +- .../elastic-san/volume-group/main.bicep | 2 +- .../elastic-san/volume-group/main.json | 15 +++-- avm/res/event-grid/domain/main.bicep | 2 +- avm/res/event-grid/domain/main.json | 11 +-- avm/res/event-grid/domain/version.json | 2 +- avm/res/event-grid/namespace/main.bicep | 2 +- avm/res/event-grid/namespace/main.json | 35 +++++----- avm/res/event-grid/namespace/version.json | 2 +- avm/res/event-grid/system-topic/main.bicep | 2 +- avm/res/event-grid/system-topic/main.json | 11 +-- avm/res/event-grid/system-topic/version.json | 2 +- avm/res/event-grid/topic/main.bicep | 2 +- avm/res/event-grid/topic/main.json | 11 +-- avm/res/event-grid/topic/version.json | 2 +- .../workspace/dicomservice/main.bicep | 2 +- .../workspace/dicomservice/main.json | 7 +- .../workspace/iotconnector/main.bicep | 2 +- .../workspace/iotconnector/main.json | 11 +-- .../healthcare-apis/workspace/version.json | 2 +- avm/res/hybrid-compute/machine/main.bicep | 2 +- avm/res/hybrid-compute/machine/main.json | 7 +- .../insights/data-collection-rule/main.bicep | 6 +- .../insights/data-collection-rule/main.json | 11 +-- .../data-collection-rule/version.json | 2 +- avm/res/logic/workflow/main.bicep | 2 +- avm/res/logic/workflow/main.json | 7 +- avm/res/logic/workflow/version.json | 2 +- .../workspace/compute/main.bicep | 2 +- .../workspace/compute/main.json | 7 +- .../workspace/version.json | 2 +- .../operational-insights/workspace/main.bicep | 2 +- .../operational-insights/workspace/main.json | 35 +++++----- .../workspace/version.json | 4 +- avm/res/purview/account/main.bicep | 2 +- avm/res/purview/account/main.json | 7 +- avm/res/purview/account/version.json | 4 +- avm/res/recovery-services/vault/main.bicep | 2 +- avm/res/recovery-services/vault/main.json | 47 ++++++------- avm/res/search/search-service/main.bicep | 2 +- avm/res/search/search-service/main.json | 15 +++-- avm/res/search/search-service/version.json | 2 +- avm/res/signal-r-service/signal-r/main.bicep | 2 +- avm/res/signal-r-service/signal-r/main.json | 7 +- .../signal-r-service/signal-r/version.json | 2 +- .../signal-r-service/web-pub-sub/main.bicep | 2 +- .../signal-r-service/web-pub-sub/main.json | 7 +- .../signal-r-service/web-pub-sub/version.json | 2 +- avm/res/sql/managed-instance/main.bicep | 2 +- avm/res/sql/managed-instance/main.json | 43 ++++++------ avm/res/sql/managed-instance/version.json | 4 +- avm/res/sql/server/main.bicep | 2 +- avm/res/sql/server/main.json | 67 ++++++++++--------- avm/res/web/hosting-environment/version.json | 4 +- avm/res/web/site/version.json | 2 +- avm/res/web/static-site/version.json | 2 +- .../compliance/module.tests.ps1 | 9 ++- 104 files changed, 474 insertions(+), 430 deletions(-) diff --git a/avm/res/api-management/service/version.json b/avm/res/api-management/service/version.json index 9ed3662aba..7e1d3f4157 100644 --- a/avm/res/api-management/service/version.json +++ b/avm/res/api-management/service/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.6", + "version": "0.7", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/app/container-app/main.bicep b/avm/res/app/container-app/main.bicep index d63d7278c1..201ba8da5b 100644 --- a/avm/res/app/container-app/main.bicep +++ b/avm/res/app/container-app/main.bicep @@ -333,7 +333,7 @@ output resourceGroupName string = resourceGroup().name output name string = containerApp.name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = containerApp.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = containerApp.?identity.?principalId @description('The location the resource was deployed into.') output location string = containerApp.location diff --git a/avm/res/app/container-app/main.json b/avm/res/app/container-app/main.json index 0119f991bd..2cf631732b 100644 --- a/avm/res/app/container-app/main.json +++ b/avm/res/app/container-app/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "16393853788129161391" + "version": "0.33.13.18514", + "templateHash": "10576304396294722473" }, "name": "Container Apps", "description": "This module deploys a Container App." @@ -1108,10 +1108,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('containerApp', '2024-10-02-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('containerApp', '2024-10-02-preview', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/app/job/version.json b/avm/res/app/job/version.json index a8eda31021..e42c3d9e5f 100644 --- a/avm/res/app/job/version.json +++ b/avm/res/app/job/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.5", + "version": "0.6", "pathFilters": [ "./main.json" ] diff --git a/avm/res/app/managed-environment/main.bicep b/avm/res/app/managed-environment/main.bicep index 6d4893ae0e..7f2454d11a 100644 --- a/avm/res/app/managed-environment/main.bicep +++ b/avm/res/app/managed-environment/main.bicep @@ -269,7 +269,7 @@ output name string = managedEnvironment.name output resourceId string = managedEnvironment.id @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = managedEnvironment.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = managedEnvironment.?identity.?principalId @description('The Default domain of the Managed Environment.') output defaultDomain string = managedEnvironment.properties.defaultDomain diff --git a/avm/res/app/managed-environment/main.json b/avm/res/app/managed-environment/main.json index 9d41a79e66..4964dd3874 100644 --- a/avm/res/app/managed-environment/main.json +++ b/avm/res/app/managed-environment/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "15540000443534992861" + "version": "0.33.13.18514", + "templateHash": "4503904336969657185" }, "name": "App ManagedEnvironments", "description": "This module deploys an App Managed Environment (also known as a Container App Environment)." @@ -398,7 +398,7 @@ "resources": { "managedEnvironment::storage": { "copy": { - "name": "storage", + "name": "managedEnvironment::storage", "count": "[length(coalesce(parameters('storages'), createArray()))]" }, "type": "Microsoft.App/managedEnvironments/storages", @@ -556,10 +556,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('managedEnvironment', '2024-02-02-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('managedEnvironment', '2024-02-02-preview', 'full'), 'identity'), 'principalId')]" }, "defaultDomain": { "type": "string", diff --git a/avm/res/app/managed-environment/version.json b/avm/res/app/managed-environment/version.json index 0f81d22abc..b8b30a0125 100644 --- a/avm/res/app/managed-environment/version.json +++ b/avm/res/app/managed-environment/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.8", + "version": "0.9", "pathFilters": [ "./main.json" ] diff --git a/avm/res/cache/redis/main.bicep b/avm/res/cache/redis/main.bicep index 42fb8b76ba..a9b19ae23f 100644 --- a/avm/res/cache/redis/main.bicep +++ b/avm/res/cache/redis/main.bicep @@ -437,7 +437,7 @@ output sslPort int = redis.properties.sslPort output subnetResourceId string = !empty(subnetResourceId) ? redis.properties.subnetId : '' @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = redis.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = redis.?identity.?principalId @description('The location the resource was deployed into.') output location string = redis.location diff --git a/avm/res/cache/redis/main.json b/avm/res/cache/redis/main.json index 3a8a963b3a..62d490f4d3 100644 --- a/avm/res/cache/redis/main.json +++ b/avm/res/cache/redis/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17904749553568757682" + "version": "0.33.13.18514", + "templateHash": "6280028405930372235" }, "name": "Redis Cache", "description": "This module deploys a Redis Cache." @@ -1931,8 +1931,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "395538410437204745" + "version": "0.33.13.18514", + "templateHash": "11294861621866290910" }, "name": "Redis Cache Linked Servers", "description": "This module connects a primary and secondary Redis Cache together for geo-replication." @@ -2057,8 +2057,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "9992767491398107530" + "version": "0.33.13.18514", + "templateHash": "14045530027687796477" } }, "definitions": { @@ -2223,10 +2223,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('redis', '2024-11-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('redis', '2024-11-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/cdn/profile/main.bicep b/avm/res/cdn/profile/main.bicep index 7e63318f9b..a7fc53c7dc 100644 --- a/avm/res/cdn/profile/main.bicep +++ b/avm/res/cdn/profile/main.bicep @@ -342,7 +342,7 @@ output endpointId string = !empty(endpointProperties) ? profile_endpoint.outputs output uri string = !empty(endpointProperties) ? profile_endpoint.outputs.uri : '' @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = profile.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = profile.?identity.?principalId @description('The list of records required for custom domains validation.') output dnsValidation dnsValidationType[] = [ diff --git a/avm/res/cdn/profile/main.json b/avm/res/cdn/profile/main.json index 2e1c8717e4..6f4275f270 100644 --- a/avm/res/cdn/profile/main.json +++ b/avm/res/cdn/profile/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7113649683631462027" + "version": "0.33.13.18514", + "templateHash": "2568064534163012915" }, "name": "CDN Profiles", "description": "This module deploys a CDN Profile." @@ -1331,8 +1331,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "9549854961484064285" + "version": "0.33.13.18514", + "templateHash": "9667828946590224838" }, "name": "CDN Profiles Endpoints", "description": "This module deploys a CDN Profile Endpoint." @@ -1447,8 +1447,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13720707069401173773" + "version": "0.33.13.18514", + "templateHash": "14207274905612158052" }, "name": "CDN Profiles Endpoints Origins", "description": "This module deploys a CDN Profile Endpoint Origin." @@ -1692,8 +1692,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "8122410068056305563" + "version": "0.33.13.18514", + "templateHash": "6185880578813937844" }, "name": "CDN Profiles Secret", "description": "This module deploys a CDN Profile Secret." @@ -1841,8 +1841,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10872254821030072983" + "version": "0.33.13.18514", + "templateHash": "13058047826352389276" }, "name": "CDN Profiles Custom Domains", "description": "This module deploys a CDN Profile Custom Domains." @@ -2130,8 +2130,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "2255246560564651285" + "version": "0.33.13.18514", + "templateHash": "2309166106272805364" }, "name": "CDN Profiles Origin Group", "description": "This module deploys a CDN Profile Origin Group." @@ -2473,8 +2473,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12548128435491978362" + "version": "0.33.13.18514", + "templateHash": "4615820934914726240" }, "name": "CDN Profiles Origin", "description": "This module deploys a CDN Profile Origin." @@ -2774,8 +2774,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "16187656524256202445" + "version": "0.33.13.18514", + "templateHash": "832720268679200418" }, "name": "CDN Profiles Rule Sets", "description": "This module deploys a CDN Profile rule set." @@ -2932,8 +2932,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "5126669469544382460" + "version": "0.33.13.18514", + "templateHash": "4778641008462766741" }, "name": "CDN Profiles Rules", "description": "This module deploys a CDN Profile rule." @@ -3160,8 +3160,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13135731354374453249" + "version": "0.33.13.18514", + "templateHash": "8177824551774407436" }, "name": "CDN Profiles AFD Endpoints", "description": "This module deploys a CDN Profile AFD Endpoint." @@ -3534,8 +3534,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "14731142764965944373" + "version": "0.33.13.18514", + "templateHash": "5263422487313973220" }, "name": "CDN Profiles AFD Endpoint Route", "description": "This module deploys a CDN Profile AFD Endpoint route." @@ -3831,7 +3831,7 @@ }, "profile::customDomains": { "copy": { - "name": "customDomains", + "name": "profile::customDomains", "count": "[length(coalesce(parameters('customDomainNames'), createArray()))]" }, "existing": true, @@ -3847,7 +3847,7 @@ }, "profile::ruleSet": { "copy": { - "name": "ruleSet", + "name": "profile::ruleSet", "count": "[length(parameters('ruleSets'))]" }, "existing": true, @@ -4013,8 +4013,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11785514765749998247" + "version": "0.33.13.18514", + "templateHash": "9521724516599685420" }, "name": "CDN Profiles Security Policy", "description": "This module deploys a CDN Profile Security Policy." @@ -4197,10 +4197,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('profile', '2023-05-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('profile', '2023-05-01', 'full'), 'identity'), 'principalId')]" }, "dnsValidation": { "type": "array", diff --git a/avm/res/cdn/profile/version.json b/avm/res/cdn/profile/version.json index 25beee1c2f..e5968da126 100644 --- a/avm/res/cdn/profile/version.json +++ b/avm/res/cdn/profile/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.11", + "version": "0.12", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/communication/communication-service/main.bicep b/avm/res/communication/communication-service/main.bicep index a023c43816..61f5627aaa 100644 --- a/avm/res/communication/communication-service/main.bicep +++ b/avm/res/communication/communication-service/main.bicep @@ -184,7 +184,7 @@ output resourceGroupName string = resourceGroup().name output location string = communicationService.location @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = communicationService.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = communicationService.?identity.?principalId // ================ // // Definitions // diff --git a/avm/res/communication/communication-service/main.json b/avm/res/communication/communication-service/main.json index b8037bb399..2c5b1dbd6f 100644 --- a/avm/res/communication/communication-service/main.json +++ b/avm/res/communication/communication-service/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "605200063153991260" + "version": "0.33.13.18514", + "templateHash": "1289592582463975402" }, "name": "Communication Services", "description": "This module deploys a Communication Service" @@ -485,10 +485,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('communicationService', '2023-04-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('communicationService', '2023-04-01', 'full'), 'identity'), 'principalId')]" } } } \ No newline at end of file diff --git a/avm/res/communication/communication-service/version.json b/avm/res/communication/communication-service/version.json index 729ac87673..76049e1c4a 100644 --- a/avm/res/communication/communication-service/version.json +++ b/avm/res/communication/communication-service/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.2", + "version": "0.3", "pathFilters": [ "./main.json" ] diff --git a/avm/res/compute/disk-encryption-set/main.bicep b/avm/res/compute/disk-encryption-set/main.bicep index 38d1323852..c8a8ede4aa 100644 --- a/avm/res/compute/disk-encryption-set/main.bicep +++ b/avm/res/compute/disk-encryption-set/main.bicep @@ -213,7 +213,7 @@ output name string = diskEncryptionSet.name output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = diskEncryptionSet.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = diskEncryptionSet.?identity.?principalId @description('The idenities of the disk encryption set.') output identities object = diskEncryptionSet.identity diff --git a/avm/res/compute/disk-encryption-set/main.json b/avm/res/compute/disk-encryption-set/main.json index 26db862399..82686b2002 100644 --- a/avm/res/compute/disk-encryption-set/main.json +++ b/avm/res/compute/disk-encryption-set/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "14190486431770759654" + "version": "0.33.13.18514", + "templateHash": "9578132933341238313" }, "name": "Disk Encryption Sets", "description": "This module deploys a Disk Encryption Set. The module will attempt to set permissions on the provided Key Vault for any used user-assigned identity." @@ -384,8 +384,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11047892892596308247" + "version": "0.33.13.18514", + "templateHash": "11508841695002099283" } }, "parameters": { @@ -472,8 +472,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "2291023010330106734" + "version": "0.33.13.18514", + "templateHash": "14994276207531705519" }, "name": "Key Vault Access Policies", "description": "This module deploys a Key Vault Access Policy." @@ -714,10 +714,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('diskEncryptionSet', '2023-10-02', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('diskEncryptionSet', '2023-10-02', 'full'), 'identity'), 'principalId')]" }, "identities": { "type": "object", diff --git a/avm/res/compute/disk-encryption-set/version.json b/avm/res/compute/disk-encryption-set/version.json index c177b1bb58..3f863a2bec 100644 --- a/avm/res/compute/disk-encryption-set/version.json +++ b/avm/res/compute/disk-encryption-set/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.3", + "version": "0.4", "pathFilters": [ "./main.json" ] diff --git a/avm/res/compute/virtual-machine-scale-set/main.bicep b/avm/res/compute/virtual-machine-scale-set/main.bicep index 8ef1a9a4fb..6f398f5b69 100644 --- a/avm/res/compute/virtual-machine-scale-set/main.bicep +++ b/avm/res/compute/virtual-machine-scale-set/main.bicep @@ -874,7 +874,7 @@ output resourceGroupName string = resourceGroup().name output name string = vmss.name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = vmss.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = vmss.?identity.?principalId @description('The location the resource was deployed into.') output location string = vmss.location diff --git a/avm/res/compute/virtual-machine-scale-set/main.json b/avm/res/compute/virtual-machine-scale-set/main.json index e918a9909f..e48a687ed8 100644 --- a/avm/res/compute/virtual-machine-scale-set/main.json +++ b/avm/res/compute/virtual-machine-scale-set/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13894830673548560698" + "version": "0.33.13.18514", + "templateHash": "12053969454032116821" }, "name": "Virtual Machine Scale Sets", "description": "This module deploys a Virtual Machine Scale Set." @@ -1174,8 +1174,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "285716786930852482" + "version": "0.33.13.18514", + "templateHash": "1450719033279262836" }, "name": "Virtual Machine Scale Set Extensions", "description": "This module deploys a Virtual Machine Scale Set Extension." @@ -1341,8 +1341,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "285716786930852482" + "version": "0.33.13.18514", + "templateHash": "1450719033279262836" }, "name": "Virtual Machine Scale Set Extensions", "description": "This module deploys a Virtual Machine Scale Set Extension." @@ -1513,8 +1513,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "285716786930852482" + "version": "0.33.13.18514", + "templateHash": "1450719033279262836" }, "name": "Virtual Machine Scale Set Extensions", "description": "This module deploys a Virtual Machine Scale Set Extension." @@ -1677,8 +1677,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "285716786930852482" + "version": "0.33.13.18514", + "templateHash": "1450719033279262836" }, "name": "Virtual Machine Scale Set Extensions", "description": "This module deploys a Virtual Machine Scale Set Extension." @@ -1840,8 +1840,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "285716786930852482" + "version": "0.33.13.18514", + "templateHash": "1450719033279262836" }, "name": "Virtual Machine Scale Set Extensions", "description": "This module deploys a Virtual Machine Scale Set Extension." @@ -2011,8 +2011,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "285716786930852482" + "version": "0.33.13.18514", + "templateHash": "1450719033279262836" }, "name": "Virtual Machine Scale Set Extensions", "description": "This module deploys a Virtual Machine Scale Set Extension." @@ -2186,8 +2186,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "285716786930852482" + "version": "0.33.13.18514", + "templateHash": "1450719033279262836" }, "name": "Virtual Machine Scale Set Extensions", "description": "This module deploys a Virtual Machine Scale Set Extension." @@ -2355,8 +2355,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "285716786930852482" + "version": "0.33.13.18514", + "templateHash": "1450719033279262836" }, "name": "Virtual Machine Scale Set Extensions", "description": "This module deploys a Virtual Machine Scale Set Extension." @@ -2506,10 +2506,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('vmss', '2024-07-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('vmss', '2024-07-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/compute/virtual-machine-scale-set/version.json b/avm/res/compute/virtual-machine-scale-set/version.json index 04a0dd1a80..e42c3d9e5f 100644 --- a/avm/res/compute/virtual-machine-scale-set/version.json +++ b/avm/res/compute/virtual-machine-scale-set/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.5", + "version": "0.6", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/compute/virtual-machine/main.bicep b/avm/res/compute/virtual-machine/main.bicep index 4cd6862d95..63aca72621 100644 --- a/avm/res/compute/virtual-machine/main.bicep +++ b/avm/res/compute/virtual-machine/main.bicep @@ -1039,7 +1039,7 @@ output resourceId string = vm.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = vm.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = vm.?identity.?principalId @description('The location the resource was deployed into.') output location string = vm.location diff --git a/avm/res/compute/virtual-machine/main.json b/avm/res/compute/virtual-machine/main.json index 61c0d7bc42..04fbf9f843 100644 --- a/avm/res/compute/virtual-machine/main.json +++ b/avm/res/compute/virtual-machine/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10289731629167661521" + "version": "0.33.13.18514", + "templateHash": "11202694269777473963" }, "name": "Virtual Machines", "description": "This module deploys a Virtual Machine with one or multiple NICs and optionally one or multiple public IPs." @@ -1301,8 +1301,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "4332293246640728460" + "version": "0.33.13.18514", + "templateHash": "9361328819285350634" } }, "definitions": { @@ -2905,8 +2905,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -3116,8 +3116,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -3323,8 +3323,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -3525,8 +3525,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -3732,8 +3732,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -3934,8 +3934,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -4144,8 +4144,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -4358,8 +4358,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -4566,8 +4566,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -4770,8 +4770,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -4983,8 +4983,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -5192,8 +5192,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17394804773765276039" + "version": "0.33.13.18514", + "templateHash": "10459557628823249787" }, "name": "Virtual Machine Extensions", "description": "This module deploys a Virtual Machine Extension." @@ -5387,8 +5387,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10896311401307689711" + "version": "0.33.13.18514", + "templateHash": "16309659094506585930" }, "name": "Recovery Service Vaults Protection Container Protected Item", "description": "This module deploys a Recovery Services Vault Protection Container Protected Item." @@ -5518,10 +5518,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('vm', '2024-07-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('vm', '2024-07-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/compute/virtual-machine/version.json b/avm/res/compute/virtual-machine/version.json index 91ffa760bf..23f3815885 100644 --- a/avm/res/compute/virtual-machine/version.json +++ b/avm/res/compute/virtual-machine/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.11", + "version": "0.12", "pathFilters": [ "./main.json" ] diff --git a/avm/res/container-registry/registry/credential-set/main.bicep b/avm/res/container-registry/registry/credential-set/main.bicep index c3aa83eef2..625a82c219 100644 --- a/avm/res/container-registry/registry/credential-set/main.bicep +++ b/avm/res/container-registry/registry/credential-set/main.bicep @@ -46,7 +46,7 @@ output resourceGroupName string = resourceGroup().name output resourceId string = credentialSet.id @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = credentialSet.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = credentialSet.?identity.?principalId // =============== // // Definitions // diff --git a/avm/res/container-registry/registry/credential-set/main.json b/avm/res/container-registry/registry/credential-set/main.json index 1483471d74..44fa955cc9 100644 --- a/avm/res/container-registry/registry/credential-set/main.json +++ b/avm/res/container-registry/registry/credential-set/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "898472573600471940" + "version": "0.33.13.18514", + "templateHash": "4278923174720771993" }, "name": "Container Registries Credential Sets", "description": "This module deploys an ACR Credential Set." @@ -128,10 +128,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('credentialSet', '2023-11-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('credentialSet', '2023-11-01-preview', 'full'), 'identity'), 'principalId')]" } } } \ No newline at end of file diff --git a/avm/res/container-registry/registry/main.bicep b/avm/res/container-registry/registry/main.bicep index 366a0bbfae..5de6cafebb 100644 --- a/avm/res/container-registry/registry/main.bicep +++ b/avm/res/container-registry/registry/main.bicep @@ -523,7 +523,7 @@ output resourceGroupName string = resourceGroup().name output resourceId string = registry.id @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = registry.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = registry.?identity.?principalId @description('The location the resource was deployed into.') output location string = registry.location diff --git a/avm/res/container-registry/registry/main.json b/avm/res/container-registry/registry/main.json index 9fe0eee2ca..6e6e3370a3 100644 --- a/avm/res/container-registry/registry/main.json +++ b/avm/res/container-registry/registry/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "4518596352429667624" + "version": "0.33.13.18514", + "templateHash": "6908828280512036268" }, "name": "Azure Container Registries (ACR)", "description": "This module deploys an Azure Container Registry (ACR)." @@ -1162,8 +1162,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12313465250221246597" + "version": "0.33.13.18514", + "templateHash": "8957375042269792339" }, "name": "Container Registries scopeMaps", "description": "This module deploys an Azure Container Registry (ACR) scopeMap." @@ -1285,8 +1285,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "43238165429335678" + "version": "0.33.13.18514", + "templateHash": "2771208879484692364" }, "name": "Azure Container Registry (ACR) Replications", "description": "This module deploys an Azure Container Registry (ACR) Replication." @@ -1429,8 +1429,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "898472573600471940" + "version": "0.33.13.18514", + "templateHash": "4278923174720771993" }, "name": "Container Registries Credential Sets", "description": "This module deploys an ACR Credential Set." @@ -1552,10 +1552,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('credentialSet', '2023-11-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('credentialSet', '2023-11-01-preview', 'full'), 'identity'), 'principalId')]" } } } @@ -1599,8 +1600,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10966757769768845548" + "version": "0.33.13.18514", + "templateHash": "6908196239628494570" }, "name": "Container Registries Cache", "description": "Cache for Azure Container Registry (Preview) feature allows users to cache container images in a private container registry. Cache for ACR, is a preview feature available in Basic, Standard, and Premium service tiers ([ref](https://learn.microsoft.com/en-us/azure/container-registry/tutorial-registry-cache))." @@ -1737,8 +1738,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "2046020077786059291" + "version": "0.33.13.18514", + "templateHash": "9919896749023343359" }, "name": "Azure Container Registry (ACR) Webhooks", "description": "This module deploys an Azure Container Registry (ACR) Webhook." @@ -2684,10 +2685,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('registry', '2023-06-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('registry', '2023-06-01-preview', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/data-factory/factory/main.bicep b/avm/res/data-factory/factory/main.bicep index 53f8f69628..12b7128adc 100644 --- a/avm/res/data-factory/factory/main.bicep +++ b/avm/res/data-factory/factory/main.bicep @@ -388,7 +388,7 @@ output resourceId string = dataFactory.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = dataFactory.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = dataFactory.?identity.?principalId @description('The location the resource was deployed into.') output location string = dataFactory.location diff --git a/avm/res/data-factory/factory/main.json b/avm/res/data-factory/factory/main.json index 7fab08bb3d..b04c839488 100644 --- a/avm/res/data-factory/factory/main.json +++ b/avm/res/data-factory/factory/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "4553934965960286090" + "version": "0.33.13.18514", + "templateHash": "2855675946430231043" }, "name": "Data Factories", "description": "This module deploys a Data Factory." @@ -1093,8 +1093,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11848856352373050663" + "version": "0.33.13.18514", + "templateHash": "17988798320328415885" }, "name": "Data Factory Managed Virtual Networks", "description": "This module deploys a Data Factory Managed Virtual Network." @@ -1166,8 +1166,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "5082368270790092206" + "version": "0.33.13.18514", + "templateHash": "12304621154639480158" }, "name": "Data Factory Managed Virtual Network Managed PrivateEndpoints", "description": "This module deploys a Data Factory Managed Virtual Network Managed Private Endpoint." @@ -1317,8 +1317,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "8093952642750500375" + "version": "0.33.13.18514", + "templateHash": "12984160632921626743" }, "name": "Data Factory Integration RunTimes", "description": "This module deploys a Data Factory Managed or Self-Hosted Integration Runtime." @@ -1454,8 +1454,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "2233835364121960452" + "version": "0.33.13.18514", + "templateHash": "8426964975127254817" }, "name": "Data Factory Linked Service", "description": "This module deploys a Data Factory Linked Service." @@ -2383,10 +2383,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('dataFactory', '2018-06-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('dataFactory', '2018-06-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/data-factory/factory/version.json b/avm/res/data-factory/factory/version.json index 9a9a06e897..6b6be93891 100644 --- a/avm/res/data-factory/factory/version.json +++ b/avm/res/data-factory/factory/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.8", + "version": "0.9", "pathFilters": [ "./main.json" ] diff --git a/avm/res/data-protection/backup-vault/main.bicep b/avm/res/data-protection/backup-vault/main.bicep index 750740fbc7..6c2bc04bbf 100644 --- a/avm/res/data-protection/backup-vault/main.bicep +++ b/avm/res/data-protection/backup-vault/main.bicep @@ -186,7 +186,7 @@ output resourceGroupName string = resourceGroup().name output name string = backupVault.name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = backupVault.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = backupVault.?identity.?principalId @description('The location the resource was deployed into.') output location string = backupVault.location diff --git a/avm/res/data-protection/backup-vault/main.json b/avm/res/data-protection/backup-vault/main.json index 98165837ff..4d66d8eda4 100644 --- a/avm/res/data-protection/backup-vault/main.json +++ b/avm/res/data-protection/backup-vault/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "6385493282595386524" + "version": "0.33.13.18514", + "templateHash": "16352777700762458307" }, "name": "Data Protection Backup Vaults", "description": "This module deploys a Data Protection Backup Vault." @@ -357,8 +357,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7249068572123515173" + "version": "0.33.13.18514", + "templateHash": "5711474521361283673" }, "name": "Data Protection Backup Vault Backup Policies", "description": "This module deploys a Data Protection Backup Vault Backup Policy." @@ -447,10 +447,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('backupVault', '2023-05-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('backupVault', '2023-05-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/data-protection/backup-vault/version.json b/avm/res/data-protection/backup-vault/version.json index 7e1d3f4157..0f81d22abc 100644 --- a/avm/res/data-protection/backup-vault/version.json +++ b/avm/res/data-protection/backup-vault/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.7", + "version": "0.8", "pathFilters": [ "./main.json" ] diff --git a/avm/res/databricks/access-connector/main.bicep b/avm/res/databricks/access-connector/main.bicep index b0156f98ff..8884e6fb21 100644 --- a/avm/res/databricks/access-connector/main.bicep +++ b/avm/res/databricks/access-connector/main.bicep @@ -128,7 +128,7 @@ output resourceId string = accessConnector.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = accessConnector.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = accessConnector.?identity.?principalId @description('The location the resource was deployed into.') output location string = accessConnector.location diff --git a/avm/res/databricks/access-connector/main.json b/avm/res/databricks/access-connector/main.json index 8d98c66e2d..0cd90f4815 100644 --- a/avm/res/databricks/access-connector/main.json +++ b/avm/res/databricks/access-connector/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12390675604801420735" + "version": "0.33.13.18514", + "templateHash": "1240226801665667801" }, "name": "Azure Databricks Access Connectors", "description": "This module deploys an Azure Databricks Access Connector." @@ -290,10 +290,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('accessConnector', '2022-10-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('accessConnector', '2022-10-01-preview', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/databricks/access-connector/version.json b/avm/res/databricks/access-connector/version.json index c177b1bb58..3f863a2bec 100644 --- a/avm/res/databricks/access-connector/version.json +++ b/avm/res/databricks/access-connector/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.3", + "version": "0.4", "pathFilters": [ "./main.json" ] diff --git a/avm/res/digital-twins/digital-twins-instance/endpoint--event-hub/main.bicep b/avm/res/digital-twins/digital-twins-instance/endpoint--event-hub/main.bicep index 33653a91b6..1d0372b3bc 100644 --- a/avm/res/digital-twins/digital-twins-instance/endpoint--event-hub/main.bicep +++ b/avm/res/digital-twins/digital-twins-instance/endpoint--event-hub/main.bicep @@ -78,7 +78,7 @@ output name string = endpoint.name @description('The principal ID of the system assigned identity. Note: As of 2024-03 is not exported by API.') #disable-next-line BCP187 -output systemAssignedMIPrincipalId string = endpoint.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = endpoint.?identity.?principalId // =============== // // Definitions // diff --git a/avm/res/digital-twins/digital-twins-instance/endpoint--event-hub/main.json b/avm/res/digital-twins/digital-twins-instance/endpoint--event-hub/main.json index 883fd776d9..b87e488ad6 100644 --- a/avm/res/digital-twins/digital-twins-instance/endpoint--event-hub/main.json +++ b/avm/res/digital-twins/digital-twins-instance/endpoint--event-hub/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11377864419942663747" + "version": "0.33.13.18514", + "templateHash": "16389406048518633124" }, "name": "Digital Twins Instance EventHub Endpoint", "description": "This module deploys a Digital Twins Instance EventHub Endpoint." @@ -158,10 +158,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity. Note: As of 2024-03 is not exported by API." }, - "value": "[coalesce(tryGet(tryGet(reference('endpoint', '2023-01-31', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('endpoint', '2023-01-31', 'full'), 'identity'), 'principalId')]" } } } \ No newline at end of file diff --git a/avm/res/digital-twins/digital-twins-instance/endpoint--service-bus/main.bicep b/avm/res/digital-twins/digital-twins-instance/endpoint--service-bus/main.bicep index fd28cb9162..3d385a18c8 100644 --- a/avm/res/digital-twins/digital-twins-instance/endpoint--service-bus/main.bicep +++ b/avm/res/digital-twins/digital-twins-instance/endpoint--service-bus/main.bicep @@ -78,7 +78,7 @@ output name string = endpoint.name @description('The principal ID of the system assigned identity. Note: As of 2024-03 is not exported by API.') #disable-next-line BCP187 -output systemAssignedMIPrincipalId string = endpoint.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = endpoint.?identity.?principalId // =============== // // Definitions // diff --git a/avm/res/digital-twins/digital-twins-instance/endpoint--service-bus/main.json b/avm/res/digital-twins/digital-twins-instance/endpoint--service-bus/main.json index 6b0c4e1997..14e46090a8 100644 --- a/avm/res/digital-twins/digital-twins-instance/endpoint--service-bus/main.json +++ b/avm/res/digital-twins/digital-twins-instance/endpoint--service-bus/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "16120220150647094812" + "version": "0.33.13.18514", + "templateHash": "11967411831157387474" }, "name": "Digital Twins Instance ServiceBus Endpoint", "description": "This module deploys a Digital Twins Instance ServiceBus Endpoint." @@ -158,10 +158,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity. Note: As of 2024-03 is not exported by API." }, - "value": "[coalesce(tryGet(tryGet(reference('endpoint', '2023-01-31', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('endpoint', '2023-01-31', 'full'), 'identity'), 'principalId')]" } } } \ No newline at end of file diff --git a/avm/res/digital-twins/digital-twins-instance/main.bicep b/avm/res/digital-twins/digital-twins-instance/main.bicep index 36ad9e69a1..2f1db04b71 100644 --- a/avm/res/digital-twins/digital-twins-instance/main.bicep +++ b/avm/res/digital-twins/digital-twins-instance/main.bicep @@ -308,7 +308,7 @@ output hostname string = digitalTwinsInstance.properties.hostName output location string = digitalTwinsInstance.location @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = digitalTwinsInstance.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = digitalTwinsInstance.?identity.?principalId // =============== // // Definitions // diff --git a/avm/res/digital-twins/digital-twins-instance/main.json b/avm/res/digital-twins/digital-twins-instance/main.json index 782f568463..69ceb6f17a 100644 --- a/avm/res/digital-twins/digital-twins-instance/main.json +++ b/avm/res/digital-twins/digital-twins-instance/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "16439802383293887009" + "version": "0.33.13.18514", + "templateHash": "10648420169478187370" }, "name": "Digital Twins Instances", "description": "This module deploys an Azure Digital Twins Instance." @@ -694,8 +694,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11377864419942663747" + "version": "0.33.13.18514", + "templateHash": "16389406048518633124" }, "name": "Digital Twins Instance EventHub Endpoint", "description": "This module deploys a Digital Twins Instance EventHub Endpoint." @@ -847,10 +847,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity. Note: As of 2024-03 is not exported by API." }, - "value": "[coalesce(tryGet(tryGet(reference('endpoint', '2023-01-31', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('endpoint', '2023-01-31', 'full'), 'identity'), 'principalId')]" } } } @@ -888,8 +889,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "18416577662181981626" + "version": "0.33.13.18514", + "templateHash": "10272263217980237853" }, "name": "Digital Twins Instance Event Grid Endpoints", "description": "This module deploys a Digital Twins Instance Event Grid Endpoint." @@ -1014,8 +1015,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "16120220150647094812" + "version": "0.33.13.18514", + "templateHash": "11967411831157387474" }, "name": "Digital Twins Instance ServiceBus Endpoint", "description": "This module deploys a Digital Twins Instance ServiceBus Endpoint." @@ -1167,10 +1168,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity. Note: As of 2024-03 is not exported by API." }, - "value": "[coalesce(tryGet(tryGet(reference('endpoint', '2023-01-31', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('endpoint', '2023-01-31', 'full'), 'identity'), 'principalId')]" } } } @@ -1880,10 +1882,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('digitalTwinsInstance', '2023-01-31', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('digitalTwinsInstance', '2023-01-31', 'full'), 'identity'), 'principalId')]" } } } \ No newline at end of file diff --git a/avm/res/digital-twins/digital-twins-instance/version.json b/avm/res/digital-twins/digital-twins-instance/version.json index 7fa401bdf7..1c035df49f 100644 --- a/avm/res/digital-twins/digital-twins-instance/version.json +++ b/avm/res/digital-twins/digital-twins-instance/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.1", + "version": "0.2", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/document-db/database-account/main.bicep b/avm/res/document-db/database-account/main.bicep index c129632a13..96153da271 100644 --- a/avm/res/document-db/database-account/main.bicep +++ b/avm/res/document-db/database-account/main.bicep @@ -646,7 +646,7 @@ output resourceId string = databaseAccount.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = databaseAccount.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = databaseAccount.?identity.?principalId @description('The location the resource was deployed into.') output location string = databaseAccount.location diff --git a/avm/res/document-db/database-account/main.json b/avm/res/document-db/database-account/main.json index 477b8fba55..c616ca134d 100644 --- a/avm/res/document-db/database-account/main.json +++ b/avm/res/document-db/database-account/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12109224597701917960" + "version": "0.33.13.18514", + "templateHash": "9027478510653399442" }, "name": "DocumentDB Database Accounts", "description": "This module deploys a DocumentDB Database Account." @@ -1408,8 +1408,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "18126017281663864760" + "version": "0.33.13.18514", + "templateHash": "4730660366074754478" }, "name": "DocumentDB Database Account SQL Databases", "description": "This module deploys a SQL Database in a CosmosDB Account." @@ -1540,8 +1540,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "4596147096867557868" + "version": "0.33.13.18514", + "templateHash": "17386250764817703718" }, "name": "DocumentDB Database Account SQL Database Containers", "description": "This module deploys a SQL Database Container in a CosmosDB Account." @@ -1793,8 +1793,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "6559464455472088945" + "version": "0.33.13.18514", + "templateHash": "1685904024748106506" }, "name": "DocumentDB Database Account SQL Role.", "description": "This module deploys SQL Role Definision and Assignment in a CosmosDB Account." @@ -1879,8 +1879,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "14750214357725995743" + "version": "0.33.13.18514", + "templateHash": "2400533018599684506" }, "name": "DocumentDB Database Account SQL Role Definitions.", "description": "This module deploys a SQL Role Definision in a CosmosDB Account." @@ -1999,8 +1999,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12764194787789521059" + "version": "0.33.13.18514", + "templateHash": "7526212004798871599" }, "name": "DocumentDB Database Account SQL Role Assignments.", "description": "This module deploys a SQL Role Assignment in a CosmosDB Account." @@ -2112,8 +2112,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "9677932317263312170" + "version": "0.33.13.18514", + "templateHash": "1267602765838127257" }, "name": "DocumentDB Database Account MongoDB Databases", "description": "This module deploys a MongoDB Database within a CosmosDB Account." @@ -2214,8 +2214,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "4404429052939193681" + "version": "0.33.13.18514", + "templateHash": "14692457778129855727" }, "name": "DocumentDB Database Account MongoDB Database Collections", "description": "This module deploys a MongoDB Database Collection." @@ -2373,8 +2373,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "2572955421461314223" + "version": "0.33.13.18514", + "templateHash": "8525966528580996304" }, "name": "DocumentDB Database Account Gremlin Databases", "description": "This module deploys a Gremlin Database within a CosmosDB Account." @@ -2478,8 +2478,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "1700064870992628026" + "version": "0.33.13.18514", + "templateHash": "6842956277724193822" }, "name": "DocumentDB Database Accounts Gremlin Databases Graphs", "description": "This module deploys a DocumentDB Database Accounts Gremlin Database Graph." @@ -2650,8 +2650,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "2653851241415133906" + "version": "0.33.13.18514", + "templateHash": "8085041866356798294" }, "name": "Azure Cosmos DB account tables", "description": "This module deploys a table within an Azure Cosmos DB Account." @@ -3536,8 +3536,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13365107869204248001" + "version": "0.33.13.18514", + "templateHash": "5455406267618725608" } }, "definitions": { @@ -3672,10 +3672,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('databaseAccount', '2023-04-15', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('databaseAccount', '2023-04-15', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/document-db/database-account/version.json b/avm/res/document-db/database-account/version.json index a830c3d961..91ffa760bf 100644 --- a/avm/res/document-db/database-account/version.json +++ b/avm/res/document-db/database-account/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.10", + "version": "0.11", "pathFilters": [ "./main.json" ] diff --git a/avm/res/elastic-san/elastic-san/version.json b/avm/res/elastic-san/elastic-san/version.json index 8def869ede..729ac87673 100644 --- a/avm/res/elastic-san/elastic-san/version.json +++ b/avm/res/elastic-san/elastic-san/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.1", + "version": "0.2", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/elastic-san/elastic-san/volume-group/main.bicep b/avm/res/elastic-san/elastic-san/volume-group/main.bicep index 614930e320..b7e5a12751 100644 --- a/avm/res/elastic-san/elastic-san/volume-group/main.bicep +++ b/avm/res/elastic-san/elastic-san/volume-group/main.bicep @@ -215,7 +215,7 @@ output location string = location output resourceGroupName string = resourceGroup().name @sys.description('The principal ID of the system assigned identity of the deployed Elastic SAN Volume Group.') -output systemAssignedMIPrincipalId string = volumeGroup.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = volumeGroup.?identity.?principalId @sys.description('Details on the deployed Elastic SAN Volumes.') output volumes volumeOutputType[] = [ diff --git a/avm/res/elastic-san/elastic-san/volume-group/main.json b/avm/res/elastic-san/elastic-san/volume-group/main.json index 7e3b08770e..4e8f1f03f0 100644 --- a/avm/res/elastic-san/elastic-san/volume-group/main.json +++ b/avm/res/elastic-san/elastic-san/volume-group/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "5472510668055424391" + "version": "0.33.13.18514", + "templateHash": "5043762592549190927" }, "name": "Elastic SAN Volume Groups", "description": "This module deploys an Elastic SAN Volume Group." @@ -795,8 +795,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7324265222363694864" + "version": "0.33.13.18514", + "templateHash": "8260850643378717237" }, "name": "Elastic SAN Volumes", "description": "This module deploys an Elastic SAN Volume." @@ -960,8 +960,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11683450086168084373" + "version": "0.33.13.18514", + "templateHash": "4007403623410700025" }, "name": "Elastic SAN Volume Snapshots", "description": "This module deploys an Elastic SAN Volume Snapshot." @@ -1976,10 +1976,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity of the deployed Elastic SAN Volume Group." }, - "value": "[coalesce(tryGet(tryGet(reference('volumeGroup', '2023-01-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('volumeGroup', '2023-01-01', 'full'), 'identity'), 'principalId')]" }, "volumes": { "type": "array", diff --git a/avm/res/event-grid/domain/main.bicep b/avm/res/event-grid/domain/main.bicep index 8efd469bdd..de608c4f9c 100644 --- a/avm/res/event-grid/domain/main.bicep +++ b/avm/res/event-grid/domain/main.bicep @@ -276,7 +276,7 @@ output resourceGroupName string = resourceGroup().name output location string = domain.location @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = domain.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = domain.?identity.?principalId @description('The private endpoints of the event grid domain.') output privateEndpoints array = [ diff --git a/avm/res/event-grid/domain/main.json b/avm/res/event-grid/domain/main.json index 9cfecdc57b..aa1eec1de1 100644 --- a/avm/res/event-grid/domain/main.json +++ b/avm/res/event-grid/domain/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17637415605593774734" + "version": "0.33.13.18514", + "templateHash": "10294267768523198198" }, "name": "Event Grid Domains", "description": "This module deploys an Event Grid Domain." @@ -742,8 +742,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "9083571930533091533" + "version": "0.33.13.18514", + "templateHash": "5314850646834911928" }, "name": "Event Grid Domain Topics", "description": "This module deploys an Event Grid Domain Topic." @@ -1596,10 +1596,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('domain', '2023-06-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('domain', '2023-06-01-preview', 'full'), 'identity'), 'principalId')]" }, "privateEndpoints": { "type": "array", diff --git a/avm/res/event-grid/domain/version.json b/avm/res/event-grid/domain/version.json index 21226dd43f..09c3664cec 100644 --- a/avm/res/event-grid/domain/version.json +++ b/avm/res/event-grid/domain/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.6", + "version": "0.7", "pathFilters": [ "./main.json" ] diff --git a/avm/res/event-grid/namespace/main.bicep b/avm/res/event-grid/namespace/main.bicep index 8c2eb36298..c4c74cbb8f 100644 --- a/avm/res/event-grid/namespace/main.bicep +++ b/avm/res/event-grid/namespace/main.bicep @@ -438,7 +438,7 @@ output location string = namespace.location output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = namespace.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = namespace.?identity.?principalId @sys.description('The Resources IDs of the EventGrid Namespace Topics.') output topicResourceIds array = [ diff --git a/avm/res/event-grid/namespace/main.json b/avm/res/event-grid/namespace/main.json index c0c9976ca0..26478a4e59 100644 --- a/avm/res/event-grid/namespace/main.json +++ b/avm/res/event-grid/namespace/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11469701576843423231" + "version": "0.33.13.18514", + "templateHash": "13579387788541405387" }, "name": "Event Grid Namespaces", "description": "This module deploys an Event Grid Namespace." @@ -1614,8 +1614,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "15715688844696636869" + "version": "0.33.13.18514", + "templateHash": "15793214931835923034" }, "name": "Eventgrid Namespace Topics", "description": "This module deploys an Eventgrid Namespace Topic." @@ -1896,8 +1896,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "3328924279528017223" + "version": "0.33.13.18514", + "templateHash": "17184382679184813652" }, "name": "Event Subscriptions", "description": "This module deploys an Event Subscription." @@ -2188,8 +2188,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13580243066591608578" + "version": "0.33.13.18514", + "templateHash": "16684000080098402376" }, "name": "Eventgrid Namespace CA Certificates", "description": "This module deploys an Eventgrid Namespace CA Certificate." @@ -2314,8 +2314,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13739700279576908785" + "version": "0.33.13.18514", + "templateHash": "11246395673519136496" }, "name": "Eventgrid Namespace Clients", "description": "This module deploys an Eventgrid Namespace Client." @@ -2476,8 +2476,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12442980068595434063" + "version": "0.33.13.18514", + "templateHash": "15188233906898213813" }, "name": "Eventgrid Namespace Client Groups", "description": "This module deploys an Eventgrid Namespace Client Group." @@ -2593,8 +2593,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "936984304688301643" + "version": "0.33.13.18514", + "templateHash": "16328606795351825014" }, "name": "Eventgrid Namespace Topic Spaces", "description": "This module deploys an Eventgrid Namespace Topic Space." @@ -2841,8 +2841,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "14853334081305348305" + "version": "0.33.13.18514", + "templateHash": "2140320336515533966" }, "name": "Eventgrid Namespace Permissions Bindings", "description": "This module deploys an Eventgrid Namespace Permission Binding." @@ -2972,10 +2972,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('namespace', '2023-12-15-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('namespace', '2023-12-15-preview', 'full'), 'identity'), 'principalId')]" }, "topicResourceIds": { "type": "array", diff --git a/avm/res/event-grid/namespace/version.json b/avm/res/event-grid/namespace/version.json index 13669e6601..ea4f3b6e67 100644 --- a/avm/res/event-grid/namespace/version.json +++ b/avm/res/event-grid/namespace/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.4", + "version": "0.5", "pathFilters": [ "./main.json" ] diff --git a/avm/res/event-grid/system-topic/main.bicep b/avm/res/event-grid/system-topic/main.bicep index 940802d57e..58de7eae42 100644 --- a/avm/res/event-grid/system-topic/main.bicep +++ b/avm/res/event-grid/system-topic/main.bicep @@ -217,7 +217,7 @@ output resourceId string = systemTopic.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = systemTopic.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = systemTopic.?identity.?principalId @description('The location the resource was deployed into.') output location string = systemTopic.location diff --git a/avm/res/event-grid/system-topic/main.json b/avm/res/event-grid/system-topic/main.json index ed57a63079..3cd284a485 100644 --- a/avm/res/event-grid/system-topic/main.json +++ b/avm/res/event-grid/system-topic/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "16734812212209895130" + "version": "0.33.13.18514", + "templateHash": "15569717694154014978" }, "name": "Event Grid System Topics", "description": "This module deploys an Event Grid System Topic." @@ -496,8 +496,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7839282934142393443" + "version": "0.33.13.18514", + "templateHash": "5663324417229692476" }, "name": "Event Grid System Topic Event Subscriptions", "description": "This module deploys an Event Grid System Topic Event Subscription." @@ -663,10 +663,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('systemTopic', '2023-12-15-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('systemTopic', '2023-12-15-preview', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/event-grid/system-topic/version.json b/avm/res/event-grid/system-topic/version.json index 13669e6601..ea4f3b6e67 100644 --- a/avm/res/event-grid/system-topic/version.json +++ b/avm/res/event-grid/system-topic/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.4", + "version": "0.5", "pathFilters": [ "./main.json" ] diff --git a/avm/res/event-grid/topic/main.bicep b/avm/res/event-grid/topic/main.bicep index a8d65fc27e..1289eeae49 100644 --- a/avm/res/event-grid/topic/main.bicep +++ b/avm/res/event-grid/topic/main.bicep @@ -286,7 +286,7 @@ output resourceGroupName string = resourceGroup().name output location string = topic.location @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = topic.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = topic.?identity.?principalId @description('The private endpoints of the event grid topic.') output privateEndpoints array = [ diff --git a/avm/res/event-grid/topic/main.json b/avm/res/event-grid/topic/main.json index cc607291c2..1bda01ac28 100644 --- a/avm/res/event-grid/topic/main.json +++ b/avm/res/event-grid/topic/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "6054907887503859148" + "version": "0.33.13.18514", + "templateHash": "17090087854048089391" }, "name": "Event Grid Topics", "description": "This module deploys an Event Grid Topic." @@ -737,8 +737,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11005827950776268335" + "version": "0.33.13.18514", + "templateHash": "16170611451956085210" }, "name": "EventGrid Topic Event Subscriptions", "description": "This module deploys an Event Grid Topic Event Subscription." @@ -1677,10 +1677,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('topic', '2021-06-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('topic', '2021-06-01-preview', 'full'), 'identity'), 'principalId')]" }, "privateEndpoints": { "type": "array", diff --git a/avm/res/event-grid/topic/version.json b/avm/res/event-grid/topic/version.json index 21226dd43f..09c3664cec 100644 --- a/avm/res/event-grid/topic/version.json +++ b/avm/res/event-grid/topic/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.6", + "version": "0.7", "pathFilters": [ "./main.json" ] diff --git a/avm/res/healthcare-apis/workspace/dicomservice/main.bicep b/avm/res/healthcare-apis/workspace/dicomservice/main.bicep index 00044b5126..1fc5c69461 100644 --- a/avm/res/healthcare-apis/workspace/dicomservice/main.bicep +++ b/avm/res/healthcare-apis/workspace/dicomservice/main.bicep @@ -144,7 +144,7 @@ output resourceId string = dicom.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = dicom.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = dicom.?identity.?principalId @description('The location the resource was deployed into.') output location string = dicom.location diff --git a/avm/res/healthcare-apis/workspace/dicomservice/main.json b/avm/res/healthcare-apis/workspace/dicomservice/main.json index e0d881d6e5..5b2016f9f5 100644 --- a/avm/res/healthcare-apis/workspace/dicomservice/main.json +++ b/avm/res/healthcare-apis/workspace/dicomservice/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "15725443146645806343" + "version": "0.33.13.18514", + "templateHash": "6035434891698156409" }, "name": "Healthcare API Workspace DICOM Services", "description": "This module deploys a Healthcare API Workspace DICOM Service." @@ -391,10 +391,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('dicom', '2022-06-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('dicom', '2022-06-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/healthcare-apis/workspace/iotconnector/main.bicep b/avm/res/healthcare-apis/workspace/iotconnector/main.bicep index 8bb7c8fc0b..1ec4e6e3a9 100644 --- a/avm/res/healthcare-apis/workspace/iotconnector/main.bicep +++ b/avm/res/healthcare-apis/workspace/iotconnector/main.bicep @@ -145,7 +145,7 @@ output resourceId string = iotConnector.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = iotConnector.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = iotConnector.?identity.?principalId @description('The location the resource was deployed into.') output location string = iotConnector.location diff --git a/avm/res/healthcare-apis/workspace/iotconnector/main.json b/avm/res/healthcare-apis/workspace/iotconnector/main.json index de11e4a0c6..82eb7d6b7b 100644 --- a/avm/res/healthcare-apis/workspace/iotconnector/main.json +++ b/avm/res/healthcare-apis/workspace/iotconnector/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "15307253086923849247" + "version": "0.33.13.18514", + "templateHash": "3685356098294718814" }, "name": "Healthcare API Workspace IoT Connectors", "description": "This module deploys a Healthcare API Workspace IoT Connector." @@ -388,8 +388,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "4307853570131837135" + "version": "0.33.13.18514", + "templateHash": "10762900247985096400" }, "name": "Healthcare API Workspace IoT Connector FHIR Destinations", "description": "This module deploys a Healthcare API Workspace IoT Connector FHIR Destination." @@ -532,10 +532,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('iotConnector', '2022-06-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('iotConnector', '2022-06-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/healthcare-apis/workspace/version.json b/avm/res/healthcare-apis/workspace/version.json index c177b1bb58..3f863a2bec 100644 --- a/avm/res/healthcare-apis/workspace/version.json +++ b/avm/res/healthcare-apis/workspace/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.3", + "version": "0.4", "pathFilters": [ "./main.json" ] diff --git a/avm/res/hybrid-compute/machine/main.bicep b/avm/res/hybrid-compute/machine/main.bicep index 59d875bfd6..a77de4564c 100644 --- a/avm/res/hybrid-compute/machine/main.bicep +++ b/avm/res/hybrid-compute/machine/main.bicep @@ -215,7 +215,7 @@ output resourceId string = machine.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = machine.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = machine.?identity.?principalId @description('The location the resource was deployed into.') output location string = machine.location diff --git a/avm/res/hybrid-compute/machine/main.json b/avm/res/hybrid-compute/machine/main.json index 45291632ec..79ee283312 100644 --- a/avm/res/hybrid-compute/machine/main.json +++ b/avm/res/hybrid-compute/machine/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "2811073768335987863" + "version": "0.33.13.18514", + "templateHash": "4244831551350652576" }, "name": "Hybrid Compute Machines", "description": "This module deploys an Arc Machine for use with Arc Resource Bridge for Azure Stack HCI or VMware. In these scenarios, this resource module will be used in combination with another resource module to create the require Virtual Machine Instance extension resource on this Arc Machine resource. This module should not be used for other Arc-enabled server scenarios, where the Arc Machine resource is created automatically by the onboarding process." @@ -383,10 +383,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('machine', '2024-07-10', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('machine', '2024-07-10', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/insights/data-collection-rule/main.bicep b/avm/res/insights/data-collection-rule/main.bicep index 897cb6b19e..ea79dc2628 100644 --- a/avm/res/insights/data-collection-rule/main.bicep +++ b/avm/res/insights/data-collection-rule/main.bicep @@ -153,9 +153,9 @@ output location string = dataCollectionRuleProperties.kind == 'All' : dataCollectionRule.location @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = dataCollectionRuleProperties.kind == 'All' - ? dataCollectionRuleAll.?identity.?principalId ?? '' - : dataCollectionRule.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = dataCollectionRuleProperties.kind == 'All' + ? dataCollectionRuleAll.?identity.?principalId + : dataCollectionRule.?identity.?principalId // =============== // // Definitions // diff --git a/avm/res/insights/data-collection-rule/main.json b/avm/res/insights/data-collection-rule/main.json index 66899320f6..f891571ddb 100644 --- a/avm/res/insights/data-collection-rule/main.json +++ b/avm/res/insights/data-collection-rule/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10211623660401614857" + "version": "0.33.13.18514", + "templateHash": "18326948801281911152" }, "name": "Data Collection Rules", "description": "This module deploys a Data Collection Rule." @@ -532,8 +532,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7374245221905320535" + "version": "0.33.13.18514", + "templateHash": "179607600205357551" } }, "definitions": { @@ -761,10 +761,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[if(equals(parameters('dataCollectionRuleProperties').kind, 'All'), coalesce(tryGet(tryGet(reference('dataCollectionRuleAll', '2023-03-11', 'full'), 'identity'), 'principalId'), ''), coalesce(tryGet(tryGet(reference('dataCollectionRule', '2023-03-11', 'full'), 'identity'), 'principalId'), ''))]" + "value": "[if(equals(parameters('dataCollectionRuleProperties').kind, 'All'), tryGet(tryGet(reference('dataCollectionRuleAll', '2023-03-11', 'full'), 'identity'), 'principalId'), tryGet(tryGet(reference('dataCollectionRule', '2023-03-11', 'full'), 'identity'), 'principalId'))]" } } } \ No newline at end of file diff --git a/avm/res/insights/data-collection-rule/version.json b/avm/res/insights/data-collection-rule/version.json index 3f863a2bec..a8eda31021 100644 --- a/avm/res/insights/data-collection-rule/version.json +++ b/avm/res/insights/data-collection-rule/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.4", + "version": "0.5", "pathFilters": [ "./main.json" ] diff --git a/avm/res/logic/workflow/main.bicep b/avm/res/logic/workflow/main.bicep index 2c1a71d169..72a7916d17 100644 --- a/avm/res/logic/workflow/main.bicep +++ b/avm/res/logic/workflow/main.bicep @@ -243,7 +243,7 @@ output resourceGroupName string = resourceGroup().name output resourceId string = logicApp.id @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = logicApp.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = logicApp.?identity.?principalId @description('The location the resource was deployed into.') output location string = logicApp.location diff --git a/avm/res/logic/workflow/main.json b/avm/res/logic/workflow/main.json index c96489b3eb..c144dcf318 100644 --- a/avm/res/logic/workflow/main.json +++ b/avm/res/logic/workflow/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "1208938412424290106" + "version": "0.33.13.18514", + "templateHash": "10870108291135916116" }, "name": "Logic Apps (Workflows)", "description": "This module deploys a Logic App (Workflow)." @@ -609,10 +609,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('logicApp', '2019-05-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('logicApp', '2019-05-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/logic/workflow/version.json b/avm/res/logic/workflow/version.json index 3f863a2bec..a8eda31021 100644 --- a/avm/res/logic/workflow/version.json +++ b/avm/res/logic/workflow/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.4", + "version": "0.5", "pathFilters": [ "./main.json" ] diff --git a/avm/res/machine-learning-services/workspace/compute/main.bicep b/avm/res/machine-learning-services/workspace/compute/main.bicep index 63e6d0831e..a0f8d4025e 100644 --- a/avm/res/machine-learning-services/workspace/compute/main.bicep +++ b/avm/res/machine-learning-services/workspace/compute/main.bicep @@ -141,7 +141,7 @@ output resourceId string = compute.id output resourceGroupName string = resourceGroup().name @sys.description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = compute.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = compute.?identity.?principalId @sys.description('The location the resource was deployed into.') output location string = compute.location diff --git a/avm/res/machine-learning-services/workspace/compute/main.json b/avm/res/machine-learning-services/workspace/compute/main.json index d92e08cb98..526e32cd66 100644 --- a/avm/res/machine-learning-services/workspace/compute/main.json +++ b/avm/res/machine-learning-services/workspace/compute/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7148981579356222264" + "version": "0.33.13.18514", + "templateHash": "7984703420037754517" }, "name": "Machine Learning Services Workspaces Computes", "description": "This module deploys a Machine Learning Services Workspaces Compute.\n\nAttaching a compute is not idempotent and will fail in case you try to redeploy over an existing compute in AML (see parameter `deployCompute`)." @@ -198,10 +198,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('compute', '2022-10-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('compute', '2022-10-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/machine-learning-services/workspace/version.json b/avm/res/machine-learning-services/workspace/version.json index 6b6be93891..a830c3d961 100644 --- a/avm/res/machine-learning-services/workspace/version.json +++ b/avm/res/machine-learning-services/workspace/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.9", + "version": "0.10", "pathFilters": [ "./main.json" ] diff --git a/avm/res/operational-insights/workspace/main.bicep b/avm/res/operational-insights/workspace/main.bicep index 672c48de50..edc8a326d2 100644 --- a/avm/res/operational-insights/workspace/main.bicep +++ b/avm/res/operational-insights/workspace/main.bicep @@ -419,7 +419,7 @@ output logAnalyticsWorkspaceId string = logAnalyticsWorkspace.properties.custome output location string = logAnalyticsWorkspace.location @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = logAnalyticsWorkspace.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = logAnalyticsWorkspace.?identity.?principalId // =============== // // Definitions // diff --git a/avm/res/operational-insights/workspace/main.json b/avm/res/operational-insights/workspace/main.json index c61b1b7633..1c6da556b6 100644 --- a/avm/res/operational-insights/workspace/main.json +++ b/avm/res/operational-insights/workspace/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "9056755055437839591" + "version": "0.33.13.18514", + "templateHash": "4169914284504175169" }, "name": "Log Analytics Workspaces", "description": "This module deploys a Log Analytics Workspace." @@ -1318,8 +1318,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12148501849006788324" + "version": "0.33.13.18514", + "templateHash": "12715459455039038966" }, "name": "Log Analytics Workspace Storage Insight Configs", "description": "This module deploys a Log Analytics Workspace Storage Insight Config." @@ -1463,8 +1463,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "17762270878383445421" + "version": "0.33.13.18514", + "templateHash": "17369295448584741847" }, "name": "Log Analytics Workspace Linked Services", "description": "This module deploys a Log Analytics Workspace Linked Service." @@ -1582,8 +1582,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11986582912298301528" + "version": "0.33.13.18514", + "templateHash": "4336014228195179628" }, "name": "Log Analytics Workspace Linked Storage Accounts", "description": "This module deploys a Log Analytics Workspace Linked Storage Account." @@ -1715,8 +1715,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "9640551980154944642" + "version": "0.33.13.18514", + "templateHash": "10687105232425640835" }, "name": "Log Analytics Workspace Saved Searches", "description": "This module deploys a Log Analytics Workspace Saved Search." @@ -1878,8 +1878,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "14977926524140126314" + "version": "0.33.13.18514", + "templateHash": "9265911316713795008" }, "name": "Log Analytics Workspace Data Exports", "description": "This module deploys a Log Analytics Workspace Data Export." @@ -2071,8 +2071,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12082641043455308513" + "version": "0.33.13.18514", + "templateHash": "16545899498885737893" }, "name": "Log Analytics Workspace Datasources", "description": "This module deploys a Log Analytics Workspace Data Source." @@ -2298,8 +2298,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "8047367069034259642" + "version": "0.33.13.18514", + "templateHash": "9728326644814973167" }, "name": "Log Analytics Workspace Tables", "description": "This module deploys a Log Analytics Workspace Table." @@ -2946,10 +2946,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('logAnalyticsWorkspace', '2022-10-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('logAnalyticsWorkspace', '2022-10-01', 'full'), 'identity'), 'principalId')]" } } } \ No newline at end of file diff --git a/avm/res/operational-insights/workspace/version.json b/avm/res/operational-insights/workspace/version.json index b39a201436..a830c3d961 100644 --- a/avm/res/operational-insights/workspace/version.json +++ b/avm/res/operational-insights/workspace/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.9", + "version": "0.10", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/purview/account/main.bicep b/avm/res/purview/account/main.bicep index 8ec797682b..61c30d78ea 100644 --- a/avm/res/purview/account/main.bicep +++ b/avm/res/purview/account/main.bicep @@ -484,7 +484,7 @@ output managedStorageAccountId string = account.properties.managedResources.stor output managedEventHubId string = account.properties.managedResources.eventHubNamespace @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = account.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = account.?identity.?principalId @description('The private endpoints of the Purview Account.') output accountPrivateEndpoints array = [ diff --git a/avm/res/purview/account/main.json b/avm/res/purview/account/main.json index 72febcd64d..f6142639a8 100644 --- a/avm/res/purview/account/main.json +++ b/avm/res/purview/account/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "5690262690202652451" + "version": "0.33.13.18514", + "templateHash": "11753654952624297354" }, "name": "Purview Accounts", "description": "This module deploys a Purview Account." @@ -4625,10 +4625,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('account', '2021-12-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('account', '2021-12-01', 'full'), 'identity'), 'principalId')]" }, "accountPrivateEndpoints": { "type": "array", diff --git a/avm/res/purview/account/version.json b/avm/res/purview/account/version.json index 9ed3662aba..7e1d3f4157 100644 --- a/avm/res/purview/account/version.json +++ b/avm/res/purview/account/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.6", + "version": "0.7", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/recovery-services/vault/main.bicep b/avm/res/recovery-services/vault/main.bicep index f4b65bdba1..10cffcdaf9 100644 --- a/avm/res/recovery-services/vault/main.bicep +++ b/avm/res/recovery-services/vault/main.bicep @@ -403,7 +403,7 @@ output resourceGroupName string = resourceGroup().name output name string = rsv.name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = rsv.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = rsv.?identity.?principalId @description('The location the resource was deployed into.') output location string = rsv.location diff --git a/avm/res/recovery-services/vault/main.json b/avm/res/recovery-services/vault/main.json index edd72c6145..afcefb46ff 100644 --- a/avm/res/recovery-services/vault/main.json +++ b/avm/res/recovery-services/vault/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "3006616509634903013" + "version": "0.33.13.18514", + "templateHash": "6598977512480723703" }, "name": "Recovery Services Vaults", "description": "This module deploys a Recovery Services Vault." @@ -897,8 +897,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10507112348892069298" + "version": "0.33.13.18514", + "templateHash": "16265039904717699288" }, "name": "Recovery Services Vault Replication Fabrics", "description": "This module deploys a Replication Fabric for Azure to Azure disaster recovery scenario of Azure Site Recovery.\n\n> Note: this module currently support only the `instanceType: 'Azure'` scenario." @@ -977,8 +977,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11569119002723688025" + "version": "0.33.13.18514", + "templateHash": "3485070905266123603" }, "name": "Recovery Services Vault Replication Fabric Replication Protection Containers", "description": "This module deploys a Recovery Services Vault Replication Protection Container.\n\n> **Note**: this version of the module only supports the `instanceType: 'A2A'` scenario." @@ -1071,8 +1071,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "9324067216015127289" + "version": "0.33.13.18514", + "templateHash": "6423347652173335680" }, "name": "Recovery Services Vault Replication Fabric Replication Protection Container Replication Protection Container Mappings", "description": "This module deploys a Recovery Services Vault (RSV) Replication Protection Container Mapping.\n\n> **Note**: this version of the module only supports the `instanceType: 'A2A'` scenario." @@ -1279,8 +1279,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "3181787105854140022" + "version": "0.33.13.18514", + "templateHash": "10948839526456404680" }, "name": "Recovery Services Vault Replication Policies", "description": "This module deploys a Recovery Services Vault Replication Policy for Disaster Recovery scenario.\n\n> **Note**: this version of the module only supports the `instanceType: 'A2A'` scenario." @@ -1403,8 +1403,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "5873261661461950688" + "version": "0.33.13.18514", + "templateHash": "17375948662410777678" }, "name": "Recovery Services Vault Backup Storage Config", "description": "This module deploys a Recovery Service Vault Backup Storage Configuration." @@ -1528,8 +1528,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "2342312580952650656" + "version": "0.33.13.18514", + "templateHash": "11151484631677356109" }, "name": "Recovery Services Vault Protection Container", "description": "This module deploys a Recovery Services Vault Protection Container." @@ -1666,8 +1666,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10896311401307689711" + "version": "0.33.13.18514", + "templateHash": "16309659094506585930" }, "name": "Recovery Service Vaults Protection Container Protected Item", "description": "This module deploys a Recovery Services Vault Protection Container Protected Item." @@ -1831,8 +1831,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "8749531505758368980" + "version": "0.33.13.18514", + "templateHash": "992831565851796181" }, "name": "Recovery Services Vault Backup Policies", "description": "This module deploys a Recovery Services Vault Backup Policy." @@ -1923,8 +1923,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "617152935951311267" + "version": "0.33.13.18514", + "templateHash": "1001038691929568740" }, "name": "Recovery Services Vault Backup Config", "description": "This module deploys a Recovery Services Vault Backup Config." @@ -2089,8 +2089,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13751902698582597636" + "version": "0.33.13.18514", + "templateHash": "3897872700976586621" }, "name": "Recovery Services Vault Replication Alert Settings", "description": "This module deploys a Recovery Services Vault Replication Alert Settings." @@ -2956,10 +2956,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('rsv', '2023-01-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('rsv', '2023-01-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/search/search-service/main.bicep b/avm/res/search/search-service/main.bicep index 3a0a6e5154..e2a7ef28ba 100644 --- a/avm/res/search/search-service/main.bicep +++ b/avm/res/search/search-service/main.bicep @@ -375,7 +375,7 @@ output resourceId string = searchService.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = searchService.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = searchService.?identity.?principalId @description('The location the resource was deployed into.') output location string = searchService.location diff --git a/avm/res/search/search-service/main.json b/avm/res/search/search-service/main.json index f0891719a2..140b077e8c 100644 --- a/avm/res/search/search-service/main.json +++ b/avm/res/search/search-service/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "5836175286172713981" + "version": "0.33.13.18514", + "templateHash": "16224557122759439562" }, "name": "Search Services", "description": "This module deploys a Search Service." @@ -1793,8 +1793,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10412795355958046746" + "version": "0.33.13.18514", + "templateHash": "13664767556137402121" }, "name": "Search Services Private Link Resources", "description": "This module deploys a Search Service Private Link Resource." @@ -1913,8 +1913,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13365107869204248001" + "version": "0.33.13.18514", + "templateHash": "5455406267618725608" } }, "definitions": { @@ -2042,10 +2042,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('searchService', '2024-03-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('searchService', '2024-03-01-preview', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/search/search-service/version.json b/avm/res/search/search-service/version.json index 9a9a06e897..6b6be93891 100644 --- a/avm/res/search/search-service/version.json +++ b/avm/res/search/search-service/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.8", + "version": "0.9", "pathFilters": [ "./main.json" ] diff --git a/avm/res/signal-r-service/signal-r/main.bicep b/avm/res/signal-r-service/signal-r/main.bicep index bc9cf01b31..4391162ff8 100644 --- a/avm/res/signal-r-service/signal-r/main.bicep +++ b/avm/res/signal-r-service/signal-r/main.bicep @@ -361,7 +361,7 @@ output resourceId string = signalR.id output location string = signalR.location @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = signalR.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = signalR.?identity.?principalId @description('The private endpoints of the SignalR.') output privateEndpoints array = [ diff --git a/avm/res/signal-r-service/signal-r/main.json b/avm/res/signal-r-service/signal-r/main.json index ac0d48bda3..39c55f9b7c 100644 --- a/avm/res/signal-r-service/signal-r/main.json +++ b/avm/res/signal-r-service/signal-r/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7483252672618928247" + "version": "0.33.13.18514", + "templateHash": "10064618729958162179" }, "name": "SignalR Service SignalR", "description": "This module deploys a SignalR Service SignalR." @@ -1530,10 +1530,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('signalR', '2022-02-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('signalR', '2022-02-01', 'full'), 'identity'), 'principalId')]" }, "privateEndpoints": { "type": "array", diff --git a/avm/res/signal-r-service/signal-r/version.json b/avm/res/signal-r-service/signal-r/version.json index 21226dd43f..09c3664cec 100644 --- a/avm/res/signal-r-service/signal-r/version.json +++ b/avm/res/signal-r-service/signal-r/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.6", + "version": "0.7", "pathFilters": [ "./main.json" ] diff --git a/avm/res/signal-r-service/web-pub-sub/main.bicep b/avm/res/signal-r-service/web-pub-sub/main.bicep index bd9508604c..7626af95fd 100644 --- a/avm/res/signal-r-service/web-pub-sub/main.bicep +++ b/avm/res/signal-r-service/web-pub-sub/main.bicep @@ -293,7 +293,7 @@ output publicPort int = webPubSub.properties.publicPort output serverPort int = webPubSub.properties.serverPort @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = webPubSub.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = webPubSub.?identity.?principalId @description('The location the resource was deployed into.') output location string = webPubSub.location diff --git a/avm/res/signal-r-service/web-pub-sub/main.json b/avm/res/signal-r-service/web-pub-sub/main.json index ccdb3876f6..4c5d13163b 100644 --- a/avm/res/signal-r-service/web-pub-sub/main.json +++ b/avm/res/signal-r-service/web-pub-sub/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "377631781593293723" + "version": "0.33.13.18514", + "templateHash": "17535527361421516290" }, "name": "SignalR Web PubSub Services", "description": "This module deploys a SignalR Web PubSub Service." @@ -1466,10 +1466,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('webPubSub', '2021-10-01', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('webPubSub', '2021-10-01', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/signal-r-service/web-pub-sub/version.json b/avm/res/signal-r-service/web-pub-sub/version.json index a8eda31021..e42c3d9e5f 100644 --- a/avm/res/signal-r-service/web-pub-sub/version.json +++ b/avm/res/signal-r-service/web-pub-sub/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.5", + "version": "0.6", "pathFilters": [ "./main.json" ] diff --git a/avm/res/sql/managed-instance/main.bicep b/avm/res/sql/managed-instance/main.bicep index cff22e34fd..937da35156 100644 --- a/avm/res/sql/managed-instance/main.bicep +++ b/avm/res/sql/managed-instance/main.bicep @@ -435,7 +435,7 @@ output resourceId string = managedInstance.id output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = managedInstance.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = managedInstance.?identity.?principalId @description('The location the resource was deployed into.') output location string = managedInstance.location diff --git a/avm/res/sql/managed-instance/main.json b/avm/res/sql/managed-instance/main.json index f302ef7fa0..a610bb5db5 100644 --- a/avm/res/sql/managed-instance/main.json +++ b/avm/res/sql/managed-instance/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "11971903042804542737" + "version": "0.33.13.18514", + "templateHash": "11478620095267285204" }, "name": "SQL Managed Instances", "description": "This module deploys a SQL Managed Instance." @@ -723,8 +723,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "1538162937602224879" + "version": "0.33.13.18514", + "templateHash": "395713123829304948" }, "name": "SQL Managed Instance Databases", "description": "This module deploys a SQL Managed Instance Database." @@ -1075,8 +1075,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "5286316596090026143" + "version": "0.33.13.18514", + "templateHash": "9151142669614640980" }, "name": "SQL Managed Instance Database Backup Short-Term Retention Policies", "description": "This module deploys a SQL Managed Instance Database Backup Short-Term Retention Policy." @@ -1178,8 +1178,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7325115054986992226" + "version": "0.33.13.18514", + "templateHash": "9138600771118146325" }, "name": "SQL Managed Instance Database Backup Long-Term Retention Policies", "description": "This module deploys a SQL Managed Instance Database Backup Long-Term Retention Policy." @@ -1337,8 +1337,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "1471785569704218082" + "version": "0.33.13.18514", + "templateHash": "4951872822354774865" }, "name": "SQL Managed Instance Security Alert Policies", "description": "This module deploys a SQL Managed Instance Security Alert Policy." @@ -1447,8 +1447,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13562050841974548564" + "version": "0.33.13.18514", + "templateHash": "4574749738777689693" }, "name": "SQL Managed Instance Vulnerability Assessments", "description": "This module deploys a SQL Managed Instance Vulnerability Assessment." @@ -1548,8 +1548,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12146254396263187807" + "version": "0.33.13.18514", + "templateHash": "14182420641468247209" } }, "parameters": { @@ -1642,8 +1642,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "4882070616166685102" + "version": "0.33.13.18514", + "templateHash": "16370431585132253111" }, "name": "SQL Managed Instance Keys", "description": "This module deploys a SQL Managed Instance Key." @@ -1750,8 +1750,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7260688356936426268" + "version": "0.33.13.18514", + "templateHash": "2284212907652474150" }, "name": "SQL Managed Instance Encryption Protector", "description": "This module deploys a SQL Managed Instance Encryption Protector." @@ -1858,8 +1858,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13987437906799315739" + "version": "0.33.13.18514", + "templateHash": "11943158488099321617" }, "name": "SQL Managed Instances Administrator", "description": "This module deploys a SQL Managed Instance Administrator." @@ -1958,10 +1958,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('managedInstance', '2023-08-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('managedInstance', '2023-08-01-preview', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/sql/managed-instance/version.json b/avm/res/sql/managed-instance/version.json index 7fa401bdf7..1c035df49f 100644 --- a/avm/res/sql/managed-instance/version.json +++ b/avm/res/sql/managed-instance/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.1", + "version": "0.2", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/sql/server/main.bicep b/avm/res/sql/server/main.bicep index 2386c3611f..363dd816ee 100644 --- a/avm/res/sql/server/main.bicep +++ b/avm/res/sql/server/main.bicep @@ -559,7 +559,7 @@ output fullyQualifiedDomainName string = server.properties.fullyQualifiedDomainN output resourceGroupName string = resourceGroup().name @description('The principal ID of the system assigned identity.') -output systemAssignedMIPrincipalId string = server.?identity.?principalId ?? '' +output systemAssignedMIPrincipalId string? = server.?identity.?principalId @description('The location the resource was deployed into.') output location string = server.location diff --git a/avm/res/sql/server/main.json b/avm/res/sql/server/main.json index 018a68d73d..cc2f195da1 100644 --- a/avm/res/sql/server/main.json +++ b/avm/res/sql/server/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "3916165598658090160" + "version": "0.33.13.18514", + "templateHash": "2433863119343202155" }, "name": "Azure SQL Servers", "description": "This module deploys an Azure SQL Server." @@ -2337,8 +2337,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "1441314337667613336" + "version": "0.33.13.18514", + "templateHash": "15990296903519132880" }, "name": "SQL Server Database", "description": "This module deploys an Azure SQL Server Database." @@ -3049,8 +3049,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "8347007377955822668" + "version": "0.33.13.18514", + "templateHash": "9756378998309991315" }, "name": "Azure SQL Server Database Short Term Backup Retention Policies", "description": "This module deploys an Azure SQL Server Database Short-Term Backup Retention Policy." @@ -3166,8 +3166,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "13013838179261859853" + "version": "0.33.13.18514", + "templateHash": "7793476949981656377" }, "name": "SQL Server Database Long Term Backup Retention Policies", "description": "This module deploys an Azure SQL Server Database Long-Term Backup Retention Policy." @@ -3393,8 +3393,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10716835460312206047" + "version": "0.33.13.18514", + "templateHash": "13169370796754277035" }, "name": "SQL Server Elastic Pool", "description": "This module deploys an Azure SQL Server Elastic Pool." @@ -4465,8 +4465,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "7395824066284972652" + "version": "0.33.13.18514", + "templateHash": "5038261177858434729" }, "name": "Azure SQL Server Firewall Rule", "description": "This module deploys an Azure SQL Server Firewall Rule." @@ -4572,8 +4572,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "14402023042001645353" + "version": "0.33.13.18514", + "templateHash": "5181261702127555829" }, "name": "Azure SQL Server Virtual Network Rules", "description": "This module deploys an Azure SQL Server Virtual Network Rule." @@ -4694,8 +4694,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "14011027130533341844" + "version": "0.33.13.18514", + "templateHash": "14971385092253198970" }, "name": "Azure SQL Server Security Alert Policies", "description": "This module deploys an Azure SQL Server Security Alert Policy." @@ -4869,8 +4869,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "5714266708780122328" + "version": "0.33.13.18514", + "templateHash": "13028930090028114053" }, "name": "Azure SQL Server Vulnerability Assessments", "description": "This module deploys an Azure SQL Server Vulnerability Assessment." @@ -4996,8 +4996,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "12732093554587495593" + "version": "0.33.13.18514", + "templateHash": "8374589607291714415" } }, "parameters": { @@ -5092,8 +5092,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "10291818452210242472" + "version": "0.33.13.18514", + "templateHash": "10362246469517057380" }, "name": "Azure SQL Server Keys", "description": "This module deploys an Azure SQL Server Key." @@ -5211,8 +5211,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "429232439511678598" + "version": "0.33.13.18514", + "templateHash": "13396787316963181635" }, "name": "Azure SQL Server Encryption Protector", "description": "This module deploys an Azure SQL Server Encryption Protector." @@ -5343,8 +5343,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "8313305822041721469" + "version": "0.33.13.18514", + "templateHash": "13147629904798099652" }, "name": "Azure SQL Server Audit Settings", "description": "This module deploys an Azure SQL Server Audit Settings." @@ -5484,8 +5484,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "6533631702047528762" + "version": "0.33.13.18514", + "templateHash": "11188920490207833313" } }, "parameters": { @@ -5572,8 +5572,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "9992767491398107530" + "version": "0.33.13.18514", + "templateHash": "14045530027687796477" } }, "definitions": { @@ -5735,8 +5735,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.32.4.45862", - "templateHash": "15941259123124748032" + "version": "0.33.13.18514", + "templateHash": "12788896097070917561" }, "name": "Azure SQL Server failover group", "description": "This module deploys Azure SQL Server failover group." @@ -5941,10 +5941,11 @@ }, "systemAssignedMIPrincipalId": { "type": "string", + "nullable": true, "metadata": { "description": "The principal ID of the system assigned identity." }, - "value": "[coalesce(tryGet(tryGet(reference('server', '2023-08-01-preview', 'full'), 'identity'), 'principalId'), '')]" + "value": "[tryGet(tryGet(reference('server', '2023-08-01-preview', 'full'), 'identity'), 'principalId')]" }, "location": { "type": "string", diff --git a/avm/res/web/hosting-environment/version.json b/avm/res/web/hosting-environment/version.json index daf1a794d9..76049e1c4a 100644 --- a/avm/res/web/hosting-environment/version.json +++ b/avm/res/web/hosting-environment/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.2", + "version": "0.3", "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/web/site/version.json b/avm/res/web/site/version.json index fce2727351..ba8977caae 100644 --- a/avm/res/web/site/version.json +++ b/avm/res/web/site/version.json @@ -4,4 +4,4 @@ "pathFilters": [ "./main.json" ] -} +} \ No newline at end of file diff --git a/avm/res/web/static-site/version.json b/avm/res/web/static-site/version.json index 21226dd43f..09c3664cec 100644 --- a/avm/res/web/static-site/version.json +++ b/avm/res/web/static-site/version.json @@ -1,6 +1,6 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.6", + "version": "0.7", "pathFilters": [ "./main.json" ] diff --git a/utilities/pipelines/staticValidation/compliance/module.tests.ps1 b/utilities/pipelines/staticValidation/compliance/module.tests.ps1 index cce929e12a..323b291142 100644 --- a/utilities/pipelines/staticValidation/compliance/module.tests.ps1 +++ b/utilities/pipelines/staticValidation/compliance/module.tests.ps1 @@ -812,8 +812,13 @@ Describe 'Module tests' -Tag 'Module' { [hashtable] $templateFileContent ) - if ($templateFileContent.definitions.Keys -contains 'managedIdentitiesType' -and $templateFileContent.definitions.managedIdentitiesType.properties.keys -contains 'systemAssigned') { - $templateFileContent.outputs.Keys | Should -Contain 'systemAssignedMIPrincipalId' -Because 'The AVM specs require a this output. For information please review the [AVM Specs](https://aka.ms/avm/interfaces/managed-identities).' + $matchingTypeKey = $templateFileContent.definitions.Keys | Where-Object { $_ -match 'managedIdentity' } + if ($matchingTypeKey -and $templateFileContent.definitions.$matchingTypeKey.properties.keys -contains 'systemAssigned') { + $templateFileContent.outputs.Keys | Should -Contain 'systemAssignedMIPrincipalId' -Because 'The AVM specs require a this output. For information please review the [AVM Specs](https://azure.github.io/Azure-Verified-Modules/specs/bcp/res/interfaces/#managed-identities).' + + $templateFileContent.outputs.systemAssignedMIPrincipalId.type | Should -Be 'string' -Because 'it should match the AVM spec for managed identities. For information please review the [AVM Specs](https://azure.github.io/Azure-Verified-Modules/specs/bcp/res/interfaces/#managed-identities).' + $templateFileContent.outputs.systemAssignedMIPrincipalId.nullable | Should -Be $true -Because 'the API actually returns null, not an empty string as we should pass it through as such. For information please review the [AVM Specs](https://azure.github.io/Azure-Verified-Modules/specs/bcp/res/interfaces/#managed-identities).' + $templateFileContent.outputs.systemAssignedMIPrincipalId.value | Should -Not -Match "coalesce\(.+, ''\)" -Because 'as the [systemAssignedMIPrincipalId] output is nullable, it should not have an empty string as a default value. For information please review the [AVM Specs](https://azure.github.io/Azure-Verified-Modules/specs/bcp/res/interfaces/#managed-identities).' } else { Set-ItResult -Skipped -Because 'the module template has no [managedIdentitiesType] UDT definition or does not support system-assigned-identities.' }