Azure Stack Hub 관리 디스크: 차이점 및 고려 사항

이 문서에서는 Azure Stack Hub의 관리 디스크와 Azure의관리 디스크 간의 차이점을 요약합니다. Azure Stack Hub와 Azure 간의 개략적인 차이점에 대해 알아보려면 주요 고려 사항 문서를 참조하세요.

관리 디스크는 VM 디스크와 연결된 스토리지 계정을 관리하여 IaaS VM(가상 머신)에 대한 디스크 관리를 간소화합니다.

관리 디스크는 Azure Stack Hub 포털을 사용하여 VM을 만들 때 기본적으로 사용하도록 설정됩니다.

치트 시트: 관리 디스크 차이

기능 Azure(글로벌) Azure Stack Hub
백업 옵션 Azure Backup 서비스 아직 지원되지 않음
재해 복구 옵션 Azure Site Recovery 아직 지원되지 않음
디스크 성능 분석 지원되는 디스크별 메트릭 및 집계 메트릭. 아직 지원되지 않음
디스크 크기 Azure Premium Disk: P4(32GiB)~P80(32TiB)
Azure 표준 SSD 디스크: E10(128GiB)~E80(32TiB)
Azure 표준 HDD 디스크: S4(32GiB)~S80(32TiB)
M4: 32GiB
M6: 64GiB
M10: 128GiB
M15: 256GiB
M20: 512GiB
M30: 1023GiB
디스크 스냅샷 복사 지원되는 실행 중인 VM에 연결된 Azure 관리 디스크 스냅샷 백업 공급업체를 통해 지원됩니다. 공급업체에 문의하여 지원을 확인합니다.
디스크 유형 프리미엄 SSD, 표준 SSD 및 표준 HDD를 제공합니다. 프리미엄 SSD, 표준 HDD
미사용 데이터 암호화 SSE(Azure Storage 서비스 암호화), ADE(Azure Disk Encryption). BitLocker 128비트 AES 암호화
디스크 확장 – 관리 디스크 지원됨 지원 여부
Windows
Linux
이미지 관리되는 사용자 지정 이미지 지원 여부
마이그레이션 VM을 다시 만들 필요 없이 기존 관리되지 않는 Azure Resource Manager VM에서 마이그레이션하는 도구를 제공합니다. 아직 지원되지 않음
프리미엄 디스크: 완전하게 지원됨 프로비전할 수 있지만 성능 제한 또는 보장은 없습니다.
프리미엄 디스크 IOP 디스크 크기에 따라 다릅니다. 디스크당 2300IOP
프리미엄 디스크 처리량 디스크 크기에 따라 다릅니다. 디스크당 145MB/초

참고

Azure Stack Hub의 관리 디스크 IOP 및 처리량은 Azure Stack Hub에서 실행되는 하드웨어 및 워크로드의 영향을 받을 수 있는 프로비전된 번호 대신 제한 번호입니다.

메트릭

스토리지 메트릭에는 다음과 같은 차이점이 있습니다.

  • Azure Stack Hub를 사용하면 스토리지 메트릭의 트랜잭션 데이터가 내부 또는 외부 네트워크 대역폭을 구분하지 않습니다.
  • 스토리지 메트릭의 Azure Stack Hub 트랜잭션 데이터에는 탑재된 디스크에 대한 가상 머신 액세스가 포함되지 않습니다.

API 버전

Azure Stack Hub 관리 디스크는 다음 API 버전을 지원합니다.

  • 2019-07-01
  • 2019-03-01
  • 2018-09-30
  • 2018-06-01
  • 2018-04-01
  • 2017-03-30
  • 2017-03-30
  • 2017-12-01(관리되는 이미지만, 디스크 없음, 스냅샷 없음)

관리 디스크로 변환

참고

Azure PowerShell cmdlet ConvertTo-AzVMManagedDisk는 관리되지 않는 디스크를 Azure Stack Hub의 관리 디스크로 변환하는 데 사용할 수 없습니다. Azure Stack Hub는 현재 이 cmdlet을 지원하지 않습니다.

다음 스크립트를 사용하여 현재 프로비전된 VM을 관리되지 않는 디스크에서 관리 디스크로 변환할 수 있습니다. 자리 표시자를 고유한 값으로 바꿉니다.

$SubscriptionId = "SubId"

# The name of your resource group where your VM to be converted exists.
$ResourceGroupName ="MyResourceGroup"

# The name of the managed disk to be created.
$DiskName = "mngddisk"

# The size of the disks in GB. It should be greater than the VHD file size.
$DiskSize = "50"

# The URI of the VHD file that will be used to create the managed disk.
# The VHD file can be deleted as soon as the managed disk is created.
$VhdUri = "https://rgmgddisks347.blob.local.azurestack.external/vhds/unmngdvm20181109013817.vhd"

