Skip to content

Commit 95c3126

Browse files
authored
Merge pull request #185337 from duongau/patch-2
AFD custom domain https - added CLI steps
2 parents 6a6b672 + b36932f commit 95c3126

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

articles/frontdoor/front-door-custom-domain-https.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,30 @@ You can use your own certificate to enable the HTTPS feature. This process is do
8787
8888
#### Register Azure Front Door
8989

90-
Register the service principal for Azure Front Door as an app in your Azure Active Directory via PowerShell.
90+
Register the service principal for Azure Front Door as an app in your Azure Active Directory using Azure PowerShell or Azure CLI.
9191

9292
> [!NOTE]
9393
> This action requires Global Administrator permissions, and needs to be performed only **once** per tenant.
9494
95+
##### Azure PowerShell
96+
9597
1. If needed, install [Azure PowerShell](/powershell/azure/install-az-ps) in PowerShell on your local machine.
9698

9799
2. In PowerShell, run the following command:
98100

99-
`New-AzADServicePrincipal -ApplicationId "ad0e1c7e-6d38-4ba4-9efd-0bc77ba9f037" -Role Contributor`
101+
```azurepowershell-interactive
102+
New-AzADServicePrincipal -ApplicationId "ad0e1c7e-6d38-4ba4-9efd-0bc77ba9f037" -Role Contributor
103+
```
104+
105+
##### Azure CLI
106+
107+
1. If need, install [Azure CLI](/cli/azure/install-azure-cli) on your local machine.
108+
109+
2. In CLI, run the following command:
110+
111+
```azurecli-interactive
112+
az ad sp create --id ad0e1c7e-6d38-4ba4-9efd-0bc77ba9f037 --role Contributor
113+
```
100114
101115
#### Grant Azure Front Door access to your key vault
102116

0 commit comments

Comments
 (0)