< Back

Get-AzureRmWebAppMetrics

Tue Jan 29, 2019 10:12 pm

NAME Get-AzureRmWebAppMetrics



SYNOPSIS

Gets Azure Web App metrics.





SYNTAX

Get-AzureRmWebAppMetrics [-ResourceGroupName] <String> [-Name] <String> [-Metrics] <String[]> [-StartTime] <DateTime> [[-EndTime] <DateTime>]

[-Granularity] {PT1M | PT1H | P1D} [[-InstanceDetails]] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Get-AzureRmWebAppMetrics [-WebApp] <Site> [-Metrics] <String[]> [-StartTime] <DateTime> [[-EndTime] <DateTime>] [-Granularity] {PT1M | PT1H | P1D}

[[-InstanceDetails]] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmWebAppMetrics gets Web App metrics.





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



-EndTime <DateTime>

End Time in UTC



Required? false

Position? 4

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Granularity <String>

Granularity



Required? true

Position? 5

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-InstanceDetails [<SwitchParameter>]

Instance Details



Required? false

Position? 6

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Metrics <String[]>

Metrics as a string array



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

WebApp Name



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Resource Group Name



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-StartTime <DateTime>

Start Time in UTC



Required? true

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WebApp <Site>

WebApp object



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

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

Site

Parameter 'WebApp' accepts value of type 'Site' from the pipeline





OUTPUTS



NOTES









Example 1



PS C:\\> Get-AzureRmAppServicePlanMetrics -ResourceGroupName "Default-Web-WestUS" -Name "ContosoWebApp" -StartTime 2016-11-30T22:00:00Z -EndTime

2016-11-30T22:30:00Z -Granularity PT1M -Metrics ["Requests"]



This command gets Requests of the Web App ContosoWebApp per minute(PT1M - Poll Time 1 minute) between StartTime and EndTime







RELATED LINKS

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

Get-AzureRmWebAppCertificate