Set-AzureSqlServerFirewallRule
Set-AzureSqlServerFirewallRule
Modifies a firewall rule in Azure SQL Database server.
Syntax
Parameter Set: Default
Set-AzureSqlServerFirewallRule [-ResourceGroupName] <System.String> [-ServerName] <System.String> [-FirewallRuleName] <System.String> -EndIpAddress <System.String> -StartIpAddress <System.String> [-Profile <Microsoft.Azure.Common.Authentication.Models.AzureProfile> ]
Detailed Description
The Set-AzureSqlServerFirewallRule cmdlet modifies a firewall rule in Azure SQL Database server.
Parameters
-EndIpAddress<System.String>
Specifies the end value of the IP address range for this rule.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-FirewallRuleName<System.String>
Specifies the name of the firewall rule that this cmdlet modifies.
Aliases |
none |
Required? |
true |
Position? |
3 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-Profile<Microsoft.Azure.Common.Authentication.Models.AzureProfile>
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 |
-ResourceGroupName<System.String>
Specifies the name of a resource group. This cmdlet modifies a firewall rule on a server in the resource group that this cmdlet specifies.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-ServerName<System.String>
Specifies the name of a server. This cmdlet modifies a firewall rule on the server that this parameter specifies.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true(ByPropertyName) |
Accept Wildcard Characters? |
false |
-StartIpAddress<System.String>
Specifies the start value of the IP address range for the firewall rule.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- System.String
Outputs
The output type is the type of the objects that the cmdlet emits.
- System.Object
Notes
- This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.
Examples
Example 1: Modify a firewall rule
This command modifies a firewall rule named FirewallRule24 on the server named Server01. The command modifies the start and end IP addresses.
PS C:\> Set-AzureSqlServerFirewallRule -ResourceGroupName "ResourceGroup11" -ServerName "Server01" -FirewallRuleName "FirewallRule24" -StartIpAddress "192.168.0.197" -EndIpAddress "192.168.0.199"
Related topics
Get-AzureSqlServerFirewallRule