How to call a file where the File Path resides in Azure VM Using the Powershell (ISE Locally).
Using Powershell ISE with local computer and trying to call a Ps file which is placed in the Azure Vm.
How to call a file where the File Path resides in Azure VM Using the Powershell (ISE Locally).
Using Powershell ISE with local computer and trying to call a Ps file which is placed in the Azure Vm.
Copyright © 2021 Jogjafile Inc.
If you mean to run an .ps1 file inside the VM, then you can use the PowerShell command
Invoke-AzVMRunCommand
. You can create a script in your local machine and put the command that you will execute to run the .ps1 inside the VM to the script. For example:the script
script.ps1
in your local machine:Use the PowerShell command: