English 中文(简体)
Azure虚拟网络网关IP配置ID和名称的用途是什么?(BICEP发布)
原标题:What is the purpose of Azure Virtual Network Gateway IPConfigurations ID and Name? (BICEP issue)

我最近不得不创建一些Azure站点到站点的VPN连接,并决定为未来的部署创建一个BICEP文件。病毒网络网关资源模板可在以下位置找到:https://learn.microsoft.com/en-us/azure/templates/microsoft.network/virtualnetworkgateways?pivots=deployment-语言二头肌

我最初几次尝试BICEP部署失败(请求格式“无效”),在查看了手动创建的功能性虚拟网络网关JSON视图后,我确定我的BICEP丢失了:

ipConfigurations: [
      {
        id:  string 
        name:  string 

我已经从链接的BICEP模板中删除了所有我没有使用的参数;其中包括删除上面的id和name。

Let s say the manually created and functional Virtual Network Gateway has ID: /subscriptions/0123456789-abcd/rgs/myRg/providers/Microsoft.Network/virtualNetworkGateways/myVnetGw

The value of the ipConfigurations ID in the JSON view would be: /subscriptions/0123456789-abcd/rgs/myRg/providers/Microsoft.Network/virtualNetworkGateways/myVnetGw/ipConfigurations/default

名称是“default”,也可以从ID中抽象出来。

我不太明白的是,BICEP资源定义怎么可能需要资源本身正在创建的ID?知道正确的值是什么,我取了这个预测值,并将其插入到我的BICEP参数中,现在它部署起来没有问题。

现在将其与ipConfigurations块中的其他2个ID进行比较。一个用于虚拟网络,另一个用于公共IP地址或完全独立的资源,当然,除非您提供数据,否则病毒网络网关不会知道这些资源。

我错过了什么?

谢谢

问题回答

你的问题不清楚。我不知道二头肌,但考虑到地形的工作方式,我想我可以推断出你的观点。

VPN网关是一种Azure资源,代表一组具有网络路由管理功能的专用虚拟机。它旨在建立不同网络之间的安全通信,这种通信有一些不同的体系结构选择

azure上的每个资源或资源附加设置都有一个标识名称

说到这里,BICEP定义必须要求存在与您所做的架构选择相匹配的资源附加设置ip_configuration(基于其他VPN网关配置),该设置声明外部(公共ip)和内部(子网和专用ip)端点,由于公共IP子网是预要求,因此必须在VPN网关本身之前创建它们。





相关问题
Windows Azure WorkerRole response

I am working on an Azure demo to run Powershell in a worker role. In my web role I add the name of the Powershell script which is to be run to a CloudQueue object. I can print the script output to ...

Windows Azure WebRole stuck in a deployment loop

I ve been struggling with this one for a couple of days now. My current Windows Azure WebRole is stuck in a loop where the status keeps changing between Initializing, Busy, Stopping and Stopped. It ...

Getting a token for Windows Azure

We are looking at Windows Azure, but getting a token appears to be hard now, at least that s what I m seeing in web searches. Anyone tried it or know how to accelerate that process? Any idea how long ...

Developing Azure .Net 4.0 Applications

Presently .Net 4.0 is not supported on Azure. This thread indicates that you will not be able to use .Net 4.0 with VS 2010 until it is supported in the cloud. http://social.msdn.microsoft.com I d ...

.NET 4.0 on Windows Azure?

My google-fu is failing me on this one. As a possible solution to Unit Testing .NET 3.5 projects using MStest in VS2010 (but I ve put this in a seperate question because it s kind of unrelated): Is ...

热门标签