<commit_before><#  
.SYNOPSIS  
    powershell script to invoke azure rm invoke-azvmssvmruncommand command with output on azure vm scaleset vms
    
.DESCRIPTION  
    powershell script to invoke azure rm invoke-azvmssvmruncommand command with output on azure vm scaleset vms
    Invoke-azVmssVMRunCommand -ResourceGroupName {{resourceGroupName}} -VMScaleSetName{{scalesetName}} -InstanceId {{instanceId}} -ScriptPath c:\temp\test1.ps1 -Parameter @{'name' = 'patterns';'value' = "{{certthumb1}},{{certthumb2}}"} -Verbose -Debug -CommandId $commandId
    Get-azVMRunCommandDocument -Location westus | select ID, OSType, Label

    (new-object net.webclient).downloadfile("https://raw.githubusercontent.com/jagilber/powershellScripts/master/azure-az-vmss-run-command.ps1","$pwd\azure-az-vmss-run-command.ps1")

.NOTES  
   File Name  : azure-az-vmss-run-command.ps1
   Author     : jagilber
   Version    : 191012
   History    : 

.EXAMPLE 
    .\azure-az-vmss-run-command.ps1 -script 'reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl'
    will query memory dump settings 

.EXAMPLE 
    .\azure-az-vmss-run-command.ps1 -script 'reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl /v CrashDumpEnabled /t REG_DWORD /d 1 /f'
    will set memory dump settings to complete memory dump (requires reboot) on specified nodes

.EXAMPLE 
    .\azure-az-vmss-run-command.ps1 -script 'shutdown /r /t 0'
    will restart specified nodes

.EXAMPLE
    .\azure-az-vmss-run-command.ps1 -script '& {
        if(((get-itemproperty HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl CrashDumpEnabled).CrashDumpEnabled) -ne 1) {
            set-itemproperty HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl CrashDumpEnabled 1
            shutdown /d p:4:2 /c 'enable complete dump' /r /t 1
        }
    }'
    will set memory dump settings to complete memory dump and reboot nodes specified if required

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -script c:\temp\test.ps1
    will prompt for resource group, vm scaleset name, and instance ids to run powershell script c:\temp\test.ps1 on

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -script c:\temp\test.ps1 -resourceGroup testrg
    will prompt for vm scaleset name, and instance ids to run powershell script c:\temp\test.ps1 on

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -script c:\temp\test.ps1 -resourceGroup testrg -vmssname nt0
    will prompt for instance ids to run powershell script c:\temp\test.ps1 on

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -script c:\temp\test.ps1 -resourceGroup testrg -vmssname nt0 -instanceid 0
    will run powershell script c:\temp\test.ps1 on instance id 0

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -resourceGroup testrg -vmssname nt0 -instanceid 0
    will run test powershell script on instance id 0

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -listCommandIds
    will list all possible commandIds available for command
<commit_msg>fix example command<commit_after><#  
.SYNOPSIS  
    powershell script to invoke azure rm invoke-azvmssvmruncommand command with output on azure vm scaleset vms
    
.DESCRIPTION  
    powershell script to invoke azure rm invoke-azvmssvmruncommand command with output on azure vm scaleset vms
    Invoke-azVmssVMRunCommand -ResourceGroupName {{resourceGroupName}} -VMScaleSetName{{scalesetName}} -InstanceId {{instanceId}} -ScriptPath c:\temp\test1.ps1 -Parameter @{'name' = 'patterns';'value' = "{{certthumb1}},{{certthumb2}}"} -Verbose -Debug -CommandId $commandId
    Get-azVMRunCommandDocument -Location westus | select ID, OSType, Label

    (new-object net.webclient).downloadfile("https://raw.githubusercontent.com/jagilber/powershellScripts/master/azure-az-vmss-run-command.ps1","$pwd\azure-az-vmss-run-command.ps1")

.NOTES  
   File Name  : azure-az-vmss-run-command.ps1
   Author     : jagilber
   Version    : 191012
   History    : 

.EXAMPLE 
    .\azure-az-vmss-run-command.ps1 -script 'reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl'
    will query memory dump settings 

.EXAMPLE 
    .\azure-az-vmss-run-command.ps1 -script 'reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl /v CrashDumpEnabled /t REG_DWORD /d 1 /f'
    will set memory dump settings to complete memory dump (requires reboot) on specified nodes

.EXAMPLE 
    .\azure-az-vmss-run-command.ps1 -script 'shutdown /r /t 0'
    will restart specified nodes

.EXAMPLE
    .\azure-az-vmss-run-command.ps1 -script '& {
        if(((get-itemproperty HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl CrashDumpEnabled).CrashDumpEnabled) -ne 1) {
            set-itemproperty HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl CrashDumpEnabled 1
            shutdown /d p:4:2 /c "enable complete dump" /r /t 1
        }
    }'
    will set memory dump settings to complete memory dump and reboot nodes specified if required

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -script c:\temp\test.ps1
    will prompt for resource group, vm scaleset name, and instance ids to run powershell script c:\temp\test.ps1 on

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -script c:\temp\test.ps1 -resourceGroup testrg
    will prompt for vm scaleset name, and instance ids to run powershell script c:\temp\test.ps1 on

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -script c:\temp\test.ps1 -resourceGroup testrg -vmssname nt0
    will prompt for instance ids to run powershell script c:\temp\test.ps1 on

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -script c:\temp\test.ps1 -resourceGroup testrg -vmssname nt0 -instanceid 0
    will run powershell script c:\temp\test.ps1 on instance id 0

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -resourceGroup testrg -vmssname nt0 -instanceid 0
    will run test powershell script on instance id 0

.EXAMPLE  
    .\azure-az-vmss-run-command.ps1 -listCommandIds
    will list all possible commandIds available for command

{'fraction_non_alphanumeric': 0.09919571045576407, 'fraction_numerical': 0.015080428954423592, 'mean_word_length': 3.3793103448275863, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6174600', 'n_tokens_mistral': 2025, 'n_tokens_neox': 1926, 'n_words': 524}