Editar

Compartilhar via


New-AzCloudServiceExtensionObject

Create a in-memory object for Extension

Syntax

New-AzCloudServiceExtensionObject
   [-AutoUpgradeMinorVersion <Boolean>]
   [-Name <String>]
   [-ProtectedSetting <String>]
   [-Publisher <String>]
   [-RolesAppliedTo <String[]>]
   [-Setting <String>]
   [-Type <String>]
   [-TypeHandlerVersion <String>]
   [<CommonParameters>]

Description

Create a in-memory object for Extension

Examples

Example 1: Create Geneva extension object

$extension = New-AzCloudServiceExtensionObject -Name "GenevaExtension" -Publisher "Microsoft.Azure.Geneva" -Type "GenevaMonitoringPaaS" -TypeHandlerVersion "2.14.0.2"

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

Parameters

-AutoUpgradeMinorVersion

Explicitly specify whether CRP can automatically upgrade typeHandlerVersion to higher minor versions when they become available.

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

-Name

Name.

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

-ProtectedSetting

Protected settings for the extension which are encrypted before sent to the VM.

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

-Publisher

Publisher.

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

-RolesAppliedTo

RolesAppliedTo.

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

-Setting

Public settings for the extension.

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

-Type

Type.

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

-TypeHandlerVersion

TypeHandlerVersion.

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

Outputs

Extension