다음을 통해 공유


IntrinsicSettings [SPFSDK][VMROLE]

 

적용 대상: Windows Azure Pack

IntrinsicSettings 개체는 VM 역할(가상 머신 역할)에서 만든 가상 머신 인스턴스에 대한 모든 설정을 정의합니다. 이러한 설정에는 만들 인스턴스 수, 하드웨어 프로필, VHD(가상 하드 디스크), 네트워크 구성 및 운영 체제 구성과 같은 정보가 포함됩니다. 이러한 설정의 대부분은 매개 변수를 사용하므로 사용자가 새 VM 역할을 프로비전할 때 매개 변수를 제공할 수 있습니다.

이 항목에는 ScaleOutSettings 및 HardwareProfile 섹션에 설명된 두 가지 간단한 하위 개체 형식이 포함되어 있습니다.

형식 계층 구조

VirtualMachineRole(인스턴스) [SPFSDK][VMROLE]. ResourceDefinition [SPFSDK][VMROLE]. IntrinsicSettings

구문

{ 
    "ScaleOutSettings" : {
        "InitialInstanceCount" : <Number of initial instances>,
        "MaximumInstanceCount" : <Maximum amount of instances>, 
        "MinimumInstanceCount" : <Minimum amount of instances>,
        "UpgradeDomainCount" : <Number of upgrade domains>,
        },

    "HardwareProfile": { 
        "VMSize" : "<Platform specific VM size>"
    },

    "StorageProfile" : { <StorageProfile> },

    "NetworkProfile" : { <NetworkProfile> },

    "OSProfile" : { <OSProfile> }
}

속성

이름

유형

필수

기본값

Description

ScaleOutSettings

Object

없음

이 VM 역할에 대한 가상 머신 인스턴스 크기를 조정하는 설정입니다.

자세한 내용은 ScaleOutSettings 섹션을 참조하세요.

StorageProfile

StorageProfile [SPFSDK][VMROLE]

없음

운영 체제 및 가상 머신 인스턴스의 데이터 하드 드라이브에 사용할 VHD입니다.

NetworkProfile

NetworkProfile [SPFSDK][VMROLE]

없음

가상 머신 인스턴스에 연결할 네트워크 어댑터입니다.

OSProfile

OperatingSystemProfile [SPFSDK][VMROLE]

아니요

null

가상 머신 인스턴스에서 사용되는 운영 체제 설정입니다.

이러한 설정은 가상 머신이 StorageProfile 속성에 지정된 운영 체제 VHD로 프로비전될 때 사용됩니다.

ScaleOutSettings

이름

유형

필수

기본값

Description

InitialInstanceCount

Int

없음

이 VM 역할에 대해 프로비전할 가상 머신의 초기 수입니다.

MaximumInstanceCount

Int

없음

이 VM 역할에 대한 가상 머신 인스턴스의 최대 수입니다.

MinimumInstanceCount

Int

없음

이 VM 역할에 대한 최소 가상 머신 인스턴스 수입니다.

UpgradeDomainCount

Int

없음

업그레이드 도메인의 수입니다.

HardwareProfile

이름

유형

필수

기본값

Description

VMSize

String

없음

특정 가상 머신 크기입니다. 가능한 값은 다음과 같습니다.

  • XS

  • S

  • M

  • L

  • XL

설명

다음 코드 예제에서는 샘플 IntrinsicSettings 개체를 제공합니다.

{
    "ScaleOutSettings" : {
        "InitialInstanceCount" : "1",
        "MaximumInstanceCount" : "5", 
        "MinimumInstanceCount" : "1",
        "UpgradeDomainCount" : "2"
    },

    "HardwareProfile": { 
        "VMSize" : "L"
    },

    "StorageProfile": {
        "OSVirtualHardDiskImage" : "OSVHDImageName:1.0.0.0",

        "DataVirtualHardDisk" : [
            {
                "DataVirtualHardDiskImage" : "DataVHDName:1.0.0.0",
                "Lun" : 0
            }
        ]
    },

    "NetworkProfile": { 
        "NetworkAdapters" : [
            {
                "Name" : "myNic1",
                "NetworkRef" : "External",

                "IPAddresses" : [
                    {
                        "Type" : "IPv4 | IPv6",
                        "AllocationMethod" : "Static | Dynamic",

                        "IPAddressConfigurations" : [
                            {
                                "ConfigurationName" : "MyIPConfiguration",

                                "LoadBalancerConfigurations" : [ 
                                    { 
                                        "ConfigurationName" : "MyLBConfiguration", 
                                        "FrontEndNetwork" : "internet",

                                        "PortConfig" : { 
                                            "Name" : "MyPortConfig",
                                            "Protocol" : "UDP",
                                            "FrontEndPort" : 80,
                                            "BackEndPort" : 8080
                                        },

                                        "Probe": {
                                            "MaxRetryCount" : 5,
                                            "Port" : 8080,
                                            "ProbeIntervalInSeconds" : 20,
                                            "Protocol" : "HTTP",
                                            "RequestPath" : "http://myrequest/" 
                                        }
                                    }
                                ] 
                            }
                        ] 
                    }  
                ] 
            }
        ]
    },

    "OperatingSystemProfile" : {
        "ComputerNamePattern" : "MyComputer###",
        "TimeZone" : "Pacific Standard Time",
        "AdminCredential" : "username:password",

        "WindowsOperatingSystemProfile" : {
            "WorkgroupName" : "workgroup",   
            "DomainJoin" : {
                "DomainToJoin" : "Redmond",
                "DomainJoinCredentials" : "domain\\user:pwd"
            }
        },

        "LinuxOperatingSystemProfile" : {
            "DNSDomainName" : "Redmond",
            "SSHPublicKey" : "f3:31:a8:c6:82:18:c8:0f:dd:6b:fb:27:98:83:3d:3b"
        }
    } 
}

참고 항목

ResourceDefinition [SPFSDK][VMROLE]
StorageProfile [SPFSDK][VMROLE]
NetworkProfile [SPFSDK][VMROLE]
OperatingSystemProfile [SPFSDK][VMROLE]
ResourceExtensionReference [SPFSDK][VMROLE]