Link to home
Start Free TrialLog in
Avatar of Dipesh Patel
Dipesh Patel

asked on

Need help for Infrastructure as code in Microsoft Azure

Hi Experts,
 We are working on Azure POC for Platform as Service and IAAS. We have created the resources as per the attached architecture.  Now we have to download those resources and working on Infrastructure as code.

I have exported template from Resource group. Now we are planning to create the same environment by this template to another tenant. I have tried to download and deploy template to another tenant but did not work out. Do i need to change any parameter?

Can you please advice me for the steps?

Thank you
Architecture.pptx
ExportedTemplate-Magnificent_8.zip
Avatar of Rohit Anand
Rohit Anand
Flag of India image

Hey Dipesh, Let me review it and yes you definitely need to change the parameter.. like subscriptions and all
Avatar of Dipesh Patel
Dipesh Patel

ASKER

Thank you Rohit.
Hi Rohit,
 We have finished the Architecture. We have added some virtual machine for jump box and IIS servers. We have total 39 resources and exported as template. I tried to run that Json template in another subscription to create same architecture but it's failed. It has some circular dependency.  

Do i need to break down template?  

template.txt
Hi Dipesh,

Can you message me Architecture which you are looking to deploy on Azure? I can make ARM Template from my end and can be able to send you.

Sorry, I was not active this month much due to some personal commitment,  I am available now to work on the same.

Do message me architecture diagram  and also the details which you are looking to deploy...

I need the instances size incase if its vmanf what all services which you are looking to deploy
Hi Rohit,
 We are just trying to make POC. Our goal is to create the infrastructure as service to deploy any application to that infrastructure by IIS server or Jenikin CI CD pipeline. User does not have to learn Azure to deploy any application. Our goal is to create the Infrastructure by template to any resource group.  We have added some inbound and outbound rules for security.

Attaching diagram.  

User generated image
 Deployments have been organized within virtual networks.

· The load-balancer with public-ip address routes requests to respective availability zone virtual networks.

· Virtual network is divided into subnets.

o Public

o Private

o Jump

· VM’s deployed within the subnets have pre-configured network security groups.

· Usage of subnets:

Public Private Jump

· Application hosting.

· RESTful API.

· CI/CD pipeline. · Storage. · Files, databases, BLOBs. · Securely access VM’s in public and private subnets. · Ensures ports of VM’s in public and private subnets are not exposed to the internet.
Hi Rohit ,
 Let me know if you need individual template by category.  Attaching the resources we have created.
Azure-Resources.xlsx
I need to review the complete ARM, i also tried to execute and got the same errors as your... it says, the dependency detected.. We need to check the each dependency and its defined with "DependsON" Parameter

dependsOn
No
Resources that must be deployed before this resource is deployed. Resource Manager evaluates the dependencies between resources and deploys them in the correct order. When resources aren't dependent on each other, they're deployed in parallel. The value can be a comma-separated list of a resource names or resource unique identifiers. Only list resources that are deployed in this template. Resources that aren't defined in this template must already exist. Avoid adding unnecessary dependencies as they can slow your deployment and create circular dependencies. For guidance on setting dependencies, see Defining dependencies in Azure Resource Manager templates.


https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-define-dependencies

Will be able to sort this out.. Allow me some time
Thank you so much Rohit for your time and help. I will also take a look that link.
Hi Rohit,
 I just wanted to let you know that we are trying to write template from scratch.  We did not add storage account and workspace resources in script. We have to add manually those resources and need to run template. It's fails for some resources but when you keep deploy mostly resources created.


configuration.txt
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.