InfoGrab DocsInfoGrab Docs

관리 그룹을 위한 Azure VM 자동 검색

요약

이 가이드에서는 관리 그룹을 사용하여 여러 구독에 걸친 Azure 가상 머신을 자동으로 등록하도록 Teleport를 구성하는 방법을 설명합니다. 특정 구독의 VM만 검색하려면 수동 Azure VM 자동 검색을 참조하십시오.

이 가이드에서는 관리 그룹을 사용하여 여러 구독에 걸친 Azure 가상 머신을 자동으로 등록하도록 Teleport를 구성하는 방법을 설명합니다.

특정 구독의 VM만 검색하려면 수동 Azure VM 자동 검색을 참조하십시오.

작동 방식#

Teleport Discovery Service는 관리 그룹 범위에 권한이 할당된 서비스 주체로 Azure에 인증합니다. 이를 통해 해당 관리 그룹 아래의 모든 구독을 조회하고 각 구독의 가상 머신을 검색할 수 있습니다.

검색된 각 VM에 대해 Discovery Service는 Azure Run Command 기능을 사용하여 스크립트를 실행합니다. 이 스크립트는 Teleport를 설치하고, 시작하고, 클러스터에 조인시킵니다.

테넌트 루트 그룹을 사용하면 이후에 추가되는 구독과 관리 그룹을 포함하여 전체 Azure 환경의 VM을 등록할 수도 있습니다. 테넌트 루트 관리 그룹 ID는 Azure 테넌트 ID와 같습니다.

Note

관리 그룹을 사용한 Azure 검색은 현재 가상 머신과 가상 머신 스케일 셋에서만 지원됩니다.

사전 요구사항#

  • 실행 중인 Teleport 클러스터. Teleport를 시작하려면 무료 체험판에 가입하거나 데모 환경을 구성하세요.

  • tctl and tsh clients.

    Installing `tctl` and `tsh` clients
    1. Teleport 클러스터의 버전을 확인합니다. tctl and tsh clients는 Teleport 클러스터 버전보다 최대 한 개의 메이저 버전까지만 뒤처질 수 있습니다. Proxy Service의 /v1/webapi/find로 GET 요청을 보내고 JSON 쿼리 도구를 사용하여 클러스터 버전을 확인합니다. teleport.example.com:443를 Teleport Proxy Service의 웹 주소로 바꿉니다:

      $ TELEPORT_DOMAIN=teleport.example.com:443
      $ TELEPORT_VERSION="$(curl -s https://$TELEPORT_DOMAIN/v1/webapi/find | jq -r '.server_version')"
      
    2. 사용 중인 플랫폼에 대한 지침에 따라 tctl and tsh clients를 설치합니다:

Mac

     `tctl` and `tsh` clients가 포함된, 서명된 Teleport macOS .pkg 설치 프로그램을 다운로드합니다:
 
     ```code
     $ curl -O https://cdn.teleport.dev/teleport-${TELEPORT_VERSION?}.pkg
     ```

     Finder에서 `pkg` 파일을 더블 클릭하여 설치를 시작합니다.
 
     
Warning
       Homebrew를 사용하여 Teleport를 설치하는 것은 지원되지 않습니다. Homebrew의
       Teleport 패키지는 Teleport에서 유지 관리하지 않으므로 신뢰성이나 보안을
       보장할 수 없습니다.
     

Windows - Powershell

     ```code
     $ curl.exe -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION?}-windows-amd64-bin.zip
     # Unzip the archive and move the `tctl` and `tsh` clients to your %PATH%
     # NOTE: Do not place the `tctl` and `tsh` clients in the System32 directory, as this can cause issues when using WinSCP.
     # Use %SystemRoot% (C:\Windows) or %USERPROFILE% (C:\Users\<username>) instead.
     ```
 
   

 
   

Linux

     Linux 설치판의 모든 Teleport 바이너리에는 `tctl` and `tsh` clients가 포함되어 있습니다.  RPM/DEB
     패키지 및 i386/ARM/ARM64용 다운로드를 포함한 더 많은 옵션은
     [설치 페이지](../installation/installation.mdx)를 참조하세요.
 
     ```code
     $ curl -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION?}-linux-amd64-bin.tar.gz
     $ tar -xzf teleport-v${TELEPORT_VERSION?}-linux-amd64-bin.tar.gz
     $ cd teleport
     $ sudo ./install
     # Teleport binaries have been copied to /usr/local/bin
     ```
   

 
  • 검색 대상 구독이 포함된 Azure 관리 그룹 또는 테넌트.
  • 관리 그룹 범위에서 관리 ID, 사용자 지정 역할 정의, 역할 할당을 생성할 수 있는 권한.
  • Teleport 클러스터에 조인할 Azure 가상 머신. 기본 Teleport 설치 스크립트를 사용하는 경우 Ubuntu/Debian/RHEL이어야 합니다. (다른 Linux 배포판의 경우 Teleport를 수동으로 설치할 수 있습니다.)

Teleport cluster에 연결할 수 있는지 확인하려면 tsh login으로 로그인한 다음, 현재 자격 증명으로 tctl 명령을 실행할 수 있는지 확인합니다.

예를 들어, teleport.example.com에 cluster 내 Teleport Proxy Service의 도메인 이름을, email@example.com에 Teleport 사용자 이름을 지정하여 다음 명령을 실행합니다:

$ tsh login --proxy=teleport.example.com --user=email@example.com
$ tctl status
# Cluster  (=teleport.url=)
# Version  (=teleport.version=)
# CA pin   (=presets.ca_pin=)

cluster에 연결하여 tctl status 명령을 실행할 수 있다면, 현재 자격 증명을 사용하여 워크스테이션에서 이후의 tctl 명령을 실행할 수 있습니다. 자체 Teleport cluster를 호스팅하는 경우, 전체 권한을 얻기 위해 Teleport Auth Service를 호스팅하는 컴퓨터에서 tctl 명령을 실행할 수도 있습니다.

1/5단계. Azure 조인 토큰 생성#

Azure 가상 머신을 검색할 때 Teleport는 조인하는 SSH Service 인스턴스를 인증하기 위해 Azure 조인 토큰을 사용합니다. 테넌트로 범위를 지정한 허용 규칙을 사용하면 테넌트의 모든 구독에 있는 VM이 클러스터에 조인할 수 있습니다.

