title: How do I set Origin Path in Azure CDN using Resouce Manager API?
body: <p>I want to tell the Azure CDN that my origin is at a specific path, e.g. <code>mydomain.com/cdn</code>. This option is available through the Azure Portal (CDN Profile > Endpoint > Configure > Origin path)</p>
  
  <p>I'm deploying my Azure resources using Resource Manager APIs and Json templates. However, I can't find this setting in the template here: <a href="https://github.com/Azure/azure-quickstart-templates/tree/master/201-cdn-customize" rel="nofollow">https://github.com/Azure/azure-quickstart-templates/tree/master/201-cdn-customize</a></p>
  
  <p>Is this not available or am I missing something?</p>
  
  <p><strong>Update</strong>
  Using the Resource Explorer, I found the property on the endpoints node with a <code>null</code>. Even if I try to set the value (and the API accepts it), the value is not set.</p>
  
  <pre><code>    {
        "value": [
          {
            "name": "&lt;hidden&gt;",
            "id": "/subscriptions/&lt;hidden&gt;/resourcegroups/&lt;hidden&gt;/providers/Microsoft.Cdn/profiles/&lt;hidden&gt;/endpoints/&lt;hidden&gt;",
            "type": "Microsoft.Cdn/profiles/endpoints",
            "tags": {},
            "location": "NorthEurope",
            "properties": {
              "hostName": "&lt;hidden&gt;",
              "originHostHeader": "&lt;hidden&gt;",
              "provisioningState": "Succeeded",
              "resourceState": "Running",
              "isHttpAllowed": true,
              "isHttpsAllowed": true,
              "queryStringCachingBehavior": "UseQueryString",
              "originPath": null,
              "origins": [
                {
                  "name": "&lt;hidden&gt;",
                  "properties": {
                    "hostName": "&lt;hidden&gt;",
                    "httpPort": null,
                    "httpsPort": null
                  }
                }
              ],
              "contentTypesToCompress": [
                "application/x-javascript",
                "text/css",
                "text/html",
                "text/javascript",
                "text/plain"
              ],
              "isCompressionEnabled": false
            }
          }
        ]
      }
  </code></pre>