< Back

Get-AzureRmOperationalInsightsWorkspaceUsage

Thu Apr 04, 2019 5:39 am

NAME Get-AzureRmOperationalInsightsWorkspaceUsage



SYNOPSIS

Gets the usage data for a workspace.





SYNTAX

Get-AzureRmOperationalInsightsWorkspaceUsage [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmOperationalInsightsWorkspaceUsage cmdlet retrieves the usage data for a workspace. This exposes how much data has been analyzed by

the workspace over a certain period.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the workspace name.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of an Azure resource group.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

System.Collections.Generic.List`1[Microsoft.Azure.Commands.OperationalInsights.Models.PSUsageMetric]







NOTES









Example 1: Get usage data by workspace name



PS C:\\>Get-AzureRmOperationalInsightsWorkspaceUsage -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace"



This command gets the usage details for the workspace named MyWorkspace in the specified resource group.





Example 2: Get usage data using the pipeline



PS C:\\>Get-AzureRmOperationalInsightsWorkspace -ResourceGroupName "ContosoResourceGroup" -Name "MyWorkspace" |

Get-AzureOperationalInsightsWorkspaceUsage



This command gets the workspace named MyWorkSpace using the Get-AzureRmOperationalInsightsWorkspace cmdlet, and then passes the workspace to the

current cmdlet. The command gets the usage details for that workspace.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... spaceusage

Azure Operational Insights Cmdlets

Get-AzureRmOperationalInsightsWorkspace