azure - 为什么我不能简单地在 Azure 中创建业务中心容器?
问题描述
我试图在 Azure 中创建一个业务中心容器,并在 powershell 中使用以下内容。
$imageName = “mcr.microsoft.com/businesscentral:10.0.17763”
$resourceGroup = “d365rg”
$location = “EastUS”
$containerName = “d365bcdemo02”
$dnsName = “d365bcdemo02.eastus.azurecontainer.io”
$artifactUrl = Get-BCArtifactUrl -type sandbox -country us -select Latest
az container create -g $resourceGroup -n $containerName --image $imageName --os-type Windows --cpu 2
--memory 16 --ip-address public -e artifactUrl=$artifactUrl ACCEPT_EULA=Y USESSL=N ClickOnce=Y
publicDnsName=$dnsName --dns-name-label $containerName --ports 80 7046 7047 7048 7049 8080
但我不断收到错误:
"az : The image 'mcr.microsoft.com/businesscentral:10.0.17763' in container group 'd365bcdemo02' is
not accessible. Please check the image and registry credential."
什么凭据,我没有容器注册表,也不认为您需要一个。这里会发生什么?
解决方案
该问题是由错误的图像标签引起的。所以解决方案是使用图像中可用的标签。
推荐阅读
- keras - keras:如何将预测映射到标签?
- mysql - 如何在 MYSQL 中使用 if 查询创建 VIRTUAL 列
- python - tesseract 用盒子弄乱图像上的数据
- tensorflow - 训练顺序模型时索引不匹配
- flutter - 将当前发布的 android 应用程序转换为 Flutter 版本
- python - 从列表python中删除同一单元格中的浮点重复项
- android - 更换片段后如何更改此标题?
- javascript - 在您的网络应用上读取和显示来自 Firebase 的数据
- flutter - 如何在颤动中将 Widget 传递给 const 构造函数?
- reinforcement-learning - 运行“python 示例/rllib/traffic_light_grid.py”时出现 FLOW 错误