Closed kadlard closed 1 year ago
Issue seems to be authenticating against the azure media services. not sure if maybe something changed in azure, but authentication isnt working
https://docs.microsoft.com/en-us/azure/media-services/latest/configure-connect-dotnet-howto
needed to update code to create AAD service principal and use that to authenticate
Thank you @kadlard! Your input will be reviewed shortly.
Recommendation with the latest SDK is to use Managed Identity and the DefaultCredential object. Closing this for now with the new updated samples, it should be clearer and more consistent across all of the .NET 7 version of the SDKs.
This issue is for a: (mark with an
x
)Minimal steps to reproduce
After a bit more digging, its the request to create or update against the storage account that seems to fail
Any log messages given by the failure
Message: Test method HighAvailability.Tests.E2ETests.SubmitTestRequests threw exception: Microsoft.Azure.Management.Media.Models.ApiErrorException: Operation returned an invalid status code 'Unauthorized'
Stack Trace: TransformsOperations.CreateOrUpdateWithHttpMessagesAsync(String resourceGroupName, String accountName, String transformName, IList
1 outputs, String description, Dictionary
2 customHeaders, CancellationToken cancellationToken) TransformsOperationsExtensions.CreateOrUpdateAsync(ITransformsOperations operations, String resourceGroupName, String accountName, String transformName, IList`1 outputs, String description, CancellationToken cancellationToken) MediaServicesHelper.EnsureTransformExists(IAzureMediaServicesClient client, String resourceGroupName, String accountName, String transformName, Preset preset) line 44 E2ETests.SubmitTestRequests() line 124 ThreadOperations.ExecuteWithAbortSafety(Action action)Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful