首页 > 解决方案 > 为什么我不能简单地在 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."

什么凭据,我没有容器注册表,也不认为您需要一个。这里会发生什么?

标签: azurepowershellazure-container-instancesdynamics-business-central

解决方案


该问题是由错误的图像标签引起的。所以解决方案是使用图像中可用的标签。


推荐阅读