mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-07 23:28:20 +08:00
Add code to Azure DNS bearer token
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
|
||||||
|
|||||||
Reference in New Issue
Block a user