Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureServiceAntimalwareExtension

Remove-AzureServiceAntimalwareExtension

microsoft.windowsazure.commands.servicemanagement.dll

Synopsis

Removes the antimalware configuration from a cloud service.

Syntax

Remove-AzureServiceAntimalwareExtension [-ServiceName] [-Slot] [-Role] [-EndpointSuffix] [<CommonParameters>]

Remove-AzureServiceAntimalwareExtension [-ServiceName] [-Slot] [-EndpointSuffix] [<CommonParameters>]

Detailed Description

The Remove-AzureServiceAntimalwareExtension cmdlet removes the antimalware configuration and any associated antimalware monitoring from the Microsoft Antimalware extension associated with a cloud service.

Parameters

-ServiceName <String>

Specifies the name of the cloud service.

Aliases

None

Required?

true

Position

0

Default value

none

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Slot <String>

Specifies a deployment slot. Valid values are: -- Production -- Staging The default value is Production.

Aliases

None

Required?

false

Position

1

Default value

none

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Role <String[]>

Specifies an array of roles. The default value is all roles.

Aliases

None

Required?

false

Position

2

Default value

none

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-EndpointSuffix <String>

Specifies the storage endpoint suffix.

Aliases

None

Required?

false

Position

3

Default value

none

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

This cmdlet removes only the configuration associated with the specified role. It does not uninstall or remove any already running instances of the Microsoft Antimalware extension from roles. To return these roles to a start state that does not have Microsoft Antimalware running, first remove the configuration by using this cmdlet, and then reimage or redeploy the service.

Examples

-------------------------- Example 1: Remove the extension --------------------------

This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03.

PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03"

-------------------------- Example 2: Remove the extension for the Staging slot --------------------------

This command removes the antimalware extension and monitoring of associated antimalware events from all roles in the staging slot of the service named ContosoService03.

PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Staging"

-------------------------- Example 3: Remove the extension for a specified slot and role --------------------------

This command removes the antimalware extension and monitoring of associated antimalware events from the service named ContosoService03 in the specified slot and role.

PS C:\>Remove-AzureServiceAntimalwareExtension -ServiceName "ContosoService03" -Slot "Production" -Role "web role"

Online Version
Set-AzureServiceAntimalwareExtension