Share via


Azure Cloud Service(추가 지원) 다시 설정

이러한 샘플은 기존 Azure Cloud Service(추가 지원) 배포를 다시 설정하는 다양한 방법을 다룹니다.

클라우드 서비스의 역할 인스턴스를 이미지로 다시 설치

$roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1")
Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances

이 명령은 ContosOrg라는 리소스 그룹에 속하는 ContosoCS라는 클라우드 서비스의 ContosoFrontEnd_IN_0 및 ContosoBackEnd_IN_1의 두 역할 인스턴스를 이미지로 다시 설치합니다.

클라우드 서비스의 모든 역할을 이미지로 다시 설치

Invoke-AzCloudServiceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*"

이 명령은 ContosOrg라는 리소스 그룹에 속하는 ContosoCS라는 클라우드 서비스의 모든 역할 인스턴스를 이미지로 다시 설치합니다.

클라우드 서비스의 단일 역할 인스턴스를 이미지로 다시 설치

Invoke-AzCloudServiceRoleInstanceReimage -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstanceName "ContosoFrontEnd_IN_0"

이 명령은 ContosOrg라는 리소스 그룹에 속하는 ContosoCS라는 클라우드 서비스의 ContosoFrontEnd_IN_0이라는 역할 인스턴스를 이미지로 다시 설치합니다.

클라우드 서비스의 역할 인스턴스 다시 빌드

$roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1")
Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances

이 명령은 ContosOrg라는 리소스 그룹에 속하는 ContosoCS라는 클라우드 서비스의 ContosoFrontEnd_IN_0 및 ContosoBackEnd_IN_1의 두 역할 인스턴스를 다시 빌드합니다.

클라우드 서비스의 모든 역할 다시 빌드

Invoke-AzCloudServiceRebuild -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*"

이 명령은 ContosOrg라는 리소스 그룹에 속하는 ContosoCS라는 클라우드 서비스의 모든 역할 인스턴스를 다시 빌드합니다.

클라우드 서비스의 역할 인스턴스 다시 시작

$roleInstances = @("ContosoFrontEnd_IN_0", "ContosoBackEnd_IN_1")
Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance $roleInstances

이 명령은 ContosOrg라는 리소스 그룹에 속하는 ContosoCS라는 클라우드 서비스의 ContosoFrontEnd_IN_0 및 ContosoBackEnd_IN_1의 두 역할 인스턴스를 다시 시작합니다.

클라우드 서비스의 모든 역할 다시 시작

Restart-AzCloudService -ResourceGroupName "ContosOrg" -CloudServiceName "ContosoCS" -RoleInstance "*"

이 명령은 ContosOrg라는 리소스 그룹에 속하는 ContosoCS라는 클라우드 서비스의 모든 역할 인스턴스를 다시 시작합니다.

다음 단계