Skip to content

Commit

Permalink
Merge pull request #1469 from OfficeDev/v-mfurquan/meeting-live-code-…
Browse files Browse the repository at this point in the history
…deployment-update

Meeting live code Interview Sample Deployment Code Update
  • Loading branch information
Mohammed-MSFT authored Dec 5, 2024
2 parents d3b5431 + 27f4d9c commit e49a283
Show file tree
Hide file tree
Showing 7 changed files with 11,722 additions and 11,124 deletions.
6,891 changes: 1,671 additions & 5,220 deletions samples/meetings-live-code-interview/nodejs/api/package-lock.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions samples/meetings-live-code-interview/nodejs/env/.env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file includes environment variables that will be committed to git by default.

# Built-in environment variables
TEAMSFX_ENV=dev
APP_NAME_SUFFIX=dev
TEAMS_APP_NAME=meetings-live-code-interview
# Updating AZURE_SUBSCRIPTION_ID or AZURE_RESOURCE_GROUP_NAME after provision may also require an update to RESOURCE_SUFFIX, because some services require a globally unique name across subscriptions/resource groups.
AZURE_SUBSCRIPTION_ID=
AZURE_RESOURCE_GROUP_NAME=
RESOURCE_SUFFIX=

# Generated during provision, you can also add your own variables. If you're adding a secret value, add SECRET_ prefix to the name so Teams Toolkit can handle them properly
TEAMS_APP_ID=
AZURE_STATIC_WEB_APPS_RESOURCE_ID=
TAB_ENDPOINT=
TEAMS_APP_TENANT_ID=
TAB_DOMAIN=
TAB_HOSTNAME=
26 changes: 26 additions & 0 deletions samples/meetings-live-code-interview/nodejs/infra/azure.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@maxLength(20)
@minLength(4)
param resourceBaseName string
param staticWebAppSku string

param staticWebAppName string = resourceBaseName

// Azure Static Web Apps that hosts your static web site
resource swa 'Microsoft.Web/staticSites@2022-09-01' = {
name: staticWebAppName
// SWA do not need location setting
location: 'centralus'
sku: {
name: staticWebAppSku
tier: staticWebAppSku
}
properties: {}
}

var siteDomain = swa.properties.defaultHostname

// The output will be persisted in .env.{envName}. Visit https://aka.ms/teamsfx-actions/arm-deploy for more details.
output AZURE_STATIC_WEB_APPS_RESOURCE_ID string = swa.id
output TAB_DOMAIN string = siteDomain
output TAB_HOSTNAME string = siteDomain
output TAB_ENDPOINT string = 'https://${siteDomain}'
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"resourceBaseName": {
"value": "tab${{RESOURCE_SUFFIX}}"
},
"staticWebAppSku": {
"value": "Free"
}
}
}
Loading

0 comments on commit e49a283

Please sign in to comment.