From 74f6ff1ded984457b3389770493849df9edb515a Mon Sep 17 00:00:00 2001 From: "Jianing Wang (WICRESOFT NORTH AMERICA LTD)" Date: Tue, 10 Sep 2024 15:23:36 +0800 Subject: [PATCH] update-param --- avm/ptn/azd/apim-api/README.md | 4 ++-- avm/ptn/azd/apim-api/tests/e2e/defaults/dependencies.bicep | 7 +++++-- avm/ptn/azd/apim-api/tests/e2e/defaults/main.test.bicep | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/avm/ptn/azd/apim-api/README.md b/avm/ptn/azd/apim-api/README.md index fbb42bde8af..681638af793 100644 --- a/avm/ptn/azd/apim-api/README.md +++ b/avm/ptn/azd/apim-api/README.md @@ -51,7 +51,7 @@ module apimApi 'br/public:avm/ptn/azd/apim-api:' = { apiDisplayName: 'apd-aapmin' apiName: 'an-aapmin001' apiPath: 'apipath-aapmin' - name: 'as-aapmin001' + name: '' webFrontendUrl: '' // Non-required parameters location: '' @@ -88,7 +88,7 @@ module apimApi 'br/public:avm/ptn/azd/apim-api:' = { "value": "apipath-aapmin" }, "name": { - "value": "as-aapmin001" + "value": "" }, "webFrontendUrl": { "value": "" diff --git a/avm/ptn/azd/apim-api/tests/e2e/defaults/dependencies.bicep b/avm/ptn/azd/apim-api/tests/e2e/defaults/dependencies.bicep index a742060f942..97bd5623cde 100644 --- a/avm/ptn/azd/apim-api/tests/e2e/defaults/dependencies.bicep +++ b/avm/ptn/azd/apim-api/tests/e2e/defaults/dependencies.bicep @@ -2,7 +2,7 @@ param location string = resourceGroup().location @description('Required. The name of the API Management service to create.') -param apimServicename string +param apimServiceName string @description('Required. The name of the owner of the API Management service.') param publisherName string @@ -22,7 +22,7 @@ param applicationInsightsName string module apimService 'br/public:avm/res/api-management/service:0.4.0' = { name: 'serviceDeployment' params: { - name: apimServicename + name: apimServiceName publisherEmail: 'apimgmt-noreply@mail.windowsazure.com' publisherName: publisherName location: location @@ -79,3 +79,6 @@ resource applicationInsights 'Microsoft.Insights/components@2020-02-02' = { @description('The default hostname of the site.') output siteHostName string = 'https://${app.outputs.defaultHostname}' + +@description('The name of the API Management service.') +output apimOutputName string = apimService.outputs.name diff --git a/avm/ptn/azd/apim-api/tests/e2e/defaults/main.test.bicep b/avm/ptn/azd/apim-api/tests/e2e/defaults/main.test.bicep index d8b40085b3e..f6111132ddc 100644 --- a/avm/ptn/azd/apim-api/tests/e2e/defaults/main.test.bicep +++ b/avm/ptn/azd/apim-api/tests/e2e/defaults/main.test.bicep @@ -36,7 +36,7 @@ module nestedDependencies 'dependencies.bicep' = { params: { appServicePlanName: 'dep-${namePrefix}-sp-${serviceShort}' appServiceName: 'dep-${namePrefix}-aps-${serviceShort}' - apimServicename: '${namePrefix}-as-${serviceShort}001' + apimServiceName: '${namePrefix}-as-${serviceShort}001' publisherName: 'dep-${namePrefix}-pn-x-001' applicationInsightsName: 'dep-${namePrefix}-ais-${serviceShort}' logAnalyticsWorkspaceName: 'dep-${namePrefix}-law-${serviceShort}' @@ -52,7 +52,7 @@ module testDeployment '../../../main.bicep' = { name: '${uniqueString(deployment().name, resourceLocation)}-test-${serviceShort}' params: { location: resourceLocation - name: '${namePrefix}-as-${serviceShort}001' + name: nestedDependencies.outputs.apimOutputName apiDisplayName: '${namePrefix}-apd-${serviceShort}' apiPath: '${namePrefix}-apipath-${serviceShort}' webFrontendUrl: nestedDependencies.outputs.siteHostName