Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Update deploy_02_DeployResources.ps1 #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# requires variables for $resourceGroup1Name, $location1, $resourceGroup2Name, $location2
# , $sqlserverName, $sqlAdministratorLogin, $sqlAdministratorLoginPassword
# , $suffix, $suffix2
Import-Module Az.Websites
$templateUri = "https://openhackguides.blob.core.windows.net/openhack-common-deploy/app-modernization-no-sql/azuredeploy.json"

$outputs = New-AzResourceGroupDeployment `
Expand Down Expand Up @@ -51,6 +52,9 @@ else
{
throw "Could not validate existence of deployed sql server: $sqlserverName";
}
#Add firewall rule to SQL SERVER to AllowAllAzureServices
Write-Output "Add firewall rule to SQL SERVER to AllowAllAzureServices";
New-AzSqlServerFirewallRule -ResourceGroupName $resourceGroup1Name -ServerName $sqlserverName -AllowAllAzureIPs -Verbose

#validate AppService Plan
$aspPlanName = "openhackplan-$suffix";
Expand Down