Modifier

Partager via


Get-AzConnectedExtensionMetadata

Gets an Extension Metadata based on location, publisher, extensionType and version

Syntax

Get-AzConnectedExtensionMetadata
   -ExtensionType <String>
   -Location <String>
   -Publisher <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzConnectedExtensionMetadata
   -ExtensionType <String>
   -Location <String>
   -Publisher <String>
   [-SubscriptionId <String[]>]
   -Version <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Gets an Extension Metadata based on location, publisher, extensionType and version

Examples

Example 1: Get a list of machine extension metadata

Get-AzConnectedExtensionMetadata -ExtensionType 'CustomScriptExtension' -Location 'eastus2euap' -Publisher 'Microsoft.HybridCompute'

Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifi
                                                                                              edBy
---- ------------------- ------------------- ----------------------- ------------------------ --------------------

Get a list of machine extension metadata

Example 2: Get a specific machine extension metadata

Get-AzConnectedExtensionMetadata -ExtensionType 'CustomScriptExtension' -Location 'eastus2euap' -Publisher 'Microsoft.HybridCompute' -Version '1.10.10'

Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastModifi
                                                                                              edBy
---- ------------------- ------------------- ----------------------- ------------------------ --------------------

Get a specific machine extension metadata

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ExtensionType

The extensionType of the Extension being received.

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

-Location

The location of the Extension being received.

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

-Publisher

The publisher of the Extension being received.

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

-SubscriptionId

The ID of the target subscription.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Version

The version of the Extension being received.

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

Outputs

IExtensionValue