https://github.com/paullizer/azurecompute
Techniques, scripts, and workflows to manage Azure compute services.
https://github.com/paullizer/azurecompute
azure compute
Last synced: 2 months ago
JSON representation
Techniques, scripts, and workflows to manage Azure compute services.
- Host: GitHub
- URL: https://github.com/paullizer/azurecompute
- Owner: paullizer
- License: mit
- Created: 2021-07-30T01:05:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-05T18:59:54.000Z (over 2 years ago)
- Last Synced: 2025-02-15T13:08:08.758Z (2 months ago)
- Topics: azure, compute
- Language: PowerShell
- Homepage:
- Size: 2.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Compute
Processes to manage Azure Compute services.## Automated VM Vertical Scaling
Azure Alerts combined with two Azure Automation Runbooks using Webhooks provides a capability to vertically scale Virtual Machines based on CPU thresholds over a given window using a custom VM size table.
There are methods to do each of these tasks on their own. You could use the built-in Alert runbook to Scale Up or Scale Down a VM; however, the system sizes use marketplace sizing which may exceed cost parameters defined by your project (or your wallet).
#### Goal
Scale one or more monitored Virtual Machines up or down using a custom list of VM sizes.
#### Requirements
1. Azure Automation Account with Run As
2. Azure Runbook
3. Azure Virtual Machine(s)
4. Azure Alert#### Resources
The following resources were consulted during the development of this capability.
- https://www.petri.com/automatically-resize-azure-vm
- https://www.apress.com/gp/blog/all-blog-posts/scale-up-azure-vms/15823864
- https://blog.ctglobalservices.com/azure/jgs/azure-automation-using-webhooks-part-1-input-data/
- https://docs.microsoft.com/en-us/azure/automation/automation-solution-vm-management-enable
- https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-common-schema
- https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-common-schema-definitions
- https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/action-groups-logic-app
- https://docs.microsoft.com/en-us/azure/virtual-machines/windows/resize-vm#use-powershell-to-resize-a-vm-not-in-an-availability-set
- https://devblogs.microsoft.com/scripting/find-the-index-number-of-a-value-in-a-powershell-array/
https://docs.microsoft.com/en-in/azure/automation/automation-webhooks