{"id":20319534,"url":"https://github.com/davemurphysf/newreliccandidatelabdeploy","last_synced_at":"2026-03-06T07:03:39.865Z","repository":{"id":79338725,"uuid":"172143079","full_name":"davemurphysf/NewRelicCandidateLabDeploy","owner":"davemurphysf","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-22T23:12:06.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T09:29:49.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davemurphysf.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-22T22:28:32.000Z","updated_at":"2019-02-22T23:12:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"be3a4df1-5ee2-4fbc-823f-08a1d153d7c7","html_url":"https://github.com/davemurphysf/NewRelicCandidateLabDeploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davemurphysf/NewRelicCandidateLabDeploy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2FNewRelicCandidateLabDeploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2FNewRelicCandidateLabDeploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2FNewRelicCandidateLabDeploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2FNewRelicCandidateLabDeploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davemurphysf","download_url":"https://codeload.github.com/davemurphysf/NewRelicCandidateLabDeploy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2FNewRelicCandidateLabDeploy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30164904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T18:47:18.092Z","updated_at":"2026-03-06T07:03:39.839Z","avatar_url":"https://github.com/davemurphysf.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# New Relic Candidate Lab Deploy\n## Terraform on Azure\n\n### Prerequisites\n\n1. [Terraform](https://www.terraform.io/downloads.html) installed\n2. [Azure command line](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) (i.e. `az`) installed\n3. [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`\n4. Valid default SSH key pair (i.e. `id_rsa` and `id_rsa.pub`) located in your user ssh directory (i.e. `~/.ssh`)\n\n\n\n### Setup\n\n1. Clone this directory into a new folder for each candidate: `git clone https://github.com/davemurphysf/NewRelicCandidateLabDeploy.git \u003cCandidateName\u003e`\n2. Go into the directory `cd \u003cCandidateName\u003e`\n3. Get your Azure Subscription `id` and `tenantId` via: `az account show`\n```\n@Azure:~$ az account show\n{\n  \"environmentName\": \"AzureCloud\",\n  \"id\": \"9ffe9512-f4a2-42dd-1230-518aec34be21\",\n  \"isDefault\": true,\n  \"name\": \"Beyond Team Sandbox\",\n  \"registeredProviders\": [],\n  \"state\": \"Enabled\",\n  \"tenantId\": \"ac6692da-1231-422f-22a8-9eed6dbe83f1\",\n  \"user\": {\n    \"name\": \"agomez@datanerd.us\",\n    \"type\": \"user\"\n}\n```\n4. Create a file titled `terraform.tfvars` with the following contents\n```\nsubscription_id = \"\u003cAzure Subscription ID\u003e\"\ntenant_id = \"\u003cAzure Tenant ID\"\nexpiration = \"YYYY-MM-DD\"  //Date you want the candidates user account on the VM to expire\npassword = \"\u003cPassword for candidate\u003e\"  // i.e. AVeryLongPassword\ncandidate_name = \"\u003cName\u003e\" //No spaces allowed; used to namespace Azure resources from other candidates\n```\n5. Run `terraform init` to install the Terraform Azure provider\n6. Run `terraform plan -out tf.plan`.  \n7. Once the plan is created, run `terraform apply tf.plan` to apply the scripts.  It should take 5-10 minutes to create the entire environment\n8. Once complete, there should be 3 Outputs listed for the candidate to access the VM\n```\napp_dns = \u003cprefix\u003e.westus.cloudapp.azure.com\nvm_password = \u003cpassword\u003e\nvm_username = \u003cusername\u003e\n```\n9. The candiate can then log into the VM using `ssh \u003cvm_username\u003e@\u003capp_dns\u003e`\n10. You can login yourself under the default admin account (`myadmin`) using your existing SSH key: `ssh myadmin@\u003capp_dns\u003e`\n11. To destroy the environment after the lab is complete, use `terraform destroy -auto-approve`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemurphysf%2Fnewreliccandidatelabdeploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavemurphysf%2Fnewreliccandidatelabdeploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemurphysf%2Fnewreliccandidatelabdeploy/lists"}