Skip to content
Discussion options

You must be logged in to vote

Can I assume you are using Windows based on the PowerShell command + the directory path?

  • If you prefer to keep your scripts in a local ps1 file so they can be run and tested independently, that is what I prefer.
param vmName string = 'AEU1-PE-CTL-D1-vmJMP01'
param Location string = resourceGroup().location

resource virtualMachine 'Microsoft.Compute/virtualMachines@2022-11-01' existing = {
  name: vmName
}

resource runCommands 'Microsoft.Compute/virtualMachines/runCommands@2022-11-01' = {
  name: 'configure'
  location: Location
  parent: virtualMachine
  properties: {
    timeoutInSeconds: (60 * 90)
    parameters: [
      {
        name: 'vmName'
        value: vmName
      }
    ]
    

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@brwilkinson
Comment options

@Thomas-Verschuere
Comment options

@brwilkinson
Comment options

@hudisrl
Comment options

Answer selected by Thomas-Verschuere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants