{"id":20463197,"url":"https://github.com/devwithkrishna/azure-runcommands-on-vm-vmss-with-python-sdk","last_synced_at":"2026-04-09T16:46:18.123Z","repository":{"id":253752142,"uuid":"842836176","full_name":"devwithkrishna/azure-runcommands-on-vm-vmss-with-python-sdk","owner":"devwithkrishna","description":"Code to execute run commands on Azure VMs and VMSS using python sdks","archived":false,"fork":false,"pushed_at":"2024-08-15T14:15:38.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-16T00:55:50.266Z","etag":null,"topics":["azure","azure-python-sdks","poetry","python","run-commands"],"latest_commit_sha":null,"homepage":"","language":"Python","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/devwithkrishna.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":"2024-08-15T07:38:33.000Z","updated_at":"2024-08-19T07:09:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"d15da7b1-84c9-488a-90ad-316fc67d218d","html_url":"https://github.com/devwithkrishna/azure-runcommands-on-vm-vmss-with-python-sdk","commit_stats":null,"previous_names":["devwithkrishna/azure-runcommands-on-vm-vmss-with-python-sdk"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fazure-runcommands-on-vm-vmss-with-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fazure-runcommands-on-vm-vmss-with-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fazure-runcommands-on-vm-vmss-with-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fazure-runcommands-on-vm-vmss-with-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devwithkrishna","download_url":"https://codeload.github.com/devwithkrishna/azure-runcommands-on-vm-vmss-with-python-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242023192,"owners_count":20059297,"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","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-python-sdks","poetry","python","run-commands"],"created_at":"2024-11-15T13:09:50.322Z","updated_at":"2025-10-25T01:44:10.514Z","avatar_url":"https://github.com/devwithkrishna.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# azure-runcommands-on-vm-vmss-with-python-sdk\nCode to execute run commands on Azure VMs and VMSS using python sdks\n\n# Why?\n\n* In Enterprises / Companies There will be multiple VMs or VMSS or both running \n* These might be maintained and updated regularly or not\n* Sometimes there will be a requirement to stop some services or so\n* This can be used for the purpose\n\n\n# Inputs\n\n| Inputs | Description | Required |\n|--------|-------------|----------|\n| subscription_name | Azure subscription name | :heavy_check_mark: |\n| resource_group | Azure resource group name | :heavy_check_mark: |\n| vm_name or vmss_name | Azure Vm or VMSS name | :heavy_check_mark: |\n\n\n# How \n\n* This program uses Azure Python SDKs to execute run commands\n\n\n# How to run locally\n\n* Clone this repo and change directory to `azure-runcommands-on-vm-vmss-with-python-sdk`\n\n* Get the required parameters and run the code using below commands\n\n* python az_vm_runcommands.py --subscription_name `\u003cSubscription Name\u003e` --resource_group `\u003cresource group name\u003e` --vm_name `\u003cVM name\u003e`\n\n* python az_vmss_runcommands.py --subscription_name `\u003cSubscription Name\u003e` --resource_group `\u003cresource group name\u003e` --vmss_name `\u003cVMSS name\u003e`\n\n\n# References\n\n* [azure-mgmt-resourcegraph](https://learn.microsoft.com/en-us/python/api/overview/azure/mgmt-resourcegraph-readme?view=azure-python)\n  This SDK is used to determine the subscription id from subscription name\n\n* [azure-identity](https://learn.microsoft.com/en-us/python/api/azure-identity/azure.identity?view=azure-python)\n  This is used for Authentication purposes\n\n* [azure-mgmt-compute](https://learn.microsoft.com/en-us/python/api/overview/azure/mgmt-compute-readme?view=azure-python)\n  This package is used to execute the run commands on resources\n* [python/azure-mgmt-compute](https://azuresdkdocs.blob.core.windows.net/$web/python/azure-mgmt-compute/32.0.0/azure.mgmt.compute.html#azure.mgmt.compute.ComputeManagementClient.virtual_machine_run_commands)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithkrishna%2Fazure-runcommands-on-vm-vmss-with-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevwithkrishna%2Fazure-runcommands-on-vm-vmss-with-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithkrishna%2Fazure-runcommands-on-vm-vmss-with-python-sdk/lists"}