Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created September 3, 2016 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/4f4e6fb6a6cd6e376eab923a2503cee9 to your computer and use it in GitHub Desktop.
Save justinyoo/4f4e6fb6a6cd6e376eab923a2503cee9 to your computer and use it in GitHub Desktop.
Azure Functions Deployment Strategies
$username = "[USERNAME]"
$password = "[PASSWORD]"
$base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username,$password)))
$apiUrl = "https://[FUNCTION_SITE].scm.azurewebsites.net/api/zip/site/wwwroot"
$filePath = "C:\path\to\ase-dev-fn-demo.zip"
Invoke-RestMethod -Uri $apiUrl -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -Method PUT -InFile $filePath -ContentType "multipart/form-data"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment