From dcf3b9dc92d5933d44ee3c6937e51ac3cd334cfb Mon Sep 17 00:00:00 2001 From: MrMCake Date: Mon, 19 Sep 2022 15:34:40 +0200 Subject: [PATCH 01/12] First commit --- utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 | 1 + 1 file changed, 1 insertion(+) create mode 100644 utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 diff --git a/utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 b/utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 new file mode 100644 index 0000000000..5f282702bb --- /dev/null +++ b/utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 @@ -0,0 +1 @@ + \ No newline at end of file From 7ec16743528e811dfa652d94b4982522a5193e48 Mon Sep 17 00:00:00 2001 From: MrMCake Date: Tue, 20 Sep 2022 21:40:31 +0200 Subject: [PATCH 02/12] Updated EventGrid topics to new dependencies approach --- .github/workflows/ms.eventgrid.topics.yml | 3 +- .../topics/.test/common/dependencies.bicep | 58 ++++++++ .../topics/.test/common/deploy.test.bicep | 91 +++++++++++++ .../topics/.test/min.parameters.json | 9 -- .../topics/.test/min/deploy.test.bicep | 37 ++++++ .../topics/.test/parameters.json | 58 -------- .../topics/.test/pe.parameters.json | 22 ---- .../topics/.test/pe/dependencies.bicep | 47 +++++++ .../topics/.test/pe/deploy.test.bicep | 56 ++++++++ modules/Microsoft.EventGrid/topics/readme.md | 124 +++++++++--------- 10 files changed, 352 insertions(+), 153 deletions(-) create mode 100644 modules/Microsoft.EventGrid/topics/.test/common/dependencies.bicep create mode 100644 modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep delete mode 100644 modules/Microsoft.EventGrid/topics/.test/min.parameters.json create mode 100644 modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep delete mode 100644 modules/Microsoft.EventGrid/topics/.test/parameters.json delete mode 100644 modules/Microsoft.EventGrid/topics/.test/pe.parameters.json create mode 100644 modules/Microsoft.EventGrid/topics/.test/pe/dependencies.bicep create mode 100644 modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep diff --git a/.github/workflows/ms.eventgrid.topics.yml b/.github/workflows/ms.eventgrid.topics.yml index 7e5cb39f33..35f13f0a20 100644 --- a/.github/workflows/ms.eventgrid.topics.yml +++ b/.github/workflows/ms.eventgrid.topics.yml @@ -106,8 +106,7 @@ jobs: - name: 'Using test file [${{ matrix.moduleTestFilePaths }}]' uses: ./.github/actions/templates/validateModuleDeployment with: - templateFilePath: '${{ env.modulePath }}/deploy.bicep' - parameterFilePath: '${{ env.modulePath }}/${{ matrix.moduleTestFilePaths }}' + templateFilePath: '${{ env.modulePath }}/${{ matrix.moduleTestFilePaths }}' location: '${{ env.location }}' resourceGroupName: '${{ env.resourceGroupName }}' subscriptionId: '${{ secrets.ARM_SUBSCRIPTION_ID }}' diff --git a/modules/Microsoft.EventGrid/topics/.test/common/dependencies.bicep b/modules/Microsoft.EventGrid/topics/.test/common/dependencies.bicep new file mode 100644 index 0000000000..d1fabdb239 --- /dev/null +++ b/modules/Microsoft.EventGrid/topics/.test/common/dependencies.bicep @@ -0,0 +1,58 @@ +@description('Optional. The location to deploy to.') +param location string = resourceGroup().location + +@description('Required. The name of the Virtual Network to create.') +param virtualNetworkName string + +@description('Required. The name of the Managed Identity to create.') +param managedIdentityName string + +resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-01-01' = { + name: virtualNetworkName + location: location + properties: { + addressSpace: { + addressPrefixes: [ + '10.0.0.0/24' + ] + } + subnets: [ + { + name: 'defaultSubnet' + properties: { + addressPrefix: '10.0.0.0/24' + } + } + ] + } +} + +resource privateDNSZone 'Microsoft.Network/privateDnsZones@2020-06-01' = { + name: 'privatelink.eventgrid.azure.net' + location: 'global' + + resource virtualNetworkLinks 'virtualNetworkLinks@2020-06-01' = { + name: '${virtualNetwork.name}-vnetlink' + location: 'global' + properties: { + virtualNetwork: { + id: virtualNetwork.id + } + registrationEnabled: false + } + } +} + +resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = { + name: managedIdentityName + location: location +} + +@description('The resource ID of the created Virtual Network Subnet.') +output subnetResourceId string = virtualNetwork.properties.subnets[0].id + +@description('The principal ID of the created Managed Identity.') +output managedIdentityPrincipalId string = managedIdentity.properties.principalId + +@description('The resource ID of the created Private DNS Zone.') +output privateDNSZoneResourceId string = privateDNSZone.id diff --git a/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep new file mode 100644 index 0000000000..91d5d92678 --- /dev/null +++ b/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep @@ -0,0 +1,91 @@ +targetScope = 'subscription' + +// ========== // +// Parameters // +// ========== // +@description('Optional. The name of the resource group to deploy for testing purposes') +@maxLength(90) +param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' + +@description('Optional. The location to deploy resources to') +param location string = deployment().location + +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') +param serviceShort string = 'egtcom' + +// =========== // +// Deployments // +// =========== // + +// General resources +// ================= +resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { + name: resourceGroupName + location: location +} + +module resourceGroupResources 'dependencies.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name, location)}-paramNested' + params: { + virtualNetworkName: 'dep-<>-vnet-${serviceShort}' + managedIdentityName: 'dep-<>-msi-${serviceShort}' + } +} + +// Diagnostics +// =========== +module diagnosticDependencies '../../../../.shared/dependencyConstructs/diagnostic.dependencies.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name, location)}-diagnosticDependencies' + params: { + storageAccountName: 'dep<>diasa${serviceShort}01' + logAnalyticsWorkspaceName: 'dep-<>-law-${serviceShort}' + eventHubNamespaceEventHubName: 'dep-<>-evh-${serviceShort}' + eventHubNamespaceName: 'dep-<>-evhns-${serviceShort}' + location: location + } +} + +// ============== // +// Test Execution // +// ============== // + +module testDeployment '../../deploy.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name)}-test-${serviceShort}' + params: { + name: '<>${serviceShort}001' + diagnosticLogsRetentionInDays: 7 + diagnosticStorageAccountId: diagnosticDependencies.outputs.storageAccountResourceId + diagnosticWorkspaceId: diagnosticDependencies.outputs.logAnalyticsWorkspaceResourceId + diagnosticEventHubAuthorizationRuleId: diagnosticDependencies.outputs.eventHubAuthorizationRuleId + diagnosticEventHubName: diagnosticDependencies.outputs.eventHubNamespaceEventHubName + inboundIpRules: [ + { + action: 'Allow' + ipMask: '40.74.28.0/23' + } + ] + lock: 'CanNotDelete' + privateEndpoints: [ + { + privateDnsZoneGroup: { + privateDNSResourceIds: [ + resourceGroupResources.outputs.privateDNSZoneResourceId + ] + } + service: 'topic' + subnetResourceId: resourceGroupResources.outputs.subnetResourceId + } + ] + roleAssignments: [ + { + principalIds: [ + resourceGroupResources.outputs.managedIdentityPrincipalId + ] + roleDefinitionIdOrName: 'Reader' + } + ] + } +} diff --git a/modules/Microsoft.EventGrid/topics/.test/min.parameters.json b/modules/Microsoft.EventGrid/topics/.test/min.parameters.json deleted file mode 100644 index 5e75832ad8..0000000000 --- a/modules/Microsoft.EventGrid/topics/.test/min.parameters.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "value": "<>-az-egtn-min-001" - } - } -} diff --git a/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep new file mode 100644 index 0000000000..8d51560f5e --- /dev/null +++ b/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep @@ -0,0 +1,37 @@ +targetScope = 'subscription' + +// ========== // +// Parameters // +// ========== // +@description('Optional. The name of the resource group to deploy for testing purposes') +@maxLength(90) +param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' + +@description('Optional. The location to deploy resources to') +param location string = deployment().location + +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') +param serviceShort string = 'egtmin' + +// =========== // +// Deployments // +// =========== // + +// General resources +// ================= +resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { + name: resourceGroupName + location: location +} + +// ============== // +// Test Execution // +// ============== // + +module testDeployment '../../deploy.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name)}-test-${serviceShort}' + params: { + name: '<>${serviceShort}001' + } +} diff --git a/modules/Microsoft.EventGrid/topics/.test/parameters.json b/modules/Microsoft.EventGrid/topics/.test/parameters.json deleted file mode 100644 index 034bbc13ed..0000000000 --- a/modules/Microsoft.EventGrid/topics/.test/parameters.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "value": "<>-az-egtn-x-001" - }, - "lock": { - "value": "CanNotDelete" - }, - "roleAssignments": { - "value": [ - { - "roleDefinitionIdOrName": "Reader", - "principalIds": [ - "<>" - ] - } - ] - }, - "inboundIpRules": { - "value": [ - { - "action": "Allow", - "ipMask": "40.74.28.0/23" - } - ] - }, - "privateEndpoints": { - "value": [ - { - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-005-privateEndpoints", - "service": "topic", - "privateDnsZoneGroup": { - "privateDNSResourceIds": [ - "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.eventgrid.azure.net" - ] - } - } - ] - }, - "diagnosticLogsRetentionInDays": { - "value": 7 - }, - "diagnosticStorageAccountId": { - "value": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Storage/storageAccounts/adp<>azsax001" - }, - "diagnosticWorkspaceId": { - "value": "/subscriptions/<>/resourcegroups/validation-rg/providers/microsoft.operationalinsights/workspaces/adp-<>-az-law-x-001" - }, - "diagnosticEventHubAuthorizationRuleId": { - "value": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.EventHub/namespaces/adp-<>-az-evhns-x-001/AuthorizationRules/RootManageSharedAccessKey" - }, - "diagnosticEventHubName": { - "value": "adp-<>-az-evh-x-001" - } - } -} diff --git a/modules/Microsoft.EventGrid/topics/.test/pe.parameters.json b/modules/Microsoft.EventGrid/topics/.test/pe.parameters.json deleted file mode 100644 index 539c6966a6..0000000000 --- a/modules/Microsoft.EventGrid/topics/.test/pe.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "value": "<>-az-egtn-pe-001" - }, - "privateEndpoints": { - "value": [ - { - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-005-privateEndpoints", - "service": "topic", - "privateDnsZoneGroup": { - "privateDNSResourceIds": [ - "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.eventgrid.azure.net" - ] - } - } - ] - } - } -} diff --git a/modules/Microsoft.EventGrid/topics/.test/pe/dependencies.bicep b/modules/Microsoft.EventGrid/topics/.test/pe/dependencies.bicep new file mode 100644 index 0000000000..7b6231994f --- /dev/null +++ b/modules/Microsoft.EventGrid/topics/.test/pe/dependencies.bicep @@ -0,0 +1,47 @@ +@description('Optional. The location to deploy to.') +param location string = resourceGroup().location + +@description('Required. The name of the Virtual Network to create.') +param virtualNetworkName string + +resource virtualNetwork 'Microsoft.Network/virtualNetworks@2022-01-01' = { + name: virtualNetworkName + location: location + properties: { + addressSpace: { + addressPrefixes: [ + '10.0.0.0/24' + ] + } + subnets: [ + { + name: 'defaultSubnet' + properties: { + addressPrefix: '10.0.0.0/24' + } + } + ] + } +} + +resource privateDNSZone 'Microsoft.Network/privateDnsZones@2020-06-01' = { + name: 'privatelink.eventgrid.azure.net' + location: 'global' + + resource virtualNetworkLinks 'virtualNetworkLinks@2020-06-01' = { + name: '${virtualNetwork.name}-vnetlink' + location: 'global' + properties: { + virtualNetwork: { + id: virtualNetwork.id + } + registrationEnabled: false + } + } +} + +@description('The resource ID of the created Virtual Network Subnet.') +output subnetResourceId string = virtualNetwork.properties.subnets[0].id + +@description('The resource ID of the created Private DNS Zone.') +output privateDNSZoneResourceId string = privateDNSZone.id diff --git a/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep new file mode 100644 index 0000000000..1eec54aa27 --- /dev/null +++ b/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep @@ -0,0 +1,56 @@ +targetScope = 'subscription' + +// ========== // +// Parameters // +// ========== // +@description('Optional. The name of the resource group to deploy for testing purposes') +@maxLength(90) +param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' + +@description('Optional. The location to deploy resources to') +param location string = deployment().location + +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') +param serviceShort string = 'egtpe' + +// =========== // +// Deployments // +// =========== // + +// General resources +// ================= +resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { + name: resourceGroupName + location: location +} + +module resourceGroupResources 'dependencies.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name, location)}-paramNested' + params: { + virtualNetworkName: 'dep-<>-vnet-${serviceShort}' + } +} + +// ============== // +// Test Execution // +// ============== // + +module testDeployment '../../deploy.bicep' = { + scope: resourceGroup + name: '${uniqueString(deployment().name)}-test-${serviceShort}' + params: { + name: '<>${serviceShort}001' + privateEndpoints: [ + { + privateDnsZoneGroup: { + privateDNSResourceIds: [ + resourceGroupResources.outputs.privateDNSZoneResourceId + ] + } + service: 'topic' + subnetResourceId: resourceGroupResources.outputs.subnetResourceId + } + ] + } +} diff --git a/modules/Microsoft.EventGrid/topics/readme.md b/modules/Microsoft.EventGrid/topics/readme.md index 1e1514a405..5eb407f9d6 100644 --- a/modules/Microsoft.EventGrid/topics/readme.md +++ b/modules/Microsoft.EventGrid/topics/readme.md @@ -254,7 +254,7 @@ The following module usage examples are retrieved from the content of the files >**Note**: Each example lists all the required parameters first, followed by the rest - each in alphabetical order. -

