Request for deep info on active Sessions while working with Powershell on Azure VM's. RRS feed

  • Question

  • Hi Team,

    We are creating Azure Vm's using Powershell scripting and trying to download application installation content from Azure blob using SAS and installing it on the Vm using PSexec tool. 

    Here we observed that once the Vm is created and downloaded the application installation files from blob and trying to install on the machine using PSexec, the UI operations are not being performed.(Like : the next click on the installation wizard is not performed).

    However if we restart the machine after the download from Azure and then start the installation process then the same UI operations are being performed and the  installation is successful. 

    In both the scenarios there is active console session. We would like to know more on this behavior.

    Note:- We have powershell scripts for all the operations being performed on the Azure.

    Thursday, August 22, 2019 5:51 AM

All replies

  • Hi Shravan,

    Can you please use the sleep command to suspend the activity in the script or session for the specific period of time for the VM to come up completely with required handlers so that you can use PSexec. You can also check out the custom script extension which downloads and executes scripts on Azure Virtual machines. 

    Hope the above information helps. 

    Sunday, August 25, 2019 6:08 PM