gpt4 book ai didi

azure - 我们可以使用 Azure CLI 在 azure 专用端点中设置 2 个静态 IP

转载 作者:行者123 更新时间:2023-12-03 06:49:32 30 4
gpt4 key购买 nike

我想运行 Aure CLI 在 Azure databrick 上创建专用端点,它需要两个 IP 来部署专用端点。我不知道如何在 [--ip-config] 处为 2 个 ip 配置脚本。我尝试搜索azure文档并发现仅配置1个ip时的情况

enter image description here

    id=$(az webapp list \
--resource-group CreatePrivateEndpointQS-rg \
--query '[].[id]' \
--output tsv)

az network private-endpoint create \
--connection-name myConnection \
--name myPrivateEndpoint \
--private-connection-resource-id $id \
--resource-group CreatePrivateEndpointQS-rg \
--subnet myBackendSubnet \
--group-id sites \
--ip-config name=myIPconfig group-id=sites member-name=sites private-ip-address=10.0.0.10 \
--vnet-name myVNet

作为我的引用,请点击此处 => https://learn.microsoft.com/en-us/azure/private-link/create-private-endpoint-cli?tabs=static-ip#code-try-6

最佳答案

如下面的文档中所述,Azure Databricks 的专用链接支持处于公共(public)预览版中,并且:

In the Public Preview release, only one private endpoint can be created directly from within the workspace creation flow. To create a separate front-end private endpoint from your transit VNet, you need to create an additional private endpoint but you need to do that after the workspace is deployed.

引用:https://learn.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/private-link

您可以将现成的模板与 Azure CLI 结合使用,通过后端专用链接终结点部署工作区。

引用:https://azure.microsoft.com/en-us/resources/templates/databricks-all-in-one-template-for-vnet-injection-privateendpoint/

https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-cli

一体化部署 ARM 模板创建以下资源:

  • 网络安全组
  • 资源组
  • VNet 包括工作区子网(标准的两个子网)和专用链接(另一个子网)
  • Azure Databricks 工作区
  • 后端专用链接端点

注意:该模板不会从传输 VNet 创建前端端点。创建工作区后,您可以手动添加该端点。

因此,无法通过 Azure CLI 或 Azure 门户在 Azure Databricks 的 Azure 专用终结点中设置 2 个静态 IP,因为它处于预览状态。您只能添加 1 个 IP,然后您必须通过 Portal 手动添加另一个 IP,如下文所述:

引用:https://learn.microsoft.com/en-us/azure/databricks/administration-guide/cloud-configurations/azure/private-link#create-the-workspace-by-using-a-custom-template-and-optionally-add-front-end-private-endpoints

关于azure - 我们可以使用 Azure CLI 在 azure 专用端点中设置 2 个静态 IP,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73825958/

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