Skip to content

Commit f6d8166

Browse files
Fix deploy scripts
1 parent 21ab266 commit f6d8166

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Check the constant variables in `deploy/_vars.ps1`. Make changes if required.
1818

1919
cd deploy
2020
az login
21-
deploy-azure.ps1
22-
deploy-sprocs.ps1
23-
deploy-function.ps1 -FunctionLocation "Australia East"
24-
deploy-function.ps1 -FunctionLocation "Australia Southeast"
21+
./deploy-azure.ps1
22+
./deploy-sprocs.ps1
23+
./deploy-function.ps1 -FunctionLocation "australiaeast"
24+
./deploy-function.ps1 -FunctionLocation "australiasoutheast"
2525

2626
## Requirements
2727

deploy/deploy-function.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
[CmdletBinding()]
22
param (
3-
[Parameter(Mandatory = $true)] [ValidateSet('Australia East', 'Australia Southeast')] $FunctionLocation
3+
# TODO: Add more regions here
4+
[Parameter(Mandatory = $true)] [ValidateSet('australiaeast', 'australiasoutheast')] $FunctionLocation
45
)
56

7+
$ErrorActionPreference = 'Stop'
8+
69
. ./_vars.ps1
710

11+
# TODO: Add more regions here
812
$loc = switch ($FunctionLocation) {
913
'australiaeast' { 'aue' }
1014
'australiasoutheast' { 'ase' }

0 commit comments

Comments
 (0)