@@ -7047,7 +7047,7 @@ $rule2 = New-AzureRmAutoscaleRule -MetricName Requests -MetricResourceId "/
7047
7047
<command : parameter required =" false" variableLength =" false" globbing =" false" pipelineInput =" true (ByPropertyName)" position =" named" >
7048
7048
<maml : name >WorkspaceId</maml : name >
7049
7049
<maml : description >
7050
- <maml : para >The Id of the workspace</maml : para >
7050
+ <maml : para >The resource Id of the Log Analytics workspace to send logs/metrics to. </maml : para >
7051
7051
</maml : description >
7052
7052
<command : parameterValue required =" true" variableLength =" false" >String</command : parameterValue >
7053
7053
</command : parameter >
@@ -7162,7 +7162,7 @@ $rule2 = New-AzureRmAutoscaleRule -MetricName Requests -MetricResourceId "/
7162
7162
<command : parameter required =" false" variableLength =" false" globbing =" false" pipelineInput =" true (ByPropertyName)" position =" named" >
7163
7163
<maml : name >WorkspaceId</maml : name >
7164
7164
<maml : description >
7165
- <maml : para >The Id of the workspace</maml : para >
7165
+ <maml : para >The resource Id of the Log Analytics workspace to send logs/metrics to. </maml : para >
7166
7166
</maml : description >
7167
7167
<command : parameterValue required =" true" variableLength =" false" >String</command : parameterValue >
7168
7168
<dev : type >
@@ -7323,6 +7323,26 @@ $rule2 = New-AzureRmAutoscaleRule -MetricName Requests -MetricResourceId "/
7323
7323
</command : commandLine >
7324
7324
</command : commandLines >
7325
7325
</command : example >
7326
+ <command : example >
7327
+ <maml : title >-------------------------- Enabling logs and metrics to go to a Log Analytics workspace --------------------------</maml : title >
7328
+ <maml : introduction >
7329
+ <maml : paragraph >PS C:\> </maml : paragraph >
7330
+ </maml : introduction >
7331
+ <dev : code >Set-AzureRmDiagnosticSetting -ResourceId < resourceId> --WorkspaceId $workspaceResourceId -Enable $true</dev : code >
7332
+ <dev : remarks >
7333
+ <maml : para >This will enable all logs and metrics for the resource to be sent to a Log Analytics workspace. You can get the resource Id for a workspace using (Get-AzureRmOperationalInsightsWorkspace).ResourceId .</maml : para >
7334
+ <maml : para />
7335
+ <maml : para />
7336
+ <maml : para ></maml : para >
7337
+ </dev : remarks >
7338
+ <command : commandLines >
7339
+ <command : commandLine >
7340
+ <command : commandText >
7341
+ <maml : para />
7342
+ </command : commandText >
7343
+ </command : commandLine >
7344
+ </command : commandLines >
7345
+ </command : example >
7326
7346
</command : examples >
7327
7347
<maml : relatedLinks >
7328
7348
<maml : navigationLink >
@@ -7331,4 +7351,4 @@ $rule2 = New-AzureRmAutoscaleRule -MetricName Requests -MetricResourceId "/
7331
7351
</maml : navigationLink >
7332
7352
</maml : relatedLinks >
7333
7353
</command : command >
7334
- </helpItems >
7354
+ </helpItems >
0 commit comments