Azure / Azure/azure-cli

'az network nsg list' returns an incorrect result

Open
#17,910 28 comments 0 reactions 1 assignee Assigned to @kairu-ms View on GitHub
act-quality-productivity-squad Network Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Describe the bug**

Hello,
I use `az aks create ...` to create a cluster. After successful creation, I want to receive information about NSG using `az network nsg list`. But it returns the empty result. I also tried something like `az resource list --resource-type Microsoft.Network/networkSecurityGroups`- it does not help.
But I see via Portal, that NSG is successfully created.
I need to wait a while (about 10 min) to get the correct result via `az network nsg list`.
The same behavior is for `az network vnet`.

Could you please explain, what needs to be triggered for correct behavior? Or just need to call additional `wait`?

**Additional context**
I found that there is very similar issue #15303, but there is no answer for a long time.

Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.