Scripts Archives - Thomas Maurer Cloud and Datacenter Blog focusing on Microsoft Azure Tue, 09 Aug 2022 13:54:32 +0000 en-US hourly 1 https://wordpress.org/?v=6.4.1 https://www.thomasmaurer.ch/wp-content/uploads/2018/06/cropped-icon1024-32x32.png Scripts Archives - Thomas Maurer 32 32 71605618 Schedule and Run PowerShell Scripts for Azure VMs using Azure Automation https://www.thomasmaurer.ch/2022/08/schedule-and-run-powershell-scripts-for-azure-vms-using-azure-automation/ https://www.thomasmaurer.ch/2022/08/schedule-and-run-powershell-scripts-for-azure-vms-using-azure-automation/#comments Tue, 09 Aug 2022 13:54:23 +0000 https://www.thomasmaurer.ch/?p=24068 A while ago I wrote a blog post on how you can run a PowerShell or Bash script against multiple Azure Virtual Machines (VMs) using Run Command. In this blog post we are going to have a look on how you can schedule and run PowerShell and Bash scripts against Azure virtual machines (VMs) using …

The post Schedule and Run PowerShell Scripts for Azure VMs using Azure Automation appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2022/08/schedule-and-run-powershell-scripts-for-azure-vms-using-azure-automation/feed/ 10 24068
How to Run Custom Scripts on Azure Arc Enabled Servers https://www.thomasmaurer.ch/2020/07/how-to-run-custom-scripts-on-azure-arc-enabled-servers/ https://www.thomasmaurer.ch/2020/07/how-to-run-custom-scripts-on-azure-arc-enabled-servers/#respond Thu, 16 Jul 2020 08:41:26 +0000 https://www.thomasmaurer.ch/?p=16850 With the latest update for Azure Arc for Servers, you are now able to deploy and use extensions with your Azure Arc enabled servers. With the Custom Script extension, you can run scripts on Azure Arc enabled servers and works similar to the custom script extension for Azure virtual machines (VMs). There is an extension …

The post How to Run Custom Scripts on Azure Arc Enabled Servers appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2020/07/how-to-run-custom-scripts-on-azure-arc-enabled-servers/feed/ 0 16850
Run Azure PowerShell in a Docker Container https://www.thomasmaurer.ch/2020/03/run-azure-powershell-in-a-docker-container/ https://www.thomasmaurer.ch/2020/03/run-azure-powershell-in-a-docker-container/#comments Sat, 21 Mar 2020 10:29:38 +0000 https://www.thomasmaurer.ch/?p=15698 Yesterday, the Azure PowerShell team announced the Azure PowerShell Docker Container images. In this post, I want to quickly highlight that announcement and show you how you can download, pull, and run Azure PowerShell in a Docker container image from Microsoft. But first, let’s talk about why you would want to run an Azure PowerShell …

The post Run Azure PowerShell in a Docker Container appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2020/03/run-azure-powershell-in-a-docker-container/feed/ 1 15698
How to create a Powershell v2 Module https://www.thomasmaurer.ch/2010/08/how-to-create-a-powershell-v2-module/ https://www.thomasmaurer.ch/2010/08/how-to-create-a-powershell-v2-module/#respond Mon, 16 Aug 2010 06:00:08 +0000 http://www.thomasmaurer.ch/?p=937 If you need some functions a lot in different scripts you create maybe external function files. This is a good way to clean up your code. To get this functions running in your mainscript.ps1 you can call this other file “dotsourced”: . C:\PSscript\output\sayhello.ps1 If you have more than one external function you have to call …

The post How to create a Powershell v2 Module appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2010/08/how-to-create-a-powershell-v2-module/feed/ 0 937