Skip to content

Instantly share code, notes, and snippets.

@pixelicous
Created February 19, 2018 13:55
Show Gist options
  • Save pixelicous/925be5f9cb733c202751c6674d0fa75c to your computer and use it in GitHub Desktop.
Save pixelicous/925be5f9cb733c202751c6674d0fa75c to your computer and use it in GitHub Desktop.
get token
$response = Invoke-WebRequest -Uri http://localhost:50342/oauth2/token -Method GET -Body @{resource="https://vault.azure.net"} -Headers @{Metadata="true"}
@pixelicous
Copy link
Author

(Invoke-WebRequest -Uri https:///secrets/?api-version=2016-10-01 -Method GET -Headers @{Authorization="Bearer $KeyVaultToken"}).content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment