Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Azure Dynamic DNS Fail - LocationRequired

    Scheduled Pinned Locked Moved DHCP and DNS
    dynamic dnsazure
    2 Posts 1 Posters 971 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      kilburnflyer
      last edited by

      Hi,

      I am trying to setup DynamicDNS with Azure. The Azure API is returning the following response:

      php-fpm 97438 /services_dyndns_edit.php: Response Data: {"error":{"code":"LocationRequired","message":"The location property is required for this definition."}}

      Resource accessed:

      subscriptions/{private}/resourceGroups/north-europe-default/providers/Microsoft.Network/dnsZones/{domain-name}?api-version=2018-05-01

      Is this pfsense not providing the correct payload in the request?

      According to the API Docs

      https://docs.microsoft.com/en-us/rest/api/dns/zones/create-or-update

      this is a required parameter

      K 1 Reply Last reply Reply Quote 0
      • K
        kilburnflyer @kilburnflyer
        last edited by

        @kilburnflyer
        Solved:

        subscriptions/[YOURSUBSCRIPTIONID/resourceGroups/north-europe-default/providers/Microsoft.Network/dnsZones/[YOURDOMAIN]

        do not put api version in there.

        in hostname only put value before i.e. RECORD

        i.e.

        RECORD.[YOURDOMAIN]

        Relevant link in source code helped debug

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.