Hi,
I am trying to create a VM using Azure REST api but I m unable to create endpoint for the same. We are using Image to create VM. Please see below the XML which is used for the same
<Deployment xmlns="http://schemas.microsoft.com/windowsazure"><Name>TEST-Deployment</Name>
<DeploymentSlot>Production</DeploymentSlot>
<Label>Test Deployment</Label>
<RoleList>
<Role>
<RoleName>XXXXXX</RoleName>
<RoleType>PersistentVMRole</RoleType>
<VMImageName>XXXXXXX</VMImageName>
<RoleSize>Medium</RoleSize>
<ConfigurationSets>
<ConfigurationSet p5:type="WindowsProvisioningConfigurationSet" xmlns:p5="http://www.w3.org/2001/XMLSchema-instance">
<ConfigurationSetType>WindowsProvisioningConfiguration</ConfigurationSetType>
<ComputerName>XXXXX</ComputerName>
<AdminPassword>XXXXXXX</AdminPassword>
<AdminUsername>XXXXX</AdminUsername>
</ConfigurationSet>
<ConfigurationSet>
<ConfigurationSetType>NetworkConfiguration</ConfigurationSetType>
<InputEndpoints>
<InputEndpoint>
<LocalPort>3389</LocalPort>
<Name>RDP</Name>
<Port>51001</Port>
<Protocol>tcp</Protocol>
</InputEndpoint>
</InputEndpoints>
</ConfigurationSet>
</ConfigurationSets>
</Role>
</RoleList>
</Deployment>
Could you please let me know if I m missing any required field here which is inhibiting from creating an endpoint.