Add code to Azure DNS bearer token

master
Eldar Borge 2024-11-13 09:05:21 +01:00
parent d065fc8814
commit ba68177afd
1 changed files with 9 additions and 2 deletions

@ -1032,9 +1032,16 @@ You need to extract the token earlier in your CI/CD, for example with this comma
```sh
az account get-access-token --query accessToken --output tsv
```
And then pass it to acme.sh with the environment variable `AZUREDNS_BEARERTOKEN`.
And then pass it to acme.sh with the environment variable `AZUREDNS_BEARERTOKEN`:
```sh
export AZUREDNS_BEARERTOKEN="<BEARER TOKEN>"
```
Finally, you need to set the tenant ID and subscription ID in the environment variables `AZUREDNS_TENANTID` and `AZUREDNS_SUBSCRIPTIONID`.
Finally, you need to set the tenant ID and subscription ID in the environment variables `AZUREDNS_TENANTID` and `AZUREDNS_SUBSCRIPTIONID`:
```sh
export AZUREDNS_SUBSCRIPTIONID="<SUBSCRIPTIONID>"
export AZUREDNS_TENANTID="<TENANTID>"
```
Then you can issue the certificate with acme.sh, for example:
```sh