Home > database >  How to connect Azure Linux VM via Azure DevOps pipelines using PowerShell
How to connect Azure Linux VM via Azure DevOps pipelines using PowerShell

Time:11-22

How to connect Linux vm using PowerShell script via pipeline. My SSH (.pem) file is stored in Library in secure file folder.

This PowerShell script I'm trying to pass the AZ CLI. [1]: enter image description here

This is my YAML definition:

trigger:
- none

pool: VMAS

steps:
- task: SSH@0
  inputs:
    sshEndpoint: 'SSH_To_Remote_VM'
    runOptions: 'inline'
    inline: 'ls'
    readyTimeout: '20000'

And my VM's NetWork setting:

enter image description here

  • Related