【发布时间】:2019-09-05 16:51:14
【问题描述】:
我正在尝试在我们的 Azure 容器实例上托管语音服务 docker 映像。我已按照微软文档中描述的步骤(下面的链接):
所以我做的步骤是:
- 通过 Azure 门户创建语音资源
- 复制了密钥和端点
- 从上述文档中复制 yaml 模板并替换以下字段:containergroupname、username、password、containername、imageName、serviceEndpointUrl 和 ApiKey 字段。
当我通过 cloudshell 运行 yaml 文件时出现错误:
图片 'containerpreview.azurecr.io/microsoft/cognitive-services-speech-to-text:latest' 在容器组“xxxcontainergroup”中不可访问。请检查 图像和注册表凭据。
我已经重新检查了凭据并且它们是正确的。 我很乐意粘贴 yaml 文件,但它与 microsoft 文档中定义的模板相同,只是替换了值。
任何帮助将不胜感激。
编辑:下面是我的 yaml 文件:
apiVersion: 2018-10-01
location: uksouth
name: voicetranscriptionservicegroup
imageRegistryCredentials:
- server: containerpreview.azurecr.io
username: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
password: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx
properties:
containers:
- name: voicetranscriptionservice
properties:
image: containerpreview.azurecr.io/microsoft/cognitive-services-speech-to-text
environmentVariables: # These env vars are required
- name: eula
value: accept
- name: billing
value: https://uksouth.api.cognitive.microsoft.com/sts/v1.0/issuetoken
- name: apikey
value: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
resources:
requests:
cpu: 4 # Always refer to recommended minimal resources
memoryInGb: 8 # Always refer to recommended minimal resources
ports:
- port: 5000
osType: Linux
restartPolicy: OnFailure
ipAddress:
type: Public
ports:
- protocol: tcp
port: 5000
tags: null
type: Microsoft.ContainerInstance/containerGroups
【问题讨论】:
-
您是否首先填写并提交了Cognitive Services Speech Containers Request form 以请求访问容器? Microsoft Azure 要求
bringing the power of Speech AI to containers,请注意Request access to the container registry部分中的要求。 -
您当前的情况与其他两个 SO 线程 stackoverflow.com/questions/50226811/… 和 stackoverflow.com/questions/49498695/… 不同,它们与您的情况相似。
-
谢谢彼得。我提交了申请表并获得了用户名和密码。此外,我检查了 imageregistry 名称,它们与语音服务 api docs.microsoft.com/en-us/azure/cognitive-services/… 的公共预览名称匹配
标签: speech-to-text microsoft-cognitive azure-cognitive-services azure-container-instances