-
-
Save justinyoo/4f4e6fb6a6cd6e376eab923a2503cee9 to your computer and use it in GitHub Desktop.
Azure Functions Deployment Strategies
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
$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