Azure Service Groups 개요 (public preview)

발행: (2025년 12월 3일 오전 05:38 GMT+9)
4 min read
원문: Dev.to

Source: Dev.to

Overview

Azure 테넌트에서 관리 그룹은 구독을 조직하고, 액세스 제어를 정의하며, 정책을 적용하는 데 사용됩니다. 단일 워크로드에 대한 리소스가 여러 구독에 걸쳐 배포될 경우 관리가 더 복잡해집니다. Azure Service Groups는 리소스를 이동하지 않고도 그룹화할 수 있게 하여 이 문제를 해결합니다.

Service Group은 구독 및 리소스 그룹에 걸쳐 리소스를 그룹화하는 논리적 컨테이너이며, 각 리소스는 원래 구독에 그대로 남아 있습니다. 관리 그룹 계층 내에서 관리할 수 있으며, 워크로드를 식별하고 상태를 추적하며 프로세스를 관리하는 데 사용되는 메타데이터를 저장합니다.

Use Cases

  • 네트워킹 팀 – 여러 구독에 걸쳐 있는 게이트웨이, 로드 밸런서 및 기타 네트워크 서비스를 그룹화합니다. Service Group Reader 역할을 할당하면 팀 구성원이 그룹 및 하위 리소스를 볼 수 있습니다.
  • 인벤토리 및 모니터링 – 그룹 내 리소스 인벤토리, 이슈 목록, 애플리케이션 맵, (Application Insights와 연결된 경우) 가용성 테스트, VM 및 AKS에 대한 모니터링 권장 사항을 확인합니다.

Naming and Hierarchy

  • 각 Service Group은 저장소 계정 이름과 유사하게 최대 250자까지 허용되는 고유한 전역 이름이 필요합니다.
  • Service Group은 계층 구조를 형성합니다: 테넌트 루트 Service Group 아래 최상위 레벨에 Service Group을 만들거나, 다른 Service Group의 하위 그룹으로 만들 수 있습니다.

Creating a Service Group with Bicep

Service Group을 만들고 리소스를 연결하는 방법은 Azure Portal 또는 Azure REST API를 사용할 수 있습니다. 현재 전용 PowerShell cmdlet이나 Azure CLI 명령은 제공되지 않습니다.

param serviceGroupId string
param parentServiceGroupId string
param serviceGroupName string 
param storageAccountName string

resource serviceGroup 'Microsoft.Management/serviceGroups@2024-02-01-preview' = {
  scope: tenant()
  name: serviceGroupId
  properties: {
    displayName: serviceGroupName
    parent: {
      resourceId: '/providers/Microsoft.Management/serviceGroups/${parentServiceGroupId}'
    }
  }
}

resource storageAccount 'Microsoft.Storage/storageAccounts@2025-06-01' existing = {
  name: storageAccountName
}

resource rel1 'Microsoft.Relationships/serviceGroupMember@2023-09-01-preview' = {
  scope: storageAccount
  name: 'childResource1'
  properties: {
    targetId: serviceGroup.id
  }
}
  • serviceGroup 리소스는 테넌트 수준에서 Service Group을 생성합니다.
  • rel1 리소스는 Microsoft.Relationships/serviceGroupMember를 사용해 기존 스토리지 계정을 Service Group에 연결합니다.

Creating a Service Group with an ARM Template

범위를 리소스 ID로 지정해야 하는 경우 ARM 템플릿을 사용할 수 있습니다:

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "storageAccountName": { "type": "string" },
    "storageAccountRG":   { "type": "string" },
    "storageAccountSubID":{ "type": "string" },
    "targetServiceGroupResourceID": { "type": "string" }
  },
  "resources": [
    {
      "type": "Microsoft.Relationships/serviceGroupMember",
      "apiVersion": "2023-09-01-preview",
      "name": "[concat('rel-', parameters('storageAccountName'))]",
      "scope": "[resourceId(parameters('storageAccountSubID'), parameters('storageAccountRG'), 'Microsoft.Storage/storageAccounts/', parameters('storageAccountName'))]",
      "properties": {
        "targetId": "[parameters('targetServiceGroupResourceID')]"
      }
    }
  ],
  "outputs": {}
}

Preview Notice

Service Groups는 현재 퍼블릭 프리뷰 단계에 있습니다. API와 도구는 일반 제공(GA) 이전에 변경될 수 있지만, 중대형 Azure 테넌트에 대해 평가해볼 가치가 있는 기능입니다.

Back to Blog

관련 글

더 보기 »

Friday Five — 2025년 12월 5일

!1https://www.redhat.com/rhdc/managed-files/styles/default_800/private/number-1.png.webp?itok=pDWx13kK Red Hat이 AWS 전반에 걸쳐 향상된 AI 추론을 제공한다 Red H...