https://github.com/davemurphysf/newreliccandidatelabdeploy
https://github.com/davemurphysf/newreliccandidatelabdeploy
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/davemurphysf/newreliccandidatelabdeploy
- Owner: davemurphysf
- Created: 2019-02-22T22:28:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T23:12:06.000Z (almost 7 years ago)
- Last Synced: 2025-01-14T13:28:27.936Z (11 months ago)
- Language: HCL
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# New Relic Candidate Lab Deploy
## Terraform on Azure
### Prerequisites
1. [Terraform](https://www.terraform.io/downloads.html) installed
2. [Azure command line](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) (i.e. `az`) installed
3. [Logged into your azure account](https://docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli?view=azure-cli-latest) in the cli: `az login`
4. Valid default SSH key pair (i.e. `id_rsa` and `id_rsa.pub`) located in your user ssh directory (i.e. `~/.ssh`)
### Setup
1. Clone this directory into a new folder for each candidate: `git clone https://github.com/davemurphysf/NewRelicCandidateLabDeploy.git `
2. Go into the directory `cd `
3. Get your Azure Subscription `id` and `tenantId` via: `az account show`
```
@Azure:~$ az account show
{
"environmentName": "AzureCloud",
"id": "9ffe9512-f4a2-42dd-1230-518aec34be21",
"isDefault": true,
"name": "Beyond Team Sandbox",
"registeredProviders": [],
"state": "Enabled",
"tenantId": "ac6692da-1231-422f-22a8-9eed6dbe83f1",
"user": {
"name": "agomez@datanerd.us",
"type": "user"
}
```
4. Create a file titled `terraform.tfvars` with the following contents
```
subscription_id = ""
tenant_id = ".westus.cloudapp.azure.com
vm_password =
vm_username =
```
9. The candiate can then log into the VM using `ssh @`
10. You can login yourself under the default admin account (`myadmin`) using your existing SSH key: `ssh myadmin@`
11. To destroy the environment after the lab is complete, use `terraform destroy -auto-approve`