-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPublish-App.ps1
24 lines (19 loc) · 882 Bytes
/
Publish-App.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<#
.SYNOPSIS
This script builds and publishes measurement listener to Azure
.DESCRIPTION
This assumes that dotnet sdk and Azure Powershell are installed
.PARAMETER SettinsFile
Settings file that contains environment settings. Defaults to 'developer-settings.json'
#>
param(
[Parameter()][string]$SettingsFile = 'developer-settings.json'
)
$ErrorActionPreference = "Stop"
Set-StrictMode -Version Latest
.$PSScriptRoot/scripts/FunctionUtil.ps1
$settingsJson = Get-DeveloperSettings -SettingsFile $SettingsFile
Write-Host 'Deploying function app...'
$archivePath = Join-Path -Path (Resolve-Path ".\").Path -ChildPath 'publish.zip'
.$PSScriptRoot/scripts/Build-Backend.ps1 -ZipPath $archivePath
.$PSScriptRoot/scripts/Deploy-FunctionApp.ps1 -ResourceGroup $settingsJson.ResourceGroup -AppName "func-$($settingsJson.ResourceGroup)" -ZipFile $archivePath