@ahd ,
Welcome to Microsoft Q&A Platform!
Thanks for reaching out!
I see that you're trying to list the Gateway Debug Credentials for enabling tracing, but it seems like the request is missing the required Authorization header. This is typically caused by the absence of an authentication token.
To resolve this:
- You can generate an Azure Active Directory (AAD) token using PowerShell with the following command:
$accessToken = Get-AzAccessToken -ResourceTypeName "https://management.azure.com"
- Extract the Token: The output will include the access token in the Token property. For example:
$token = $accessToken.Token
- Use the Token in Your Request: Add the token to the Authorization header of your HTTP request as follows:
Example Usage in Postman:Authorization: Bearer <your_access_token>
- Open Postman.
- In the Headers tab of your request, add:
Key: Authorization Value: Bearer <your_access_token>
- Test your request to ensure it works.
Get-AzAccessToken
command, you can refer to the official Microsoft documentation: Get-AzAccessToken Documentation
If you're still running into issues, let me know, and I’ll be happy to assist further.