-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Application insights for node maybe working
- Loading branch information
Joel Johnston
committed
Oct 8, 2023
1 parent
7470405
commit 70afc35
Showing
8 changed files
with
1,254 additions
and
152 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
$ErrorActionPreference = "Stop" | ||
$RootPassword = Get-AzKeyVaultSecret -VaultName "joeljcakeys" -Name "LinodeRootPasswordWorld1" -AsPlainText | ||
$NodeInsightsConnectionString = Get-AzKeyVaultSecret -VaultName "joeljcakeys" -Name "NodeInsightsConnectionString" -AsPlainText | ||
|
||
Write-Host -ForegroundColor blue 'In Deploy-BLUE' | ||
|
||
$CICDPath = Split-Path -Parent $MyInvocation.MyCommand.Path | ||
$RepoRootPath = Split-Path -Parent $CICDPath | ||
|
||
& "${CICDPath}/PS-Configure-And-Deploy-To-Slot.ps1" $RepoRootPath "${CICDPath}/Ansible-Inventory-WORLD1.yml" 'blue' $RootPassword | ||
& "${CICDPath}/PS-Configure-And-Deploy-To-Slot.ps1" $RepoRootPath "${CICDPath}/Ansible-Inventory-WORLD1.yml" 'blue' $RootPassword $NodeInsightsConnectionString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
$ErrorActionPreference = "Stop" | ||
$RootPassword = Get-AzKeyVaultSecret -VaultName "joeljcakeys" -Name "LinodeRootPasswordWorld1" -AsPlainText | ||
$NodeInsightsConnectionString = Get-AzKeyVaultSecret -VaultName "joeljcakeys" -Name "NodeInsightsConnectionString" -AsPlainText | ||
|
||
Write-Host -ForegroundColor green 'In Deploy-GREEN' | ||
|
||
$CICDPath = Split-Path -Parent $MyInvocation.MyCommand.Path | ||
$RepoRootPath = Split-Path -Parent $CICDPath | ||
|
||
& "${CICDPath}/PS-Configure-And-Deploy-To-Slot.ps1" $RepoRootPath "${CICDPath}/Ansible-Inventory-WORLD1.yml" 'green' $RootPassword | ||
& "${CICDPath}/PS-Configure-And-Deploy-To-Slot.ps1" $RepoRootPath "${CICDPath}/Ansible-Inventory-WORLD1.yml" 'green' $RootPassword $NodeInsightsConnectionString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function InvokeAndCheck($Cmd) { | ||
Invoke-Expression $($Cmd + '; if(-not $?){ throw "Invocation Error" }') | ||
} |