Azure媒体服务-使用Python SDK创建实时输出和流定位器

我正在研究一个使用Azure Media Services Python SDK(v3)的项目。我有以下代码,一旦相关联的实时事件运行,它将创建实时输出和流定位器:

# Step 2: create a live output (used to reference the manifest file)
live_outputs = self.__media_services.live_outputs
config_data_live_output = LiveOutput(asset_name=live_output_name,archive_window_length=timedelta(minutes=30))
output = live_outputs.create(StreamHandlerAzureMS.RESOUCE_GROUP_NAME,StreamHandlerAzureMS.ACCOUNT_NAME,live_event_name,live_output_name,config_data_live_output)

# Step 3: get a streaming locator (the ID of the locator is used in the URL)
locators = self.__media_services.streaming_locators
config_data_streaming_locator = StreamingLocator(asset_name=locator_name)
locator = locators.create(StreamHandlerAzureMS.RESOUCE_GROUP_NAME,locator_name,config_data_streaming_locator)

self.__media_services是类型AzureMediaServices的对象。当我运行上面的代码时,我收到以下异常:

azure.mgmt.media.models._models_py3.ApiErrorException: (ResourceNotFound) Live Output asset was not found.

问题::Azure Media Services为什么在创建资源的操作中抛出此错误?我该如何解决这个问题?

请注意,我已经成功使用服务主体对SDK进行了Azure媒体服务的身份验证,并且可以使用ffmpeg成功地将视频推送到现场活动。

相关文章

功能概要:(目前已实现功能)公共展示部分:1.网站首页展示...
大体上把Python中的数据类型分为如下几类: Number(数字) ...
开发之前第一步,就是构造整个的项目结构。这就好比作一幅画...
源码编译方式安装Apache首先下载Apache源码压缩包,地址为ht...
前面说完了此项目的创建及数据模型设计的过程。如果未看过,...
python中常用的写爬虫的库有urllib2、requests,对于大多数比...