From 8b28194308fc07d6096158cc64a7853bd7a4dde6 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Fri, 14 Feb 2025 17:43:19 +0100 Subject: [PATCH 1/4] Prepared change to PE interface --- .../includes/interfaces/bicep/int.pe.udt.schema1.bicep | 6 +++--- .../includes/interfaces/bicep/int.pe.udt.schema2.bicep | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/static/includes/interfaces/bicep/int.pe.udt.schema1.bicep b/docs/static/includes/interfaces/bicep/int.pe.udt.schema1.bicep index 39cc09587..4b81570d1 100644 --- a/docs/static/includes/interfaces/bicep/int.pe.udt.schema1.bicep +++ b/docs/static/includes/interfaces/bicep/int.pe.udt.schema1.bicep @@ -14,8 +14,8 @@ param privateEndpoints privateEndpointSingleServiceType[]? module >singularMainResourceType<_privateEndpoints 'br/public:avm/res/network/private-endpoint:>version<' = [for (privateEndpoint, index) in (privateEndpoints ?? []): { name: '${uniqueString(deployment().name, location)}->singularMainResourceType<-PrivateEndpoint-${index}' scope: resourceGroup( - split(privateEndpoint.?resourceGroupResourceId ?? privateEndpoint.?subnetResourceId, '/')[2], - split(privateEndpoint.?resourceGroupResourceId ?? privateEndpoint.?subnetResourceId, '/')[4] + split(privateEndpoint.?resourceGroupResourceId ?? resourceGroup().id, '/')[2], + split(privateEndpoint.?resourceGroupResourceId ?? resourceGroup().id, '/')[4] ) params: { // Variant 1: A default service can be assumed (i.e., for services that only have one private endpoint type) @@ -59,7 +59,7 @@ module >singularMainResourceType<_privateEndpoints 'br/public:avm/res/network/pr @description('The private endpoints of the resource.') output privateEndpoints privateEndpointOutputType[] = [ - for (pe, index) in (!empty(privateEndpoints) ? array(privateEndpoints) : []): { + for (pe, index) in (privateEndpoints ?? []): { name: >singularMainResourceType<_privateEndpoints[index].outputs.name resourceId: >singularMainResourceType<_privateEndpoints[index].outputs.resourceId groupId: >singularMainResourceType<_privateEndpoints[index].outputs.?groupId! diff --git a/docs/static/includes/interfaces/bicep/int.pe.udt.schema2.bicep b/docs/static/includes/interfaces/bicep/int.pe.udt.schema2.bicep index f4aa84eaf..b9a34f734 100644 --- a/docs/static/includes/interfaces/bicep/int.pe.udt.schema2.bicep +++ b/docs/static/includes/interfaces/bicep/int.pe.udt.schema2.bicep @@ -14,8 +14,8 @@ param privateEndpoints privateEndpointMultiServiceType[]? module >singularMainResourceType<_privateEndpoints 'br/public:avm/res/network/private-endpoint:>version<' = [for (privateEndpoint, index) in (privateEndpoints ?? []): { name: '${uniqueString(deployment().name, location)}->singularMainResourceType<-PrivateEndpoint-${index}' scope: resourceGroup( - split(privateEndpoint.?resourceGroupResourceId ?? privateEndpoint.?subnetResourceId, '/')[2], - split(privateEndpoint.?resourceGroupResourceId ?? privateEndpoint.?subnetResourceId, '/')[4] + split(privateEndpoint.?resourceGroupResourceId ?? resourceGroup().id, '/')[2], + split(privateEndpoint.?resourceGroupResourceId ?? resourceGroup().id, '/')[4] ) params: { // Variant 2: A default service cannot be assumed (i.e., for services that have more than one private endpoint type, like Storage Account) @@ -59,7 +59,7 @@ module >singularMainResourceType<_privateEndpoints 'br/public:avm/res/network/pr @description('The private endpoints of the resource.') output privateEndpoints privateEndpointOutputType[] = [ - for (pe, index) in (!empty(privateEndpoints) ? array(privateEndpoints) : []): { + for (pe, index) in (privateEndpoints ?? []): { name: >singularMainResourceType<_privateEndpoints[index].outputs.name resourceId: >singularMainResourceType<_privateEndpoints[index].outputs.resourceId groupId: >singularMainResourceType<_privateEndpoints[index].outputs.?groupId! From 43a3b9cfb18744c4665f001904b546e54172bc57 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Tue, 20 May 2025 08:00:51 +0200 Subject: [PATCH 2/4] Update to latest --- .github/workflows/platform.updateModuleRegistryTables.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/platform.updateModuleRegistryTables.yml b/.github/workflows/platform.updateModuleRegistryTables.yml index f8d946e9e..7c34d3e7c 100644 --- a/.github/workflows/platform.updateModuleRegistryTables.yml +++ b/.github/workflows/platform.updateModuleRegistryTables.yml @@ -8,7 +8,7 @@ on: env: pipelinePrincipalGitUserName: "AVMPipelinePrincipal" pipelinePrincipalGitUserEmail: "AVM@noreply.github.com" - branch_name: "update-module-features-table" + branch_name: "update-module-features-table_${{ github.event.repository.updated_at}}" pr_title: "Update module features table (automated)" pr_body: "This is an automated ``pull_request`` containing updates to the module status badges table that is stored at ``docs/content/indexes/bicep/_index.md``, as well as the module features CSV stored at ``docs/static/module-features/bicepFeatures.csv``.\nPlease review the ``files changed`` tab to review changes." From 7626a141a2297f338657f779d5ba086a221cc5e3 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Fri, 20 Jun 2025 15:03:23 +0200 Subject: [PATCH 3/4] Update to latest --- docs/static/includes/interfaces/bicep/int.locks.input.bicep | 6 +++++- .../includes/interfaces/bicep/int.locks.udt.schema.bicep | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/static/includes/interfaces/bicep/int.locks.input.bicep b/docs/static/includes/interfaces/bicep/int.locks.input.bicep index 02ab7e44a..72f134487 100644 --- a/docs/static/includes/interfaces/bicep/int.locks.input.bicep +++ b/docs/static/includes/interfaces/bicep/int.locks.input.bicep @@ -1 +1,5 @@ -lock: 'CanNotDelete' +lock: { + kind: 'CanNotDelete' + name: 'myCustomLockName' + notes: 'This is a custom lock note.' +} diff --git a/docs/static/includes/interfaces/bicep/int.locks.udt.schema.bicep b/docs/static/includes/interfaces/bicep/int.locks.udt.schema.bicep index 9a0948b1b..4e9f2efe4 100644 --- a/docs/static/includes/interfaces/bicep/int.locks.udt.schema.bicep +++ b/docs/static/includes/interfaces/bicep/int.locks.udt.schema.bicep @@ -1,4 +1,3 @@ - // ============== // // Parameters // // ============== // @@ -15,7 +14,9 @@ resource >singularMainResourceType<_lock 'Microsoft.Authorization/locks@2020-05- name: lock.?name ?? 'lock-${name}' properties: { level: lock.?kind ?? '' - notes: lock.?kind == 'CanNotDelete' ? 'Cannot delete resource or child resources.' : 'Cannot delete or modify the resource or child resources.' + notes: lock.?notes ?? (lock.?kind == 'CanNotDelete' + ? 'Cannot delete resource or child resources.' + : 'Cannot delete or modify the resource or child resources.') } scope: >singularMainResourceType< } From e48dd50d9d64dddcaf909968e31543d7b1dec831 Mon Sep 17 00:00:00 2001 From: AlexanderSehr Date: Fri, 20 Jun 2025 15:05:12 +0200 Subject: [PATCH 4/4] Update to latest --- .github/workflows/platform.updateModuleRegistryTables.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/platform.updateModuleRegistryTables.yml b/.github/workflows/platform.updateModuleRegistryTables.yml index a5d66465b..2433f567b 100644 --- a/.github/workflows/platform.updateModuleRegistryTables.yml +++ b/.github/workflows/platform.updateModuleRegistryTables.yml @@ -8,7 +8,7 @@ on: env: pipelinePrincipalGitUserName: "AVMPipelinePrincipal" pipelinePrincipalGitUserEmail: "AVM@noreply.github.com" - branch_name: "update-module-features-table_${{ github.event.repository.updated_at}}" + branch_name: "update-module-features-table" pr_title: "Update module features table (automated)" pr_body: "This is an automated ``pull_request`` containing updates to the module status badges table that is stored at ``docs/content/indexes/bicep/_index.md``, as well as the module features CSV stored at ``docs/static/module-features/bicepFeatures.csv``.\nPlease review the ``files changed`` tab to review changes."