Skip to content

Commit d4e5ed4

Browse files
authored
Merge pull request #204219 from guywi-ms/patch-18
Remove legacy activity log UI
2 parents 0f7326b + e1f093a commit d4e5ed4

File tree

1 file changed

+6
-33
lines changed

1 file changed

+6
-33
lines changed

articles/azure-monitor/essentials/activity-log.md

Lines changed: 6 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -182,22 +182,9 @@ Each event is stored in the PT1H.json file with the following format. This forma
182182

183183
## Legacy collection methods
184184

185-
This section describes legacy methods for collecting the activity log that were used prior to diagnostic settings. If you're using these methods, consider transitioning to diagnostic settings that provide better functionality and consistency with resource logs.
185+
Log profiles are the legacy method for sending the activity log to storage or event hubs. If you're using this method, consider transitioning to diagnostic settings, which provide better functionality and consistency with resource logs.
186186

187-
### Log profiles
188-
189-
Log profiles are the legacy method for sending the activity log to storage or event hubs. Use the following procedure to continue working with a log profile or to disable it in preparation for migrating to a diagnostic setting.
190-
191-
1. From the **Azure Monitor** menu in the Azure portal, select **Activity log**.
192-
1. Select **Export Activity Logs**.
193-
194-
![Screenshot that shows exporting activity logs.](media/activity-log/diagnostic-settings-export.png)
195-
196-
1. Select the purple banner for the legacy experience.
197-
198-
![Screenshot that shows the legacy experience.](media/activity-log/legacy-experience.png)
199-
200-
### Configure a log profile by using PowerShell
187+
### [PowerShell](#tab/powershell)
201188

202189
If a log profile already exists, you first must remove the existing log profile and then create a new one.
203190

@@ -225,9 +212,9 @@ If a log profile already exists, you first must remove the existing log profile
225212
| RetentionInDays |Yes |Number of days for which events should be retained in the storage account, from 1 through 365. A value of zero stores the logs indefinitely. |
226213
| Category |No |Comma-separated list of event categories to be collected. Possible values are Write, Delete, and Action. |
227214
228-
### Example script
215+
**Example script**
229216
230-
The following sample PowerShell script is used to create a log profile that writes the activity log to both a storage account and an event hub.
217+
This sample PowerShell script creates a log profile that writes the activity log to both a storage account and an event hub.
231218
232219
```powershell
233220
# Settings needed for the new log profile
@@ -247,7 +234,7 @@ The following sample PowerShell script is used to create a log profile that writ
247234
Add-AzLogProfile -Name $logProfileName -Location $locations -StorageAccountId $storageAccountId -ServiceBusRuleId $serviceBusRuleId
248235
```
249236

250-
### Configure a log profile by using the Azure CLI
237+
### [CLI](#tab/cli)
251238

252239
If a log profile already exists, you first must remove the existing log profile and then create a log profile.
253240

@@ -267,21 +254,7 @@ If a log profile already exists, you first must remove the existing log profile
267254
|enabled | Yes |True or False. Used to enable or disable the retention policy. If True, then the `days` parameter must be a value greater than zero.
268255
| categories |Yes |Space-separated list of event categories that should be collected. Possible values are Write, Delete, and Action. |
269256

270-
### Log Analytics workspace
271-
272-
The legacy method for sending the activity log into a Log Analytics workspace is connecting the sign-in for the workspace configuration.
273-
274-
1. From the **Log Analytics workspaces** menu in the Azure portal, select the workspace to collect the activity log.
275-
1. In the **Workspace Data Sources** section of the workspace's menu, select **Azure Activity log**.
276-
1. Select the subscription that you want to connect to.
277-
278-
![Screenshot that shows Log Analytics workspace with Azure Activity log selected.](media/activity-log/workspaces.png)
279-
280-
1. Select **Connect** to connect the activity sign-in subscription to the selected workspace. If the subscription is already connected to another workspace, select **Disconnect** first to disconnect it.
281-
282-
![Screenshot that shows connecting workspaces.](media/activity-log/connect-workspace.png)
283-
284-
To disable the setting, do the same procedure and select **Disconnect** to remove the subscription from the workspace.
257+
---
285258

286259
### Data structure changes
287260

0 commit comments

Comments
 (0)