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.
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 or upvote 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