-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix vm extension script for azd install
- Loading branch information
1 parent
b0dd3ee
commit c0b89ec
Showing
2 changed files
with
6 additions
and
15 deletions.
There are no files selected for viewing
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
19 changes: 5 additions & 14 deletions
19
scenarios/shared/scripts/win-devops-vm-extensions/test-vm-extension.sh
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,18 +1,9 @@ | ||
# /bin/bash | ||
|
||
commandToExecute='powershell.exe -ExecutionPolicy Unrestricted -File post-deployment.ps1 -az_cli_commands "az version" -install_ssms' | ||
fileUris="'https://raw.githubusercontent.com/Azure/appservice-landing-zone-accelerator/main/scenarios/shared/scripts/win-devops-vm-extensions/post-deployment.ps1'" | ||
protectedSettings='{"fileUris": "['$fileUris']", "commandToExecute": "'$commandToExecute'" }' | ||
echo $protectedSettings | ||
|
||
az vm extension set -n CustomScriptExtension \ | ||
--publisher Microsoft.Compute --version 1.10 \ | ||
--vm-name vm-devops-1201 --resource-group rg-secure-appsvc-prod \ | ||
--protected-settings $protectedSettings \ | ||
--verbose | ||
|
||
az vm extension set -n CustomScriptExtension \ | ||
--publisher Microsoft.Compute --version 1.10 \ | ||
--vm-name vm-devops-1201 --resource-group rg-secure-appsvc-prod \ | ||
--protected-settings '{"fileUris": "['https://raw.githubusercontent.com/Azure/appservice-landing-zone-accelerator/main/scenarios/shared/scripts/win-devops-vm-extensions/post-deployment.ps1']", "commandToExecute": "powershell.exe -ExecutionPolicy Unrestricted -File post-deployment.ps1 -az_cli_commands \"az version\" -install_ssms" }' \ | ||
--verbose | ||
--vm-name vm-lza-app-beta-win-jumpbox \ | ||
--resource-group rg-spoke-lza-app-beta-dev-francecentral \ | ||
--settings '{"fileUris": ["https://raw.githubusercontent.com/Azure/appservice-landing-zone-accelerator/feature/external-outputs/scenarios/shared/scripts/win-devops-vm-extensions/post-deployment.ps1"]}' \ | ||
--protected-settings '{"commandToExecute": "powershell.exe -ExecutionPolicy Unrestricted -File post-deployment.ps1 -install_cli" }' \ | ||
--verbose |