Skip to content

Update virtual-machine-scale-sets-networking.md #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,8 @@ az vmss show \
-n myScaleSet \
--query virtualMachineProfile.networkProfile.networkInterfaceConfigurations[].networkSecurityGroup

Sample Output :

[
{
"id": "/subscriptions/.../resourceGroups/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/nsgName",
Expand All @@ -444,6 +446,22 @@ az vmss show \
]
```

```azurepowershell

Get-AzVmss -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet " | Select-Object -ExpandProperty VirtualMachineProfile | Select-Object -ExpandProperty NetworkProfile | Select-Object -ExpandProperty NetworkInterfaceConfigurations | Select-Object -ExpandProperty NetworkSecurityGroup

Sample Output :

Id
--
/subscriptions/.../resourceGroups/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/nsgName

```





To verify your Application Security Group is associated with your scale set, use the `az vmss show` command. The below example uses `--query` to filter the results and only show the relevant section of the output.

```azurecli
Expand Down