简体   繁体   English

无法创建Azure服务容器

[英]Cannot create Azure Service Container

I tried to create an Azure Service Container in the UK West region. 我试图在英国西部地区创建一个Azure服务容器。 I went through all the steps without issue however once I clicked 'Create' after a few moments I was met with : 我经历了所有步骤而没有问题,但是一旦我点击“创建”一段时间后我遇到了:

LocationNotAvailableForResourceTypeThe provided location 'ukwest' is not available for resource type 'Microsoft.ContainerService/containerServices'. LocationNotAvailableForResourceType提供的位置“ukwest”不适用于资源类型“Microsoft.ContainerService / containerServices”。 List of available regions for the resource type is 'japaneast,centralus,eastus2,japanwest,eastasia,southcentralus,australiaeast,australiasoutheast,brazilsouth,southeastasia,westus,northcentralus,westeurope,northeurope,eastus'. 资源类型的可用区域列表是'japaneast,centralus,eastus2,japanwest,eastasia,southcentralus,australiaeast,australiasoutheast,brazilsouth,southeastasia,westus,northcentralus,westeurope,northeurope,eastus'。

Okay, I realised that was my mistake and went on to create the container in West Europe. 好吧,我意识到这是我的错误,并继续在西欧创建容器。

Now when I attempt to create the container I am met with the same error, despite setting the location to West Europe. 现在,当我尝试创建容器时,尽管将位置设置为西欧,但我遇到了同样的错误。

I have tried : 我试过了 :

  1. Hard refreshing and going through the whole process again. 很难刷新并再次经历整个过程。
  2. Clearing my web cache and going through the whole process again. 清除我的Web缓存并再次完成整个过程。
  3. Opening an incognito window and going through the whole process again. 打开隐身窗口并再次完成整个过程。

I have also ensured that the Azure Container Service and Azure Container Registry are registered on my subscription ID. 我还确保Azure容器服务和Azure容器注册表在我的订阅ID上注册。 Initially the resource group I was attempting to deploy on was set to UK West, however after deleting and recreating on West Europe, I still am unable to create the service container. 最初我尝试部署的资源组设置为UK West,但是在删除并在West Europe上重新创建后,我仍然无法创建服务容器。

Update: 更新:

I have had Microsoft Azure Support on this case. 在这种情况下,我有Microsoft Azure支持。 It looks like there is an issue whereby my subscription ID cannot create the service container in the West Europe region. 看起来我的订阅ID无法在西欧地区创建服务容器。 This has been referred onto the technical team. 这已被提交给技术团队。 I'll post the solution here when I receive it. 我收到它时会在这里发布解决方案。

Azure Container Service is supported in westeurope region, you can see the support of the services in this link: westeurope区域支持Azure容器服务,您可以在此链接中看到服务的支持:

You clearly are not showing how you are creating your cluster, we need more info on the steps you are following and some screenshots. 您显然没有展示如何创建群集,我们需要有关您所遵循的步骤和一些屏幕截图的更多信息。 But just so you know, it actually works , I just deployed a kubernetes cluster to the 'westeurope' region with the following commands on the Az cli 2.0 : 但只是你知道, 它确实有效 ,我刚刚在'westeurope'区域部署了一个kubernetes集群,并在Az cli 2.0上使用以下命令:

RG=stackoverflowtest
LOCATION=westeurope
az group create --name=$RG --location=$LOCATION
az acs create --orchestrator-type=kubernetes --resource-group $RG --name=$CLUSTER_NAME --dns-prefix=$DNS_PREFIX

This is the result you get after 5-10 minutes is something like this: 这是5-10分钟后得到的结果:

creating service principal.........done
waiting for AAD role to propagate.done
{
  "id": "/subscriptions/xxxxxxxx-xxx-xxxx-xxx-xxxxxxxxxxxd/resourceGroups/stackoverflowtest/providers/Microsoft.Resources/deployments/azureclixx.xx",
  "name": "azureclixx.xx",
  "properties": {
    "correlationId": "xxxxxxx-xxxx-xxx-xxxx-xxxxxxxxxx",
    "debugSetting": null,
    "dependencies": [],
    "mode": "Incremental",
    "outputs": null,
    "parameters": {
      "clientSecret": {
        "type": "SecureString"
      }
    },
    "parametersLink": null,
    "providers": [
      {
        "id": null,
        "namespace": "Microsoft.ContainerService",
        "registrationState": null,
        "resourceTypes": [
          {
            "aliases": null,
            "apiVersions": null,
            "locations": [
              "westeurope"
            ],
            "properties": null,
            "resourceType": "containerServices"
          }
        ]
      }
    ],
    "provisioningState": "Succeeded",
    "template": null,
    "templateLink": null,
    "timestamp": "2017-03-14T21:00:39.066034+00:00"
  },
  "resourceGroup": "stackoverflowtest"
}

And, this is the official documentation on how to deploy a kubernetes ACS: 而且,这是关于如何部署kubernetes ACS的官方文档:

Ok, So I've had MSFT Support on this with me for a couple weeks. 好的,所以我已经和我一起使用MSFT支持了几个星期。 The solution! 解决方案!