# The storage type for the managed disk: PremiumLRS or StandardLRS.
$AccountType = "StandardLRS"

# The Azure Stack Hub location where the managed disk will be located.
# The location should be the same as the location of the storage account in which VHD file is stored.
# Configure the new managed VM point to the old unmanaged VM configuration (network config, VM name, location).
$Location = "local"
$VirtualMachineName = "unmngdvm"
$VirtualMachineSize = "Standard_D1"
$PIpName = "unmngdvm-ip"
$VirtualNetworkName = "unmngdrg-vnet"
$NicName = "unmngdvm"

# Set the context to the subscription ID in which the managed disk will be created.
Select-AzSubscription -SubscriptionId $SubscriptionId

# Delete old VM, but keep the OS disk.
Remove-AzVm -Name $VirtualMachineName -ResourceGroupName $ResourceGroupName

# Create the managed disk configuration.
$DiskConfig = New-AzDiskConfig -AccountType $AccountType -Location $Location -DiskSizeGB $DiskSize -SourceUri $VhdUri -CreateOption Import

# Create managed disk.
New-AzDisk -DiskName $DiskName -Disk $DiskConfig -ResourceGroupName $resourceGroupName
$Disk = Get-AzDisk -DiskName $DiskName -ResourceGroupName $ResourceGroupName
$VirtualMachine = New-AzVMConfig -VMName $VirtualMachineName -VMSize $VirtualMachineSize

# Use the managed disk resource ID to attach it to the virtual machine.
# Change the OS type to "-Windows" if the OS disk has the Windows OS.
$VirtualMachine = Set-AzVMOSDisk -VM $VirtualMachine -ManagedDiskId $Disk.Id -CreateOption Attach -Linux

# Create a public IP for the VM.
$PublicIp = Get-AzPublicIpAddress -Name $PIpName -ResourceGroupName $ResourceGroupName

# Get the virtual network where the virtual machine will be hosted.
$VNet = Get-AzVirtualNetwork -Name $VirtualNetworkName -ResourceGroupName $ResourceGroupName

# Create NIC in the first subnet of the virtual network.
$Nic = Get-AzNetworkInterface -Name $NicName -ResourceGroupName $ResourceGroupName

$VirtualMachine = Add-AzVMNetworkInterface -VM $VirtualMachine -Id $Nic.Id

# Create the virtual machine with managed disk.
New-AzVM -VM $VirtualMachine -ResourceGroupName $ResourceGroupName -Location $Location

관리형 이미지

Azure Stack Hub는 관리되는 이미지를 지원하므로 앞으로 관리 디스크 VM만 만들 수 있는 일반화된 VM(관리되지 않음 및 관리형)에서 관리되는 이미지 개체를 만들 수 있습니다. 관리되는 이미지는 다음 두 가지 시나리오를 사용하도록 설정합니다.

  • 관리되지 않는 VM을 일반화했으며 앞으로 관리 디스크를 사용하려고 합니다.
  • 일반화된 관리형 VM이 있으며 비슷한 여러 관리형 VM을 만들려고 합니다.

1단계: VM 일반화

Windows의 경우 Sysprep을 사용하여 Windows VM 일반화 섹션을 따릅니다. Linux의 경우 여기에서 1단계를 수행 합니다.

참고

VM을 일반화해야 합니다. 제대로 일반화되지 않은 이미지에서 VM을 만들면 VMProvisioningTimeout 오류가 발생할 수 있습니다.

2단계: 관리되는 이미지 만들기

포털, PowerShell 또는 Azure CLI를 사용하여 관리되는 이미지를 만들 수 있습니다. 관리되는 이미지 만들기의 단계를 따릅니다.

3단계: 사용 사례 선택

사례 1: 관리되지 않는 VM을 관리 디스크로 마이그레이션

이 단계를 수행하기 전에 VM을 올바르게 일반화해야 합니다. 일반화 후에는 더 이상 이 VM을 사용할 수 없습니다. 제대로 일반화되지 않은 이미지에서 VM을 만들면 VMProvisioningTimeout 오류가 발생합니다.

스토리지 계정을 사용하는 VM에서 이미지 만들기의 지침에 따라 스토리지 계정의 일반화된 VHD에서 관리되는 이미지를 만듭니다. 나중에 이 이미지를 사용하여 관리형 VM을 만들 수 있습니다.

사례 2: PowerShell을 사용하여 관리형 이미지에서 관리형 VM 만들기

PowerShell을 사용하여 관리 디스크 에서 이미지 만들기의 스크립트를 사용하여 기존 관리 디스크 VM에서 이미지를 만든 후 다음 예제 스크립트를 사용하여 기존 이미지 개체에서 유사한 Linux VM을 만듭니다.

