Giter VIP home page Giter VIP logo

aznamingtool-tf's Introduction

AzNamingTool-TF

This repo can help you quickly deploy the Azure Naming Tool on an Azure Web App running on a linux Docker container using Terraform.

Instructions

Download the repo files, create a new terraform.tfvars file under the root directory of the repo and paste the following lines:

app_service_name      = ""
app_service_plan_name = ""
location              = ""
resource_group_name   = ""
storage_account_name  = ""
acr_name              = ""
managed_identity_name = ""

The above variables are used for the deployment of the Azure resources that will host the Azure Naming tool web application. Make sure that you provide your own values to these variables.

Login to your Azure subscription using Azure CLI.

az login

Deploy the Azure infrastructure using the typical Terraform flow.

terraform init
terraform plan
terraform apply

Keep a note of the hostname, you will use it later to access the application

image

Download/clone the CloudAdoptionFramework repo on your machine.

CD to the following path under the repo folder:

.\CloudAdoptionFramework-master\CloudAdoptionFramework-master\ready\AzNamingTool

Run the following command to build the docker image:

docker build -t azurenamingtool .

Login to the Azure Container Registry (provide the name of the Azure Container Registry as specified in the terraform.tfvars file (acr_name variable) ):

az acr login -n <the_name_of_your_acr>

Publish the docker image to the Azure Container Registry that was created by Terraform using the following command (provide the name of the Azure Container Registry as specified in the terraform.tfvars file):

docker tag azurenamingtool:latest <the_name_of_your_acr>.azurecr.io/tools/azurenamingtool
docker push <the_name_of_your_acr>.azurecr.io/tools/azurenamingtool

Your app should be available in a couple of minutes at the hostname that you recorded earlier.

aznamingtool-tf's People

Contributors

dpantaz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.