Skip to content

Instantly share code, notes, and snippets.

@jeevan-vj
Created July 15, 2019 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeevan-vj/b40909625df9f054806cc84c998ae2a1 to your computer and use it in GitHub Desktop.
Save jeevan-vj/b40909625df9f054806cc84c998ae2a1 to your computer and use it in GitHub Desktop.
Create Service Principal
#Create Service principal
New-AzureRmADServicePrincipal -ApplicationId $app.ApplicationId `
-DisplayName $dummyUrl `
-Password $securePassword `
-Scope "/subscriptions/<SUBSCRIPTION ID>" `
-Role Contributor `
-StartDate ([datetime]::Now) `
-EndDate $([datetime]::now.AddYears(1)) -Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment