Laramée Emmanuelle (Externe) Thanks for posting your question in Microsoft Q&A. The default health endpoint of APIM is https://{baseUrlAPIM}/status-0123456789abcdef
and there is no need to pass subscription id as a query parameter. You are calling this API correctly (like https://{baseUrlAPIM}/status-0123456789abcdef) and I see that you have validated this via another client like Postman.
I am not an expert in Azure DevOps and quickly reviewing, the issue appears to be that Azure pipeline task is missing the subscription ID and suggest you validating service connection like described in this discussion. Check out Manage service connections and Connect to Microsoft Azure with an ARM service connection doc and make sure the subscription id is configured in the given scope/connection (and the connection is valid). Troubleshoot ARM service connections may also help in troubleshooting the issue.
I would like to let you know that Azure DevOps is currently not supported in Microsoft Q&A (supported products in Q&A are listed here). If you have any further questions or issues with pipelines or DevOps, please reach out to https://developercommunity.visualstudio.com/AzureDevOps forum and the community experts will assist you further in resolving the issue.
I hope this helps and let me know if any questions.
If you found the answer to your question helpful, please take a moment to mark it as Yes
for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.