How to get VM's network security group with vm's name

Boswell Yan 1 Reputation point
2020-12-02T08:01:17.25+00:00

Now I can list network security group and all VMs in a resource group, but how can I get vm's corresponding security group ?Thanks in advance.

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.


2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.