Skip to main content

Log Analytics List Workspaces In Resource Group

Gets log analytics workspaces in a resource group.

External Documentation

To learn more, visit the Azure documentation.

Parameters

ParameterDescription
Resource Group NameThe name of the resource group. The name is case insensitive. Can be obtained via the List Resource Groups action.
Subscription IDThe ID of the target subscription. Can be obtained via the List Subscriptions action.

Example Output

{
"value": [
{
"properties": {
"customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f",
"provisioningState": "Succeeded",
"sku": {
"name": "PerGB2018"
},
"retentionInDays": 30,
"publicNetworkAccessForQuery": "Enabled",
"publicNetworkAccessForIngestion": "Enabled"
},
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170",
"name": "AzTest2170",
"type": "Microsoft.OperationalInsights/workspaces",
"location": "australiasoutheast",
"tags": {
"tag1": "val1"
}
}
]
}

Automation Library Example

Log Analytics List Workspaces in Resource Group with Azure and Send Results Via Email

Automation LibraryPreview this Automation on desktop