msgraph-cli
msgraph-cli copied to clipboard
Show response headers for long running operations
For long running operations, such as creating an external connection schema, we need to return the location header which allows users to check the operation state. Right now, we don’t return any information which makes it impossible for users to check the operation status, because the link to check the operation state is returned only once and there’s no other way to construct or retrieve it.
In the PowerShell SDK the current recommendation is to use Invoke-MgGraphRequest https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1452
With the latest release the response headers have been deserialized and can the individual header params can be accessed via a hashtable.
In this case one can retrieve the location header.
@timayabi2020, this is the CLI repository