I want to Invoke a PowerShell script stored in Azure storage account to execute commands in the VM scale sets. I can able to invoke via cloudshell but with rubook it says Could not find file
Invoke-AzVmssVMRunCommand -ResourceGroupName $ResourceGroupName -VMScaleSetName $VirtualMachineScaleSetName -InstanceId $vminstances -CommandId 'RunPowerShellScript' -ScriptPath 'script.ps1'
script.ps1 contains the code which I want to run inside the VMS
script.ps1 is present in the $Home location in my storage account
I tried that solution
"Could not find file" Invoke-AzureRmVMRunCommand but got the same error