{"id":21343700,"url":"https://github.com/catalystcode/self-destroy-instance","last_synced_at":"2025-12-30T21:38:18.317Z","repository":{"id":73517203,"uuid":"101023489","full_name":"CatalystCode/self-destroy-instance","owner":"CatalystCode","description":"Self destroy instance in Azure Virtual Machine Scale Sets","archived":false,"fork":false,"pushed_at":"2017-08-22T06:05:09.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-16T03:14:21.799Z","etag":null,"topics":["azure","azure-vm-scale-sets","bash","docker","linux"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CatalystCode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-08-22T05:10:36.000Z","updated_at":"2019-01-12T07:39:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"53d5f828-380e-4097-89af-ddc60d38c6ca","html_url":"https://github.com/CatalystCode/self-destroy-instance","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CatalystCode/self-destroy-instance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fself-destroy-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fself-destroy-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fself-destroy-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fself-destroy-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CatalystCode","download_url":"https://codeload.github.com/CatalystCode/self-destroy-instance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CatalystCode%2Fself-destroy-instance/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266563915,"owners_count":23948689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["azure","azure-vm-scale-sets","bash","docker","linux"],"created_at":"2024-11-22T01:14:51.234Z","updated_at":"2025-12-30T21:38:18.290Z","avatar_url":"https://github.com/CatalystCode.png","language":"Shell","readme":"# Self destroy instance \nSelf destroy linux instance in Azure Virtual Machine Scale Sets\n\n## Prerequisites\n\nTo use this script, first you need to create an Azure Service Principal through [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli?toc=%2fazure%2fazure-resource-manager%2ftoc.json) or [Azure portal](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal).\n\n## How to use\n\nDefine the following environment variables\n\n#### Using Docker\n\nInside the Dockerfile or use the -e option\n```\nTENANT_ID = {Directory Id}\nCLIENT_ID = {Serivce Principal Id}\nCLIENT_SECRET = {Service Principal Secret}\nSUBSCRIPTION_ID = {Subscripton Id}\nRESOURCE_GROUP = {Resource group name} // Until it will be included in the VM Instance metadata\n```\n#### Using as a simple script inside the os\n```\nexport TENANT_ID = {Directory Id}\nexport CLIENT_ID = {Serivce Principal Id}\nexport CLIENT_SECRET = {Service Principal Secret}\nexport SUBSCRIPTION_ID = {Subscripton Id}\nexport RESOURCE_GROUP = {Resource group name} // Until it will be included in the VM Instance metadata\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalystcode%2Fself-destroy-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalystcode%2Fself-destroy-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalystcode%2Fself-destroy-instance/lists"}