- Dev Blogs
- Azure VM Runtime Team
Azure VM Runtime Team
Azure VM Runtime Team
Latest posts
![Long running RunCommands](https://devblogs.microsoft.com/azure-vm-runtime/wp-content/uploads/sites/77/2023/03/impala_flying.jpg)
Long running RunCommands
Recently, there's been a bit of confusion involving long running RunCommands. For reference, the default wait time for RunCommand has been 90 minutes - the same as all other extensions. But what if you have a script that takes longer? Well, we've added a timeoutInSeconds parameter just for that purpose! The only slight problem is this won't work. If your script runs for more than 90 minutes, you'll see an error like this. Huh? As long as it's within the boundary of your timeout, shouldn't it work? The problem lies with how RunCommand executes. There are two modes - synchronous and asynchronous...
![RunCommand vs Custom Script Extension vs VM Applications](https://devblogs.microsoft.com/azure-vm-runtime/wp-content/uploads/sites/77/2023/02/ring_necked_ducks.jpg)
RunCommand vs Custom Script Extension vs VM Applications
I'm sure that many of you would swear that Microsoft loves to confuse you. Currently, there are not three but four ways to run code on your machine. Now, I know what you're saying. "I just want to run this thing on my machine! Which do I choose?" Well, here I hope to clear that up. First, all of the above work on both Windows and Linux. They also work on both Virtual Machines and Virtual Machine Scale Sets. However, their behavior for the latter differs. Let's start out with the simplifying the problem:Â there is rarely a reason to use Custom Script Extension. Personally, I don't have...
![Managing VM Applications with Azure Policies](https://devblogs.microsoft.com/azure-vm-runtime/wp-content/uploads/sites/77/2023/02/azure-vm-featured.png)
Managing VM Applications with Azure Policies
For those unacquainted with the feature, VM Applications allow you to manage applications across virtual machines and virtual machine scale sets. What exactly is an "application"? In truth, it's whatever you want. Typically, it's something that runs for a long period of time on the box, such as a service. However, the definition is really up to you. One big ask we received from our customers was the ability to manage applications via policies. This can be used for the following effects. Both are possible using a DeployIfNotExists Azure policy. In this post, I'll cover how to accomplish this and po...