https://pulumi.com logo
#general
Title
# general
v

victorious-ability-58329

08/11/2023, 6:50 PM
Hello, what is the best way to run Powershell inside c# when building a Windows virtual machine? AzureNative.Compute.VirtualMachineRunCommandByVirtualMachine or build an extension with azure-native.compute.VirtualMachineExtension? i need to add some entries to the firewall.
Any ideas on the best approach to add firewall rules to Windows firewall on an azure vm?
f

fast-vr-6049

08/16/2023, 7:36 PM
You could try using Powershell Desired State Configuration in combination with the DSC VM Extension! Powershell DSC extension doc: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview Pulumi Azure Native VM Extension listing: https://www.pulumi.com/registry/packages/azure-native/api-docs/compute/virtualmachineextension/
v

victorious-ability-58329

08/16/2023, 7:37 PM
I will take a look at this. Thank you @fast-vr-6049
3 Views