Hi @jassbhatti2007,
Please see below article, Artur Brodziński has already written a PS script for NSG and also ASG.
https://www.powershellbros.com/get-azure-virtual-machines-without-nsg-and-asg-assigned/
Hope this helps.
Regards
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello Team
How to list all VMs with no NSG attached ?
Thanks
Jas
Hi @jassbhatti2007,
Please see below article, Artur Brodziński has already written a PS script for NSG and also ASG.
https://www.powershellbros.com/get-azure-virtual-machines-without-nsg-and-asg-assigned/
Hope this helps.
Regards
i am getting an error
Get-AzureRmSubscription : Method 'get_SerializationSettings' in type 'Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient' from assembly 'Microsoft.Azure.Commands.ResourceManager.Common, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not have an implementation
i fixed above error by command Enable-AzureRmAlias -Scope CurrentUser
But getting an error
Get-azureRMvm : the 'get-AZVM' command was found in module az
Thanks Team
uninstall azurerm modules and install back fixed the issue.