"Stop API" for Live Event - Error "InvalidResource"

Chris O 1 Reputation point
2021-06-07T17:16:16.117+00:00

I'm setting up a live event and want to use the Rest API commands to start and stop the event. Start works but Stop returns with the error message of "InvalidResource" even though the resource name and location are the same as the start (see below for error).

"error": {
"code": "InvalidResource",
"message": "Exception of type 'Microsoft.Media.Streaming.Common.Api.Types.ApiException' was thrown."

Secondary question: Rest API's seem to be the only way to end a live event without deleting outputs. Is this true? is there a way to end a live event but NOT delete the event outputs?

Azure Media Services
Azure Media Services
A group of Azure services that includes encoding, format conversion, on-demand streaming, content protection, and live streaming services.
303 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Xavier Pouyat 591 Reputation points Microsoft Employee
    2021-06-08T13:32:27.533+00:00

    Hello,
    You need to delete the output(s) attached to the event before stopping the live event.
    Deleting the output will not delete the recorded data if you keep the asset. Deleting the output will only stop the recording from the live event.

    0 comments No comments

  2. Zhi Yong 1 Reputation point
    2022-08-27T14:52:22.863+00:00

    Hi there,

    I tried deleting the output as instructed before stopping the live event, but I'm still faced with the same error.

    0 comments No comments