다음을 통해 공유


머신 구성 제작 환경을 설정하는 방법

The PowerShell module GuestConfiguration automates the process of creating custom content including:

  • 컴퓨터 구성 콘텐츠 아티팩트 만들기(.zip)
  • 패키지가 요구 사항을 충족하는지 확인
  • 테스트를 위해 로컬로 컴퓨터 구성 에이전트 설치
  • 패키지 유효성 검사를 사용하여 머신의 설정 감사 가능
  • 패키지 유효성 검사를 사용하여 머신에서 설정 구성 가능
  • Azure Storage에 패키지 게시
  • 정책 정의 만들기
  • 정책 게시

컴퓨터 구성을 통한 구성 적용 지원은 버전 3.4.2에 도입되었습니다.

Base requirements

모듈을 설치할 수 있는 운영 체제는 다음과 같습니다.

  • Ubuntu 20+
  • Windows

모듈은 PowerShell 7.x를 실행하는 머신에 설치할 수 있습니다. 운영 체제에 대해 다음 표에 나열된 PowerShell 버전을 설치합니다.

OS 최소 필수 PowerShell 버전 Installation
Windows 7.1.3 Windows에 PowerShell 설치
Ubuntu 20+ 7.2.4 Ubuntu에 PowerShell 설치

The GuestConfiguration module requires the following software:

  • Azure PowerShell 5.9.0 이상. The required Az PowerShell modules are installed automatically with the GuestConfiguration module, or you can follow these instructions.

To install the GuestConfiguration module on either Windows or Linux, run the following command in PowerShell 7.

# Install the machine configuration DSC resource module from PowerShell Gallery
Install-Module -Name GuestConfiguration

모듈을 가져왔는지 확인합니다.

# Get a list of commands for the imported GuestConfiguration module
Get-Command -Module GuestConfiguration

On Windows, to install the PSDesiredStateConfiguration module, run the following command in PowerShell 7.

# Install PSDesiredStateConfiguration version 2.0.7 (the stable release)
Install-Module -Name PSDesiredStateConfiguration -RequiredVersion 2.0.7
Import-Module -Name PSDesiredStateConfiguration

On Linux, to install the PSDesiredStateConfiguration module, run the following command in PowerShell 7.

# Install PSDesiredStateConfiguration prerelease version 3.0.0
Install-Module -Name PSDesiredStateConfiguration -RequiredVersion 3.0.0-beta1 -AllowPrerelease
Import-Module -Name PSDesiredStateConfiguration

모듈을 가져왔는지 확인합니다.

# Get a list of commands for the imported PSDesiredStateConfiguration module
Get-Command -Module PSDesiredStateConfiguration

Next step