-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathExample.ps1
29 lines (23 loc) · 1.16 KB
/
Example.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# NOTE: To install, you must run Powershell elevated
# Install-Module AzureRM -AllowClobber
# NOTE: ACMESharp has a module that conflicts with 'Get-Certificate', -AllowClobber may allow ACMESharp to override that command.
# Install-Module ACMESharp -AllowClobber
$scriptRoot = (Split-Path -parent $MyInvocation.MyCommand.Path)
$moduleRoot = "$scriptRoot\Modules"
if (-Not ($env:PSModulePath.Contains($moduleRoot))) {
$env:PSModulePath = $env:PSModulePath + ";$moduleRoot"
}
Import-Module -Name Deploy-LeSslCertToAzure -Verbose
$VerbosePreference = "Continue"
$ErrorActionPreference = 'Stop'
# Login-AzureRmAccount
Deploy-LeSslCertToAzure `
-appGatewayRgName 'web-resoucegroup-rg' `
-appGatewayName 'mydomaintocertweb-agw' `
-appGatewayBackendHttpSettingsName 'appGatewayBackendHttpSettings' `
-domainToCert 'www.mydomaintocert.com' `
-certPassword 'mySweetPassword123!@' `
-azureDnsZone 'mydomaintocert.com' `
-azureDnsZoneResourceGroup 'web-resoucegroup-rg' `
-dnsAlias 'wwwDomainCom' `
-registrationEmail '[email protected]'