- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to retrieve the Azure subnets connected to the virtual network using PowerShell?
To get all the subnets attached to the virtual network using PowerShell, we need to use the GetAzVirtualNetwork command.
PS C:\> $vn = Get-AzVirtualNetwork -Name VirtualNetworkName
To get the Subnets and its address prefix details, you need to filter out the Subnets and AddressPrefix
PS C:\> $vn.Subnets | Select Name, AddressPrefix
Advertisements