How can we use existing vnet and subnet in logic app using arm template

Abhishek Singh 46 Reputation points
2022-06-23T08:48:31.037+00:00

Hi,

How can I use existing Vnet and Subnet for my logic app, I am using arm template to create my logic app. Any example, I haven't seen any example based on this.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,873 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Kamlesh Kumar 3,861 Reputation points
    2022-06-24T07:29:32.783+00:00

    Hi @Abhishek Singh ,

    Thank you for asking this question on the Microsoft Q&A Platform.

    If you are already using template to create LA then I would suggest create a parameter for hostingEnvironmentProfile and get the existing Vnet & Subnet.

    Like below screenshot you can create a parameter and use it in template.json file.

    214617-image.png

    For your reference adding the template.json and parameter.json file and the steps to create it using ARM. You just have to edit the values in both the files and in below command.

    Note: Please change the extension of file to .json

    # Change the Logic_App name in parameters.json  
      
    # Run the command in PowerShell  
      
    az login  
      
    # After login run the below command  
      
    az deployment group create --subscription '<subscription_Name>' --resource-group <resource-group-name> --parameters /<Path>/parameters.json --template-file /<Path>/template.json  
    

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators