StorageProfile [SPFSDK][VMROLE]
Applies To: Windows Azure Pack
The StorageProfile object of a resource definition describes the operating system and data virtual hard disks (VHDs) that are used to provision the virtual machine. When a virtual machine is imaged, a copy of the source VHD is copied to the virtual machine host.
One simple subobject type is included in this topic, which is described in the VirtualHardDiskIdentifier section.
Type Hierarchy
VirtualMachineRole (Instance) [SPFSDK][VMROLE].ResourceDefinition [SPFSDK][VMROLE].IntrinsicSettings [SPFSDK][VMROLE].StorageProfile
Syntax
{
"OSVirtualHardDiskImage" : "OSVHDImage:1.0.0.0",
"DataVirtualHardDisks" : [
{
"DataVirtualHardDiskImage" : "DataVHDName:1.0.0.0",
"Lun" : 0
},
]
}
Properties
Name |
Type |
Required |
Default value |
Description |
---|---|---|---|---|
OSVirtualHardDiskImage |
String |
Yes |
None |
The operating system VHD image identifier to be used to provision virtual machine instances. The format of the identifier is <image name>:<version> where the version format is: <major>.<minor>.<build>.<release>. For example, MyVirtualHD:6.33.2.10. |
DataVirtualHardDisks |
Array of VirtualHardDiskIdentifier |
Yes |
None |
The data VHDs to attach to the virtual machine instances. |
VirtualHardDiskIdentifier
Identifies a VHD and the logical unit number (LUN) to attach it to for a virtual machine instance.
Name |
Type |
Required |
Default value |
Description |
---|---|---|---|---|
DataVirtualHardDiskImage |
Int |
Yes |
None |
A VHD image identifier. The format of the identifier is <image name>:<version> where the version format is: <major>.<minor>.<build>.<release>. For example, MyVirtualHD:6.33.2.10 |
Lun |
Int |
Yes |
None |
The logical unit number (LUN) to attach the hard drive to. |
Remarks
The following code example provides a sample StorageProfile object.
{
"OSVirtualHardDiskImage" : "OSVHDImage:1.0.0.0",
"DataVirtualHardDisks" : [
{
"DataVirtualHardDiskImage" : "DataVHDImage:1.0.0.0",
"Lun" : 0
},
]
}
See Also
IntrinsicSettings [SPFSDK][VMROLE]
NetworkProfile [SPFSDK][VMROLE]
OperatingSystemProfile [SPFSDK][VMROLE]