DNS Validation with Azure DNS
This guide describes the process for setting up automatic DNS validation with simple-acme (or any other ACME client that supports it), using Azure DNS.
1
**Prerequisites:** The pre-requisite for this guide is a domain name added as DNS zone in Azure. This requires an active Azure subscription and the domain having NS records pointed to Azure nameservers. For more information about Azure DNS please see the Microsoft documentation, using this link: [What is Azure Public DNS? | Microsoft Learn](https://learn.microsoft.com/en-us/azure/dns/public-dns-overview)
Setting up App Registration
Simple -acme (or any other ACME client) will need credentials in Azure to manage DNS validation. For this purpose the guide will utilize an Azure app registration to provide these credentials in a secure manner.
2
To create the app registration log into the Azure Portal and select "**Microsoft Entra ID**"
3
In the menu on the left hand side, expand the "**Manage**" tab and click on “**App registrations**”
4
Then click on "**New registration**"
5
Register a new application with a **name** that identifies the credential. In this this case the credentials is used for our simple-acme client. \ **Tip:** Redirect URI does **not** need to be filled.
6
Then hit "**Register**" in the bottom left corner.
7
Save the “**Application (client) ID**” and "**Directory (tenant) ID**". These values will be needed when setting up the ACME client.
8
We also need a secret.\ To do this, click on "**Certificates & secrets**"
9
Click "**New client secret**"
10
Then give the secret a **description**, and a suiting **expiration date** in the pane on the right hand side.\ Click "**Add**" in the bottom of the screen.
11
**Copy** and **save** the "**Value**" to a secure location. **Tip:** You will not be able to retrieve this value when you leave the site, meaning that you will have to create a new secret if you loose the current one.
12
The app registration should now be complete and you should have the following values saved in a **secure** location: - Application (client) ID - Directory (tenant) ID - Client Secret value
Setting permissions on the DNS zone
Now that we've created an app, we need to give it permissions to manage the DNS zone for your domain.
13
Start by going back to the Azure starting page. You can do this by clicking "**Microsoft Azure**" in the top left corner.\ Then click on "**DNS zones"**. (If this does not show up, try searching for it instead using the highlighted search bar)
14
Select the desired **domain**.
15
Then click on "**Access control (IAM)**"
16
Then click "**Add**"
17
Search for the “**DNS Zone Contributor**” role.\ Click the role to select it.
18
Then click "**Members**"\ Click "**Select members**"
19
In the pane on the righthand side, **search** for the app we created earlier, and click on it.
20
Then click "**Select**" on the bottom of the pane.
21
Then click "**Review + assign**", you may have to click it twice.
22
Your app should now have the correct permissions and can now be used for DNS validation. **Tip:**\ Repeat step 14 through 21, for every domain you wish to automate.
DNS Validation with Azure DNS
This guide describes the process for setting up automatic DNS validation with simple-acme (or any other ACME client that supports it), using Azure DNS.
1
**Prerequisites:** The pre-requisite for this guide is a domain name added as DNS zone in Azure. This requires an active Azure subscription and the domain having NS records pointed to Azure nameservers. For more information about Azure DNS please see the Microsoft documentation, using this link: [What is Azure Public DNS? | Microsoft Learn](https://learn.microsoft.com/en-us/azure/dns/public-dns-overview)
Setting up App Registration
Simple -acme (or any other ACME client) will need credentials in Azure to manage DNS validation. For this purpose the guide will utilize an Azure app registration to provide these credentials in a secure manner.
2
To create the app registration log into the Azure Portal and select "**Microsoft Entra ID**"
3
In the menu on the left hand side, expand the "**Manage**" tab and click on “**App registrations**”
4
Then click on "**New registration**"
5
Register a new application with a **name** that identifies the credential. In this this case the credentials is used for our simple-acme client. \ **Tip:** Redirect URI does **not** need to be filled.
6
Then hit "**Register**" in the bottom left corner.
7
Save the “**Application (client) ID**” and "**Directory (tenant) ID**". These values will be needed when setting up the ACME client.
8
We also need a secret.\ To do this, click on "**Certificates & secrets**"
9
Click "**New client secret**"
10
Then give the secret a **description**, and a suiting **expiration date** in the pane on the right hand side.\ Click "**Add**" in the bottom of the screen.
11
**Copy** and **save** the "**Value**" to a secure location. **Tip:** You will not be able to retrieve this value when you leave the site, meaning that you will have to create a new secret if you loose the current one.
12
The app registration should now be complete and you should have the following values saved in a **secure** location: - Application (client) ID - Directory (tenant) ID - Client Secret value
Setting permissions on the DNS zone
Now that we've created an app, we need to give it permissions to manage the DNS zone for your domain.
13
Start by going back to the Azure starting page. You can do this by clicking "**Microsoft Azure**" in the top left corner.\ Then click on "**DNS zones"**. (If this does not show up, try searching for it instead using the highlighted search bar)
14
Select the desired **domain**.
15
Then click on "**Access control (IAM)**"
16
Then click "**Add**"
17
Search for the “**DNS Zone Contributor**” role.\ Click the role to select it.
18
Then click "**Members**"\ Click "**Select members**"
19
In the pane on the righthand side, **search** for the app we created earlier, and click on it.
20
Then click "**Select**" on the bottom of the pane.
21
Then click "**Review + assign**", you may have to click it twice.
22
Your app should now have the correct permissions and can now be used for DNS validation. **Tip:**\ Repeat step 14 through 21, for every domain you wish to automate.