gpt4 book ai didi

azure - 如何通过 ARM 模板创建 Azure AKS 服务

转载 作者:行者123 更新时间:2023-12-02 12:06:47 24 4
gpt4 key购买 nike

我正在开发 Azure Kubernetes 服务。我正在通过门户成功创建 AKS。但是,我需要通过 ARM 模板来完成。

如何借助 ARM 模板创建 AKS?

为此,我关注了link

但是,我收到了这样的问题:

Code : InvalidTemplate

Message : Deployment template validation failed: 'The template resource 'AKSsubnet/Microsoft.Authorization/36985XXX-XXXX-XXXX-XXXX-5fb6b7ebXXXX' for type 'Microsoft.Network/virtualNetworks/subnets/providers/roleAssignments' at line '53' and column '9' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-template/#resources for usage details.'.

最佳答案

How to create AKS with help of ARM Templates?

最直接的方法之一,导航到在门户中创建 AKS 页面,填写属性,单击下载自动化模板,然后您将获得模板。

enter image description here

您可以在自定义部署中测试模板,它会正常工作。

enter image description here

关于azure - 如何通过 ARM 模板创建 Azure AKS 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51749951/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com