Skip to content

Instantly share code, notes, and snippets.

View incongruousm's full-sized avatar

Jason Deabill incongruousm

  • Southampton, UK
  • 17:57 (UTC +01:00)
View GitHub Profile
coreyasmith / CreateContributorPrincipal.ps1
Last active March 1, 2020 15:46
PowerShell script to create Service Principal with Contributor role in Azure Active Directory
[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,