Skip to content

Commit ad5fc8c

Browse files
Merge pull request #263194 from brianlehr/localbranch
added powershell
2 parents a246005 + 5c65cef commit ad5fc8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/virtual-network/ip-services/default-outbound-access.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ There are multiple ways to turn off default outbound access. The following secti
8585

8686
:::image type="content" source="./media/default-outbound-access/private-subnet-portal.png" alt-text="Screenshot of Azure portal showing Private subnet option.":::
8787

88+
* Using PowerShell, when creating a subnet with [New-AzVirtualNetworkSubnetConfig](https://learn.microsoft.com/powershell/module/az.network/new-azvirtualnetworksubnetconfig?view=azps-11.1.0), use the `DefaultOutboundAccess` option and choose "$false"
89+
8890
* Using CLI, when creating a subnet with [az network vnet subnet create](/cli/azure/network/vnet/subnet#az-network-vnet-subnet-create), use the `--default-outbound` option and choose "false"
8991

9092
* Using an Azure Resource Manager template, set the value of `defaultOutboundAccess` parameter to be "false"

0 commit comments

Comments
 (0)