Relative Content

Tag Archive for automationazure-powershellazure-runbook

So, I have to create registry token and update the values on each vm like manually in the azure portal

try { “Logging in to Azure…” Connect-AzAccount -Identity } catch { Write-Error -Message $_.Exception throw $_.Exception } # Set the subscription (if not already set) Set-AzContext -SubscriptionId “xxxxxxxxxxxxxxxx” $ResourceGroupName = “xxxxx1” $HostPoolName = “wpxxxxxxxxx” # Check if the host pool exists $Hostpool = Get-AzWvdHostPool -Name $HostPoolName -ResourceGroupName $ResourceGroupName -ErrorAction SilentlyContinue if (!$Hostpool) { Write-Host ”, […]