Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ $webserverAdminCidr = $parameters.webserverAdminCidr
$certPass = ConvertTo-SecureString $parameters.certPass -AsPlainText -Force
$tenantId = (Get-AzContext).Tenant.Id
$subId = (Get-AzContext).Subscription.Id
$baseStorageUrl = "https://$($Name)stgacct.blob.core.windows.net/sub-builder"
$logFile = "./deploy_$(get-date -format `"yyyyMMddhhmmsstt`").log"

# Set preference variables
Expand Down Expand Up @@ -321,6 +320,7 @@ catch {
Write-Host "INFO: Obtaining Storage Account context for artifact uploads..." -ForegroundColor green
Write-Verbose -Message "Obtaining Storage Account context for artifact uploads..."
$storageAccount = Get-AzStorageAccount -ResourceGroupName "$Name-rg" -Name "$($Name)stgacct"
$baseStorageUrl = "$($storageAccount.PrimaryEndPoints.Blob)sub-builder"

if (!$storageAccount) {
Write-Host "ERROR: Unable to obtain storage context, exiting script!" -ForegroundColor red
Expand Down