Azure Dynamic DNS Fail - LocationRequired
-
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
-
@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]