Skip to content

Commit

Permalink
Fix for conditional check set initial param to
Browse files Browse the repository at this point in the history
  • Loading branch information
katriendg committed Oct 23, 2023
1 parent 98e2639 commit 0a8a447
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deployment/deploy-az-demo-bootstrapper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Invoke-WebRequest -Uri "$baseLocation/deployment/bicep/modules/vnetpeering.bicep
Invoke-WebRequest -Uri "$baseLocation/deployment/bicep/modules/loganalytics.bicep" -OutFile "./bicep/modules/loganalytics.bicep"

# Deploy 3 core infrastructure layers i.e. L4, L3, L2, replicating 3 levels of Purdue network topology.
$l4LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ApplicationName ($ApplicationName + "L4") -VnetAddressPrefix "172.16.0.0/16" -SubnetAddressPrefix "172.16.0.0/18" -SetupArc $true -Location $Location -SetupObservability $SetupObservability
$l4LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ParentConfig $null -ApplicationName ($ApplicationName + "L4") -VnetAddressPrefix "172.16.0.0/16" -SubnetAddressPrefix "172.16.0.0/18" -SetupArc $true -Location $Location -SetupObservability $SetupObservability
$l3LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ParentConfig $l4LevelCoreInfra -ApplicationName ($ApplicationName + "L3") -VnetAddressPrefix "172.18.0.0/16" -SubnetAddressPrefix "172.18.0.0/18" -SetupArc $true -Location $Location -SetupObservability $SetupObservability
$l2LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ParentConfig $l3LevelCoreInfra -ApplicationName ($ApplicationName + "L2") -VnetAddressPrefix "172.20.0.0/16" -SubnetAddressPrefix "172.20.0.0/18" -SetupArc $true -Location $Location -SetupObservability $SetupObservability

Expand Down
11 changes: 6 additions & 5 deletions deployment/deploy-az-dev-bootstrapper.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $Location = Get-AzShortRegion($Location)

# 1. Deploy core infrastructure (AKS clusters, VNET)

$l4LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ApplicationName ($ApplicationName + "L4") -VnetAddressPrefix "172.16.0.0/16" -SubnetAddressPrefix "172.16.0.0/18" -SetupArc $SetupArc -Location $Location -SetupObservability $SetupObservability
$l4LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ParentConfig $null -ApplicationName ($ApplicationName + "L4") -VnetAddressPrefix "172.16.0.0/16" -SubnetAddressPrefix "172.16.0.0/18" -SetupArc $SetupArc -Location $Location -SetupObservability $SetupObservability
$l3LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ParentConfig $l4LevelCoreInfra -ApplicationName ($ApplicationName + "L3") -VnetAddressPrefix "172.18.0.0/16" -SubnetAddressPrefix "172.18.0.0/18" -SetupArc $SetupArc -Location $Location -SetupObservability $SetupObservability
$l2LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ParentConfig $l3LevelCoreInfra -ApplicationName ($ApplicationName + "L2") -VnetAddressPrefix "172.20.0.0/16" -SubnetAddressPrefix "172.20.0.0/18" -SetupArc $SetupArc -Location $Location -SetupObservability $SetupObservability

Expand Down Expand Up @@ -64,7 +64,7 @@ $l4AppConfig = ./deploy-dev-app-l4.ps1 -ApplicationName $ApplicationName `

# # --- Deploying just a single layer: comment above block and uncomment below:

# $l4LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ApplicationName ($ApplicationName + "L4") -VnetAddressPrefix "172.16.0.0/16" -SubnetAddressPrefix "172.16.0.0/18" -SetupArc $false -Location $Location $SetupObservability
# $l4LevelCoreInfra = ./deploy-core-infrastructure.ps1 -ParentConfig $null -ApplicationName ($ApplicationName + "L4") -VnetAddressPrefix "172.16.0.0/16" -SubnetAddressPrefix "172.16.0.0/18" -SetupArc $false -Location $Location $SetupObservability

# ./deploy-core-platform.ps1 -AksClusterName $l4LevelCoreInfra.AksClusterName `
# -AksClusterResourceGroupName $l4LevelCoreInfra.AksClusterResourceGroupName `
Expand All @@ -74,14 +74,16 @@ $l4AppConfig = ./deploy-dev-app-l4.ps1 -ApplicationName $ApplicationName `
# -AksClusterResourceGroupName $l4LevelCoreInfra.AksClusterResourceGroupName `
# -AksClusterName $l4LevelCoreInfra.AksClusterName `
# -AksServicePrincipalName ($ApplicationName + "L4") `
# -Location $Location -SetupObservability $SetupObservability
# -Location $Location -SetupObservability $SetupObservability `
# -SamplingRate $samplingRate

# # when deploying L2 workload on single cluster in L4, passing in parameters pointing to L4 is intentional
# ./deploy-dev-app-l2.ps1 -ApplicationName $ApplicationName `
# -AksClusterName $l4LevelCoreInfra.AksClusterName `
# -AksClusterResourceGroupName $l4LevelCoreInfra.AksClusterResourceGroupName `
# -AksServicePrincipalName ($ApplicationName + "L4") `
# -L4AppConfig $l4AppConfig -SetupObservability $SetupObservability
# -L4AppConfig $l4AppConfig -SetupObservability $SetupObservability `
# -SamplingRate $samplingRate
# #----------------

$runningTime = New-TimeSpan -Start $startTime
Expand All @@ -90,4 +92,3 @@ Write-Title("Running time bootstrapper: " + $runningTime.ToString())
Write-Title("Distributed Edge Accelerator is now deployed in Azure Resource Groups $ApplicationName + L2 to L4 and $ApplicationName-App.")
Write-Title("Please use the Event Hub instance in the Resource Group $ApplicationName-App to view the OPC UA and Simulated Sensor telemetry.")
Write-Title("Your kubectl current context is now set to the AKS cluster '$(kubectl config current-context)'.")

0 comments on commit 0a8a447

Please sign in to comment.