Comments on: 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/ Cloud and Datacenter Blog focusing on Microsoft Azure Tue, 12 Apr 2022 08:55:16 +0000 hourly 1 https://wordpress.org/?v=6.4.1 By: Darren https://www.thomasmaurer.ch/2020/11/how-to-run-scripts-in-your-azure-vm-using-run-command/#comment-874618 Tue, 12 Apr 2022 08:55:16 +0000 https://www.thomasmaurer.ch/?p=16362#comment-874618 Thanks TM. Is it possible to inject some AD credentials for the script that gets run on the target VM, to use? For example, the script on the target VM needs to be able to create AD computer accounts as part of its process, however the credentials that get used for the Invoke-AzVmRunCommand are not domain credentials, they are an Azure Subscription context, so not domain-aware, and therefore the target script runs, but then fails when trying to create AD objects, with access denied. Thanks

]]>
By: Stefan https://www.thomasmaurer.ch/2020/11/how-to-run-scripts-in-your-azure-vm-using-run-command/#comment-854181 Sat, 05 Jun 2021 12:22:16 +0000 https://www.thomasmaurer.ch/?p=16362#comment-854181 Will this also work for Azure Arc Server?

]]>
By: Reginald https://www.thomasmaurer.ch/2020/11/how-to-run-scripts-in-your-azure-vm-using-run-command/#comment-849035 Wed, 10 Mar 2021 21:16:31 +0000 https://www.thomasmaurer.ch/?p=16362#comment-849035 That’s pretty cool, but also could be problematic if say, the wrong person had access to the azure VM because of a permissions mishap. Is there a way to disable that (in the azure portal or otherwise), out of curiosity?

]]>
By: Dimitri https://www.thomasmaurer.ch/2020/11/how-to-run-scripts-in-your-azure-vm-using-run-command/#comment-828264 Tue, 10 Nov 2020 08:25:32 +0000 https://www.thomasmaurer.ch/?p=16362#comment-828264 ]]> It would be nice to have the possibility to save the script to reuse them when needed. Something for the DEV team 😉

]]>