Operation returned an invalid status code 'Forbidden' in Azure Media services

Jiayu Lou 20 Reputation points Microsoft Employee
2023-03-31T13:46:12.25+00:00

SDK Version:

Microsoft.Azure.Management.Media: 3.0.4

Error Stack:

AddDifferentErrorInfo in SICIMonitorReport.cs:273 says:

1415662 [different error] message: calling VideoProcessorImplemenetation failed, AccountId : ?, Total batch size is : ?, Exception is : Microsoft.Azure.Management.Media.Models.ApiErrorException: Operation returned an invalid status code 'Forbidden'

at Microsoft.Azure.Management.Media.TransformsOperations.GetWithHttpMessagesAsync(String resourceGroupName, String accountName, String transformName, Dictionary`? customHeaders, CancellationToken cancellationToken)

at Microsoft.Azure.Management.Media.TransformsOperationsExtensions.GetAsync(I Proportion:0.13

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.
317 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,506 Reputation points Microsoft Employee
    2023-04-06T18:10:00.41+00:00

    It seems like you are facing an issue with Azure Media Services SDK. The error message "Operation returned an invalid status code 'Forbidden'" indicates that the operation you are trying to perform is not authorized. This could be due to incorrect credentials or insufficient permissions. To resolve this issue, you can try the following steps:

    1. Check if you have provided the correct credentials for your Azure Media Services account. Make sure that the account name and key are correct.
    2. Verify that you have sufficient permissions to perform the operation. You can check the role-based access control (RBAC) settings for your account to ensure that you have the necessary permissions.
    3. Check if there are any network or firewall issues that might be blocking the request. You can try to access the Azure Media Services API from a different network or machine to see if the issue persists.

    I hope this helps! Let me know if you have any other questions.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.