Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T23:39:54.000Z (3 months ago)
- Last Synced: 2024-11-15T19:52:28.218Z (3 months ago)
- Topics: azure, ligoj, ligoj-plugin, vm
- Language: Java
- Homepage:
- Size: 490 KB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :link: Ligoj Azure VM plugin [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.ligoj.plugin/plugin-vm-azure/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.ligoj.plugin/plugin-vm-azure)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=org.ligoj.plugin%3Aplugin-vm-azure&metric=coverage)](https://sonarcloud.io/dashboard?id=org.ligoj.plugin%3Aplugin-vm-azure)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?metric=alert_status&project=org.ligoj.plugin:plugin-vm-azure)](https://sonarcloud.io/dashboard/index/org.ligoj.plugin:plugin-vm-azure)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/bc580f38cbcc4dc3be7d2602c8b77fd4)](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)
[![CodeFactor](https://www.codefactor.io/repository/github/ligoj/plugin-vm-azure/badge)](https://www.codefactor.io/repository/github/ligoj/plugin-vm-azure-azure)
[![Maintainability](https://api.codeclimate.com/v1/badges/edaa5b4d7dc0405eb10302b4ec34fbec/maintainability)](https://codeclimate.com/github/ligoj/plugin-vm-azure/maintainability)
[![License](http://img.shields.io/:license-mit-blue.svg)](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.0Dashboard 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.