script 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 script 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
PowerShell: Download script or file from GitHub https://www.thomasmaurer.ch/2021/07/powershell-download-script-or-file-from-github/ https://www.thomasmaurer.ch/2021/07/powershell-download-script-or-file-from-github/#comments Tue, 27 Jul 2021 05:13:54 +0000 https://www.thomasmaurer.ch/?p=22142 Since a lot of people are starting to store their scripts and files in GitHub repositories, I often get the question, how can I download a script or a file from a Git repository using PowerShell. There are a couple of ways to you can obviously do this. You could use git and do a …

The post PowerShell: Download script or file from GitHub appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2021/07/powershell-download-script-or-file-from-github/feed/ 1 22142
How to run scripts against multiple Azure VMs by using Run Command https://www.thomasmaurer.ch/2021/03/how-to-run-scripts-against-multiple-azure-vms-by-using-run-command/ https://www.thomasmaurer.ch/2021/03/how-to-run-scripts-against-multiple-azure-vms-by-using-run-command/#comments Thu, 18 Mar 2021 08:28:20 +0000 https://www.thomasmaurer.ch/?p=20854 I wrote a blog post on how to run scripts in your Azure VM by using Run Command, and explained how handy this feature is to manage Azure virtual machines (VMs). In this blog post, we are going to have a look at how you can run scripts against multiple Azure virtual machines (VMs) by …

The post How to run scripts against multiple Azure VMs by using Run Command appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2021/03/how-to-run-scripts-against-multiple-azure-vms-by-using-run-command/feed/ 24 How to run scripts against multiple Azure VMs by using Run Command - Thomas Maurer How you can run scripts against multiple Azure virtual machines (VMs) by using PowerShell and the Invoke-AzVMRunCommand feature. automation,AzRunCommand,Azure,Azure VM,Azure VMs,Microsoft,PowerShell,Run,script,shell,Virtual Machine,VM,runs scripts multiple Azure VMs 20854
How to Add Sleep/Wait/Pause in a PowerShell Script https://www.thomasmaurer.ch/2021/01/how-to-add-sleep-wait-pause-in-a-powershell-script/ https://www.thomasmaurer.ch/2021/01/how-to-add-sleep-wait-pause-in-a-powershell-script/#comments Tue, 19 Jan 2021 13:54:38 +0000 https://www.thomasmaurer.ch/?p=20175 Many of you know the “timeout” command we used when we created Windows Batch scripts. This pauses/waits/sleeps the script for a specific amount of time. In PowerShell, we can use the Start-Sleep cmdlet to suspend/pause/sleep/wait the activity in a script or session for the specified period of time. You can use it for many tasks, …

The post How to Add Sleep/Wait/Pause in a PowerShell Script appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2021/01/how-to-add-sleep-wait-pause-in-a-powershell-script/feed/ 5 20175
Connect a Hybrid Server to Azure using Azure Arc https://www.thomasmaurer.ch/2020/11/connect-a-hybrid-server-to-azure-using-azure-arc/ https://www.thomasmaurer.ch/2020/11/connect-a-hybrid-server-to-azure-using-azure-arc/#respond Thu, 12 Nov 2020 06:55:46 +0000 https://www.thomasmaurer.ch/?p=18578 New week, new Azure tip video!. This week we are going to have a look at how you can connect a hybrid server to Azure using Azure Arc. Azure Arc enabled servers enables you to manage and govern your Windows and Linux machines hosted across on-premises, edge, and multi-cloud environments. You’ll learn how to deploy …

