< Back

Remove-AzureVMMicrosoftAntimalwareExtension

Wed Jan 30, 2019 5:52 pm

NAME Remove-AzureVMMicrosoftAntimalwareExtension



SYNOPSIS

Removes the Microsoft Antimalware extension from a virtual machine.





SYNTAX

Remove-AzureVMMicrosoftAntimalwareExtension -VM <IPersistentVM> [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>]

[-InformationVariable <String>] [<CommonParameters>]





DESCRIPTION

The Remove-AzureVMMicrosoftAntimalwareExtension cmdlet removes the Microsoft Antimalware extension from a virtual machine. If monitoring was turned on,

this cmdlet also removes the collection of Microsoft Antimalware events.





PARAMETERS

-VM <IPersistentVM>

Specifies the virtual machine as an IPersistentVM 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



<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

IPersistentVM







OUTPUTS



NOTES





To avoid interfering with monitoring for other applications or services, this cmdlet removes only the collection of Microsoft Antimalware events. It

does not change other application configurations or the default monitoring configuration.



-------------------------- Example 1: Remove a Antimalware extension --------------------------



PS C:\\>Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Remove-AzureVMMicrosoftAntimalwareExtension | Update-AzureVM



This command removes the Microsoft Antimalware extension. The command uses the Get-AzureVM cmdlet to get the specified virtual machine object, and then

passes the object to the current cmdlet by using the pipeline operator. Remove-AzureVMMicrosoftAntimalwareExtension removes the extension. The command

passes the result to the Update-AzureVM cmdlet to update the virtual machine.



RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=402842

Get-AzureVMMicrosoftAntimalwareExtension

Set-AzureVMMicrosoftAntimalwareExtension

Get-AzureVM

Update-AzureVM