token.yaml이라는 파일을 생성합니다.

# token.yaml
kind: token
version: v2
metadata:
  name: azure-discovery-token
  expires: "3000-01-01T00:00:00Z"
spec:
  roles: [Node]
  join_method: azure

  azure:
    allow:
    # specify the Azure tenant which Nodes may join from.
    # this allows joining from any subscription in the tenant.
    - tenant: "tenant-id"

tenant-id를 Azure 테넌트 ID로 지정합니다.

다음 명령으로 Teleport 클러스터에 토큰을 추가합니다.

$ tctl create -f token.yaml

2/5단계. Teleport용 IAM 권한 구성#

Teleport Discovery Service가 Azure 가상 머신을 검색하고 등록하려면 Azure IAM 권한이 필요합니다.

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-vm-configure-service-principal.mdx)

사용자 지정 역할 생성#

Teleport가 관리 그룹 전체에서 Azure VM을 검색하고 등록하려면 다음 권한이 필요합니다.

  • Microsoft.Compute/virtualMachines/read
  • Microsoft.Compute/virtualMachines/runCommands/write
  • Microsoft.Compute/virtualMachines/runCommands/read
  • Microsoft.Compute/virtualMachineScaleSets/read
  • Microsoft.Compute/virtualMachineScaleSets/virtualMachines/read
  • Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands/read
  • Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands/write
  • Microsoft.Resources/subscriptions/read

와일드카드 구독 매처를 사용할 때 Discovery Service가 관리 그룹 아래의 구독을 조회할 수 있도록 Microsoft.Resources/subscriptions/read 권한이 필요합니다.

다음은 Teleport가 관리 그룹 범위에서 Azure 가상 머신을 읽고 명령을 실행할 수 있도록 허용하는 역할 정의 샘플입니다.

{
    "properties": {
        "roleName": "TeleportDiscovery",
        "description": "Allows Teleport to discover Azure virtual machines",
        "assignableScopes": [
            "/providers/Microsoft.Management/managementGroups/<management-group-id>"
        ],
        "permissions": [
            {
                "actions": [
                    "Microsoft.Compute/virtualMachines/read",
                    "Microsoft.Compute/virtualMachines/runCommands/write",
                    "Microsoft.Compute/virtualMachines/runCommands/read",
                    "Microsoft.Compute/virtualMachineScaleSets/read",
                    "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/read",
                    "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands/write",
                    "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands/read",
                    "Microsoft.Resources/subscriptions/read"
                ],
                "notActions": [],
                "dataActions": [],
                "notDataActions": []
            }
        ]
    }
}

<management-group-id>를 관리 그룹 ID로 바꾸십시오. assignableScopes 필드는 역할을 할당할 수 있는 위치를 결정합니다. 검색하려는 구독이 포함된 관리 그룹으로 설정하십시오.

Azure는 assignableScopes에 하나의 관리 그룹만 허용합니다. 여러 관리 그룹에 걸친 VM을 검색하려면 assignableScopes를 리소스 계층 구조 최상위의 관리 그룹으로 설정하고, 검색하려는 각 관리 그룹에 대해 역할 할당을 생성하십시오.

테넌트의 모든 구독에 걸친 VM을 검색하려면 테넌트 ID를 관리 그룹 ID로 사용합니다. 이는 테넌트 루트 그룹을 대상으로 합니다.

Warning

테넌트 ID를 관리 그룹 ID로 사용하면 테넌트 루트 그룹을 대상으로 하며, 이를 위해서는 상승된 액세스가 필요합니다.

최근 Azure CLI 또는 Azure 포털에서 권한을 상승시킨 경우, 진행하기 전에 Azure CLI 자격 증명을 새로 고쳐야 할 수 있습니다.

$ az logout && az login

관리 그룹 페이지로 이동하여 관리 그룹을 선택합니다. *Access control (IAM)*을 클릭하고 Add > Add custom role을 선택한 다음 위의 JSON 역할 정의를 붙여넣습니다.

Tip

위의 역할 정의를 사용하면 Teleport가 VM과 가상 머신 스케일 셋(VMSS)의 VM을 등록할 수 있습니다.

