diff --git a/IaC/deployBicep.ps1 b/IaC/deployBicep.ps1 index 5891acc..cba836f 100644 --- a/IaC/deployBicep.ps1 +++ b/IaC/deployBicep.ps1 @@ -19,19 +19,17 @@ catch { } Write-Host "" Write-Host "List of available subscriptions:" -ForegroundColor Green -(Get-AzSubscription).name +$subscriptionName = (Get-AzSubscription).name | Out-Gridview -outputmode singel -title 'Select Subscription Name' Write-Host "" -$subscriptionName = Read-Host -Prompt "Enter Subscription Name" $result = Select-AzSubscription -SubscriptionName $subscriptionName Write-Host "" Write-Host "List of available Resource Groups:" -ForegroundColor Green -(Get-AzResourceGroup).ResourceGroupName +$resourceGroup = (Get-AzResourceGroup).ResourceGroupName | Out-GridView -OutputMode Single -Title 'Select the Resource Group Name (where ARM template will be deployed into)' Write-Host "" -$resourceGroup = Read-Host -Prompt "Enter the Resource Group Name (where ARM template will be deployed into)" $bicepFile = '.\main.bicep' $mainParametersFiles = $TemplateParameterFile New-AzResourceGroupDeployment ` -Name vWAN ` -ResourceGroupName $resourceGroup ` -TemplateFile $bicepFile ` - -TemplateParameterFile $mainParametersFiles \ No newline at end of file + -TemplateParameterFile $mainParametersFiles