- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
- Related Articles
- How to retrieve the Azure VM network security group (NSG) using PowerShell?
- How to get the Azure VM virtual Network and the Subnet name using PowerShell?
- How to retrieve Azure VMs using PowerShell?
- How to retrieve the Azure VM resource group using PowerShell?
- How to retrieve the Azure VM Subscription Name using PowerShell?
- How to retrieve the Azure VM NIC name using PowerShell?
- How to retrieve the Azure VM vNet name using PowerShell?
- How to retrieve the Azure VM deallocated date using PowerShell?
- How to retrieve the Azure VM nic name using Azure CLI in PowerShell?
- How to retrieve the OS of the Azure VM using Azure CLI in PowerShell?
- How to retrieve the Operating system of the Azure VM using PowerShell?
- How to get the load balancers connected to the Azure VM using PowerShell?
- How to retrieve the OS caching setting of Azure VM using Azure\nCLI in PowerShell?
- How to retrieve the Azure VM RAM and CPU size using PowerShell?
- How to connect to the Azure subscription using Azure CLI in PowerShell?

Advertisements