Skip to content

Commit

Permalink
add api tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Menghua1 committed Jul 5, 2024
1 parent cef4144 commit ffa27d9
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ module apiConfig 'br/public:avm/res/web/site:0.3.9' = if (useAPIM) {
params: {
kind: 'app'
name: api.outputs.name
tags: union(tags, { 'azd-service-name': 'api' })
serverFarmResourceId: appServicePlan.outputs.resourceId
location: location
apiManagementConfiguration: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,16 @@ module apiConfig 'br/public:avm/res/web/site:0.3.9' = if (useAPIM) {
name: 'apiconfig'
scope: rg
params: {
kind: 'app'
kind: 'functionapp'
name: api.outputs.name
tags: union(tags, { 'azd-service-name': 'api' })
siteConfig: {
cors: {
allowedOrigins: [ 'https://portal.azure.com', 'https://ms.portal.azure.com' , webUri ]
}
linuxFxVersion: 'dotnet-isolated|8.0'
use32BitWorkerProcess: false
}
serverFarmResourceId: appServicePlan.outputs.resourceId
location: location
apiManagementConfiguration: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ module apiConfig 'br/public:avm/res/web/site:0.3.9' = if (useAPIM) {
params: {
kind: 'app'
name: api.outputs.name
tags: union(tags, { 'azd-service-name': 'api' })
serverFarmResourceId: appServicePlan.outputs.resourceId
location: location
apiManagementConfiguration: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ module apiConfig 'br/public:avm/res/web/site:0.3.9' = if (useAPIM) {
params: {
kind: 'app'
name: api.outputs.name
tags: union(tags, { 'azd-service-name': 'api' })
serverFarmResourceId: appServicePlan.outputs.resourceId
location: location
apiManagementConfiguration: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,16 @@ module apiConfig 'br/public:avm/res/web/site:0.3.9' = if (useAPIM) {
name: 'apiconfig'
scope: rg
params: {
kind: 'app'
kind: 'functionapp'
name: api.outputs.name
tags: union(tags, { 'azd-service-name': 'api' })
siteConfig: {
cors: {
allowedOrigins: [ 'https://portal.azure.com', 'https://ms.portal.azure.com' , webUri ]
}
linuxFxVersion: 'node|20'
use32BitWorkerProcess: false
}
serverFarmResourceId: appServicePlan.outputs.resourceId
location: location
apiManagementConfiguration: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ module apiConfig 'br/public:avm/res/web/site:0.3.9' = if (useAPIM) {
params: {
kind: 'app'
name: api.outputs.name
tags: union(tags, { 'azd-service-name': 'api' })
serverFarmResourceId: appServicePlan.outputs.resourceId
location: location
apiManagementConfiguration: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,16 @@ module apiConfig 'br/public:avm/res/web/site:0.3.9' = if (useAPIM) {
name: 'apiconfig'
scope: rg
params: {
kind: 'app'
kind: 'functionapp'
name: api.outputs.name
tags: union(tags, { 'azd-service-name': 'api' })
siteConfig: {
cors: {
allowedOrigins: [ 'https://portal.azure.com', 'https://ms.portal.azure.com' , webUri ]
}
linuxFxVersion: 'python|3.10'
use32BitWorkerProcess: false
}
serverFarmResourceId: appServicePlan.outputs.resourceId
location: location
apiManagementConfiguration: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ module apiConfig 'br/public:avm/res/web/site:0.3.9' = if (useAPIM) {
params: {
kind: 'app'
name: api.outputs.name
tags: union(tags, { 'azd-service-name': 'api' })
serverFarmResourceId: appServicePlan.outputs.resourceId
location: location
apiManagementConfiguration: {
Expand Down

0 comments on commit ffa27d9

Please sign in to comment.