Skip to content

Instantly share code, notes, and snippets.

View bobalob's full-sized avatar

Dave Hall bobalob

View GitHub Profile
@bobalob
bobalob / Inline-Images.PS1
Created November 2, 2016 20:29
Generate Inline Images for an email in PowerShell
Param(
[Parameter(Mandatory = $true)] $imagePathArray,
[Parameter(Mandatory = $true)] $emailFrom,
[Parameter(Mandatory = $true)] $emailSubject,
[Parameter(Mandatory = $true)] $smtpServer,
[Parameter(Mandatory = $true)] $SendTo,
$emailBodyTitle=$emailSubject
)
if (!($imagePathArray.Gettype().BaseType.Name -eq "Array")) {
Write-Host "ImagePathArray must be of type Array"
@bobalob
bobalob / TerraformCredentials.ps1
Created November 2, 2016 20:24
Set Environment Variables in PowerShell for Azure RM Terraform
#Set Environment Variables for Azure RM Terraform
$ENV:ARM_SUBSCRIPTION_ID = ""
$ENV:ARM_CLIENT_ID = ""
$ENV:ARM_CLIENT_SECRET = "" # This should end with an '=' symbol
$ENV:ARM_TENANT_ID = ""