This commit is contained in:
Srđan Božović
2018-08-21 09:46:11 +02:00
parent f6131ea4c4
commit 5a57e70d5a
2 changed files with 2 additions and 2 deletions
@@ -55,7 +55,7 @@ $parameters = @{
subnetName = '<subnetName>'
}
Invoke-Command -ScriptBlock ([Scriptblock]::Create((New-Object System.Net.WebClient).DownloadString($scriptUrlBase+'/prepareSubnet.ps1?t='+ [DateTime]::Now.Ticks))) -ArgumentList $parameters
Invoke-Command -ScriptBlock ([Scriptblock]::Create((iwr ($scriptUrlBase+'/prepareSubnet.ps1?t='+ [DateTime]::Now.Ticks)).Content)) -ArgumentList $parameters
```
@@ -14,7 +14,7 @@ function Ensure-Login ()
Write-Host "Loging in ..."
Try
{
Login-AzureRmAccount -ErrorAction Stop | Out-null
Login-AzureRmAccount -ErrorAction SilentlyContinue | Out-null
}
Catch
{