Skip to content

Instantly share code, notes, and snippets.

View abhaydhar's full-sized avatar

ABHAY DHAR abhaydhar

  • bengaluru
View GitHub Profile
@abhaydhar
abhaydhar / DeployKudu
Created October 7, 2019 12:22
Powershell Script to deploy Dotnet and Unicorn Files to Azure App Service using Kudu Rest API
# 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