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

Endpoints not getting created when using Azure REST API

$
0
0

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.



Viewing all articles
Browse latest Browse all 12545

Trending Articles



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