【问题标题】:Azure container instances with VNET creation error带有 VNET 创建错误的 Azure 容器实例
【发布时间】:2020-06-02 13:06:48
【问题描述】:

我正在尝试将容器实例创建为连接到现有 VNET 和子网的专用网络。我昨天设法让它运行,但是更新或刷新图像非常缓慢。我正在使用 dockerhub 上的私有图像。

现在,当我尝试使用相同的 VNET、子网和映像创建 ACI 时,出现错误:

The requested resource is not available in the location 'westeurope' at this moment. Please retry with a different resource request or in another location. Resource requested: '1' CPU '1.5' GB memory 'Linux' OS virtual network Click here for details

这是我在尝试通过 CLI 创建时使用的命令,但令人欣慰的是(我认为)我得到的错误与通过门户网站完全相同。

// 失败

az container create 
    --resource-group xxx
    --cpu 2 
    --memory 3 
    --image xxx/xxx:latest 
    --ip-address Private 
    --location WestEurope 
    --name acixxxtest 
    --os-type Linux 
    --ports 2001 
    --protocol TCP 
    --registry-login-server index.docker.io 
    --registry-password xxx
    --registry-username xxx
    --restart-policy OnFailure 
    --subnet /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx/subnets/xxxx 
    --vnet /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworks/xxx

我已尝试使用公共网络设置此完全相同的映像,它可以正常完成,更新和重新启动也可以按预期工作。

// 有效

az container create 
    --resource-group xxx
    --cpu 2 
    --memory 3 
    --image xxx/xxx:latest 
    --ip-address Public
    --location WestEurope 
    --name acixxxtest 
    --os-type Linux 
    --ports 2001 
    --protocol TCP 
    --registry-login-server index.docker.io 
    --registry-password xxx
    --registry-username xxx
    --restart-policy OnFailure

我在删除关联的网络配置文件时也遇到了问题,但我找到了解决方法,因为我认为这是一个已知问题。

我已经在两个不同的订阅上尝试了这个,结果完全相同,但 CPU/RAM 等的不同组合。共同点似乎是添加任何类型的 VNET。

使用下面的链接,我认为我可能以某种方式违反了“西欧”位置的资源限制使用情况,但据我所知,我在范围内。

我还应该提到我已经尝试过使用 OOTB NGINX 映像,但它也失败了

https://docs.microsoft.com/en-us/azure/container-instances/container-instances-region-availability

如果有人有任何建议或反馈或分享类似经历,我们将不胜感激。

更新:

似乎其他人也有同样的问题: Azure container instances (ACI) deployment to virtual network fails (region: westeurope)

【问题讨论】:

    标签: azure subnet azure-container-instances vnet


    【解决方案1】:

    我会向 MSFT 提出支持请求,要求 ACI 上的配额

    我是在这里回复“Azure container instances (ACI) deployment to virtual network fails (region: westeurope)”的人

    似乎是西欧地区的后端容量问题

    【讨论】:

    • 谢谢大佬,其实我之前联系过他们,并被要求在这里发布问题?!我会等到明天,看看会发生什么。再次感谢
    • 好的,虽然通常我们可以在 SO 上提供帮助,但这个问题听起来像是他们的能力问题。
    【解决方案2】:

    事实证明,这只是我需要使用 VNET 创建 ACI 的特定案例的中断。我倒霉。

    今天尝试,它是第一次创建。

    【讨论】:

      猜你喜欢
      • 2019-08-23
      • 1970-01-01
      • 2021-06-23
      • 1970-01-01
      • 2020-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多