Bearbeiten

Freigeben über


New-AzCloudServiceRoleProfilePropertiesObject

Create a in-memory object for CloudServiceRoleProfileProperties

Syntax

New-AzCloudServiceRoleProfilePropertiesObject
   [-Name <String>]
   [-SkuCapacity <Int64>]
   [-SkuName <String>]
   [-SkuTier <String>]
   [<CommonParameters>]

Description

Create a in-memory object for CloudServiceRoleProfileProperties

Examples

Example 1: Create role profile properties object

$role = New-AzCloudServiceRoleProfilePropertiesObject -Name 'WebRole' -SkuName 'Standard_D1_v2' -SkuTier 'Standard' -SkuCapacity 2

This command creates role profile properties object which is used for creating or updating a cloud service. For more details see New-AzCloudService.

Parameters

-Name

Name of role profile.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SkuCapacity

Specifies the number of role instances in the cloud service.

Type:Int64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SkuName

The sku name.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SkuTier

SkuTier.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

CloudServiceRoleProfileProperties