我正在尝试使用以下 git repo 来连接到 azure ams,上传视频并进行流式传输: https ://github.com/Azure-Samples/media-services-v3-node-tutorials/blob/main/ AMSv3Samples/StreamFilesSample/index.ts
出于某种原因,我不断收到以下错误:
The client 'XXX' with object id 'XXX' does not have authorization to perform action 'Microsoft.Media/mediaServices/transforms/write' over scope '/subscriptions/XXX/resourceGroups/TEST-APP/providers/Microsoft.Media/mediaServices/TESTAMP/transforms/ContentAwareEncoding' or the scope is invalid. If access was recently granted, please refresh your credentials
AD 用户是所有者,但我知道这是权限问题。我在网上搜索了几个小时我需要授予什么权限以及在哪里但找不到任何解决方案
错误在这里抛出:
let encodingTransform = await mediaServicesClient.transforms.createOrUpdate(resourceGroup, accountName, encodingTransformName, {
name: encodingTransformName,
outputs: [
{
preset: adaptiveStreamingTransform
}
]
});
当然,我已将 .env 文件更新为我的 azure 帐户的正确数据。谁能指出我缺少什么以及如何授予此权限?
谢谢!