Remove host name bindings
MODIFY
azure-nextgen-ts-webapp-privateendpoint-vnet-injection/index.ts
azure-nextgen-ts-webapp-privateendpoint-vnet-injection/index.ts
@@ -53,13 +53,6 @@ const site1 = new azure_nextgen.web.v20190801.WebApp("backendApp", {
});
const webappDnsName = ".azurewebsites.net";
-const hostnameBinding1 = new azure_nextgen.web.v20190801.WebAppHostNameBinding("hostNameBindingSite1", {
- hostName: pulumi.interpolate `${site1.name}${webappDnsName}`,
- hostNameType: "Verified",
- name: pulumi.interpolate `${site1.name}${webappDnsName}`,
- resourceGroupName: resourceGroup.name,
- siteName: site1.name,
-});
// Setup frontend app
const site2NameParam = config.get("site2NameParam") || pulumi.interpolate `webapp2${rand.result}`;
@@ -74,14 +67,6 @@ const site2 = new azure_nextgen.web.v20190801.WebApp("frontendApp", {
},
});
-const hostnameBinding2 = new azure_nextgen.web.v20190801.WebAppHostNameBinding("hostNameBindingSite2", {
- hostName: pulumi.interpolate `${site2.name}${webappDnsName}`,
- hostNameType: "Verified",
- name: pulumi.interpolate `${site2.name}${webappDnsName}`,
- resourceGroupName: resourceGroup.name,
- siteName: site2.name,
-});
-
const virtualNetworkNameParam = config.get("virtualNetworkNameParam") || "vnet";
const privateDNSZoneName = "privatelink.azurewebsites.net";
const virtualNetworkCIDRParam = config.get("virtualNetworkCIDRParam") || "10.200.0.0/16";

Remove host name bindings