New-CafSqlFirewallRule
Adds a firewall rule to an Azure SQL Server for a single IP.
Syntax
New-CafSqlFirewallRule
[-AzureSqlServerName <string>]
[-IpAddress <string>]
[-TenantId <string>]
Description
Adds a firewall rule to an Azure SQL Server for a single IP. This can be used to access an Azure SQL Server from your local IP address.
Example
New-CafSqlFirewallRule -AzureSqlServerName mySqlServerName
Parameter
-AzureSqlServerName
The name of the SQL server.
| Property | Value |
|---|---|
| Type: | string |
| Default value: | None |
| Required: | False |
-IpAddress
The IP address for which to set the rule. If omitted the current machines public IP will be determined and used.
| Property | Value |
|---|---|
| Type: | string |
| Default value: | None |
| Required: | False |
-TenantId
The unique ID of the tenant where the subscription lives in for faster context switch.
| Property | Value |
|---|---|
| Type: | string |
| Default value: | None |
| Required: | False |