Created
July 15, 2019 08:44
-
-
Save jeevan-vj/fb7b01c1de5a59694a389abbacef2260 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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