Skip to content

Bind CName to Site #4

@tbertenshaw

Description

@tbertenshaw

Greate example, but am i missing a step in this process.

I have a azure dns with and a cname for example configured as timbo.mywebsite.com. If i create this via "BringExternalDomains" in the new portal. It creates ok. If i delete it and then try to add via the code below, i get

{"Code":"NotFound","Message":"Hostname 'timbo.mywebsite.com' does not exist.","Target":null,"Details":[{"Message":"Hostname 'timbo.mywebsite.com' does not exist."},{"Code":"NotFound"},{"ErrorEntity":{"Code":"NotFound","Message":"Hostname 'timbo.mywebsite.com' does not exist.","ExtendedCode":"04020","MessageTemplate":"Hostname '{0}' does not exist.","Parameters":["timbo.mywebsite.com"],"InnerErrors":null}}],"Innererror":null}

is there a step for BringExternalDomains? I did notice if i run just the code at line90 and then the update command at line 111 the response returns the site with no changes.

https://github.com/davidebbo/AzureWebsitesSamples/blob/master/ManagementLibrarySample/Program.cs#L85

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions