PowerShell 모듈 설치

Migrate for Compute Engine을 사용하면 커스텀 모듈에서 명령어를 사용한 PowerShell 작업을 스크립트로 작성할 수 있습니다. 이 문서에서는 PowerShell 모듈 내에서 기본 제공 도움말을 설치하고 사용하는 방법을 다룹니다.

모듈 설치

  1. 다운로드 페이지에서 Migrate for Compute Engine PowerShell 모듈 설치 프로그램을 다운로드하거나, Velocityrata Manager를 열고 홈페이지에서 PowerShell 모듈 다운로드 아이콘을 클릭합니다.
  2. 설치 파일을 실행하고 마법사의 지시를 따릅니다. Velostrata 최종 사용자 서비스 계약에 동의하고 설치 위치를 선택해야 합니다.

  3. 다음과 같은 PowerShell 모듈이 설치됩니다.

    • Velostrata.PowerShell
    • Velostrata.Runbook
  4. 이제 다음을 사용하여 Velostrata Manager에 연결할 수 있습니다.

PS C:\Users\Demo> Import-Module Velostrata.PowerShell
PS C:\Users\Demo> Connect-VelostrataManager

스크립트는 Velostrata Manager의 IP에 대한 메시지를 표시합니다. 사용자 이름을 입력하라는 메시지가 표시되면 apiuser를 사용합니다. 비밀번호는 Velostrata Manager를 만들 때 설정한 비밀번호입니다.

PowerShell 도움말 보기

Get-Help 명령어로 PowerShell 모듈의 도움말을 볼 수 있습니다.

PS C:\Users\Demo> Get-help Connect-VelostrataManager

NAME
    Connect-VelostrataManager

SYNOPSIS
    This cmdlet establishes a connection to a Velostrata Manager Server
system.

    Connect-VelostrataManager [-Server] <String> [-Username] <String>
[-Password] <SecureString> [-Port [<Int32>]]

SYNTAX
    Connect-VelostrataManager [-Server] <String> [-Port <Int32>] [-Username]
<String> [-Password] <SecureString>  [<CommonParameters>]

DESCRIPTION
    The cmdlet starts a new session or re-establishes a previous session with
Velostrata Manager Server using the specified parameters.
    When you attempt to connect to a server, the server checks for valid
credentials and then sets the relevant PSVariables.
    Once the user is authenticated successfully, the session remains in effect
until the PowerShell session is closed or a new Velostrata Manager session is established.
    Note: You can have only one active connection to a Velostrata Manager server
per PowerShell local session.

REMARKS
    To see the examples, type: "get-help Connect-VelostrataManager -examples".
    For more information, type: "get-help Connect-VelostrataManager -detailed".
    For technical information, type: "get-help Connect-VelostrataManager -full".
    For online help, type: "get-help Connect-VelostrataManager -online"