Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

New-resourcegroup using parameters in hashtable fails with "Object reference not set to an instance"

$
0
0

Hi,

i am trying to publish new resourcegroup and resources using this example (http://gallery.technet.microsoft.com/scriptcenter/Deployment-to-use-Azure-758675d6). I have modified both the powershell script and the JSON templates to fit my needs, creating new ServiceBuses and storage acccount for example.

I also add more variables to the hashtable (in the PS1) but when trying to run the script i receive the following error:

PS C:\Temp\Publish-AzureResourceGroupPreview>New-AzureResourceGroup -Name $ResourceGroupName -DeploymentName $DeploymentName -Location $Location -TemplateFile $TemplateFile -TemplateParameterObject $parameters -Force
New-AzureResourceGroup : Cannot retrieve the dynamic parameters for the cmdlet. Object reference not set to an instance
 of an object.
At line:1 char:1+ New-AzureResourceGroup -Name "Frigginwork" -DeploymentmentName "FrigginDeploy" - ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : InvalidArgument: (:) [New-AzureResourceGroup], ParameterBindingException+ FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.Azure.Commands.ResourceManager.NewAzureResourceG
   roupCommand

The hashtable containing the parameters is there and looks allright.

Does anyone have a clue of where the shit hits the fan? Where do i start troubleshooting?

Best Regards,

Johannes



Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>