Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $website = Get-AzureWebsite -Name "WebsiteName"
- $username = $website.PublishingUsername
- $password = $website.PublishingPassword
- $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username,$password)))
- $apiBaseUrl = "https://$($website.Name).scm.azurewebsites.net/vfs/data/jobs/continuous/{jobname}/job_log.txt"
- $kuduVersion = Invoke-RestMethod -Uri "$apiBaseUrl/environment" -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -Method GET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement