I am trying to run the following command in cloud powershell:
$location = 'UK West'
$rgName = 'az104-07-rg0'
New-AzResourceGroup -Name $rgName -Location $location
Above succeeds
Followed by:
New-AzResourceGroupDeployment -ResourceGroupName az104-07-rg0
-TemplateFile az104-07-vm-template.json -TemplateParameterFile az104-07-vm-parameters.json
-AsJob
Which does nothing except give me the following output on screen. I have uploaded the Template and parameters file. Any ideas why this is happening:
PS /home/sundeep> New-AzResourceGroupDeployment >> -ResourceGroupName $rgName
-TemplateFile $HOME/az104-07-vm-template.json
>> -TemplateParameterFile $HOME/az104-07-vm-parameters.json
-AsJob
Id Name PSJobTypeName State HasMoreData Location Command
16 Long Running O… AzureLongRunni… Running True localhost New-AzResourceGroupDeplo…


