From 69ef68099c279d3943237e3bc409beeb79e2ece8 Mon Sep 17 00:00:00 2001 From: Megan Bradley Date: Mon, 2 Dec 2024 08:04:47 -0700 Subject: [PATCH] status (#3401) --- ...ionalInsightsApplicationInsightsDataSource.md | 16 ++++++++-------- ...rationalInsightsAzureActivityLogDataSource.md | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/azps-13.0.0/Az.OperationalInsights/New-AzOperationalInsightsApplicationInsightsDataSource.md b/azps-13.0.0/Az.OperationalInsights/New-AzOperationalInsightsApplicationInsightsDataSource.md index b09fe79c5c..561ad04224 100644 --- a/azps-13.0.0/Az.OperationalInsights/New-AzOperationalInsightsApplicationInsightsDataSource.md +++ b/azps-13.0.0/Az.OperationalInsights/New-AzOperationalInsightsApplicationInsightsDataSource.md @@ -56,32 +56,32 @@ The **New-AzOperationalInsightsApplicationInsightsDataSource** cmdlet enables th ### Example 1: Create application-insights data source in workspace ```powershell -New-AzOperationalInsightsApplicationInsightsDataSource -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "MyWorkspace" -ApplicationSubscriptionId "e791a474-ee54-46a2-bb06-5e058302d234" -ApplicationResourceGroupName "ContosoResourceGroup" -ApplicationName "MyAIApplication" +New-AzOperationalInsightsApplicationInsightsDataSource -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "MyWorkspace" -ApplicationSubscriptionId "a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1" -ApplicationResourceGroupName "ContosoResourceGroup" -ApplicationName "MyAIApplication" ``` ```output -Name : subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication +Name : subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication ResourceGroupName : ContosoResourceGroup WorkspaceName : MyWorkspace -ResourceId : /subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/Microsoft.OperationalInsights/workspaces/MyWorkspace/datasources/subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication +ResourceId : /subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/ContosoResourceGroup/providers/Microsoft.OperationalInsights/workspaces/MyWorkspace/datasources/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication Kind : ApplicationInsights -Properties : {"linkedResourceId":"subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication","status":"Succeeded"} +Properties : {"linkedResourceId":"subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication","status":"Succeeded"} ``` This command creates an application-insights data source of a given application in a given log analytics workspace. This enables the collection of logs from given application to the log analytics workspace. ### Example 2: Get workspace object and create application-insights data source by the application resource id ```powershell -Get-AzOperationalInsightsWorkspace -Name "MyWorkspace" -ResourceGroupName "ContosoResourceGroup" | New-AzOperationalInsightsApplicationInsightsDataSource -ApplicationResourceId "/subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication" +Get-AzOperationalInsightsWorkspace -Name "MyWorkspace" -ResourceGroupName "ContosoResourceGroup" | New-AzOperationalInsightsApplicationInsightsDataSource -ApplicationResourceId "/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication" ``` ```output -Name : subscriptions/aaaaa474-ee54-4aaa-bb06-5e058302daaa/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication +Name : subscriptions/b1b1b1b1-cccc-dddd-eeee-f2f2f2f2f2f2/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication ResourceGroupName : ContosoResourceGroup WorkspaceName : MyWorkspace -ResourceId : /subscriptions/aaaaa474-ee54-4aaa-bb06-5e058302daaa/resourceGroups/ContosoResourceGroup/providers/Microsoft.OperationalInsights/workspaces/MyWorkspace/datasources/subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication +ResourceId : /subscriptions/b1b1b1b1-cccc-dddd-eeee-f2f2f2f2f2f2/resourceGroups/ContosoResourceGroup/providers/Microsoft.OperationalInsights/workspaces/MyWorkspace/datasources/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication Kind : ApplicationInsights -Properties : {"linkedResourceId":"subscriptions/e791a474-ee54-46a2-bb06-5e058302d234/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication","status":"Succeeded"} +Properties : {"linkedResourceId":"subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/ContosoResourceGroup/providers/microsoft.insights/components/MyAIApplication","status":"Succeeded"} ``` This command demonstrates getting a log analytics workspace object and then passing the output to create an associated application-insights data source by the application resource id. diff --git a/azps-13.0.0/Az.OperationalInsights/New-AzOperationalInsightsAzureActivityLogDataSource.md b/azps-13.0.0/Az.OperationalInsights/New-AzOperationalInsightsAzureActivityLogDataSource.md index f1325c85a1..3a2674df3f 100644 --- a/azps-13.0.0/Az.OperationalInsights/New-AzOperationalInsightsAzureActivityLogDataSource.md +++ b/azps-13.0.0/Az.OperationalInsights/New-AzOperationalInsightsAzureActivityLogDataSource.md @@ -36,16 +36,16 @@ The New-AzOperationalInsightsAzureActivityLogDataSource cmdlet enables Log Analy ### Example 1 ```powershell -New-AzOperationalInsightsAzureActivityLogDataSource -ResourceGroupName testrg -WorkspaceName LogAnalyticsworkspace -Name test -SubscriptionId 0b1f6471-1bf0-4dda-aec3-cb9272f09590 +New-AzOperationalInsightsAzureActivityLogDataSource -ResourceGroupName testrg -WorkspaceName LogAnalyticsworkspace -Name test -SubscriptionId aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e ``` ```output Name : test ResourceGroupName : testrg WorkspaceName : LogAnalyticsworkspace -ResourceId : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/testrg/providers/Microsoft.OperationalInsights/workspaces/LogAnalyticsworkspace/datasources/test +ResourceId : /subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/resourceGroups/testrg/providers/Microsoft.OperationalInsights/workspaces/LogAnalyticsworkspace/datasources/test Kind : AzureActivityLog -Properties : {"linkedResourceId":"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/microsoft.insights/eventtypes/management","backfillStartTime":"0001-01-01T00:00:00+00:00"} +Properties : {"linkedResourceId":"/subscriptions/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/providers/microsoft.insights/eventtypes/management","backfillStartTime":"0001-01-01T00:00:00+00:00"} ``` This command enables Log Analytics to collect Azure activity log from given subscription.