unable to create a resource group using power shell in azure


when try run script azure resource manager  getting following error on machine.but resource group got created empty resource group

note : using free trial azure.

 

ps u:\> d:



ps d:\powershell> .\ressourcemanagerexample1.ps1 -verbose
new-azureresourcegroup : unauthorized
@ d:\powershell\ressourcemanagerexample1.ps1:27 char:3
+   new-azureresourcegroup -name $resourcegroupname `
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : closeerror: (:) [new-azureresourcegroup], cloudexception
    + fullyqualifiederrorid : microsoft.azure.commands.resources.newazureresourcegroupcommand


in other vm getting following 


ps c:\automation> .\resourcegroup.ps1 -verbose
verbose: 11:31:30 - created resource group 'testlab01' in location 'southcentralus'
verbose: 11:31:31 - template valid.
verbose: 11:31:31 - create template deployment 'microsoft.windowsserver2012r2datacenter.0.2.0-preview'.
new-azureresourcegroup : 11:31:40 - resource microsoft.classiccompute/domainnames 'resourcemanager' failed with
message 'the appid '1950a258-227b-4e31-a9cf-717495945fc2' not allowed make requests via api 'put'
operations; please contact support if ability perform these actions.'
@ c:\automation\resourcegroup.ps1:26 char:3
+   new-azureresourcegroup -name $resourcegroupname `
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : notspecified: (:) [new-azureresourcegroup], exception
    + fullyqualifiederrorid : microsoft.azure.commands.resources.newazureresourcegroupcommand

new-azureresourcegroup : 11:31:40 - resource microsoft.classicstorage/storageaccounts 'maasprodstorage' failed with
message 'the appid '1950a258-227b-4e31-a9cf-717495945fc2' not allowed make requests via api 'put'
operations; please contact support if ability perform these actions.'
@ c:\automation\resourcegroup.ps1:26 char:3
+   new-azureresourcegroup -name $resourcegroupname `
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : notspecified: (:) [new-azureresourcegroup], exception
    + fullyqualifiederrorid : microsoft.azure.commands.resources.newazureresourcegroupcommand

new-azureresourcegroup : 11:31:43 - resource microsoft.classicnetwork/virtualnetworks 'vnet' failed message
'the appid '1950a258-227b-4e31-a9cf-717495945fc2' not allowed make requests via api 'put' operations; please
contact support if ability perform these actions.'
@ c:\automation\resourcegroup.ps1:26 char:3
+   new-azureresourcegroup -name $resourcegroupname `
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + categoryinfo          : notspecified: (:) [new-azureresourcegroup], exception
    + fullyqualifiederrorid : microsoft.azure.commands.resources.newazureresourcegroupcommand



resourcegroupname : testlab01


not scripting issue.  post in azure forum guidance.

¯\_(ツ)_/¯



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2