Get-AzVMExtensionImage
Gets all versions for an Azure extension.
Syntax
Default (Default)
Get-AzVMExtensionImage
-Location <String>
-PublisherName <String>
-Type <String>
[-FilterExpression <String>]
[-Version <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzVMExtensionImage cmdlet gets all versions for an Azure extension.
Examples
Example 1: Get the versions of an extension image
Get-AzVMExtensionImage -Location "West US" -PublisherName "Chef.Bootstrap.WindowsAzure" -Type "ChefClient"
Id : /Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/westus/Pub
lishers/Chef.Bootstrap.WindowsAzure/ArtifactTypes/VMExtension/Types/ChefClient/Versions/11.18.6.2
Location : westus
PublisherName : Chef.Bootstrap.WindowsAzure
Type : ChefClient
Version : 11.18.6.2
FilterExpression :
Id : /Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/westus/Pub
lishers/Chef.Bootstrap.WindowsAzure/ArtifactTypes/VMExtension/Types/ChefClient/Versions/1207.12.3.0
Location : westus
PublisherName : Chef.Bootstrap.WindowsAzure
Type : ChefClient
Version : 1207.12.3.0
FilterExpression :
Id : /Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/westus/Pub
lishers/Chef.Bootstrap.WindowsAzure/ArtifactTypes/VMExtension/Types/ChefClient/Versions/1210.12.109.
1004
Location : westus
PublisherName : Chef.Bootstrap.WindowsAzure
Type : ChefClient
Version : 1210.12.109.1004
FilterExpression :
This command gets all the versions of the extension image for the specified location, publisher, and type.
Example 2: Get the versions of an extension image with filter over version
Get-AzVMExtensionImage -Location "West US" -PublisherName "Chef.Bootstrap.WindowsAzure" -Type "ChefClient" -Version 12*
Id : /Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/westus/Pub
lishers/Chef.Bootstrap.WindowsAzure/ArtifactTypes/VMExtension/Types/ChefClient/Versions/1207.12.3.0
Location : westus
PublisherName : Chef.Bootstrap.WindowsAzure
Type : ChefClient
Version : 1207.12.3.0
FilterExpression :
Id : /Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/westus/Pub
lishers/Chef.Bootstrap.WindowsAzure/ArtifactTypes/VMExtension/Types/ChefClient/Versions/1210.12.109.
1004
Location : westus
PublisherName : Chef.Bootstrap.WindowsAzure
Type : ChefClient
Version : 1210.12.109.1004
FilterExpression :
This command gets all the versions of the extension image for the specified location, publisher, type, and version starting with 12.
Example 3: Get the versions of an extension image with filter over version
Get-AzVMExtensionImage -Location "West US" -PublisherName "Chef.Bootstrap.WindowsAzure" -Type "ChefClient" -Version 1207.12.3.0
Id : /Subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/Providers/Microsoft.Compute/Locations/
westus/Publishers/Chef.Bootstrap.WindowsAzure/ArtifactTypes/VMExtension/Types/ChefClient/V
ersions/1207.12.3.0
Location : westus
PublisherName : Chef.Bootstrap.WindowsAzure
Type : ChefClient
Version : 1207.12.3.0
FilterExpression :
Name :
HandlerSchema :
OperatingSystem : Windows
ComputeRole : IaaS
SupportsMultipleExtensions : False
VMScaleSetEnabled : False
This command gets all the versions of the extension image for the specified location, publisher, type, and version.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-FilterExpression
Specifies a filter expression.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Location
Specifies the location of an extension.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-PublisherName
Specifies the name of an extension publisher. To obtain an extension publisher, use the Get-AzVMImagePublisher cmdlet.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Type
Specifies the type of the extension. To obtain an extension type, use the Get-AzVMExtensionImageType cmdlet.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-Version
Specifies the version of the extension that this cmdlet gets.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | True |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.