Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#Login with service principal
$clientId = "<CLIENT ID>"
$credentials = New-Object System.Management.Automation.PSCredential ($clientId, $securePassword)
Login-AzureRmAccount -ServicePrincipal -TenantId "<TENANTID>" `
-SubscriptionId "<SUBSCRIPTIONID>" `
-Credential $credentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment