2017-11-30 1 views
-3

프로덕션 Classic VM에 약간의 문제가 있습니다. 디스크의 최대 용량에 도달 했으므로 확장해야합니다.Cloud Shell을 사용하여 Linux VM에서 OS 디스크를 확장하는 방법은 무엇입니까?

그래서 나는 시도 : 다음

azure vm deallocate --resource-group XXX --name XXX 

azure config mode arm 

결과 :

info: Executing command vm deallocate 
+ Looking up the VM "XXX" 
error: Virtual machine "XXX" not found under the resource group "XXX" 
error: Error information has been recorded to /home/xyz/.azure/azure.err 
error: vm deallocate command failed 

내가 자원 그룹에는 VM이없는 이유를 이해, 그래서하지 않습니다 리소스 그룹에있는 항목을 나열하려고 시도했습니다.^

azure resource list 

및 결과 :

data: /subscriptions/xyz/resourceGroups/XXX/providers/Microsoft.ClassicCompute/virtualMachines/XXX       XXX       XXX      Microsoft.ClassicCompute/virtualMachines   westeurope null 

그래서 나는 VM 가지고 있지만, 푸른 그것을 볼 수 없습니다.

+0

귀하의 질문은 여기 오프 주제 . [Super User] (https://superuser.com) 또는 [Server Fault] (https://serverfault.com)에서 요청할 수 있습니다. – Melebius

+1

이 질문은 주제가 아니라면 운영체제 VM에 ​​관한 것이지 프로그래밍이 아니기 때문에이 질문을 닫으려고합니다. 이걸 삭제하고 https://unix.stackexchange.com에 문의하십시오. – Rob

답변

0

당신이 고전 VM 할당을 해제하려면, 우리는 ASM 모드와 CLI 1.0이 명령 azure vm shutdown 'vnmane'을 사용해야합니다

[email protected]:~$ azure config mode asm 
info: Executing command config mode 
info: New mode is asm 
info: config mode command OK 
[email protected]:~$ azure vm shutdown -h 
help: Shutdown the VM 
help: 
help: Usage: vm shutdown [options] <name> 
help: 
help: Options: 
help:  -h, --help    output usage information 
help:  -v, --verbose   use verbose output 
help:  -vv      more verbose with debug output 
help:  --json     use json output 
help:  -d, --dns-name <name> only show VMs for this DNS name 
help:  -p, --stay-provisioned if specified the compute resource will not be released on shutdown 
help:  -s, --subscription <id> the subscription id 
help: 
help: Current Mode: asm (Azure Service Management) 
[email protected]:~$ azure vm shutdown 'jasonv' 
info: Executing command vm shutdown 
+ Getting virtual machines 
+ Shutting down VM 
info: vm shutdown command OK 
[email protected]:~$ 

희망이 도움이 :)

+0

안녕하세요, ASM 모드에서 디스크 용량을 늘리는 방법은 무엇입니까? azure vm set \ --resource-group myResourceGroup \ - 이름 myVM \ - 새 디스크 디스크 크기 50 – Dhafer

+0

@Dhafer Azure CLI 1.0 ASM 모드는 확장 OS 디스크를 지원하지 않으므로 Azure Powershell (ASM) 명령'update-azuredisk -DiskName "jasonvm6063"-Label resized -ResizedSizeInGB 100'를 사용하여 확장하십시오. 현재 Azure cloud shell은 ASM powershell을 지원하지 않습니다. Azure powershell을 로컬 PC에 설치 한 다음 Powershell을 사용하여 확장해야합니다. PowerShell에 대한 자세한 내용은 OS 디스크를 확장하십시오.이 [link] (https://blogs.msdn.microsoft.com/madan/2015/11/02/resizing-azure-vm-os-or-data-disk/)를 참조하십시오.). –

+0

고마워, 제이슨! – Dhafer

관련 문제