Huge delay after creation of NSG and 'az network nsg list' showing it
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
Hello,
I am creating an AKS instance using Terraform (via its azurerm module). Nothing fancy, using the defaults.
Once the AKS creation had been completed successfully, I can see via Azure Portal the NSG automatically created by AKS.
However, the NSG is not apprearing on the list provided by 'az network nsg list' no matter if I specify the correct RG or leave it to list all NSGs.
The same is true for the LB instance created as part of the AKS deployment. It is up and running, shown on Azure portal, however the command 'az network lb list' does not show it.
I repeated the situation tens of times. The NSG and LB instances start to be returned by 'az network nsg|lb list' after different interval. Sometimes within 3 minutes after the AKS creation, sometimes after 10, 15 or even 20 minutes.
What is the reason for such delay and inconsistency between what's shown on Azure portal and the output of the 'az network' command?
Best Regards
Marin
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: d1559576-e557-21a3-cd99-81df8978e8d2
* Version Independent ID: e33f3fe2-041f-324c-4f42-3cc82ac40c80
* Content: [az network nsg](https://docs.microsoft.com/en-us/cli/azure/network/nsg?view=azure-cli-latest)
* Content Source: [src/azure-cli/azure/cli/command_modules/network/_help.py](https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/network/_help.py)
* Service: **virtual-network**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**
Contributor guide
Assessment
This issue has not been assessed yet.