Azure Stack Hub PowerShell 모듈 1.7.0 이상: 관리되는 이미지에서 VM 만들기의 지침을 따릅니다.

Azure Stack Hub PowerShell 모듈 1.6.0 이하:

# Variables for common values
$ResourceGroupName = "MyResourceGroup"
$Location = "local"
$VirtualMachineName = "MyVM"
$ImageRG = "managedlinuxrg"
$ImageName = "simplelinuxvmm-image-2019122"

# Create credential object
$Cred = Get-Credential -Message "Enter a username and password for the virtual machine."

# Create a resource group
New-AzResourceGroup -Name $ResourceGroupName -Location $Location

# Create a subnet configuration
$SubnetConfig = New-AzVirtualNetworkSubnetConfig -Name "MySubnet" -AddressPrefix "192.168.1.0/24"

# Create a virtual network
$VNet = New-AzVirtualNetwork -ResourceGroupName $ResourceGroupName -Location $Location `
  -Name "MyVNet" -AddressPrefix "192.168.0.0/16" -Subnet $SubnetConfig

# Create a public IP address and specify a DNS name
$PIp = New-AzPublicIpAddress -ResourceGroupName $ResourceGroupName -Location $Location `
  -Name "mypublicdns$(Get-Random)" -AllocationMethod Static -IdleTimeoutInMinutes 4

# Create an inbound network security group rule for port 3389
$NsgRuleSSH = New-AzNetworkSecurityRuleConfig -Name "MyNetworkSecurityGroupRuleSSH"  -Protocol Tcp `
  -Direction Inbound -Priority 1000 -SourceAddressPrefix * -SourcePortRange * -DestinationAddressPrefix * `
  -DestinationPortRange 22 -Access Allow

# Create a network security group
$Nsg = New-AzNetworkSecurityGroup -ResourceGroupName $ResourceGroupName -Location $Location `
  -Name "MyNetworkSecurityGroup" -SecurityRules $NsgRuleSSH

# Create a virtual network card and associate with public IP address and NSG
$Nic = New-AzNetworkInterface -Name "MyNic" -ResourceGroupName $ResourceGroupName -Location $Location `
  -SubnetId $VNet.Subnets[0].Id -PublicIpAddressId $PIp.Id -NetworkSecurityGroupId $Nsg.Id

$Image = Get-AzImage -ResourceGroupName $ImageRG -ImageName $ImageName

# Create a virtual machine configuration
$VmConfig = New-AzVMConfig -VMName $VirtualMachineName -VMSize "Standard_D1" | `
Set-AzVMOperatingSystem -Linux -ComputerName $VirtualMachineName -Credential $Cred | `
Set-AzVMSourceImage -Id $Image.Id | `
Set-AzVMOSDisk -VM $VmConfig -CreateOption FromImage -Linux | `
Add-AzVMNetworkInterface -Id $Nic.Id

# Create a virtual machine
New-AzVM -ResourceGroupName $ResourceGroupName -Location $Location -VM $VmConfig

포털을 사용하여 관리되는 이미지에서 VM을 만들 수도 있습니다. 자세한 내용은 Azure 관리형 이미지 문서 Azure 에서 일반화된 VM의 관리형 이미지 만들기관리되는 이미지에서 VM 만들기를 참조하세요.

구성

1808 업데이트 이상을 적용한 후 관리 디스크를 사용하기 전에 다음 구성을 변경해야 합니다.

  • 1808 업데이트 전에 구독을 만든 경우 아래 단계에 따라 구독을 업데이트합니다. 그렇지 않으면 "디스크 관리자의 내부 오류"라는 오류 메시지와 함께 이 구독에서 VM을 배포하지 못할 수 있습니다.
    1. Azure Stack Hub 사용자 포털에서 구독으로 이동하여 구독 을 찾습니다. 리소스 공급자를 클릭한 다음 Microsoft.Compute를 클릭한 다음 다시 등록을 클릭합니다.
    2. 동일한 구독에서 Access Control(IAM)로 이동하여 Azure Stack Hub - Managed Disk가 나열되어 있는지 확인합니다.
  • 다중 테넌트 환경을 사용하는 경우 클라우드 운영자(사용자 고유의 organization 또는 서비스 공급자)에게 Azure Stack Hub에서 다중 테넌트 구성의 단계에 따라 각 게스트 디렉터리를 다시 구성하도록 요청합니다. 그렇지 않으면 해당 게스트 디렉터리에 연결된 구독에서 VM을 배포하는 데 실패할 수 있으며 오류 메시지 "디스크 관리자의 내부 오류"가 표시될 수 있습니다.

다음 단계