< Back

Get-AzureRmVMChefExtension

Tue Jan 29, 2019 9:37 pm

NAME Get-AzureRmVMChefExtension



SYNOPSIS

Gets information about a Chef extension.





SYNTAX

Get-AzureRmVMChefExtension [-ResourceGroupName] <String> [-VMName] <String> [[-Name] <String>] [[-Status]] [-DefaultProfile

<IAzureContextContainer>] -Linux [<CommonParameters>]



Get-AzureRmVMChefExtension [-ResourceGroupName] <String> [-VMName] <String> [[-Name] <String>] [[-Status]] [-DefaultProfile

<IAzureContextContainer>] -Windows [<CommonParameters>]





DESCRIPTION

The Get-AzureVMChefExtension cmdlet gets information about a Chef extension installed on a virtual machine.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Linux [<SwitchParameter>]

Indicates that this cmdlet works on a Linux virtual machine.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the Chef extension.



Required? false

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group that contains the virtual machine.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Status [<SwitchParameter>]

Indicates that this cmdlet gets only the instance view of the Chef extension.



Required? false

Position? 3

Default value False

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VMName <String>

Specifies the name of a virtual machine.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Windows [<SwitchParameter>]

Indicates that this cmdlet is for a Windows virtual machine.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Compute.Models.PSVirtualMachineExtension







NOTES









Example 1: Get the details of Chef extension for a Windows virtual machine



PS C:\\> Get-AzureRmVMChefExtension -ResourceGroupName "ResourceGroup001" -VMName "WindowsVM001" -Windows



This command gets the Chef extension from a Windows virtual machine named WindowsVM001 that belongs to the resource group named ResourceGroup001.





Example 2: Get the details of Chef extension for a Linux virtual machine



PS C:\\> Get-AzureRmVMChefExtension -ResourceGroupName "ResourceGroup002" -VMName "LinuxVM001" -Linux



This command gets the Chef extension from a Linux virtual machine named LinuxVM001 that belongs to the resource group named ResourceGroup002.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... fextension

Set-AzureRmVMChefExtension

Remove-AzureRmVMChefExtension