Showing results for Tag: RunCommand from Azure VM Runtime Team

Apr 29, 2024
0
0

Introducing Managed RunCommand Artifacts

Joseph Calev
Joseph Calev

As most of you may know from the current Managed RunCommand documentation there are multiple ways your script may be specified. However, what if your script uses various artifacts that also must be downloaded to the machine? Well, in the past it was necessary to call RunCommand are use some other technique to get those files on the...

RunCommand
Jan 5, 2024
0
0

When will CustomScript extension re-execute my script?

Joseph Calev
Joseph Calev

One of the lesser known differences between RunCommand and CustomScriptExtension is the fact that we do promise to not re-run your script in RunCommand, but no such promise exists for CustomScript. This is mentioned in the documentation, which isn't often fully understood. However, more than once I've been asked: when does CSE actually re-...

CustomScriptExtensionRunCommand
Dec 11, 2023
0
0

The treatFailureAsDeploymentFailure flag

Joseph Calev
Joseph Calev

In both VmApplications and RunCommand, we support a property called "treatFailureAsDeploymentFailure". Note that for Managed RunCommand it may not be visible yet in Powershell or CLI, but it is available via ARM. Note that this flag is only available for managed RunCommand. It is not available for action RunCommand. For those unaware, managed RunCo...

VM ApplicationsRunCommand
Jun 16, 2023
0
1

How to determine if your Runcommand script failed

Joseph Calev
Joseph Calev

Today, we're going to cover what can be a maddening issue in just determining whether your script failed. Let's start with a very simple operation. Open a Powershell window and run the following: This shouldn't be rocket science here. It's very clear that "this is an error" is, in fact, an error. So, with this universal fact determined, let's...

RunCommand
Mar 10, 2023
0
2

Long running RunCommands

Joseph Calev
Joseph Calev

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 ...

RunCommandAzure VM Runtime Team
Feb 17, 2023
0
2

RunCommand vs Custom Script Extension vs VM Applications

Joseph Calev
Joseph Calev

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 Window...

VM ApplicationsRunCommandAzure VM Runtime Team