We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3733d33 commit 1554524Copy full SHA for 1554524
deployment/create-container.ps1
@@ -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