Skip to content

Latest commit

 

History

History
200 lines (148 loc) · 4.96 KB

Remove-AzureServiceAntimalwareExtension.md

File metadata and controls

200 lines (148 loc) · 4.96 KB
external help file ms.assetid online version schema
Microsoft.WindowsAzure.Commands.ServiceManagement.dll-Help.xml
AAE59AEC-E86E-40EE-B483-B42EAD4762CA
2.0.0

Remove-AzureServiceAntimalwareExtension

SYNOPSIS

Removes the antimalware configuration from a cloud service.

[!INCLUDE rdfe-banner]

[!INCLUDE rdfe-deprecation-banner]

SYNTAX

RemoveByRoles (Default)

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

RemoveAllRoles

Remove-AzureServiceAntimalwareExtension [-ServiceName] <String> [[-Slot] <String>] [[-EndpointSuffix] <String>]
 [-Profile <AzureSMProfile>] [-InformationAction <ActionPreference>] [-InformationVariable <String>]
 [<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.

PARAMETERS

-EndpointSuffix

Specifies the storage endpoint suffix.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: infa

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InformationVariable

Specifies an information variable.

Type: String
Parameter Sets: (All)
Aliases: iv

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
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[]
Parameter Sets: RemoveByRoles
Aliases: 

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ServiceName

Specifies the name of the cloud service.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
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
Parameter Sets: (All)
Aliases: 

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

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.

RELATED LINKS

Set-AzureServiceAntimalwareExtension