Example 1: Min

+

Example 1: Common

@@ -262,53 +262,16 @@ The following module usage examples are retrieved from the content of the files ```bicep module topics './Microsoft.EventGrid/topics/deploy.bicep' = { - name: '${uniqueString(deployment().name)}-Topics' - params: { - name: '<>-az-egtn-min-001' - } -} -``` - -
-

- -

- -via JSON Parameter file - -```json -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "value": "<>-az-egtn-min-001" - } - } -} -``` - -
-

- -

Example 2: Parameters

- -
- -via Bicep module - -```bicep -module topics './Microsoft.EventGrid/topics/deploy.bicep' = { - name: '${uniqueString(deployment().name)}-Topics' + name: '${uniqueString(deployment().name)}-test-egtcom' params: { // Required parameters - name: '<>-az-egtn-x-001' + name: '<>egtcom001' // Non-required parameters - diagnosticEventHubAuthorizationRuleId: '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.EventHub/namespaces/adp-<>-az-evhns-x-001/AuthorizationRules/RootManageSharedAccessKey' - diagnosticEventHubName: 'adp-<>-az-evh-x-001' + diagnosticEventHubAuthorizationRuleId: '' + diagnosticEventHubName: '' diagnosticLogsRetentionInDays: 7 - diagnosticStorageAccountId: '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Storage/storageAccounts/adp<>azsax001' - diagnosticWorkspaceId: '/subscriptions/<>/resourcegroups/validation-rg/providers/microsoft.operationalinsights/workspaces/adp-<>-az-law-x-001' + diagnosticStorageAccountId: '' + diagnosticWorkspaceId: '' inboundIpRules: [ { action: 'Allow' @@ -320,17 +283,17 @@ module topics './Microsoft.EventGrid/topics/deploy.bicep' = { { privateDnsZoneGroup: { privateDNSResourceIds: [ - '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.eventgrid.azure.net' + '' ] } service: 'topic' - subnetResourceId: '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-005-privateEndpoints' + subnetResourceId: '' } ] roleAssignments: [ { principalIds: [ - '<>' + '' ] roleDefinitionIdOrName: 'Reader' } @@ -353,23 +316,23 @@ module topics './Microsoft.EventGrid/topics/deploy.bicep' = { "parameters": { // Required parameters "name": { - "value": "<>-az-egtn-x-001" + "value": "<>egtcom001" }, // Non-required parameters "diagnosticEventHubAuthorizationRuleId": { - "value": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.EventHub/namespaces/adp-<>-az-evhns-x-001/AuthorizationRules/RootManageSharedAccessKey" + "value": "" }, "diagnosticEventHubName": { - "value": "adp-<>-az-evh-x-001" + "value": "" }, "diagnosticLogsRetentionInDays": { "value": 7 }, "diagnosticStorageAccountId": { - "value": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Storage/storageAccounts/adp<>azsax001" + "value": "" }, "diagnosticWorkspaceId": { - "value": "/subscriptions/<>/resourcegroups/validation-rg/providers/microsoft.operationalinsights/workspaces/adp-<>-az-law-x-001" + "value": "" }, "inboundIpRules": { "value": [ @@ -387,11 +350,11 @@ module topics './Microsoft.EventGrid/topics/deploy.bicep' = { { "privateDnsZoneGroup": { "privateDNSResourceIds": [ - "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.eventgrid.azure.net" + "" ] }, "service": "topic", - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-005-privateEndpoints" + "subnetResourceId": "" } ] }, @@ -399,7 +362,7 @@ module topics './Microsoft.EventGrid/topics/deploy.bicep' = { "value": [ { "principalIds": [ - "<>" + "" ], "roleDefinitionIdOrName": "Reader" } @@ -412,6 +375,43 @@ module topics './Microsoft.EventGrid/topics/deploy.bicep' = {

+

Example 2: Min

+ +
+ +via Bicep module + +```bicep +module topics './Microsoft.EventGrid/topics/deploy.bicep' = { + name: '${uniqueString(deployment().name)}-test-egtmin' + params: { + name: '<>egtmin001' + } +} +``` + +
+

+ +

+ +via JSON Parameter file + +```json +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "name": { + "value": "<>egtmin001" + } + } +} +``` + +
+

+

Example 3: Pe

@@ -420,20 +420,20 @@ module topics './Microsoft.EventGrid/topics/deploy.bicep' = { ```bicep module topics './Microsoft.EventGrid/topics/deploy.bicep' = { - name: '${uniqueString(deployment().name)}-Topics' + name: '${uniqueString(deployment().name)}-test-egtpe' params: { // Required parameters - name: '<>-az-egtn-pe-001' + name: '<>egtpe001' // Non-required parameters privateEndpoints: [ { privateDnsZoneGroup: { privateDNSResourceIds: [ - '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.eventgrid.azure.net' + '' ] } service: 'topic' - subnetResourceId: '/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-005-privateEndpoints' + subnetResourceId: '' } ] } @@ -454,7 +454,7 @@ module topics './Microsoft.EventGrid/topics/deploy.bicep' = { "parameters": { // Required parameters "name": { - "value": "<>-az-egtn-pe-001" + "value": "<>egtpe001" }, // Non-required parameters "privateEndpoints": { @@ -462,11 +462,11 @@ module topics './Microsoft.EventGrid/topics/deploy.bicep' = { { "privateDnsZoneGroup": { "privateDNSResourceIds": [ - "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/privateDnsZones/privatelink.eventgrid.azure.net" + "" ] }, "service": "topic", - "subnetResourceId": "/subscriptions/<>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-<>-az-vnet-x-001/subnets/<>-az-subnet-x-005-privateEndpoints" + "subnetResourceId": "" } ] } From 782d00ed8a49b3fcd33538ad29fa6445d4eb3471 Mon Sep 17 00:00:00 2001 From: MrMCake Date: Tue, 27 Sep 2022 21:42:47 +0200 Subject: [PATCH 03/12] Cleanup --- utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 | 1 - 1 file changed, 1 deletion(-) delete mode 100644 utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 diff --git a/utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 b/utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 deleted file mode 100644 index 5f282702bb..0000000000 --- a/utilities/tools/REST2CARML/Set-ModuleFolderData.ps1 +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file From 7dfb8ed251b2f37b9475b67319dc5a41f3f204ed Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Mon, 3 Oct 2022 22:20:37 +0200 Subject: [PATCH 04/12] Update modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep index 1eec54aa27..d4e03bc961 100644 --- a/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep @@ -3,7 +3,7 @@ targetScope = 'subscription' // ========== // // Parameters // // ========== // -@description('Optional. The name of the resource group to deploy for testing purposes') +@description('Optional. The name of the resource group to deploy for testing purposes.') @maxLength(90) param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' From fe64e8e3e339c9a81bd684edc1b44dd94fe8e3d3 Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Mon, 3 Oct 2022 22:20:42 +0200 Subject: [PATCH 05/12] Update modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep index d4e03bc961..c472b87422 100644 --- a/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep @@ -7,7 +7,7 @@ targetScope = 'subscription' @maxLength(90) param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' -@description('Optional. The location to deploy resources to') +@description('Optional. The location to deploy resources to.') param location string = deployment().location @description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') From 5103195555a8e85c9aca651f7ae843d00124f723 Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Mon, 3 Oct 2022 22:20:47 +0200 Subject: [PATCH 06/12] Update modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep index c472b87422..0867f57182 100644 --- a/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/pe/deploy.test.bicep @@ -10,7 +10,7 @@ param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' @description('Optional. The location to deploy resources to.') param location string = deployment().location -@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints.') param serviceShort string = 'egtpe' // =========== // From c98de21218dd2f1d177b330478226c56c41fbb8d Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Mon, 3 Oct 2022 22:20:52 +0200 Subject: [PATCH 07/12] Update modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep index 8d51560f5e..bb2178bb5a 100644 --- a/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep @@ -7,7 +7,7 @@ targetScope = 'subscription' @maxLength(90) param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' -@description('Optional. The location to deploy resources to') +@description('Optional. The location to deploy resources to.') param location string = deployment().location @description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') From e553d672d4fe7e50eb76612d2c7e460174e0beeb Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Mon, 3 Oct 2022 22:20:57 +0200 Subject: [PATCH 08/12] Update modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep index bb2178bb5a..65f606f900 100644 --- a/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep @@ -10,7 +10,7 @@ param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' @description('Optional. The location to deploy resources to.') param location string = deployment().location -@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints.') param serviceShort string = 'egtmin' // =========== // From 2cf8120720ec2e95a01e95386de4f920de4507ce Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Mon, 3 Oct 2022 22:21:04 +0200 Subject: [PATCH 09/12] Update modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep index 65f606f900..d87941aaac 100644 --- a/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/min/deploy.test.bicep @@ -3,7 +3,7 @@ targetScope = 'subscription' // ========== // // Parameters // // ========== // -@description('Optional. The name of the resource group to deploy for testing purposes') +@description('Optional. The name of the resource group to deploy for testing purposes.') @maxLength(90) param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' From 2cbb261548a869cf98da912f5bf4755d5092c4a2 Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Tue, 4 Oct 2022 19:10:51 +0200 Subject: [PATCH 10/12] Update modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- .../Microsoft.EventGrid/topics/.test/common/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep index 91d5d92678..5d282c03f2 100644 --- a/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep @@ -3,7 +3,7 @@ targetScope = 'subscription' // ========== // // Parameters // // ========== // -@description('Optional. The name of the resource group to deploy for testing purposes') +@description('Optional. The name of the resource group to deploy for testing purposes.') @maxLength(90) param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' From 4ac2635adc836f6105ad1d85114555dd6ef81bf1 Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Tue, 4 Oct 2022 19:10:57 +0200 Subject: [PATCH 11/12] Update modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- .../Microsoft.EventGrid/topics/.test/common/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep index 5d282c03f2..00c5c255d8 100644 --- a/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep @@ -7,7 +7,7 @@ targetScope = 'subscription' @maxLength(90) param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' -@description('Optional. The location to deploy resources to') +@description('Optional. The location to deploy resources to.') param location string = deployment().location @description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') From 1a0ac53ada2ab229e14951b42794b15f4baef946 Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Tue, 4 Oct 2022 19:11:05 +0200 Subject: [PATCH 12/12] Update modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- .../Microsoft.EventGrid/topics/.test/common/deploy.test.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep b/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep index 00c5c255d8..34b2e72f3f 100644 --- a/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep +++ b/modules/Microsoft.EventGrid/topics/.test/common/deploy.test.bicep @@ -10,7 +10,7 @@ param resourceGroupName string = 'ms.eventgrid.topics-${serviceShort}-rg' @description('Optional. The location to deploy resources to.') param location string = deployment().location -@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints') +@description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints.') param serviceShort string = 'egtcom' // =========== //