Skip to content

Instantly share code, notes, and snippets.

View RossPatterson's full-sized avatar

Ross Patterson RossPatterson

  • 04:46 (UTC -05:00)
View GitHub Profile
@stuartpreston
stuartpreston / Azure-AAD-Authentication-Rest.ps1
Created April 15, 2015 11:29
Some help for those using Powershell to automate Azure Resource Manager but don't want to install the Azure Powershell Cmdlets or ADAL, enter credentials in a web browser popup or set up an application as a Service Principal....
<#
.Synopsis
Retrieves a token object from the Azure OAUTH2 service without launching a credentials window.
.DESCRIPTION
Retrieves a token object that can later be used to authorise requests against the Microsoft Azure Resource Manager REST API.
.EXAMPLE
Get-AzureOauth2Token -username 'aad.user@mydomain.onmicrosoft.com' -password 'P2ssw0rd'
#>
Function Get-AzureOauth2Token
{
@wolever
wolever / README.md
Last active August 16, 2019 13:42
Tools for creating an x509 certificate authority and using it to create and sign certificates.