Skip to content

Instantly share code, notes, and snippets.

View incongruousm's full-sized avatar

Jason Deabill incongruousm

  • Southampton, UK
  • 22:02 (UTC +01:00)
View GitHub Profile
@coreyasmith
coreyasmith / CreateContributorPrincipal.ps1
Last active March 1, 2020 15:46
PowerShell script to create Service Principal with Contributor role in Azure Active Directory
param
(
[Parameter(Mandatory=$true, HelpMessage="Enter Azure Tenant Domain")]
[string] $tenant,
[Parameter(Mandatory=$true, HelpMessage="Enter Azure Subscription ID")]
[string] $subscriptionId,
[Parameter(Mandatory=$true, HelpMessage="Provide a unique display name for SPN application")]
[string] $appDisplayName,