The post Connect a Hybrid Server to Azure using Azure Arc appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2020/11/connect-a-hybrid-server-to-azure-using-azure-arc/feed/ 0 Connect a Hybrid Server to Azure using Azure Arc - Thomas Maurer This week we are going to have a look at how you can connect a hybrid server to Azure using Azure Arc. Check it out! add,Azure,Azure Arc,connect,Hybrid,Hybrid Cloud,Linux,Microsoft,Microsoft Azure,multi-cloud,on-premises,script,Server,Video,Windows Server,Connect Server Azure Arc 18578
How to Run Scripts in your Azure VM using Run Command https://www.thomasmaurer.ch/2020/11/how-to-run-scripts-in-your-azure-vm-using-run-command/ https://www.thomasmaurer.ch/2020/11/how-to-run-scripts-in-your-azure-vm-using-run-command/#comments Tue, 10 Nov 2020 06:45:59 +0000 https://www.thomasmaurer.ch/?p=16362 You can access your Azure IaaS virtual machine (VM) in multiple ways like SSH or RDP, depending on your operating system and configuration. However, if you have issues with the RDP or SSH network configuration, you need to have a way to troubleshoot your virtual machine (VM). Luckily Azure offers you different management tools to …

The post How to Run Scripts in your Azure VM using Run Command appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2020/11/how-to-run-scripts-in-your-azure-vm-using-run-command/feed/ 4 How to Run Scripts in your Azure VM using Run Command - Thomas Maurer With the Run Command can run a PowerShell or shell script within an Azure VM remotely by using the VM agent. Check it out! Azure,Azure CLI,Azure PowerShell,Azure VM,Bash,CLI,command,IaaS,Microsoft,Portal,PowerShell,RDP,Run,run command,script,SSH,Troubleshooting,Virtual Machine,VM,Azure VM Run Command 16362
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
Write PowerShell Online using Visual Studio Codespaces https://www.thomasmaurer.ch/2020/05/write-powershell-online-using-visual-studio-codespaces/ https://www.thomasmaurer.ch/2020/05/write-powershell-online-using-visual-studio-codespaces/#comments Tue, 05 May 2020 05:31:16 +0000 https://www.thomasmaurer.ch/?p=16315 Last week the Visual Studio Services team announced a new service called Visual Studio Codespaces. Visual Studio Codespaces allows you to do cloud-hosted development for wherever you’re working. While the new services support many different programming and scripting languages, it also supports PowerShell. In this blog post, I am going to show you how you …

The post Write PowerShell Online using Visual Studio Codespaces appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2020/05/write-powershell-online-using-visual-studio-codespaces/feed/ 4 16315
How to use PowerShell ISE Mode in Visual Studio Code https://www.thomasmaurer.ch/2020/03/how-to-use-powershell-ise-mode-in-visual-studio-code/ https://www.thomasmaurer.ch/2020/03/how-to-use-powershell-ise-mode-in-visual-studio-code/#comments Fri, 06 Mar 2020 06:12:14 +0000 https://www.thomasmaurer.ch/?p=14196 If you are writing PowerShell code, you might have realized that there weren’t really improvements to the PowerShell Integrated Scripting Environment (PowerShell ISE) in the last couple of releases. With PowerShell becoming more popular on cross-platform systems, Visual Studio Code (VS Code) becomes the editor of choice. However, by default Visual Studio Code has a …

The post How to use PowerShell ISE Mode in Visual Studio Code appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2020/03/how-to-use-powershell-ise-mode-in-visual-studio-code/feed/ 6 14196
Judge at the Nutanix Coding Challenge https://www.thomasmaurer.ch/2015/07/judge-at-the-nutanix-coding-challenge/ https://www.thomasmaurer.ch/2015/07/judge-at-the-nutanix-coding-challenge/#respond Fri, 03 Jul 2015 11:16:05 +0000 http://www.thomasmaurer.ch/?p=7244 Nutanix just announced the PowerShell Coding Challenge for your Nutanix environment. The challenge will be to build a script which solves a real world problem in these use cases: Provisioning/orchestration, reporting, data protection, disaster recovery and runbook automation. Do you have what it takes to write the best script for a Nutanix environment? Find out by …

The post Judge at the Nutanix Coding Challenge appeared first on Thomas Maurer.

]]>
https://www.thomasmaurer.ch/2015/07/judge-at-the-nutanix-coding-challenge/feed/ 0 7244