Guy Korland
Guy Korland

Reputation: 9568

"An administrator password must be specified" error on Azure Create Virtual Machine REST API

I'm trying to create a new Windows VM using Windows Azure REST API. But, I keep getting the following error:

BadRequest: An administrator password must be specified

But, the REST call XML body does include:

<AdminPassword>SomePassword123</AdminPassword>
<AdminUsername>guyk</AdminUsername>

Any clue where should I start looking?

Upvotes: 1

Views: 227

Answers (1)

Guy Korland
Guy Korland

Reputation: 9568

The error was caused by a missing "type" attribute in the ConfigurationSet

            <ConfigurationSet xsi:type="WindowsProvisioningConfigurationSet">

Upvotes: 1

Related Questions