This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modification from https://gist.github.com/lamw/988e4599c0f88d9fc25c9f2af8b72c92 | |
# Thanks to https://stackoverflow.com/a/22251597 for SHA256 details | |
Function Get-SSLThumbprint256 { | |
param( | |
[Parameter( | |
Position=0, | |
Mandatory=$true, | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true) | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$xmlpath = 'C:\Temp\DeploymentConfigTemplate.xml' | |
$features = New-Object -TypeName System.Collections.ArrayList | |
[xml]$xml = Get-Content $xmlpath | |
$xml.Objs.Obj.LST.Obj | ForEach-Object {$null = $features.Add($_.GetElementsByTagName('ToString').'#text')} | |
for ($i = 0; $i -lt $features.Count; $i++) | |
{ | |
$features[$i] = $features[$i].Substring($features[$i].IndexOf('_') + 1).Replace('_','-') | |
} | |
$features |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-SSLThumbprint { | |
param( | |
[Parameter( | |
Position=0, | |
Mandatory=$true, | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true) | |
] | |
[Alias('FullName')] | |
[String]$URL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"sendgridAccountName": { | |
"type": "string", | |
"metadata": { | |
"description": "The name of your new SendGrid account." | |
} | |
}, |