diff --git a/workload/bicep/brownfield/appAttachToolsVM/Readme.md b/workload/bicep/brownfield/appAttachToolsVM/Readme.md index e682f9dad..0d302dab7 100644 --- a/workload/bicep/brownfield/appAttachToolsVM/Readme.md +++ b/workload/bicep/brownfield/appAttachToolsVM/Readme.md @@ -25,13 +25,14 @@ The easiest method is to configure the deployment via the provided blue buttons ### PowerShell ```powershell +# Set Variables +$TemplateUri = "https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/arm/brownfield/deployAppAttachToolsVM.json" $Vnet = @{ "name" = '' "id" = '' "location" = '' "subscriptionName" = '' } - $TemplateParameterObject = @{ "Location" = '' "adminUsername" = '' @@ -45,5 +46,42 @@ $TemplateParameterObject = @{ "vmName" = '' "VNet" = $VNet } -New-AzResourceGroupDeployment -ResourceGroupName $ResourceGroupName -TemplateUri 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/arm/brownfield/deployAppAttachToolsVM.json' -TemplateParameterObject $TemplateParameterObject -Verbose +# Deploy Resources +New-AzResourceGroupDeployment -ResourceGroupName $ResourceGroupName -TemplateUri $TemplateUri -TemplateParameterObject $TemplateParameterObject -Verbose ``` + +### Azure CLI +```bash +# Set variables +templateUri="https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/arm/brownfield/deployAppAttachToolsVM.json" +resourceGroupName="" +location="" +adminUsername="" +adminPassword="" +publicIPAllowed="" +osOffer="Windows-11" +osVersion="win11-23h2-ent" +subnetName="" +vmDiskType="" +vmName="" +vnetName="" +vnetId="" +subscriptionName="" + +# Deploy resources +az group deployment create \ + --resource-group $resourceGroupName \ + --template-uri $templateUri \ + --parameters \ + Location=$location \ + adminUsername=$adminUsername \ + adminPassword=$adminPassword \ + publicIPAllowed=$publicIPAllowed \ + OSoffer=$osOffer \ + OSVersion=$osVersion \ + SubnetName=$subnetName \ + vmDiskType=$vmDiskType \ + vmName=$vmName \ + VNet="{\"name\": \"$vnetName\", \"id\": \"$vnetId\", \"location\": \"$location\", \"subscriptionName\": \"$subscriptionName\"}" +``` +