Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Getting exception while running Set-AzureVMCustomScriptExtension

$
0
0

We are using custom script extension to remotely download and execute azure PowerShell script on azure VM. It was running but since yesterday evening we are getting below exception while runningSet-AzureVMCustomScriptExtensionon our build server(perhaps after deploying a cloud service from that server) :

 Get-AzureVM-ServiceName$AzureServiceName-Name$AzureSubServiceName| Set-AzureVMCustomScriptExtension-StorageAccountName $AzureStorageAccount-ContainerName $AzureStorageContainer-FileName $ZipFileName, $DeployScriptFileName, $WebServiceProfileName-Run $DeployScriptFileName-Argument"$ZipFileName$WebSiteRootPath$WebServiceProfileName$PowershellLogPath$UnZipLocationOnVM"|

Update-AzureVM   

Getting below exception while trying to execute red highlighted line :

Caught an exception while downloading the files

Exception Type: System.Management.Automation.CmdletInvocationException

Exception Message: A cmdlet named 'Add-AzureCacheWorkerRole' already exists. Cmdlets must have unique names.

Could you please share inputs if any on this issue

Thanks & Regards

Gaurav


Viewing all articles
Browse latest Browse all 12545

Trending Articles



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