generated from cwiederspan/cdw-template-20240128
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
10d5f6a
commit 5d94854
Showing
7 changed files
with
139 additions
and
209 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,10 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json | ||
|
||
# This is an example starter azure.yaml file containing several example services in comments below. | ||
# Make changes as needed to describe your application setup. | ||
# To learn more about the azure.yaml file, visit https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/azd-schema | ||
|
||
# Name of the application. | ||
name: azd-starter | ||
# services: | ||
# ## An example for a python API service. | ||
# ## The service is named 'python-api'. | ||
# ## The language is 'python'. | ||
# ## The source code is located in the project (azure.yaml) directory. | ||
# ## The service will be hosted on Azure App Service. | ||
# python-api: | ||
# language: python | ||
# project: ./ | ||
# host: appservice | ||
# ## An example for a NodeJS API, located in src/api. | ||
# nodejs-api: | ||
# language: js | ||
# project: ./src/api | ||
# host: appservice | ||
# ## An example for a React front-end app. | ||
# ## The src/react-app/build folder is where the app is built to after `npm run build`. | ||
# react-web: | ||
# language: js | ||
# project: ./src/react-app | ||
# host: appservice | ||
# dist: build | ||
name: my-application | ||
services: | ||
api: | ||
language: csharp | ||
project: ./src/api | ||
host: appservice |
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
param name string | ||
param location string = resourceGroup().location | ||
param tags object = {} | ||
|
||
param allowedOrigins array = [] | ||
param appCommandLine string = '' | ||
param applicationInsightsName string = '' | ||
param appServicePlanId string | ||
@secure() | ||
param appSettings object = {} | ||
param keyVaultName string | ||
param serviceName string = 'api' | ||
|
||
module api '../core/host/appservice.bicep' = { | ||
name: '${name}-app-module' | ||
params: { | ||
name: name | ||
location: location | ||
tags: union(tags, { 'azd-service-name': serviceName }) | ||
allowedOrigins: allowedOrigins | ||
appCommandLine: appCommandLine | ||
applicationInsightsName: applicationInsightsName | ||
appServicePlanId: appServicePlanId | ||
appSettings: appSettings | ||
keyVaultName: keyVaultName | ||
runtimeName: 'dotnetcore' | ||
runtimeVersion: '8.0' | ||
scmDoBuildDuringDeployment: false | ||
} | ||
} | ||
|
||
output SERVICE_API_IDENTITY_PRINCIPAL_ID string = api.outputs.identityPrincipalId | ||
output SERVICE_API_NAME string = api.outputs.name | ||
output SERVICE_API_URI string = api.outputs.uri |
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.