Skip to content

Commit

Permalink
Merge pull request pulumi#812 from ChrisKlug/master
Browse files Browse the repository at this point in the history
Fixing problem with adding custom HTTPS to CDN
  • Loading branch information
joeduffy committed Nov 4, 2020
2 parents 8446311 + 313a19a commit 92e1428
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
22 changes: 20 additions & 2 deletions azure-ts-dynamicresource/cdnCustomDomain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,16 @@ class CDNCustomDomainResourceProvider implements pulumi.dynamic.ResourceProvider
inputs.resourceGroupName,
inputs.profileName,
inputs.endpointName,
this.name);
this.name,
{
customDomainHttpsParameters: {
certificateSource: "Cdn",
certificateSourceParameters: {
certificateType: "Dedicated"
},
protocolType: "ServerNameIndication"
}
});
}

const outs: DynamicProviderOutputs = {
Expand Down Expand Up @@ -234,7 +243,16 @@ class CDNCustomDomainResourceProvider implements pulumi.dynamic.ResourceProvider
newInputs.resourceGroupName,
newInputs.profileName,
newInputs.endpointName,
this.name);
this.name,
{
customDomainHttpsParameters: {
certificateSource: "Cdn",
certificateSourceParameters: {
certificateType: "Dedicated"
},
protocolType: "ServerNameIndication"
}
});

currentOutputs.httpsEnabled = true;
return { outs: currentOutputs };
Expand Down
2 changes: 1 addition & 1 deletion azure-ts-dynamicresource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@types/node": "^8.0.0"
},
"dependencies": {
"@azure/arm-cdn": "^4.2.0",
"@azure/arm-cdn": "^5.0.0",
"@azure/ms-rest-js": "^1.8.10",
"@azure/ms-rest-azure-js": "^1.3.7",
"@azure/ms-rest-nodeauth": "^1.1.1",
Expand Down

0 comments on commit 92e1428

Please sign in to comment.