< Back

Remove-AzureVMDscExtension

Wed Jan 30, 2019 5:51 pm

NAME Remove-AzureVMDscExtension



SYNOPSIS

Removes an Azure DSC extension from a virtual machine.





SYNTAX

Remove-AzureVMDscExtension -VM <IPersistentVM> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]

[-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

The Remove-AzureVMDscExtension cmdlet removes an Azure DSC extension from a virtual machine. The output of this cmdlet needs to be piped to the

Update-AzureVM cmdlet.





PARAMETERS

-VM <IPersistentVM>

Specifies the persistent virtual machine object.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue, ByPropertyName)

Accept wildcard characters? false



-Profile <AzureSMProfile>

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationAction <ActionPreference>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InformationVariable <String>





Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.



Required? false

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- Example 1: Remove a DSC extension from a virtual machine --------------------------



PS C:\\>Remove-AzureVMDscExtension -VM $VM | Update-AzureVM



This command removes an Azure DSC extension from a virtual machine.



RELATED LINKS

Get-AzureVMDscExtension

Set-AzureVMDscExtension

Update-AzureVM