We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$username = "`$website" $password = "pwd" $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $username,$password))) $apiUrl = "https://{sitename}.scm.azurewebsites.net/api/vfs/site/wwwroot/" Invoke-RestMethod -Uri $apiUrl -Headers @{Authorization=("Basic {0}" -f $base64AuthInfo)} -Method GET -ContentType "application/json";
Following your PS example with a the following change:
api/vfs/site/wwwroot/
"application/json"
I have tried 4 different sets of Credentials:
It either returns a 401 or i get the contents of the redirect page to login.
Must be something simple I am missing.
The text was updated successfully, but these errors were encountered:
Please see https://github.com/projectkudu/kudu/wiki/Deployment-credentials for details on the two kind of credentials that are valid to talk to the scm site.
Sorry, something went wrong.
Also, to isolate from PowerShell, please first test your credentials by going to https://{sitename}.scm.azurewebsites.net/basicauth in the browser.
No branches or pull requests
Following your PS example with a the following change:
api/vfs/site/wwwroot/
"application/json"
I have tried 4 different sets of Credentials:
It either returns a 401 or i get the contents of the redirect page to login.
Must be something simple I am missing.
The text was updated successfully, but these errors were encountered: