Skip to content

Commit

Permalink
Add https redirect
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
TeamDman committed Oct 1, 2021
1 parent 9cb3450 commit 1856377
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions ca-raddest/5-cdn/4-enable-https-redirect.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Read-Config;

az cdn endpoint rule add `
--resource-group $resourceGroup `
--profile-name $cdn `
--name $cdn `
--order 1 `
--rule-name "http_to_https" `
--match-variable "RequestScheme" `
--operator "Equal" `
--match-values "HTTP" `
--action-name "UrlRedirect" `
--redirect-protocol "Https" `
--redirect-type "PermanentRedirect";

0 comments on commit 1856377

Please sign in to comment.