SALES: 1-800-867-1380
Remove-AzureSqlDatabaseServerFirewallRule

Remove-AzureSqlDatabaseServerFirewallRule

Updated: January 5, 2016

Applies To: Azure PowerShell 1.0

Remove-AzureSqlDatabaseServerFirewallRule

Removes a firewall rule from an Azure SQL Database server.

Syntax

Parameter Set: Default
Remove-AzureSqlDatabaseServerFirewallRule [-ServerName] <String> [-RuleName] <String> [-Force] [-Profile <AzureSMProfile> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-AzureSqlDatabaseServerFirewallRule cmdlet removes a firewall rule from an instance of Azure SQL Database Server in the current subscription.

Parameters

-Force

Forces the command to run without asking for user confirmation.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RuleName<String>

Specifies the name of the firewall rule that this cmdlet removes.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ServerName<String>

Specifies the name of a server. This cmdlet removes a firewall rule from the server that this parameter specifies.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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

<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.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.WindowsAzure.Commands.SqlDatabase.Model.SqlDatabaseServerFirewallRuleContext

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Remove a rule

This command removes the firewall rule named FirewallRule24 from the Azure SQL Database server named lpqd0zbr8y.


PS C:\> Remove-AzureSqlDatabaseServerFirewallRule -ServerName "lpqd0zbr8y" -RuleName "FirewallRule24"

Related topics

Show:
© 2016 Microsoft