Remove-​Azure​Service​Antimalware​Extension

Removes the antimalware configuration from a cloud service.

Syntax

Remove-AzureServiceAntimalwareExtension
      [-ServiceName] <String>
      [[-Slot] <String>]
      [[-Role] <String[]>]
      [[-EndpointSuffix] <String>]
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]

Description

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

Examples

Example 1: Remove the extension

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

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

Example 2: Remove the extension for the Staging slot

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

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

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

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

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

Required Parameters

-ServiceName

Specifies the name of the cloud service.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-EndpointSuffix

Specifies the storage endpoint suffix.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-InformationAction

Specifies how this cmdlet responds to an information event.

The acceptable values for this parameter are:

  • Continue
  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Profile

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

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Role

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

Type:String[]
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Slot

Specifies a deployment slot. Valid values are:

  • Production

  • Staging

The default value is Production.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

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.