Role Class

 

Represents a Virtual Machine role in a deployment.

Namespace:   Microsoft.WindowsAzure.Management.Compute.Models
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Management.Compute.Models.Role

Syntax

public class Role
public ref class Role 
type Role = class end
Public Class Role

Constructors

Name Description
System_CAPS_pubmethod Role()

Initializes a new instance of the Role class.

Properties

Name Description
System_CAPS_pubproperty AvailabilitySetName

Gets or sets the name of a set of Virtual Machines.

System_CAPS_pubproperty ConfigurationSets

Gets or sets a collection of ConfigurationSet objects that define system or application configuration settings.

System_CAPS_pubproperty DataVirtualHardDisks

Gets or sets a collection of DataVirtualHardDisk objects that define the parameters that are used to add data disks to the Virtual Machine.

System_CAPS_pubproperty DefaultWinRmCertificateThumbprint

Gets or sets the read-only thumbprint of the certificate that is used with the HTTPS listener for WinRM.

System_CAPS_pubproperty Label

Gets or sets an identifier for the deployment.

System_CAPS_pubproperty MediaLocation

Optional. Storage location where the VM Image VHDs should be copied, for published VM Images.

System_CAPS_pubproperty OSVersion

Gets or sets the version of the operating system on which the role instances are running.

System_CAPS_pubproperty OSVirtualHardDisk

Gets or sets an OSVirtualHardDisk object that defines the parameters that are used to create the operating system disk for the Virtual Machine.

System_CAPS_pubproperty ProvisionGuestAgent

Optional. Indicates whether the WindowsAzureGuestAgent service is installed on the Virtual Machine. To run a resource extension in a Virtual Machine, this service must be installed.

System_CAPS_pubproperty ResourceExtensionReferences

Optional. Contains a collection of resource extensions that are to be installed on the Virtual Machine. This element is used if ProvisionGuestAgent is set to true.

System_CAPS_pubproperty RoleName

Gets or sets the name of the Virtual Machine.

System_CAPS_pubproperty RoleSize

Gets or sets the size of the Virtual Machine.

System_CAPS_pubproperty RoleType

Gets or sets the type of the role.

System_CAPS_pubproperty VMImageName

Optional. Optional. The name of the VMImage from which this Role is to be created. If the OSDisk in the VMImage was Specialized, then no WindowsProvisioningConfigurationSet or LinuxProvisioningConfigurationSet should be provided. No OSVirtualHardDisk or DataVirtualHardDisk should be specified when using this argument.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Management.Compute.Models Namespace

Return to top