@@ -114,31 +114,44 @@ You can use your own certificate to enable the HTTPS feature. This process is do
114
114
115
115
### Register Azure CDN
116
116
117
- Register Azure CDN as an app in your Azure Active Directory via PowerShell.
117
+ Register Azure CDN as an app in your Azure Active Directory.
118
+
119
+ > [ !NOTE]
120
+ > * ` 205478c0-bd83-4e1b-a9d6-db63a3e1e1c8 ` is the service principal for ` Microsoft.AzureFrontDoor-Cdn ` .
121
+ > * You need to have the ** Global Administrator** role to run this command.
122
+ > * The service principal name was changed from ` Microsoft.Azure.Cdn ` to ` Microsoft.AzureFrontDoor-Cdn ` .
123
+
124
+ # [ Azure PowerShell] ( #tab/powershell )
118
125
119
126
1 . If needed, install [ Azure PowerShell] ( /powershell/azure/install-az-ps ) on your local machine.
120
127
121
128
2 . In PowerShell, run the following command:
122
129
123
- ` New-AzADServicePrincipal -ApplicationId "205478c0-bd83-4e1b-a9d6-db63a3e1e1c8" -Role Contributor `
124
-
125
- > [ !NOTE]
126
- > * ` 205478c0-bd83-4e1b-a9d6-db63a3e1e1c8 ` is the service principal for ` Microsoft.AzureFrontDoor-Cdn ` .
127
- > * You need to have the ** Global Administrator** role to run this command.
128
- > * The service principal name was changed from ` Microsoft.Azure.Cdn ` to ` Microsoft.AzureFrontDoor-Cdn ` .
130
+ ` New-AzADServicePrincipal -ApplicationId "205478c0-bd83-4e1b-a9d6-db63a3e1e1c8" `
129
131
130
132
``` bash
131
- New-AzADServicePrincipal -ApplicationId " 205478c0-bd83-4e1b-a9d6-db63a3e1e1c8" -Role Contributor
133
+ New-AzADServicePrincipal -ApplicationId " 205478c0-bd83-4e1b-a9d6-db63a3e1e1c8"
132
134
133
135
Secret :
134
136
ServicePrincipalNames : {205478c0-bd83-4e1b-a9d6-db63a3e1e1c8,
135
137
https://microsoft.onmicrosoft.com/033ce1c9-f832-4658-b024-ef1cbea108b8}
136
138
ApplicationId : 205478c0-bd83-4e1b-a9d6-db63a3e1e1c8
137
139
ObjectType : ServicePrincipal
138
140
DisplayName : Microsoft.AzureFrontDoor-Cdn
139
- Id : c87be08f-686a-4d9f-8ef8-64707dbd413e
141
+ Id : abcdef12-3456-7890-abcd-ef1234567890
140
142
Type :
141
143
```
144
+
145
+ # [Azure CLI](#tab/cli)
146
+
147
+ 1. If needed, install [Azure CLI](/cli/azure/install-azure-cli) on your local machine.
148
+
149
+ 1. Use the Azure CLI to run the following command:
150
+
151
+ ` ` ` azurecli-interactive
152
+ az ad sp create --id 205478c0-bd83-4e1b-a9d6-db63a3e1e1c8
153
+ ` ` `
154
+
142
155
# ## Grant Azure CDN access to your key vault
143
156
144
157
Grant Azure CDN permission to access the certificates (secrets) in your Azure Key Vault account.
0 commit comments