I created both the private vnet and private subnet and a nsg that is attached to the vm. I gave the nsg access from the vnet ip but it still fails with error " NSG does not allow access from the VNet’s CIDR block ‘10.0.0.0/16’", but as you can see in the screenshot the rule for access is there. I’m wondering what i’m missing…
Hi @brandops,
I’ve checked it and it’s worked properly from my end. You can refer to the screenshots below.
I see that you are allowing traffic for only port 22, is that mentioned in the question?
Thank you both. I was super confused as to was why it was failing, I think the language of the task was confusing to me. In the first paragraph towards the end in the scenario it says “This VM should be accessible over SSH from within the VNet only.” I took this to mean that only SSH access was needed. I’ll post of screenshot of what I mean but Thank you I finally passed the task.

The underlined in red is where I got confused.
Hi @brandops,
The rule in the screenshot below already allows SSH from within the VNet, so we don’t need to create a new one. Hope this clears up the confusion.



