Get all the Access Controls Networking using Azure PowerShell

Sujithreddy Komma 571 Reputation points Microsoft Employee
2022-09-21T17:47:37.7+00:00

Hi,

I want to get all the access controls associated to all the Azure Resources using PowerShell.

For example if i go to Azure Storage accounts under Networking i can add the Virtual Network or IP Restrictions. i can do the same at Functions and App Services.

i want to pull al these list for all my Azure resources

it can be using Azure Graph explorer or Powershell. Can you Please help me woth the script or direct me on how to do it?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,718 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,199 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,383 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Luke Murray 10,526 Reputation points MVP
    2022-09-22T21:10:48.533+00:00

    For Azure SQL: Get-AzureSqlDatabaseServerFirewallRule
    For Azure App Service: Add-AzWebAppAccessRestrictionRule

    Also see: Managing Virtual network rules on an Azure Storage account

    Make sure you look at Azure Policy, as well - to audit and prevent firewall rules from being added etc, Azure Policy is your long term solution.

    0 comments No comments