I had a dns that you couldn't use. 我有一个你无法使用的dns。 Even though it passes through all validation checks telling me that it's fine the deployment failed. 即使它通过了所有验证检查,告诉我部署失败也没问题。

Changed the dns and it's fine. 改变了dns,没关系。

So to summarise all the things you need to do, which it doesn't state anywhere: 所以总结一下你需要做的所有事情,它没有在任何地方陈述:

  • Make sure you have registered Azure Container Service and Azure Container Registry on your subscription ID. 确保在订阅ID上注册了Azure容器服务和Azure容器注册表。

  • Make sure you are deploying to a region that actually supports your feature, not only that make sure your resource group is located in the same valid region. 确保部署到实际支持您的功能的区域,不仅要确保您的资源组位于同一个有效区域。 (It allows you to pass through all validation selecting a resource group that is in an invalid region) (它允许您通过选择位于无效区域中的资源组的所有验证)

  • Make sure your resource group hasn't been created by a previous failed deployment. 确保先前失败的部署尚未创建您的资源组。

  • Attempt to change your dns to something else, it might be invalid somehow. 尝试将您的DNS更改为其他内容,它可能无效。 Although it will not tell you this, just fail the deployment. 虽然它不会告诉你这个,但是部署失败了。

  • Essentially do not trust the validation on Azure at all. 基本上根本不信任Azure上的验证。 It'll tell you you're able to do things and everything is fine, when in fact it isn't. 它会告诉你,你能做的事情,一切都很好,而事实并非如此。

I'll edit this answer with any further relevant update I receive. 我将使用我收到的任何进一步相关更新来编辑此答案。

  1. Even though it passes through all validation checks telling me that it's fine the deployment failed. 即使它通过了所有验证检查,告诉我部署失败也没问题。 Changed the dns and it's fine. 改变了dns,没关系。

This should not happen now as ACS has started surfacing more detailed error messages. 现在不应该发生这种情况,因为ACS已经开始出现更详细的错误消息。 Also, ACS has another change rolling out currently regarding DNS name already taken error and should be available world wide in ~2 weeks. 另外,ACS目前正在推出另一个关于DNS名称已经采取错误的变更,并且应该在~2周内在全球范围内可用。 With this change the error message should be more detailed and actionable. 通过此更改,错误消息应该更加详细和可操作。

  1. Make sure you have registered Azure Container Service and Azure Container Registry on your subscription ID. 确保在订阅ID上注册了Azure容器服务和Azure容器注册表。

User does not need to register for ACR in order to use ACS unless their scenario needs it. 除非他们的场景需要,否则用户无需注册ACR即可使用ACS。

  1. Make sure you are deploying to a region that actually supports your feature, not only that make sure your resource group is located in the same valid region. 确保部署到实际支持您的功能的区域,不仅要确保您的资源组位于同一个有效区域。 (It allows you to pass through all validation selecting a resource group that is in an invalid region) (它允许您通过选择位于无效区域中的资源组的所有验证)

I am assuming you deployed using portal. 我假设您使用门户部署。 At one point portal was showing all public Azure regions and not just ACS regions. 有一次,门户网站显示了所有公共Azure区域,而不仅仅是ACS区域。 This has since been fixed. 这已经得到修复。

  1. Make sure your resource group hasn't been created by a previous failed deployment. 确保先前失败的部署尚未创建您的资源组。

This is by design (ACS will be created in the region that the resource group is in even if resource group name is unique globally). 这是设计的(即使资源组名称在全局范围内,也将在资源组所在的区域中创建ACS)。

  1. Attempt to change your dns to something else, it might be invalid somehow. 尝试将您的DNS更改为其他内容,它可能无效。 Although it will not tell you this, just fail the deployment. 虽然它不会告诉你这个,但是部署失败了。

An already created ACS resource does not allow user to change the DNS name prefix. 已创建的ACS资源不允许用户更改DNS名称前缀。 If you don't mind sharing an operation id/resource name I can look into this and get back to you. 如果您不介意共享操作ID /资源名称,我可以查看并回复您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在 Azure 中启用“Microsoft.Container Service” - Cannot enable “Microsoft.Container Service” in Azure 无法连接到Azure容器服务中的Docker守护程序 - Cannot connect to Docker daemon in Azure Container Service 无法创建 Azure 容器服务类型 = Kubernetes - Not able to create Azure Container Service type = Kubernetes Azure 存储服务 REST API:创建容器 - Azure Storage Service REST APIs: Create Container 为Azure App Service创建Blob容器 - Create blob container for Azure App Service 无法创建Azure容器实例(Windows) - Cannot create Azure container instance (Windows) 在 azure devops 上创建管道以在 azure 应用服务上部署 docker 容器? - Create a pipeline on azure devops to deploy a docker container on azure app service? 如何使用私有 Azure Container Registry 创建一个 Azure APP Service? - How to create a Azure APP Service with a private Azure Container Registry? Azure容器服务上的Marathon - 无法扩展到所有节点 - Marathon on Azure Container Service - cannot scale to all nodes Azure Web 容器应用程序 - 容器无法连接到外部 WCF 服务 - Azure Web App For Containers - Container cannot connect to outside WCF Service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM