I am trying to get a secret out of Azure Key Vault. It is a very simple Restful API call. For example for all key, it is as simple as this:
GET {vaultBaseUrl}/secrets?api-version=7.0
where vaultBaseUrl is provided in Azure Console as Vault DNS name. I am using console mode for testing https://docs.microsoft.com/en-us/rest/api/keyvault/getsecrets/getsecrets#code-try-0 But the return value if always 404. When I try curl in the Azure console, it gives 401 - Unauthorized. However I can use the command line to get the secret out. Is there any secret to making the restful call and curl work to get the secret out? All these situations use the same credentials. A side questions is, that on the micorosft api testing page there is a 'Request Preview' section with a green Run button, almost as if it is inviting you to run the api, but the link is to docs.microsoft.com and the copy button on the box is disabled. I have never seen so many problems in one place, so I am thinking may be I don't understand something here.