PrateekKumarSingh / AzViz

⚡ ☁ Azure Visualizer aka 'AzViz' : A #powershell module to automatically generate Azure resource topology diagrams by just typing a PowerShell cmdlet and passing the name of one or more Azure Resource groups
MIT License
584 stars 146 forks source link

Exclude resources by name wildcard #73

Open MohnJadden opened 2 years ago

MohnJadden commented 2 years ago

It would be great if we had the ability to have Azviz exclude resources from a graph based on their name or ID. For example, I've got an RG with a Storage Account that has several boot diagnostic containers, all containing the name "bootdiagnostic".

Examples: Export-AzViz -Resourcegroup Mike1 -exclude *bootdiagnostic* will exclude anything that contains the term bootdiagnostic Export-AzViz -Resourcegroup Mike1 -exclude bootdiagnostic/vhd* will exclude anything that begins with the term bootdiagnostic/vhd