Scheduling Azure Virtual Machine (VM) Startup With Azure Automation And Tags

preview_player
Показать описание

I personally don't trust automation and prefer doing everything manually but for some reason, Matt does not. He'd rather schedule things ahead of time like starting up Azure virtual machines. Lazy. And he's also assigning tags so he doesn't have to manually choose them too! This guy's laziness just takes the cake.

Рекомендации по теме
Комментарии
Автор

Great video, would be very useful if the powershell code is included in the description.

chaotang
Автор

Bloody brilliant. Short and concise powershell script.

AllenVisser
Автор

Hi Matt, thanks for your video, it's very easy and functionaly. Do you have also the shutdown version?

andreafantinel
Автор

Thanks for this video. It helps me start VM. I needed to do this on weekdays and I added few lines to it.


#0-Sunday, 6-Saturday
$DayNum = [Int](Get-Date).DayOfWeek
if(($DayNum -gt 0) -and ($DayNum -lt 6)){
# "Week days" Code to start VM
}
else{
Write-Output "Weekend"
}

ranjanse
Автор

Then how to stop the vm automatically when 6pm comes.

vinodboddu
Автор

Thank you. It really need. How about the close VM. How to modify the script code?

gacctom
Автор

Exactly what I was looking for. Thank you!!

jayong
Автор

It used to work fine but since we rename our subscription it throws an error on the powershell command Get-AzureRMVM with error: "This.SubscriptionId can not be null". I'm not sure were things went wrong. Everything points to the renamed subscription I've double check all the steps in the video and everything looks ok. Anyone has an Idea as to what is happening?

savvassavvides
Автор

Having trouble getting this to work in 2023.

mckeifus
Автор

Thanks for the time taken to record the video, really appreciate it. Is there any way to get the PowerShell script to start and stop a VM at a specific time ?

pkaycr
Автор

thank you for this video . I have a project on automation of starting and stopping VMs using applications taggs using python where can i find python scripts that could help doing the work

abarboukhaoula
Автор

Gracias, mi Maquina Virtual esta en el ambiente Windows Virtual Desktop, y no me enciende de la forma tradicional, con la cuenta de Automatizacion corre excelente.

wellingtonroa
Автор

Hello! How can I do this code to only start at weekdays and stay off weekend?? Can you help with this code?

CandanggoPlay
Автор

what type of permissions needed for new automation account

ragavendradayakar
Автор

Thanks for video... I need that PowerShell script

prasannakumar
Автор

The power shell code I'm getting error, Can you please help me

swaroopnandyala
Автор

Hello Nice solution
but can it will work for AZ module????
getting error Get-AzAutomationConnection : The connection was not found. Connection

vijay
Автор

Without automation account it is possible to start windows vm

vaibhavgatne
Автор

thank you for this video . I have a project on automation of starting and stopping VMs using applications taggs using python where can i find python scripts that could help doing the work

abarboukhaoula