Skip to content

Commit

Permalink
update-param
Browse files Browse the repository at this point in the history
  • Loading branch information
jianingwang123 committed Sep 10, 2024
1 parent 193f617 commit 74f6ff1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions avm/ptn/azd/apim-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module apimApi 'br/public:avm/ptn/azd/apim-api:<version>' = {
apiDisplayName: 'apd-aapmin'
apiName: 'an-aapmin001'
apiPath: 'apipath-aapmin'
name: 'as-aapmin001'
name: '<name>'
webFrontendUrl: '<webFrontendUrl>'
// Non-required parameters
location: '<location>'
Expand Down Expand Up @@ -88,7 +88,7 @@ module apimApi 'br/public:avm/ptn/azd/apim-api:<version>' = {
"value": "apipath-aapmin"
},
"name": {
"value": "as-aapmin001"
"value": "<name>"
},
"webFrontendUrl": {
"value": "<webFrontendUrl>"
Expand Down
7 changes: 5 additions & 2 deletions avm/ptn/azd/apim-api/tests/e2e/defaults/dependencies.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: '[email protected]'
publisherName: publisherName
location: location
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions avm/ptn/azd/apim-api/tests/e2e/defaults/main.test.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand All @@ -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
Expand Down

0 comments on commit 74f6ff1

Please sign in to comment.