From c550332744efafa65888a01b45013de74025ce26 Mon Sep 17 00:00:00 2001 From: Jonathan Core <56272039+JCoreMS@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:35:07 -0400 Subject: [PATCH] Fix PS deploy code for App Attach Tools VM (#682) --- .../brownfield/appAttachToolsVM/Readme.md | 52 ++++++++----------- 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/workload/bicep/brownfield/appAttachToolsVM/Readme.md b/workload/bicep/brownfield/appAttachToolsVM/Readme.md index 74d0549b4..e682f9dad 100644 --- a/workload/bicep/brownfield/appAttachToolsVM/Readme.md +++ b/workload/bicep/brownfield/appAttachToolsVM/Readme.md @@ -25,35 +25,25 @@ The easiest method is to configure the deployment via the provided blue buttons ### PowerShell ```powershell -New-AzDeployment ` - -Location '' ` - -TemplateFile 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/arm/brownfield/deployAppAttachToolsVM.json' ` - -adminUsername '' ` - -adminPassUseKv false ` - -adminPassword '' ` - -publicIPAllowed '' ` - -OSoffer 'WindowsDesktop' ` - -SubnetName '' ` - -vmDiskType '' ` - -vmName '' ` - -VNet '' ` - -Verbose +$Vnet = @{ + "name" = '' + "id" = '' + "location" = '' + "subscriptionName" = '' +} + +$TemplateParameterObject = @{ + "Location" = '' + "adminUsername" = '' + "adminPassUseKv" = $false + "adminPassword" = + "publicIPAllowed" = '<$true or $false (Determines if NIC will have a Public IP Address)>' + "OSoffer" = 'Windows-11' + "OSVersion" = 'win11-23h2-ent' + "SubnetName" = '' + "vmDiskType" = '' + "vmName" = '' + "VNet" = $VNet +} +New-AzResourceGroupDeployment -ResourceGroupName $ResourceGroupName -TemplateUri 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/arm/brownfield/deployAppAttachToolsVM.json' -TemplateParameterObject $TemplateParameterObject -Verbose ``` - -### Azure CLI - -```azurecli -az deployment sub create \ - --location '' \ - --template-uri 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/arm/brownfield/deployAppAttachToolsVM.json' \ - --parameters \ - -adminUsername '' \ - -adminPassUseKv false \ - -adminPassword '' \ - -publicIPAllowed '' \ - -OSoffer 'WindowsDesktop' \ - -SubnetName '' \ - -vmDiskType '' \ - -vmName '' \ - -VNet '' -``` \ No newline at end of file