azure - Azure 中的专用终结点

标签 azure azure-virtual-network azureportal

我正在尝试使用专用端点(启用预览)创建 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/

相关文章:

azure - 如何在 azure APIM 上禁用 cors?

c# - 将 Crystal Report 与 Azure 结合使用

ASP.net URL 重写到不同的域

silverlight - 使用 azure 托管 silverlight 媒体

azure - 使用新规则更新现有 Azure 负载均衡器失败

azure - 无法从 Debian 9 登录 Azure 帐户

c# - 在 Azure 中使用 Identity Server 签名证书

azure - 按名称在 Azure VM 之间连接

azure - Azure VM 的公共(public)静态 IP

用于货币信贷的 Azure 仪表板小部件