I am trying to use the Microsoft Azure Rest API Run Command:
https://docs.microsoft.com/en-us/rest/api/compute/virtual%20machines%20run%20commands/runcommand
I e
It is normal, when got 202
response, you need to call another api to check the result.
In your case, you will get a response header like below, just call the api in the location
(also need the Authorization Bearer token).
I test it in the postman, it works fine.
For more details, you could refer to this doc - Track asynchronous Azure operations, and see this sample.