You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-AllocationMethod Static -Sku Standard -Force -DomainNameLabel "apim-contoso"
217
+
-AllocationMethod Static -Sku Standard -Force -DomainNameLabel $apimDomainNameLabel
187
218
```
188
219
189
220
1. Create an API Management virtual network object by using the subnet `$apimSubnetData` you created.
@@ -195,11 +226,6 @@ The following example shows how to create an API Management instance in a virtua
195
226
1. Create an API Management instance inside the virtual network. This example creates the service in the Developer service tier. Substitute a unique name for your API Management instance.
196
227
197
228
```powershell
198
-
$domain = "contoso.net"
199
-
$apimServiceName = "ContosoApi" # API Management service instance name, must be globally unique
@@ -213,18 +239,6 @@ To set up custom domain names in API Management:
213
239
1. Initialize the following variables with the details of the certificates with private keys for the domains and the trusted root certificate. In this example, we use `api.contoso.net`, `portal.contoso.net`, and `management.contoso.net`.
214
240
215
241
```powershell
216
-
$gatewayHostname = "api.$domain" # API gateway host
217
-
$portalHostname = "portal.$domain" # API developer portal host
218
-
$managementHostname = "management.$domain" # API management endpoint host
219
-
$gatewayCertPfxPath = "C:\Users\Contoso\gateway.pfx" # Full path to api.contoso.net .pfx file
220
-
$portalCertPfxPath = "C:\Users\Contoso\portal.pfx" # Full path to portal.contoso.net .pfx file
221
-
$managementCertPfxPath = "C:\Users\Contoso\management.pfx" # Full path to management.contoso.net .pfx file
222
-
$gatewayCertPfxPassword = "certificatePassword123" # Password for api.contoso.net pfx certificate
223
-
$portalCertPfxPassword = "certificatePassword123" # Password for portal.contoso.net pfx certificate
224
-
$managementCertPfxPassword = "certificatePassword123" # Password for management.contoso.net pfx certificate
225
-
# Path to trusted root CER file used in Application Gateway HTTP settings
226
-
$trustedRootCertCerPath = "C:\Users\Contoso\trustedroot.cer" # Full path to contoso.net trusted root .cer file
0 commit comments