Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $AzureAccountPassword = "xxxxxxxxxxxxxxxxxxxxxxxxx"
- $AzureAccountUsername = "xxxxxxxxxxxxxxxxxxxxxxxxx"
- $AzureAccountTenantId = "xxxxxxxxxxxxxxxxxxxxxxxxx"
- $secpasswd = ConvertTo-SecureString -AsPlainText $AzureAccountPassword -Force
- $mycreds = New-Object System.Management.Automation.PsCredential($AzureAccountUsername,$secpasswd )
- Login-AzureRmAccount -ServicePrincipal -Credential $mycreds -TenantId $AzureAccountTenantId
- Get-AzureWebsite
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement