Skip to content

Commit 1554524

Browse files
authored
Add missing script (#227)
1 parent 3733d33 commit 1554524

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

deployment/create-container.ps1

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
param(
2+
[string]$StorageAccountName
3+
)
4+
5+
$ErrorActionPreference = "Stop"
6+
Import-Module $PSScriptRoot/util.ps1
7+
8+
$newContainerName = "index-$((New-Guid).ToString("N"))"
9+
10+
Write-Host "Creating new container '$newContainerName'..."
11+
{
12+
az storage container create --name "$newContainerName" --auth-mode login --public-access off --fail-on-exist --account-name $StorageAccountName
13+
} | Check-Failure
14+
15+
Write-Output "##vso[task.setvariable variable=NEW_CONTAINER_NAME]$newContainerName"

0 commit comments

Comments
 (0)