我正在尝试使用azure服务管理restapi创建vm。如果我选择我自己创建的图像来处理我的帐户,它工作正常。当我选择其他公开的图像时,我收到以下错误。
No target URI is specified for the image fb83b3509582419d99629ce476bcb5c8__SQL-Server-2014CTP2-CU1-12.0.1736.0-Evaluation-ENU-WS2012R2-CY13SU12.
使用以下xml我必须创建vm:
<Deployment xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<Name>azure4569033333</Name>
<DeploymentSlot>Production</DeploymentSlot>
<Label>YXp1cmU0NTY5MDMzMzMz</Label>
<RoleList>
<Role>
<RoleName>azure4569033333</RoleName>
<RoleType>PersistentVMRole</RoleType>
<ConfigurationSets>
<ConfigurationSet i:type="WindowsProvisioningConfigurationSet">
<ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>
<ComputerName>azure4569033333</ComputerName>
<AdminPassword>Pass!admin123</AdminPassword>
<AdminUsername>admin12</AdminUsername>
</ConfigurationSet>
<ConfigurationSet i:type="NetworkConfigurationSet">
<ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
<InputEndpoints>
<InputEndpoint>
<LocalPort>3389</LocalPort>
<Name>Remote Desktop</Name>
<Port>3389</Port>
<Protocol>tcp</Protocol>
</InputEndpoint>
</InputEndpoints>
</ConfigurationSet>
</ConfigurationSets>
<OSVirtualHardDisk>
<SourceImageName>fb83b3509582419d99629ce476bcb5c8__SQL-Server-2014CTP2-CU1-12.0.1736.0-Evaluation-ENU-WS2012R2-CY13SU12</SourceImageName>
<MediaLink>https://portalvhdsd4lc8tzn260zd.blob.core.windows.net/vhds/fb83b3509582419d99629ce476bcb5c8__SQL-Server-2014CTP2-CU1-12.0.1736.0-Evaluation-ENU-WS2012R2-CY13SU12.vhd</MediaLink>
</OSVirtualHardDisk>
<RoleSize>ExtraSmall</RoleSize>
</Role>
</RoleList>
</Deployment>