Skip to content

Commit ab0ad2b

Browse files
Merge pull request #232427 from duongau/patch-10
Azure CDN - configure HTTPS - update command (GitHub issue #88099)
2 parents ef9b5fe + e1013ca commit ab0ad2b

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

articles/cdn/cdn-custom-ssl.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,31 +114,44 @@ You can use your own certificate to enable the HTTPS feature. This process is do
114114
115115
### Register Azure CDN
116116

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)
118125

119126
1. If needed, install [Azure PowerShell](/powershell/azure/install-az-ps) on your local machine.
120127

121128
2. In PowerShell, run the following command:
122129

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"`
129131

130132
```bash
131-
New-AzADServicePrincipal -ApplicationId "205478c0-bd83-4e1b-a9d6-db63a3e1e1c8" -Role Contributor
133+
New-AzADServicePrincipal -ApplicationId "205478c0-bd83-4e1b-a9d6-db63a3e1e1c8"
132134

133135
Secret :
134136
ServicePrincipalNames : {205478c0-bd83-4e1b-a9d6-db63a3e1e1c8,
135137
https://microsoft.onmicrosoft.com/033ce1c9-f832-4658-b024-ef1cbea108b8}
136138
ApplicationId : 205478c0-bd83-4e1b-a9d6-db63a3e1e1c8
137139
ObjectType : ServicePrincipal
138140
DisplayName : Microsoft.AzureFrontDoor-Cdn
139-
Id : c87be08f-686a-4d9f-8ef8-64707dbd413e
141+
Id : abcdef12-3456-7890-abcd-ef1234567890
140142
Type :
141143
```
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+
142155
### Grant Azure CDN access to your key vault
143156

144157
Grant Azure CDN permission to access the certificates (secrets) in your Azure Key Vault account.

0 commit comments

Comments
 (0)