AZURE VM ROLE Issue : ‘Too many arguments………’
Alas!!! I started working on a Azure VM Role.There are so many hiccups and blockades while setting up the Azure VM Role (Which is still in Beta)
I would love to put all my tries and misses here..Let me start with this one
Too many arguments for command Add-VMImage expects 0 argument(s) found 2.
You face this error when you try to run
csupload Add-VMImage -Connection "SubscriptionId=[subscription_id]; CertificateThumbprint=[certificate_thumbprint]" -Description "[description]" -LiteralPath "[vhd_location]" -Name [vhd_filename] -Location "[azure_subregion]" -TempLocation %TEMP% -SkipVerify
The problem here is with the ‘-‘ Replace all the hyphens manually using keyboard or you can try using the command above .This should solve the issue.
Note : Run the windows Azure SDK Command prompt in Administrator mode (Right on the command prompt and click Run as Administrator)