Тёмный
No video :(

Azure Automation for Azure VMs with PowerShell 

Thomas Maurer
Подписаться 64 тыс.
Просмотров 11 тыс.
50% 1

In this video we are going to have a look on how you can schedule and run PowerShell and Bash scripts against Azure virtual machines (VMs) using Azure Automation. For this we are going to use Azure Run Command and Azure Automation.
Run Command can run a PowerShell or shell script within an Azure VM remotely by using the Azure Virtual Machine Agent. This scenario is especially useful when you need to run scripts against Azure VMs where you do not have network access. You use Run Command for Azure VMs through the Azure portal, REST API, Azure CLI, or PowerShell. Like I showed you in my blog post on Microsoft Tech Community.
Azure Automation delivers a cloud-based automation, operating system updates, and configuration service that supports consistent management across your Azure and non-Azure environments. It offers a couple of distinctive features, in this blog we are going to use the process automation feature, which allows you to run automation inform of PowerShell runbooks. We are going to use Azure Automation to schedule the scripts to run on Azure VMs.
Read the full blog here: www.thomasmaurer.ch/2022/08/s...
📺 Agenda
0:00 Intro
0:39 Azure Automation for Azure VMs
2:08 Azure VM RunCommand
4:17 RunCommand in Azure PowerShell
7:45 Azure Automation
15:34 Schedule a Runbook
17:24 Outro
⭐ About
Thomas works as a Senior Cloud Advocate at Microsoft. He engages with the community and customers around the world to share his knowledge and collect feedback to improve the Azure cloud platform. Prior to joining the Azure engineering team (Cloud + AI), Thomas was a Lead Architect and Microsoft MVP, to help architect, implement and promote Microsoft cloud technology.
If you want to know more about Thomas, check out:
🌍 Website / blog - www.thomasmaurer.ch
🐦 Twitter - / thomasmaurer
📸 Instagram - / thomas_maurer
💼 LinkedIn - / thomasmaurer2
#Azure #Automation #PowerShell

Опубликовано:

 

7 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@160509able
@160509able Год назад
Thanks from London, this put the cherry on the cake of a personal project I have been working on for a while - and will no doubt help me out professionally too
@Thomas_Maurer
@Thomas_Maurer Год назад
Thank you!
@RicardoSantos-ei6fq
@RicardoSantos-ei6fq Год назад
Great material this is just what i was looking for
@Thomas_Maurer
@Thomas_Maurer Год назад
Glad I could help
@mrasmurph
@mrasmurph 6 месяцев назад
Bro, this video is dope💯🔥🔥🔥🔥🔥
@Thomas_Maurer
@Thomas_Maurer 4 месяца назад
Thanks 💯
@varunk8357
@varunk8357 Год назад
Hi, Am struggling with a scenario as with Restrictive client policy Network isnt allowing public access. How to Fetch the Inventory data and store it on a storage location using Automation account via managed identity...any solution please
@ajayv2632
@ajayv2632 3 месяца назад
The last parameter script path where should the script be stored. In local machine or VM. I am trying to run azcopy copy script.
@ekrem7310
@ekrem7310 Год назад
I tried to write a script, which allows to modify Dns-entries in a vm via powershell runbook. The problem is i cant get the key properties like IPAddress from Type A, because i wrote the Get-DnsRessourceRecordA Commands as a String like you. Do you know an better example to write a script for that or a better solution?
@rameshreddy5405
@rameshreddy5405 Год назад
Thanks thomas for fantastic stuff... Can we run the invokeruncommand for aks node pool as well ??
@Thomas_Maurer
@Thomas_Maurer 4 месяца назад
Not sure, haven't tried it.
@999vrgl
@999vrgl Год назад
Hello Thomas, on Azure DevTest Lab Microsoft created a simple scheduling policy where you can start/stop any of your VM without installation of any Automation, PS, run command etc. Easy by few clicks. Are you planning to copy this feature on main portal ? Thank you!
@Thomas_Maurer
@Thomas_Maurer 10 месяцев назад
Good question, we would need to check :)
@srinivasjosyula1180
@srinivasjosyula1180 Год назад
hey Thomas, Could you please explain how does it work/steps we need to perform when the VM is in a Virtual Network. Thanks.
@Thomas_Maurer
@Thomas_Maurer Год назад
same way. If you need to communicate within the network, you need to use the Hybrid Worker options (Check docs for that)
@tonykuiper9127
@tonykuiper9127 11 месяцев назад
I have a curly one... I have a VM running SQL server. I need to make a backup of a database on it, but copy that file to Azure storage. Do I need to "connect" to the VM still or can I declare the VM name and the DB name just as I would if I was backing up or copying a database from a full SQL server?
@Thomas_Maurer
@Thomas_Maurer 4 месяца назад
yes at it is
@michaelmanangan1701
@michaelmanangan1701 Год назад
Could you show how to execute the powershell scripts in VM using DevOps?
@Thomas_Maurer
@Thomas_Maurer 10 месяцев назад
If I have time I will do a video
@tekolawells2276
@tekolawells2276 Год назад
I am struggling with vm creation using a existing resource and vnet using powershell
@Thomas_Maurer
@Thomas_Maurer Год назад
what is the error?
Далее
Я тоже так могу
00:12
Просмотров 1,2 млн
Creating an Azure Migrate Assessment
33:08
Просмотров 1,4 тыс.
Migrate servers to Azure using Azure Migrate
25:00
Просмотров 95 тыс.
Azure Architecture Best Practices Virtual Event
1:21:49
Я тоже так могу
00:12
Просмотров 1,2 млн