diff --git a/avm/ptn/security/security-center/tests/e2e/defaults/main.test.bicep b/avm/ptn/security/security-center/tests/e2e/defaults/main.test.bicep index abe3ae0e36..663e3f3c33 100644 --- a/avm/ptn/security/security-center/tests/e2e/defaults/main.test.bicep +++ b/avm/ptn/security/security-center/tests/e2e/defaults/main.test.bicep @@ -12,7 +12,7 @@ metadata description = 'This instance deploys the module with default parameters param resourceGroupName string = 'dep-${namePrefix}-security.azureSecurityCenter-${serviceShort}-rg' @description('Optional. The location to deploy resources to.') -param location string = deployment().location +param resourceLocation 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 = 'sascmin' @@ -28,14 +28,14 @@ param namePrefix string = '#_namePrefix_#' // ================= resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { name: resourceGroupName - location: location + location: resourceLocation } module nestedDependencies 'dependencies.bicep' = { scope: resourceGroup - name: '${uniqueString(deployment().name, location)}-nestedDependencies' + name: '${uniqueString(deployment().name, resourceLocation)}-nestedDependencies' params: { - location: location + location: resourceLocation logAnalyticsWorkspaceName: 'dep-${namePrefix}-law-${serviceShort}' } } @@ -47,11 +47,11 @@ module nestedDependencies 'dependencies.bicep' = { @batchSize(1) module testDeployment '../../../main.bicep' = [ for iteration in ['init', 'idem']: { - name: '${uniqueString(deployment().name, location)}-test-${serviceShort}-${iteration}' + name: '${uniqueString(deployment().name, resourceLocation)}-test-${serviceShort}-${iteration}' params: { scope: '/subscriptions/${subscription().subscriptionId}' workspaceId: nestedDependencies.outputs.logAnalyticsWorkspaceResourceId - location: location + location: resourceLocation } } ] diff --git a/avm/ptn/security/security-center/tests/e2e/max/main.test.bicep b/avm/ptn/security/security-center/tests/e2e/max/main.test.bicep index 32dfeb6f8d..8ba911c033 100644 --- a/avm/ptn/security/security-center/tests/e2e/max/main.test.bicep +++ b/avm/ptn/security/security-center/tests/e2e/max/main.test.bicep @@ -12,7 +12,7 @@ metadata description = 'This instance deploys the module with default parameters param resourceGroupName string = 'dep-${namePrefix}-security.azureSecurityCenter-${serviceShort}-rg' @description('Optional. The location to deploy resources to.') -param location string = deployment().location +param resourceLocation 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 = 'sascmax' @@ -28,14 +28,14 @@ param namePrefix string = '#_namePrefix_#' // ================= resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { name: resourceGroupName - location: location + location: resourceLocation } module nestedDependencies 'dependencies.bicep' = { scope: resourceGroup - name: '${uniqueString(deployment().name, location)}-nestedDependencies' + name: '${uniqueString(deployment().name, resourceLocation)}-nestedDependencies' params: { - location: location + location: resourceLocation logAnalyticsWorkspaceName: 'dep-${namePrefix}-law-${serviceShort}' } } @@ -47,11 +47,11 @@ module nestedDependencies 'dependencies.bicep' = { @batchSize(1) module testDeployment '../../../main.bicep' = [ for iteration in ['init', 'idem']: { - name: '${uniqueString(deployment().name, location)}-test-${serviceShort}-${iteration}' + name: '${uniqueString(deployment().name, resourceLocation)}-test-${serviceShort}-${iteration}' params: { scope: '/subscriptions/${subscription().subscriptionId}' workspaceId: nestedDependencies.outputs.logAnalyticsWorkspaceResourceId - location: location + location: resourceLocation securityContactProperties: { alertNotifications: 'Off' alertsToAdmins: 'Off' diff --git a/avm/ptn/security/security-center/tests/e2e/waf-aligned/main.test.bicep b/avm/ptn/security/security-center/tests/e2e/waf-aligned/main.test.bicep index c41eaee4cf..905a4ca9ab 100644 --- a/avm/ptn/security/security-center/tests/e2e/waf-aligned/main.test.bicep +++ b/avm/ptn/security/security-center/tests/e2e/waf-aligned/main.test.bicep @@ -12,7 +12,7 @@ metadata description = 'This instance deploys the module in alignment with the b param resourceGroupName string = 'dep-${namePrefix}-security.azureSecurityCenter-${serviceShort}-rg' @description('Optional. The location to deploy resources to.') -param location string = deployment().location +param resourceLocation 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 = 'sascwaf' @@ -28,15 +28,15 @@ param namePrefix string = '#_namePrefix_#' // ================= resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { name: resourceGroupName - location: location + location: resourceLocation } module nestedDependencies 'dependencies.bicep' = { scope: resourceGroup - name: '${uniqueString(deployment().name, location)}-nestedDependencies' + name: '${uniqueString(deployment().name, resourceLocation)}-nestedDependencies' params: { logAnalyticsWorkspaceName: 'dep-${namePrefix}-law-${serviceShort}' - location: location + location: resourceLocation } } @@ -47,11 +47,11 @@ module nestedDependencies 'dependencies.bicep' = { @batchSize(1) module testDeployment '../../../main.bicep' = [ for iteration in ['init', 'idem']: { - name: '${uniqueString(deployment().name, location)}-test-${serviceShort}-${iteration}' + name: '${uniqueString(deployment().name, resourceLocation)}-test-${serviceShort}-${iteration}' params: { scope: '/subscriptions/${subscription().subscriptionId}' workspaceId: nestedDependencies.outputs.logAnalyticsWorkspaceResourceId - location: location + location: resourceLocation } } ]