Azure-docs: How can deploy with v-net from file?

Created on 25 Sep 2018  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

Didn't see this doc about available fields been updated:
https://docs.microsoft.com/en-us/azure/templates/microsoft.containerinstance/containergroups


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

container-instancesvc cxp doc-enhancement in-progress triaged

Most helpful comment

Hello @wy193777 and @timwebster9,

We're currently working on publishing a backlog of reference content. Included in this backlog is the latest REST API reference for ACI and networking. We've just updated the Resource Manager template reference for Azure Container Instances:

Microsoft.ContainerInstance/containerGroups template reference

In it, you'll find the networkProfile property appearing near the bottom of the schema definition:

"networkProfile": {
  "id": "string"
}

As you can see, this requires the resource ID of a 'networkProfile', which you need to create first by using the networking API. As well, you also need to create a _virtual network_, _subnet_, and _subnet delegation_, also by using the networking API. Once you have all those resources created, you can then deploy a container group to the subnet by specifying the networkProfile in the ARM template or YAML file.

The networking REST API reference and Resource Manager template reference is also in the queue for being updated with the latest API version. I'll update this issue once that goes live (as well as the ACI REST API reference) so that you can refer to it for the required networking resources.

Cc: @KumudD @jimdial @MicahMcKittrick-MSFT @jluk

All 6 comments

Thanks for reaching out. To confirm, you found what you were looking for in the doc you linked. However the discoverability was not ideal. So I assume you are looking for something along the lines of adding a reference to that document to this document. Correct?

I'm looking for a way that we can deploy containers with v-net options included in --file yaml file.

@wy193777 got it. Thanks for clarifying.

I will do some research and get back to you on this.

Hello @wy193777 and @timwebster9,

We're currently working on publishing a backlog of reference content. Included in this backlog is the latest REST API reference for ACI and networking. We've just updated the Resource Manager template reference for Azure Container Instances:

Microsoft.ContainerInstance/containerGroups template reference

In it, you'll find the networkProfile property appearing near the bottom of the schema definition:

"networkProfile": {
  "id": "string"
}

As you can see, this requires the resource ID of a 'networkProfile', which you need to create first by using the networking API. As well, you also need to create a _virtual network_, _subnet_, and _subnet delegation_, also by using the networking API. Once you have all those resources created, you can then deploy a container group to the subnet by specifying the networkProfile in the ARM template or YAML file.

The networking REST API reference and Resource Manager template reference is also in the queue for being updated with the latest API version. I'll update this issue once that goes live (as well as the ACI REST API reference) so that you can refer to it for the required networking resources.

Cc: @KumudD @jimdial @MicahMcKittrick-MSFT @jluk

@wy193777 @timwebster9 FYI we are still working on this offline. Will update once I have more

@wy193777 here is the link to the content we are working to get added

https://github.com/MicrosoftDocs/azure-docs/pull/15952

It is still in the review process but it is in the works.

The networking references shared by @mmacy should get you started on this for now. At least until the content is added.

I will close this out for now as the doc is in the process of being added with more details. Let me know if you have more questions.

Was this page helpful?
0 / 5 - 0 ratings