Add code to Azure DNS bearer token
parent
d065fc8814
commit
ba68177afd
11
dnsapi.md
11
dnsapi.md
|
@ -1032,9 +1032,16 @@ You need to extract the token earlier in your CI/CD, for example with this comma
|
||||||
```sh
|
```sh
|
||||||
az account get-access-token --query accessToken --output tsv
|
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:
|
Then you can issue the certificate with acme.sh, for example:
|
||||||
```sh
|
```sh
|
||||||
|
|
Loading…
Reference in New Issue