No description
- HCL 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| content | ||
| .gitignore | ||
| readme.md | ||
| template.yaml | ||
Create Linux VM in Azure using Terraform
This is the template for backstage to create a Linux VM in Azure using Terraform
Requirements
To run this terraform you need to have the following installed:
- Terraform > 1.4.6
- An SPN created using https://learn.microsoft.com/en-us/azure/developer/terraform/authenticate-to-azure?tabs=azure-powershell
- Environment Variables for the client id and secret
Getting Started
- Open a terminal window and navigate to the root
- Run the following command to check everything is in the right place
terraform validate
terraform plan
terraform apply
- Check your Azure portal
Project Structure
Project Structure is as follows:
- main.tf: File containing the main terraform code to describe the VM
- providers.tf: File containing the cloud provider details
- variables.tf: File containing any variables that can be set
- outputs.tf: File specifying outputs from the terraform apply process
License
This project is licensed under the MIT License.