VMSS에는 Uniform과 권장 모드인 Flexible의 두 가지 오케스트레이션 모드가 있습니다. Uniform 오케스트레이션 모드의 VMSS를 사용하지 않거나 등록하고 싶지 않다면, Microsoft.Compute/virtualMachineScaleSets/* 권한을 제거하여 Teleport에 부여되는 권한을 더 제한할 수 있습니다.

Azure 포털로 이동하여 Orchestration mode 칼럼에서 VMSS의 오케스트레이션 모드를 확인하고, 그에 맞게 역할 권한을 조정하십시오.

Teleport Discovery Service 서비스 주체에 대한 역할 할당 생성#

Teleport에 권한을 부여하려면 생성한 사용자 지정 역할을 관리 그룹 수준에서 Teleport 서비스 주체에 할당해야 합니다.

관리 그룹 페이지로 이동하여 관리 그룹을 선택하고 *Access control (IAM)*을 클릭합니다. Add > Add role assignment를 선택합니다. 역할로 생성한 사용자 지정 역할을 선택하고 멤버로 Teleport 서비스 주체를 선택합니다.

Assign role

Discovery Service는 할당된 관리 그룹 범위 아래의 모든 구독에 있는 VM을 검색합니다.

3/5단계. 검색된 노드의 아이덴티티 설정#

검색할 모든 Azure VM에는 시스템 할당 또는 사용자 할당 관리 ID 중 하나의 아이덴티티가 할당되어 있어야 합니다.

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-join-enable-identity.mdx)

검색할 VM에 시스템 관리 ID가 없고 둘 이상의 사용자 관리 ID가 할당되어 있는 경우, 5단계에서 사용할 수 있도록 사용자 관리 ID 중 하나의 클라이언트 ID를 복사해 두십시오.

4/5단계. Teleport Discovery Service 설치#

Tip

이미 다른 Teleport 서비스(예: Auth 또는 Proxy)를 실행 중인 호스트에서 Discovery Service를 실행할 계획이라면 이 단계를 건너뛸 수 있습니다.

Discovery Service를 실행할 가상 머신에 Teleport를 설치합니다.

Linux 서버에 Teleport Agent를 설치하려면:

권장 설치 방법은 클러스터 설치 스크립트입니다. 이 스크립트는 클러스터에 맞는 올바른 버전, 에디션, 설치 모드를 선택합니다.

  1. teleport.example.com:443에 Teleport 클러스터의 호스트명과 포트를 할당하되, 스킴(https://)은 포함하지 마십시오.

  2. 클러스터의 설치 스크립트를 실행하십시오:

    $ curl "https://teleport.example.com:443/scripts/install.sh" | sudo bash
    

5/5단계. Azure 인스턴스를 검색하도록 Teleport 구성#

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-vm-configure-discovery-service.mdx)

Azure VM 검색을 활성화하려면 앞서 구성한 것과 동일한 검색 그룹을 가진 Discovery Config 리소스를 생성합니다.

다음 내용으로 discovery-azure-prod.yaml이라는 파일을 생성합니다.

kind: discovery_config
version: v1
metadata:
  name: example-discovery-config
spec:
  discovery_group: azure-prod
  azure:
    - types: ["vm"]
      # Only exact matches or wildcard (*) are supported.
      subscriptions: ["*"]
      regions: ["<region>"]
      tags:
        "env": "prod" # Match virtual machines where tag:env=prod
      install:
        azure:
          # Optional: If the VMs to discover have more than one managed
          # identity assigned to them, set the client ID here to the client
          # ID of the identity created in step 3.
          client_id: "<client-id>"

spec.azure 아래의 키를 Azure 환경에 맞게 조정하십시오. 특히 Discovery Service와 연결하려는 리전과 태그를 조정합니다.

다음 명령을 실행하여 Discovery Config를 생성합니다.

$ tctl create -f discovery-azure-prod.yaml

일치하는 인스턴스는 Teleport 클러스터에 자동으로 추가됩니다.

Discovery Config는 언제든지 업데이트할 수 있으며, 서비스가 변경 사항을 자동으로 다시 적용합니다.

Azure VM 검색을 활성화하려면 teleport.yaml의 discovery_service.azure 섹션에 항목이 하나 이상 포함되어 있어야 합니다.

# teleport.yaml
# ...
discovery_service:
  enabled: true
  discovery_group: azure-prod
  azure:
    - types: ["vm"]
      # Only exact matches or wildcard (*) are supported.
      subscriptions: ["*"]
      regions: ["<region>"]
      tags:
        "env": "prod" # Match virtual machines where tag:env=prod
      install:
        azure:
          # Optional: If the VMs to discover have more than one managed
          # identity assigned to them, set the client ID here to the client
          # ID of the identity created in step 3.
          client_id: "<client-id>"

discovery_service.azure 아래의 키를 Azure 환경에 맞게 조정하십시오. 특히 Discovery Service와 연결하려는 리전과 태그를 조정합니다.

Tip

Terraform으로 관리 그룹의 여러 구독에 걸친 VM 검색을 구성하려면 Terraform Azure VM 자동 검색 가이드의 관리 그룹을 사용하여 여러 구독의 VM 검색을 참조하십시오.

systemd 서비스를 생성하여 호스트가 부팅될 때 the Discovery Service이 자동으로 시작되도록 구성합니다. 지침은 the Discovery Service을 어떻게 설치했는지에 따라 다릅니다.

Package Manager

the Discovery Service을 실행할 호스트에서 Teleport를 활성화하고 시작합니다:

$ sudo systemctl enable teleport
$ sudo systemctl start teleport

TAR Archive

the Discovery Service을 실행할 호스트에서 Teleport용 systemd 서비스 구성을 생성하고, Teleport 서비스를 활성화한 후 Teleport를 시작합니다:

$ sudo teleport install systemd -o /etc/systemd/system/teleport.service
$ sudo systemctl enable teleport
$ sudo systemctl start teleport

systemctl status teleport로 the Discovery Service의 상태를 확인하고 journalctl -fu teleport로 로그를 볼 수 있습니다.

Discovery Service를 시작하면, 앞서 지정한 태그와 일치하는 Azure 가상 머신이 관리 그룹 아래의 모든 구독에서 Teleport 클러스터에 자동으로 추가되기 시작합니다.

자동 검색 라벨#

Teleport는 자동 검색을 통해 클러스터에 조인하는 AWS, Azure, Google Cloud의 리소스에 기본 레이블 집합을 적용합니다. 자동 검색 레이블 레퍼런스를 참조하십시오.

고급 구성#

이 섹션에서는 서버를 발견하고 등록하기 위한 구성 옵션을 다룹니다.

동일한 인스턴스에 여러 Teleport 에이전트 설치#

블루-그린 배포나 기타 다중 클러스터 구성을 사용할 때, 서로 다른 클러스터에서 인스턴스에 접근하고 싶을 수 있습니다.

Teleport는 접미사가 붙은 설치(suffixed installation)를 사용하여 동일한 인스턴스에서 여러 에이전트를 설치하고 실행하는 것을 지원하며, 이를 통해 각 설치를 격리할 수 있습니다.

Dynamic configuration (recommended)

Discovery Service가 접미사가 붙은 설치를 사용하도록 구성하려면, Discovery Config를 편집하여 spec.aws.install.suffix 키를 설정합니다.

kind: discovery_config
# ...
spec:
  azure:
   - install:
       suffix: "blue-cluster"

Static configuration

Discovery Service가 접미사가 붙은 설치를 사용하도록 구성하려면, Discovery Service 설정에서 install.suffix 키를 지정합니다.

# teleport.yaml
version: v3
# ...
discovery_service:
  enabled: true
  azure:
   - install:
       suffix: "blue-cluster"

에이전트 관리형 업데이트가 활성화되어 있어야 합니다.

Managed Updates를 위한 그룹 정의#

Teleport 에이전트 관리형 업데이트를 사용하는 경우, 업데이트 그룹을 구성하여 어떤 인스턴스가 함께 업데이트되는지 제어할 수 있습니다.

Dynamic configuration (recommended)

업데이트 그룹을 설정하려면, Discovery Config를 편집하여 spec.aws.install.update_group 키를 설정합니다.

kind: discovery_config
# ...
spec:
  azure:
   - install:
       update_group: "update-group-1"

Static configuration

업데이트 그룹을 설정하려면, Discovery Service 설정에서 install.update_group 키를 지정합니다.

# teleport.yaml
version: v3
# ...
discovery_service:
  enabled: true
  azure:
   - install:
       update_group: "update-group-1"

Configure HTTP Proxy during installation#

설치 파일에 접근하기 위해 프록시가 필요한 인스턴스의 경우, Discovery Service에서 HTTP 프록시 설정을 구성할 수 있습니다.

Dynamic configuration (recommended)

HTTP 프록시 설정을 지정하려면, Discovery Config를 편집하여 spec.aws.install.http_proxy_settings 키를 설정합니다.

kind: discovery_config
# ...
spec:
  azure:
   - install:
       http_proxy_settings:
         https_proxy: http://172.31.5.130:3128
         http_proxy: http://172.31.5.130:3128
         no_proxy: my-local-domain

Static configuration

설정에서 install.http_proxy_settings 키를 설정해야 합니다.

# teleport.yaml
version: v3
# ...
discovery_service:
  enabled: true
  azure:
   - install:
       http_proxy_settings:
         https_proxy: http://172.31.5.130:3128
         http_proxy: http://172.31.5.130:3128
         no_proxy: my-local-domain

사용자 정의 설치 스크립트 사용#

설치 스크립트를 커스터마이즈하려면, 사용자에게 installer 리소스에 대한 list, create, read, update 동사를 허용하는 역할이 있어야 합니다.

다음 내용으로 installer-manager.yaml 파일을 생성합니다.

kind: role
version: v5
metadata:
  name: installer-manager
spec:
  allow:
    rules:
      - resources: [installer]
        verbs: [list, create, read, update]

역할을 생성합니다.

$ tctl create -f installer-manager.yaml
# role 'installer-manager' has been created
Tip

Web UI를 사용하여 역할을 생성하고 편집할 수도 있습니다. Access -> Roles로 이동하여 Create New Role을 클릭하거나 편집할 기존 역할을 선택하십시오.

프리셋 editor 역할은 기본적으로 필요한 권한을 가지고 있습니다.

기본 설치 스크립트를 커스터마이즈하려면, 워크스테이션에서 다음 명령을 실행합니다.

$ tctl edit installer/default-installer

기본 설치 스크립트를 원하는 대로 변경한 뒤, 텍스트 편집기에서 파일을 저장하고 닫습니다.

여러 개의 installer 리소스가 존재할 수 있으며, azure.install.script_name 섹션에서 지정할 수 있습니다.

Dynamic configuration (recommended)

Discovery Config를 편집하여 커스텀 설치 스크립트를 지정합니다.

<!-- INCLUDE:ENGLISH:docs/pages/includes/server-access/custom-installer-azure-dynamic.yaml -->
kind: discovery_config
# ...
spec:
  azure:
    - types: ["vm"]
      tags:
       - "env": "prod"
      install: # optional section when default-installer is used.
        script_name: "default-installer"
    - types: ["vm"]
      tags:
       - "env": "devel"
      install:
        script_name: "devel-installer"
<!-- /INCLUDE:ENGLISH -->

Static configuration

teleport.yaml 설정을 편집하여 커스텀 설치 스크립트를 지정합니다.

<!-- INCLUDE:ENGLISH:docs/pages/includes/server-access/custom-installer-azure.yaml -->
discovery_service:
  # ...
  azure:
    - types: ["vm"]
      tags:
       - "env": "prod"
      install: # optional section when default-installer is used.
        script_name: "default-installer"
    - types: ["vm"]
      tags:
       - "env": "devel"
      install:
        script_name: "devel-installer"
<!-- /INCLUDE:ENGLISH -->


installer 리소스에는 다음과 같은 템플릿 옵션이 있습니다.

  • {}: 리포지토리에서 설치할 때 사용할 Teleport의 메이저 버전입니다.
  • {}: 연결할 Teleport Proxy Service의 공용 주소입니다.
  • {}: 선택적 패키지 리포지토리(apt/yum) 채널 이름입니다. <channel>/<version> 형식이며 예를 들어 stable/v(=teleport.major_version=)와 같습니다. 자세한 내용은 설치를 참고하세요.
  • {}: 자동 업데이트가 활성화되었는지 비활성화되었는지를 나타냅니다. 값은 true 또는 false입니다. 자세한 내용은 자동 에이전트 업데이트를 참고하세요.
  • {}: 사용할 Teleport 패키지입니다. 클러스터가 엔터프라이즈인지 여부에 따라 값이 teleport-ent 또는 teleport가 됩니다.

이들은 다음과 같이 사용할 수 있습니다.

kind: installer
metadata:
  name: default-installer
spec:
  script: |
    echo {}
    echo Teleport-{}
    echo Repository Channel: {}
version: v1

이는 설치를 위해 조회될 때 다음과 같은 내용의 스크립트로 평가됩니다.

echo teleport.example.com
echo Teleport-(=teleport.version=)
echo Repository Channel: stable/v(=teleport.version=)

기본 설치 스크립트는 다음 작업을 수행합니다.

  • 지원되는 Linux 배포판에 공식 Teleport 리포지토리를 추가합니다.
  • apt 또는 yum을 통해 Teleport를 설치합니다.
  • Teleport 설정 파일을 생성하여 /etc/teleport.yaml에 기록합니다.
  • Teleport 서비스를 활성화하고 시작합니다.

Discovery Service 구성에서 client_id가 설정된 경우, 사용자 정의 설치 프로그램에는 {} 템플릿 옵션도 제공됩니다.

문제 해결#

자격 증명 공급자 없음 오류#

Discovery Service 로그에 DefaultAzureCredential: failed to acquire a token. 오류가 표시되면 Teleport가 Azure SDK에 연결하는 데 필요한 자격 증명을 감지하지 못한 것입니다. Teleport Discovery Service를 실행하는 머신에 자격 증명이 적용되었는지 확인하고 Teleport Discovery Service를 재시작하십시오. 자세한 내용은 Azure SDK 인증을 참조하십시오.

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-vm-troubleshooting.mdx)

다음 단계#

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-vm-next-steps.mdx)

관리 그룹을 위한 Azure VM 자동 검색

Teleport v18.11
원문 보기

요약

이 가이드에서는 관리 그룹을 사용하여 여러 구독에 걸친 Azure 가상 머신을 자동으로 등록하도록 Teleport를 구성하는 방법을 설명합니다. 특정 구독의 VM만 검색하려면 수동 Azure VM 자동 검색을 참조하십시오.

이 가이드에서는 관리 그룹을 사용하여 여러 구독에 걸친 Azure 가상 머신을 자동으로 등록하도록 Teleport를 구성하는 방법을 설명합니다.

특정 구독의 VM만 검색하려면 수동 Azure VM 자동 검색을 참조하십시오.

작동 방식#

Teleport Discovery Service는 관리 그룹 범위에 권한이 할당된 서비스 주체로 Azure에 인증합니다. 이를 통해 해당 관리 그룹 아래의 모든 구독을 조회하고 각 구독의 가상 머신을 검색할 수 있습니다.

검색된 각 VM에 대해 Discovery Service는 Azure Run Command 기능을 사용하여 스크립트를 실행합니다. 이 스크립트는 Teleport를 설치하고, 시작하고, 클러스터에 조인시킵니다.

테넌트 루트 그룹을 사용하면 이후에 추가되는 구독과 관리 그룹을 포함하여 전체 Azure 환경의 VM을 등록할 수도 있습니다. 테넌트 루트 관리 그룹 ID는 Azure 테넌트 ID와 같습니다.

Note

관리 그룹을 사용한 Azure 검색은 현재 가상 머신과 가상 머신 스케일 셋에서만 지원됩니다.

사전 요구사항#

  • 실행 중인 Teleport 클러스터. Teleport를 시작하려면 무료 체험판에 가입하거나 데모 환경을 구성하세요.

  • tctl and tsh clients.

    Installing `tctl` and `tsh` clients
    1. Teleport 클러스터의 버전을 확인합니다. tctl and tsh clients는 Teleport 클러스터 버전보다 최대 한 개의 메이저 버전까지만 뒤처질 수 있습니다. Proxy Service의 /v1/webapi/find로 GET 요청을 보내고 JSON 쿼리 도구를 사용하여 클러스터 버전을 확인합니다. teleport.example.com:443를 Teleport Proxy Service의 웹 주소로 바꿉니다:

      $ TELEPORT_DOMAIN=teleport.example.com:443
      $ TELEPORT_VERSION="$(curl -s https://$TELEPORT_DOMAIN/v1/webapi/find | jq -r '.server_version')"
      
    2. 사용 중인 플랫폼에 대한 지침에 따라 tctl and tsh clients를 설치합니다:

Mac

     `tctl` and `tsh` clients가 포함된, 서명된 Teleport macOS .pkg 설치 프로그램을 다운로드합니다:
 
     ```code
     $ curl -O https://cdn.teleport.dev/teleport-${TELEPORT_VERSION?}.pkg
     ```

     Finder에서 `pkg` 파일을 더블 클릭하여 설치를 시작합니다.
 
     
Warning
       Homebrew를 사용하여 Teleport를 설치하는 것은 지원되지 않습니다. Homebrew의
       Teleport 패키지는 Teleport에서 유지 관리하지 않으므로 신뢰성이나 보안을
       보장할 수 없습니다.
     

Windows - Powershell

     ```code
     $ curl.exe -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION?}-windows-amd64-bin.zip
     # Unzip the archive and move the `tctl` and `tsh` clients to your %PATH%
     # NOTE: Do not place the `tctl` and `tsh` clients in the System32 directory, as this can cause issues when using WinSCP.
     # Use %SystemRoot% (C:\Windows) or %USERPROFILE% (C:\Users\<username>) instead.
     ```
 
   

 
   

Linux

     Linux 설치판의 모든 Teleport 바이너리에는 `tctl` and `tsh` clients가 포함되어 있습니다.  RPM/DEB
     패키지 및 i386/ARM/ARM64용 다운로드를 포함한 더 많은 옵션은
     [설치 페이지](../installation/installation.mdx)를 참조하세요.
 
     ```code
     $ curl -O https://cdn.teleport.dev/teleport-v${TELEPORT_VERSION?}-linux-amd64-bin.tar.gz
     $ tar -xzf teleport-v${TELEPORT_VERSION?}-linux-amd64-bin.tar.gz
     $ cd teleport
     $ sudo ./install
     # Teleport binaries have been copied to /usr/local/bin
     ```
   

 
  • 검색 대상 구독이 포함된 Azure 관리 그룹 또는 테넌트.
  • 관리 그룹 범위에서 관리 ID, 사용자 지정 역할 정의, 역할 할당을 생성할 수 있는 권한.
  • Teleport 클러스터에 조인할 Azure 가상 머신. 기본 Teleport 설치 스크립트를 사용하는 경우 Ubuntu/Debian/RHEL이어야 합니다. (다른 Linux 배포판의 경우 Teleport를 수동으로 설치할 수 있습니다.)

Teleport cluster에 연결할 수 있는지 확인하려면 tsh login으로 로그인한 다음, 현재 자격 증명으로 tctl 명령을 실행할 수 있는지 확인합니다.

예를 들어, teleport.example.com에 cluster 내 Teleport Proxy Service의 도메인 이름을, email@example.com에 Teleport 사용자 이름을 지정하여 다음 명령을 실행합니다:

$ tsh login --proxy=teleport.example.com --user=email@example.com
$ tctl status
# Cluster  (=teleport.url=)
# Version  (=teleport.version=)
# CA pin   (=presets.ca_pin=)

cluster에 연결하여 tctl status 명령을 실행할 수 있다면, 현재 자격 증명을 사용하여 워크스테이션에서 이후의 tctl 명령을 실행할 수 있습니다. 자체 Teleport cluster를 호스팅하는 경우, 전체 권한을 얻기 위해 Teleport Auth Service를 호스팅하는 컴퓨터에서 tctl 명령을 실행할 수도 있습니다.

1/5단계. Azure 조인 토큰 생성#

Azure 가상 머신을 검색할 때 Teleport는 조인하는 SSH Service 인스턴스를 인증하기 위해 Azure 조인 토큰을 사용합니다. 테넌트로 범위를 지정한 허용 규칙을 사용하면 테넌트의 모든 구독에 있는 VM이 클러스터에 조인할 수 있습니다.

token.yaml이라는 파일을 생성합니다.

# token.yaml
kind: token
version: v2
metadata:
  name: azure-discovery-token
  expires: "3000-01-01T00:00:00Z"
spec:
  roles: [Node]
  join_method: azure

  azure:
    allow:
    # specify the Azure tenant which Nodes may join from.
    # this allows joining from any subscription in the tenant.
    - tenant: "tenant-id"

tenant-id를 Azure 테넌트 ID로 지정합니다.

다음 명령으로 Teleport 클러스터에 토큰을 추가합니다.

$ tctl create -f token.yaml

2/5단계. Teleport용 IAM 권한 구성#

Teleport Discovery Service가 Azure 가상 머신을 검색하고 등록하려면 Azure IAM 권한이 필요합니다.

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-vm-configure-service-principal.mdx)

사용자 지정 역할 생성#

Teleport가 관리 그룹 전체에서 Azure VM을 검색하고 등록하려면 다음 권한이 필요합니다.

  • Microsoft.Compute/virtualMachines/read
  • Microsoft.Compute/virtualMachines/runCommands/write
  • Microsoft.Compute/virtualMachines/runCommands/read
  • Microsoft.Compute/virtualMachineScaleSets/read
  • Microsoft.Compute/virtualMachineScaleSets/virtualMachines/read
  • Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands/read
  • Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands/write
  • Microsoft.Resources/subscriptions/read

와일드카드 구독 매처를 사용할 때 Discovery Service가 관리 그룹 아래의 구독을 조회할 수 있도록 Microsoft.Resources/subscriptions/read 권한이 필요합니다.

다음은 Teleport가 관리 그룹 범위에서 Azure 가상 머신을 읽고 명령을 실행할 수 있도록 허용하는 역할 정의 샘플입니다.

{
    "properties": {
        "roleName": "TeleportDiscovery",
        "description": "Allows Teleport to discover Azure virtual machines",
        "assignableScopes": [
            "/providers/Microsoft.Management/managementGroups/<management-group-id>"
        ],
        "permissions": [
            {
                "actions": [
                    "Microsoft.Compute/virtualMachines/read",
                    "Microsoft.Compute/virtualMachines/runCommands/write",
                    "Microsoft.Compute/virtualMachines/runCommands/read",
                    "Microsoft.Compute/virtualMachineScaleSets/read",
                    "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/read",
                    "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands/write",
                    "Microsoft.Compute/virtualMachineScaleSets/virtualMachines/runCommands/read",
                    "Microsoft.Resources/subscriptions/read"
                ],
                "notActions": [],
                "dataActions": [],
                "notDataActions": []
            }
        ]
    }
}

<management-group-id>를 관리 그룹 ID로 바꾸십시오. assignableScopes 필드는 역할을 할당할 수 있는 위치를 결정합니다. 검색하려는 구독이 포함된 관리 그룹으로 설정하십시오.

Azure는 assignableScopes에 하나의 관리 그룹만 허용합니다. 여러 관리 그룹에 걸친 VM을 검색하려면 assignableScopes를 리소스 계층 구조 최상위의 관리 그룹으로 설정하고, 검색하려는 각 관리 그룹에 대해 역할 할당을 생성하십시오.

테넌트의 모든 구독에 걸친 VM을 검색하려면 테넌트 ID를 관리 그룹 ID로 사용합니다. 이는 테넌트 루트 그룹을 대상으로 합니다.

Warning

테넌트 ID를 관리 그룹 ID로 사용하면 테넌트 루트 그룹을 대상으로 하며, 이를 위해서는 상승된 액세스가 필요합니다.

최근 Azure CLI 또는 Azure 포털에서 권한을 상승시킨 경우, 진행하기 전에 Azure CLI 자격 증명을 새로 고쳐야 할 수 있습니다.

$ az logout && az login

관리 그룹 페이지로 이동하여 관리 그룹을 선택합니다. *Access control (IAM)*을 클릭하고 Add > Add custom role을 선택한 다음 위의 JSON 역할 정의를 붙여넣습니다.

Tip

위의 역할 정의를 사용하면 Teleport가 VM과 가상 머신 스케일 셋(VMSS)의 VM을 등록할 수 있습니다.

VMSS에는 Uniform과 권장 모드인 Flexible의 두 가지 오케스트레이션 모드가 있습니다. Uniform 오케스트레이션 모드의 VMSS를 사용하지 않거나 등록하고 싶지 않다면, Microsoft.Compute/virtualMachineScaleSets/* 권한을 제거하여 Teleport에 부여되는 권한을 더 제한할 수 있습니다.

Azure 포털로 이동하여 Orchestration mode 칼럼에서 VMSS의 오케스트레이션 모드를 확인하고, 그에 맞게 역할 권한을 조정하십시오.

Teleport Discovery Service 서비스 주체에 대한 역할 할당 생성#

Teleport에 권한을 부여하려면 생성한 사용자 지정 역할을 관리 그룹 수준에서 Teleport 서비스 주체에 할당해야 합니다.

관리 그룹 페이지로 이동하여 관리 그룹을 선택하고 *Access control (IAM)*을 클릭합니다. Add > Add role assignment를 선택합니다. 역할로 생성한 사용자 지정 역할을 선택하고 멤버로 Teleport 서비스 주체를 선택합니다.

Assign role

Discovery Service는 할당된 관리 그룹 범위 아래의 모든 구독에 있는 VM을 검색합니다.

3/5단계. 검색된 노드의 아이덴티티 설정#

검색할 모든 Azure VM에는 시스템 할당 또는 사용자 할당 관리 ID 중 하나의 아이덴티티가 할당되어 있어야 합니다.

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-join-enable-identity.mdx)

검색할 VM에 시스템 관리 ID가 없고 둘 이상의 사용자 관리 ID가 할당되어 있는 경우, 5단계에서 사용할 수 있도록 사용자 관리 ID 중 하나의 클라이언트 ID를 복사해 두십시오.

4/5단계. Teleport Discovery Service 설치#

Tip

이미 다른 Teleport 서비스(예: Auth 또는 Proxy)를 실행 중인 호스트에서 Discovery Service를 실행할 계획이라면 이 단계를 건너뛸 수 있습니다.

Discovery Service를 실행할 가상 머신에 Teleport를 설치합니다.

Linux 서버에 Teleport Agent를 설치하려면:

권장 설치 방법은 클러스터 설치 스크립트입니다. 이 스크립트는 클러스터에 맞는 올바른 버전, 에디션, 설치 모드를 선택합니다.

  1. teleport.example.com:443에 Teleport 클러스터의 호스트명과 포트를 할당하되, 스킴(https://)은 포함하지 마십시오.

  2. 클러스터의 설치 스크립트를 실행하십시오:

    $ curl "https://teleport.example.com:443/scripts/install.sh" | sudo bash
    

5/5단계. Azure 인스턴스를 검색하도록 Teleport 구성#

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-vm-configure-discovery-service.mdx)

Azure VM 검색을 활성화하려면 앞서 구성한 것과 동일한 검색 그룹을 가진 Discovery Config 리소스를 생성합니다.

다음 내용으로 discovery-azure-prod.yaml이라는 파일을 생성합니다.

kind: discovery_config
version: v1
metadata:
  name: example-discovery-config
spec:
  discovery_group: azure-prod
  azure:
    - types: ["vm"]
      # Only exact matches or wildcard (*) are supported.
      subscriptions: ["*"]
      regions: ["<region>"]
      tags:
        "env": "prod" # Match virtual machines where tag:env=prod
      install:
        azure:
          # Optional: If the VMs to discover have more than one managed
          # identity assigned to them, set the client ID here to the client
          # ID of the identity created in step 3.
          client_id: "<client-id>"

spec.azure 아래의 키를 Azure 환경에 맞게 조정하십시오. 특히 Discovery Service와 연결하려는 리전과 태그를 조정합니다.

다음 명령을 실행하여 Discovery Config를 생성합니다.

$ tctl create -f discovery-azure-prod.yaml

일치하는 인스턴스는 Teleport 클러스터에 자동으로 추가됩니다.

Discovery Config는 언제든지 업데이트할 수 있으며, 서비스가 변경 사항을 자동으로 다시 적용합니다.

Azure VM 검색을 활성화하려면 teleport.yaml의 discovery_service.azure 섹션에 항목이 하나 이상 포함되어 있어야 합니다.

# teleport.yaml
# ...
discovery_service:
  enabled: true
  discovery_group: azure-prod
  azure:
    - types: ["vm"]
      # Only exact matches or wildcard (*) are supported.
      subscriptions: ["*"]
      regions: ["<region>"]
      tags:
        "env": "prod" # Match virtual machines where tag:env=prod
      install:
        azure:
          # Optional: If the VMs to discover have more than one managed
          # identity assigned to them, set the client ID here to the client
          # ID of the identity created in step 3.
          client_id: "<client-id>"

discovery_service.azure 아래의 키를 Azure 환경에 맞게 조정하십시오. 특히 Discovery Service와 연결하려는 리전과 태그를 조정합니다.

Tip

Terraform으로 관리 그룹의 여러 구독에 걸친 VM 검색을 구성하려면 Terraform Azure VM 자동 검색 가이드의 관리 그룹을 사용하여 여러 구독의 VM 검색을 참조하십시오.

systemd 서비스를 생성하여 호스트가 부팅될 때 the Discovery Service이 자동으로 시작되도록 구성합니다. 지침은 the Discovery Service을 어떻게 설치했는지에 따라 다릅니다.

Package Manager

the Discovery Service을 실행할 호스트에서 Teleport를 활성화하고 시작합니다:

$ sudo systemctl enable teleport
$ sudo systemctl start teleport

TAR Archive

the Discovery Service을 실행할 호스트에서 Teleport용 systemd 서비스 구성을 생성하고, Teleport 서비스를 활성화한 후 Teleport를 시작합니다:

$ sudo teleport install systemd -o /etc/systemd/system/teleport.service
$ sudo systemctl enable teleport
$ sudo systemctl start teleport

systemctl status teleport로 the Discovery Service의 상태를 확인하고 journalctl -fu teleport로 로그를 볼 수 있습니다.

Discovery Service를 시작하면, 앞서 지정한 태그와 일치하는 Azure 가상 머신이 관리 그룹 아래의 모든 구독에서 Teleport 클러스터에 자동으로 추가되기 시작합니다.

자동 검색 라벨#

Teleport는 자동 검색을 통해 클러스터에 조인하는 AWS, Azure, Google Cloud의 리소스에 기본 레이블 집합을 적용합니다. 자동 검색 레이블 레퍼런스를 참조하십시오.

고급 구성#

이 섹션에서는 서버를 발견하고 등록하기 위한 구성 옵션을 다룹니다.

동일한 인스턴스에 여러 Teleport 에이전트 설치#

블루-그린 배포나 기타 다중 클러스터 구성을 사용할 때, 서로 다른 클러스터에서 인스턴스에 접근하고 싶을 수 있습니다.

Teleport는 접미사가 붙은 설치(suffixed installation)를 사용하여 동일한 인스턴스에서 여러 에이전트를 설치하고 실행하는 것을 지원하며, 이를 통해 각 설치를 격리할 수 있습니다.

Dynamic configuration (recommended)

Discovery Service가 접미사가 붙은 설치를 사용하도록 구성하려면, Discovery Config를 편집하여 spec.aws.install.suffix 키를 설정합니다.

kind: discovery_config
# ...
spec:
  azure:
   - install:
       suffix: "blue-cluster"

Static configuration

Discovery Service가 접미사가 붙은 설치를 사용하도록 구성하려면, Discovery Service 설정에서 install.suffix 키를 지정합니다.

# teleport.yaml
version: v3
# ...
discovery_service:
  enabled: true
  azure:
   - install:
       suffix: "blue-cluster"

에이전트 관리형 업데이트가 활성화되어 있어야 합니다.

Managed Updates를 위한 그룹 정의#

Teleport 에이전트 관리형 업데이트를 사용하는 경우, 업데이트 그룹을 구성하여 어떤 인스턴스가 함께 업데이트되는지 제어할 수 있습니다.

Dynamic configuration (recommended)

업데이트 그룹을 설정하려면, Discovery Config를 편집하여 spec.aws.install.update_group 키를 설정합니다.

kind: discovery_config
# ...
spec:
  azure:
   - install:
       update_group: "update-group-1"

Static configuration

업데이트 그룹을 설정하려면, Discovery Service 설정에서 install.update_group 키를 지정합니다.

# teleport.yaml
version: v3
# ...
discovery_service:
  enabled: true
  azure:
   - install:
       update_group: "update-group-1"

Configure HTTP Proxy during installation#

설치 파일에 접근하기 위해 프록시가 필요한 인스턴스의 경우, Discovery Service에서 HTTP 프록시 설정을 구성할 수 있습니다.

Dynamic configuration (recommended)

HTTP 프록시 설정을 지정하려면, Discovery Config를 편집하여 spec.aws.install.http_proxy_settings 키를 설정합니다.

kind: discovery_config
# ...
spec:
  azure:
   - install:
       http_proxy_settings:
         https_proxy: http://172.31.5.130:3128
         http_proxy: http://172.31.5.130:3128
         no_proxy: my-local-domain

Static configuration

설정에서 install.http_proxy_settings 키를 설정해야 합니다.

# teleport.yaml
version: v3
# ...
discovery_service:
  enabled: true
  azure:
   - install:
       http_proxy_settings:
         https_proxy: http://172.31.5.130:3128
         http_proxy: http://172.31.5.130:3128
         no_proxy: my-local-domain

사용자 정의 설치 스크립트 사용#

설치 스크립트를 커스터마이즈하려면, 사용자에게 installer 리소스에 대한 list, create, read, update 동사를 허용하는 역할이 있어야 합니다.

다음 내용으로 installer-manager.yaml 파일을 생성합니다.

kind: role
version: v5
metadata:
  name: installer-manager
spec:
  allow:
    rules:
      - resources: [installer]
        verbs: [list, create, read, update]

역할을 생성합니다.

$ tctl create -f installer-manager.yaml
# role 'installer-manager' has been created
Tip

Web UI를 사용하여 역할을 생성하고 편집할 수도 있습니다. Access -> Roles로 이동하여 Create New Role을 클릭하거나 편집할 기존 역할을 선택하십시오.

프리셋 editor 역할은 기본적으로 필요한 권한을 가지고 있습니다.

기본 설치 스크립트를 커스터마이즈하려면, 워크스테이션에서 다음 명령을 실행합니다.

$ tctl edit installer/default-installer

기본 설치 스크립트를 원하는 대로 변경한 뒤, 텍스트 편집기에서 파일을 저장하고 닫습니다.

여러 개의 installer 리소스가 존재할 수 있으며, azure.install.script_name 섹션에서 지정할 수 있습니다.

Dynamic configuration (recommended)

Discovery Config를 편집하여 커스텀 설치 스크립트를 지정합니다.

<!-- INCLUDE:ENGLISH:docs/pages/includes/server-access/custom-installer-azure-dynamic.yaml -->
kind: discovery_config
# ...
spec:
  azure:
    - types: ["vm"]
      tags:
       - "env": "prod"
      install: # optional section when default-installer is used.
        script_name: "default-installer"
    - types: ["vm"]
      tags:
       - "env": "devel"
      install:
        script_name: "devel-installer"
<!-- /INCLUDE:ENGLISH -->

Static configuration

teleport.yaml 설정을 편집하여 커스텀 설치 스크립트를 지정합니다.

<!-- INCLUDE:ENGLISH:docs/pages/includes/server-access/custom-installer-azure.yaml -->
discovery_service:
  # ...
  azure:
    - types: ["vm"]
      tags:
       - "env": "prod"
      install: # optional section when default-installer is used.
        script_name: "default-installer"
    - types: ["vm"]
      tags:
       - "env": "devel"
      install:
        script_name: "devel-installer"
<!-- /INCLUDE:ENGLISH -->


installer 리소스에는 다음과 같은 템플릿 옵션이 있습니다.

  • {}: 리포지토리에서 설치할 때 사용할 Teleport의 메이저 버전입니다.
  • {}: 연결할 Teleport Proxy Service의 공용 주소입니다.
  • {}: 선택적 패키지 리포지토리(apt/yum) 채널 이름입니다. <channel>/<version> 형식이며 예를 들어 stable/v(=teleport.major_version=)와 같습니다. 자세한 내용은 설치를 참고하세요.
  • {}: 자동 업데이트가 활성화되었는지 비활성화되었는지를 나타냅니다. 값은 true 또는 false입니다. 자세한 내용은 자동 에이전트 업데이트를 참고하세요.
  • {}: 사용할 Teleport 패키지입니다. 클러스터가 엔터프라이즈인지 여부에 따라 값이 teleport-ent 또는 teleport가 됩니다.

이들은 다음과 같이 사용할 수 있습니다.

kind: installer
metadata:
  name: default-installer
spec:
  script: |
    echo {}
    echo Teleport-{}
    echo Repository Channel: {}
version: v1

이는 설치를 위해 조회될 때 다음과 같은 내용의 스크립트로 평가됩니다.

echo teleport.example.com
echo Teleport-(=teleport.version=)
echo Repository Channel: stable/v(=teleport.version=)

기본 설치 스크립트는 다음 작업을 수행합니다.

  • 지원되는 Linux 배포판에 공식 Teleport 리포지토리를 추가합니다.
  • apt 또는 yum을 통해 Teleport를 설치합니다.
  • Teleport 설정 파일을 생성하여 /etc/teleport.yaml에 기록합니다.
  • Teleport 서비스를 활성화하고 시작합니다.

Discovery Service 구성에서 client_id가 설정된 경우, 사용자 정의 설치 프로그램에는 {} 템플릿 옵션도 제공됩니다.

문제 해결#

자격 증명 공급자 없음 오류#

Discovery Service 로그에 DefaultAzureCredential: failed to acquire a token. 오류가 표시되면 Teleport가 Azure SDK에 연결하는 데 필요한 자격 증명을 감지하지 못한 것입니다. Teleport Discovery Service를 실행하는 머신에 자격 증명이 적용되었는지 확인하고 Teleport Discovery Service를 재시작하십시오. 자세한 내용은 Azure SDK 인증을 참조하십시오.

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-vm-troubleshooting.mdx)

다음 단계#

Note

이 섹션의 내용은 원문 문서를 참조하세요. (azure-vm-next-steps.mdx)