Skip to content
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

Network watcher automatically created when I create a VM #8222

Closed
alexeyshishkin01 opened this issue Jan 11, 2019 · 7 comments
Closed

Network watcher automatically created when I create a VM #8222

alexeyshishkin01 opened this issue Jan 11, 2019 · 7 comments
Labels
Compute - VM az vm Network - Network Watcher az network watcher question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@alexeyshishkin01
Copy link

Describe the bug
When I create my VM new group 'NetworkWatcherRG' is automatically created.

To Reproduce
root@Alexey-HP:# az group list | grep -i NetworkWatcherRG
root@Alexey-HP:
#

root@Alexey-HP:~# az group create \

--name centosresourcegroup
--location northeurope
Location Name


northeurope centosresourcegroup

root@Alexey-HP:~# az vm create \

--name centos-ent10-prepare
--resource-group centosresourcegroup
--image OpenLogic:CentOS:7.5:7.5.20180815
--location northeurope
--size Standard_DS1
--ssh-key-value ~/.ssh/id_rsa.pub
--admin-username azureuser
--authentication-type ssh
--public-ip-address-dns-name centos-ent10-prepare-dnsname
--os-disk-name centos-ent10-prepare-osdisk
--storage-sku Standard_LRS
ResourceGroup PowerState PublicIpAddress Fqdns PrivateIpAddress MacAddress Location Zones


centosresourcegroup VM running 40.127.199.114 centos-ent10-prepare-dnsname.northeurope.cloudapp.azure.com 10.0.0.4 00-0D-3A-B1-69-B6 northeurope
root@Alexey-HP:~#

root@Alexey-HP:# az group list | grep -i NetworkWatcherRG
NetworkWatcherRG northeurope Succeeded
root@Alexey-HP:
#

Expected behavior
New group 'NetworkWatcherRG' should not be created.

Environment summary
Bash on Windows 10

root@Alexey-HP:~# az --version | head -1
azure-cli (2.0.54)

Microsoft Windows [Version 10.0.18309.1000]
(c) 2018 Microsoft Corporation. All rights reserved.

Additional context
I didn't happen earlier.

@tjprescott tjprescott self-assigned this Jan 11, 2019
@tjprescott tjprescott added Compute az vm/vmss/image/disk/snapshot Network az network vnet/lb/nic/dns/etc... question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 11, 2019
@tjprescott tjprescott added this to the Sprint 53 milestone Jan 11, 2019
@tjprescott
Copy link
Member

Interesting. I can reproduce this. It looks like it is enabling Network Watcher for the region you create your VM in. When I run with --validate --verbose to examine the ARM template actually sent to Azure (without actually sending it), I see no mention of this resource group or network watchers in general. This may be a change in the service-side behavior.

@tjprescott tjprescott added Compute - VM az vm Network - Network Watcher az network watcher Service Attention This issue is responsible by Azure service team. and removed Compute az vm/vmss/image/disk/snapshot Network az network vnet/lb/nic/dns/etc... labels Jan 11, 2019
@tjprescott tjprescott removed their assignment Jan 11, 2019
@tjprescott tjprescott removed this from the Sprint 53 milestone Jan 11, 2019
@tjprescott tjprescott changed the title NetworkWatcherRG is automatically created Network watcher automatically created when I create a VM Jan 11, 2019
@tjprescott
Copy link
Member

tjprescott commented Jan 11, 2019

It isn't just the resource group that is created. The Network Watcher resource itself is created for that region. However, this is not done by the CLI.

@tjprescott
Copy link
Member

Hi @alexeyshishkin01 this is a service-side behavior that is by design. Please see:
https://azure.microsoft.com/en-us/updates/azure-network-watcher-will-be-enabled-by-default-for-subscriptions-containing-virtual-networks/

The resource is free, but if you wanted, you could delete the resource group (which would delete the resources as well). Since this is by-design service behavior, I will close this issue.

@tjprescott
Copy link
Member

Also, if you would like to opt-out of this behavior (which is not recommended) please see:
https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-create

@DJM0502
Copy link

DJM0502 commented Oct 16, 2019

In my case is see the resource group is created as Network watcherRG but inside this i do not see the resource which is network-watcher.

@DJM0502
Copy link

DJM0502 commented Oct 17, 2019

i thought i might get some reply.
but i was able to figure this out it is hidden resources.
if i do show hidden resources i can see the name of the resources NetworkWatcher_centralus.
so i short this is the resource created with this group.

Thanks
DJM

@haroldrandom haroldrandom added Compute - VM az vm Network - Network Watcher az network watcher question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. labels Oct 25, 2019
@RehanSaeed
Copy link

Is it possible to set the name of the NetworkWatcherRG resource group via the Azure CLI or ARM/Bicep template?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute - VM az vm Network - Network Watcher az network watcher question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

5 participants