Correct Properties in Azure Resource Graph

Anonymous
2020-06-15T05:12:05.137+00:00

Hello,

I am Looking for a query to retrieve the URL's in subscriptions from App Service, Hosted DNS zone, Public IP's, Load Balancer and to other services.
The Command Properties.url is not fetching the details. What is the correct property to fetch it.

Thanks.

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,186 questions
{count} votes

1 answer

Sort by: Most helpful
  1. DCtheGeek-MSFT 451 Reputation points Microsoft Employee
    2020-06-19T15:12:45.937+00:00

    Each service stores properties according to their Resource Provider's schema, so it's not the same property name for a value you'd consider equivalent. To get an idea of how to discover what properties are available in Azure Resource Graph, see Explore your resources.

    As an example of what I think you are looking for for the App Service (which uses resource type microsoft.web/sites), try this query:

    Resources  
    | where type == 'microsoft.web/sites'  
    | project id, name, properties.inboundIpAddress, properties.enabledHostNames  
    

    To use the above query in Azure portal's Resource Graph Explorer, use this link.