https://github.com/ligoj/plugin-vm-azure
Ligoj plugin for Azure instance life cycle management : scheduled ON/OFF
https://github.com/ligoj/plugin-vm-azure
azure ligoj ligoj-plugin vm
Last synced: about 1 year ago
JSON representation
Ligoj plugin for Azure instance life cycle management : scheduled ON/OFF
- Host: GitHub
- URL: https://github.com/ligoj/plugin-vm-azure
- Owner: ligoj
- License: mit
- Created: 2017-04-10T16:03:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-02-12T08:36:15.000Z (over 1 year ago)
- Last Synced: 2025-03-27T11:38:25.036Z (about 1 year ago)
- Topics: azure, ligoj, ligoj-plugin, vm
- Language: Java
- Homepage:
- Size: 492 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :link: Ligoj Azure VM plugin [](https://maven-badges.herokuapp.com/maven-central/org.ligoj.plugin/plugin-vm-azure)
[](https://sonarcloud.io/dashboard?id=org.ligoj.plugin%3Aplugin-vm-azure)
[](https://sonarcloud.io/dashboard/index/org.ligoj.plugin:plugin-vm-azure)
[](https://www.codacy.com/gh/ligoj/plugin-vm-azure?utm_source=github.com&utm_medium=referral&utm_content=ligoj/plugin-vm-azure&utm_campaign=Badge_Grade)
[](https://www.codefactor.io/repository/github/ligoj/plugin-vm-azure-azure)
[](https://codeclimate.com/github/ligoj/plugin-vm-azure/maintainability)
[](http://fabdouglas.mit-license.org/)
[Ligoj](https://github.com/ligoj/ligoj) EC2 AWS plugin, and extending [VM plugin](https://github.com/ligoj/plugin-vm)
Provides the following features :
- Supported operations from the [VM plugin](https://github.com/ligoj/plugin-vm) : ON, OFF, REBOOT, RESTART. No suspend or resume.
- Use AWS secret and access key with AWS API 4.0
Dashboard features :
- Status of the VM, including the intermediate busy mode
- OS
- DNS and IP
- Disk size
- CPU
- RAM
# Subscription parameters
* Tenant ID (Directory ID)
* Application ID (Identifier of application account of ligoj)
* Key (secret token of application account of ligoj)
* Subscription ID
* Resource group name
* VM (RM) name
## How to create/get these Azure parameters?
### Tenant ID/Application ID and Key
Everything takes place in [Azure Active Directory](https://portal.azure.com/?l=en.en-us#blade/Microsoft_AAD_IAM)
* Navigate to [RegisteredApps](https://portal.azure.com/?l=en.en-us#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps)
* Click on "New application registration"
* Fill the form : Name="ligoj", Application type="Web app / API", Sign-on URL=ligoj URL, can be updated later
* "Create"
* Click on the created registration
* Copy the "Application ID"
* Click on "Keys" (right panel)
* In the "Passwords" panel, fill "Key Description" and "Duration", then "Save"
* Copy the one time displayed key value.
* Navigate to [Properties](https://portal.azure.com/?l=en.en-us#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/Properties)
* Copy the "Directory ID", used as "Tenant ID" by Ligoj
### Resource Group
Navigate to [Resource groups](https://portal.azure.com/?l=en.en-us#blade/HubsExtension/Resources/resourceType/Microsoft.Resources%2Fsubscriptions%2FresourceGroups)
Copy the resource group name
Grant the rights to "ligoj" account on the selected resource group
### Subscription
* Navigate to [Cost Management + Billing](https://portal.azure.com/?l=en.en-us#blade/Microsoft_Azure_Billing/SubscriptionsBlade)
* Get the subscription id from one of your enabled subscription
# Technical details
Used API is "Microsoft.Compute" (2017-03-30)
Authentication is OAuth2, no required CLI to be installed
Only RM type "VM" are supported, no "Classic".
Only the VM name is stored, not its identifier. So a deleted VM and then recreated with the same name is not lost by ligoj.