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
# User name from WebDeploy Publish Profile. | |
$userName = "`$" #Use backtick while assigning variable content | |
# Password from WebDeploy Publish Profile | |
$password = "password" | |
# Encode username and password to base64 string | |
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $userName, $password))) | |
$envName = "https://.scm.azurewebsites.net" #Replace from publish settings |