Skip to content

Commit 3c31fef

Browse files
Update Add-AzureRmLogProfile.md
1 parent 5fe4c09 commit 3c31fef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ResourceManager/Insights/Commands.Insights/help/Add-AzureRmLogProfile.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ schema: 2.0.0
88
# Add-AzureRmLogProfile
99

1010
## SYNOPSIS
11-
Creates a log profile. This profile will be used to either archive the activity log to a storage account or stream them to an Azure event hub. Only a single standard storage account (premium storage account is not supported) persubscription is support. It could of type ARM or Classic. If it's logged to storage account the cost of storing this activity log is billed at normal storage rates.
11+
Creates a new activity log profile, there can be only one log profile per subscription. This profile is used to either archive the activity log to a storage account or stream it to an Azure event hub. Only a single standard storage account (premium storage account is not supported) per subscription is supported. It could either be of type ARM or Classic. If it's logged to a storage account, the cost of storing the activity log is billed at normal standard storage rates.
12+
13+
In the activity logs events can pertain to a region or could be "Global". Global essentially means these events are region agnostics and are independent of region, in fact majority of events fall into this category. If the activity log profile is set from the portal, it implicitly adds "Global" along with any other region selected in the user interface. When using the cmdlet, the location as "Global" must be explicitly mentioned apart from any other region.
1214

1315
## SYNTAX
1416

@@ -22,9 +24,9 @@ Add-AzureRmLogProfile -Name <String> [-StorageAccountId <String>] [-ServiceBusRu
2224
The **Add-AzureRmLogProfile** cmdlet creates a log profile.
2325

2426
## EXAMPLES
25-
### Example 1 : Add a new log profile to export activity logs to a storage account
27+
### Example 1 : Add a new log profile to export the activity log matching the location condition to a storage account
2628
```yaml
27-
Add-AzureRmLogProfile -Locations "West US" -Name ExportLogProfile -StorageAccountId /subscriptions/40gpe80s-9sb7-4f07-9042-b1b6a92ja9fk/resourceGroups/activitylogRG/providers/Microsoft.Storage/storageAccounts/activitylogstorageaccount
29+
Add-AzureRmLogProfile -Locations "Global,West US" -Name ExportLogProfile -StorageAccountId /subscriptions/40gpe80s-9sb7-4f07-9042-b1b6a92ja9fk/resourceGroups/activitylogRG/providers/Microsoft.Storage/storageAccounts/activitylogstorageaccount
2830
```
2931

3032
## PARAMETERS

0 commit comments

Comments
 (0)