-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
692 additions
and
220 deletions.
There are no files selected for viewing
99 changes: 0 additions & 99 deletions
99
templates/todo/common/infra/bicep/app/apim-api-settings.bicep
This file was deleted.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
templates/todo/common/infra/bicep/app/website-config.bicep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@description('Resource name for backend Web App or Function App') | ||
param apiAppName string = '' | ||
|
||
@description('Resource name to uniquely identify this API within the API Management service instance') | ||
@minLength(1) | ||
param apiName string | ||
|
||
@description('Resource ID for the existing apim service') | ||
param apimServiceId string | ||
|
||
var appNameForBicep = !empty(apiAppName) ? apiAppName : 'placeholderName' | ||
|
||
resource apiAppProperties 'Microsoft.Web/sites/config@2022-03-01' = if (!empty(apiAppName)) { | ||
name: '${appNameForBicep}/web' | ||
kind: 'string' | ||
properties: { | ||
apiManagementConfig: { | ||
id: '${apimServiceId}/apis/${apiName}' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.