< Back
New-AzureRmSqlServerVirtualNetworkRule
Post
NAME New-AzureRmSqlServerVirtualNetworkRule
SYNOPSIS
Creates an Azure SQL Server Virtual Network Rule.
SYNTAX
New-AzureRmSqlServerVirtualNetworkRule [-ResourceGroupName] <String> [-AsJob] [-DefaultProfile <IAzureContextContainer>]
[-IgnoreMissingVnetServiceEndpoint] -ServerName <String> -VirtualNetworkRuleName <String> -VirtualNetworkSubnetId <String> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
Creates an Azure SQL Server Virtual Network Rule. Virtual Network Rules are used to connect the Azure SQL Server to a specific Virtual Network in
order to restrict the access on the Azure SQL Server to only be available within the Virtual Network.
PARAMETERS
-AsJob [<SwitchParameter>]
Run cmdlet in the background
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-IgnoreMissingVnetServiceEndpoint [<SwitchParameter>]
Create firewall rule before the virtual network has vnet service endpoint enabled.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
The name of the resource group.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ServerName <String>
The Azure Sql Server name.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VirtualNetworkRuleName <String>
Azure Sql Server Virtual Network Rule Name.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VirtualNetworkSubnetId <String>
The Virtual Network Subnet Id that specifies the Microsoft.Network details
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
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: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel
NOTES
Example 1
PS C:\\> $virtualNetworkRule = New-AzureRmSqlServerVirtualNetworkRule -ResourceGroupName rg -ServerName serverName -VirtualNetworkRuleName
virtualNetworkRuleName -VirtualNetworkSubnetId virtualNetworkSubnetId
Creates an Azure SQL Server virtual network rule
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... etworkrule
SYNOPSIS
Creates an Azure SQL Server Virtual Network Rule.
SYNTAX
New-AzureRmSqlServerVirtualNetworkRule [-ResourceGroupName] <String> [-AsJob] [-DefaultProfile <IAzureContextContainer>]
[-IgnoreMissingVnetServiceEndpoint] -ServerName <String> -VirtualNetworkRuleName <String> -VirtualNetworkSubnetId <String> [-Confirm] [-WhatIf]
[<CommonParameters>]
DESCRIPTION
Creates an Azure SQL Server Virtual Network Rule. Virtual Network Rules are used to connect the Azure SQL Server to a specific Virtual Network in
order to restrict the access on the Azure SQL Server to only be available within the Virtual Network.
PARAMETERS
-AsJob [<SwitchParameter>]
Run cmdlet in the background
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-IgnoreMissingVnetServiceEndpoint [<SwitchParameter>]
Create firewall rule before the virtual network has vnet service endpoint enabled.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-ResourceGroupName <String>
The name of the resource group.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ServerName <String>
The Azure Sql Server name.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VirtualNetworkRuleName <String>
Azure Sql Server Virtual Network Rule Name.
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-VirtualNetworkSubnetId <String>
The Virtual Network Subnet Id that specifies the Microsoft.Network details
Required? true
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
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: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.Sql.VirtualNetworkRule.Model.AzureSqlServerVirtualNetworkRuleModel
NOTES
Example 1
PS C:\\> $virtualNetworkRule = New-AzureRmSqlServerVirtualNetworkRule -ResourceGroupName rg -ServerName serverName -VirtualNetworkRuleName
virtualNetworkRuleName -VirtualNetworkSubnetId virtualNetworkSubnetId
Creates an Azure SQL Server virtual network rule
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... etworkrule