Trying to create resource group using New-AzureRmResourceGroup cmdlet in azure webjob -
i have working azure arm powershell scripts create new virtual machine , it's working fine in cloud service when trying execute in azure webjob, getting following error :
new-azurermresourcegroup -name $resourcegroup -location $location
new-azurermresourcegroup : win32 internal error "the handle invalid" 0x6 occurred while setting character attributes console output buffer. contact microsoft customer support services. @ d:\local\temp\jobs\triggered\webjob\v43suxvk.lln\testdrives\windowsserver201 2\provision.ps1:17 char:1 + new-azurermresourcegroup -name $resourcegroup -location $location + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : closeerror: (:) [new-azurermresourcegroup], host exception + fullyqualifiederrorid : microsoft.azure.commands.resources.newazureresou rcegroupcommand
so how can run arm powershell scripts in webjobs?
Comments
Post a Comment