gpt4 book ai didi

azure - Azure 中的专用终结点

转载 作者:行者123 更新时间:2023-12-03 14:16:24 26 4
gpt4 key购买 nike

我正在尝试使用专用端点(启用预览)创建 SQL 数据库。

我收到以下错误:

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"PrivateEndpointCannotBeCreatedInSubnetThatHasNetworkPoliciesEnabled\",\r\n \"message\": \"Private endpoint /subscriptions/1efd84d6-173f-42cc-80db-7b2c17eb0edd/resourceGroups/eu_poland_general/providers/Microsoft.Network/privateEndpoints/plink-private-endpoint cannot be created in a subnet /subscriptions/1efd84d6-173f-42cc-80db-7b2c17eb0edd/resourceGroups/eu_poland_general/providers/Microsoft.Network/virtualNetworks/plink-vnet-2/subnets/plsubnet since it has private endpoint network policies enabled.\",\r\n \"details\": []\r\n }\r\n}"}]}

我尝试连接的虚拟网络子网似乎启用了某些选项。我已经浏览了门户中的所有选项,但找不到任何有用的东西

最佳答案

从该错误消息:PrivateEndpointCannotBeCreatedInSubnetThatHasNetworkPoliciesEnabled

你可以disable network policies for private endpoints使用 Azure PowerShell 或 Azure CLI 或模板在该子网 virtualNetworks/plink-vnet-2/subnets/plsubnet 中。

例如,使用 Azure CLI,

az network vnet subnet update \ 
--name default \
--resource-group myResourceGroup \
--vnet-name myVirtualNetwork \
--disable-private-endpoint-network-policies true

关于azure - Azure 中的专用终结点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58390218/

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