Advertisement
Guest User

Untitled

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