< Back

Get-AzureRmWebAppSlotMetrics

Tue Jan 29, 2019 10:12 pm

NAME Get-AzureRmWebAppSlotMetrics



SYNOPSIS

Gets metrics for an Azure Web App slot.





SYNTAX

Get-AzureRmWebAppSlotMetrics [-ResourceGroupName] <String> [-Name] <String> [-Slot] <String> [-Metrics] <String[]> [-StartTime] <DateTime>

[[-EndTime] <DateTime>] [-Granularity] <String> [[-InstanceDetails]] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]



Get-AzureRmWebAppSlotMetrics [-WebApp] <Site> [-Metrics] <String[]> [-StartTime] <DateTime> [[-EndTime] <DateTime>] [-Granularity] <String>

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





DESCRIPTION

The Get-AzureRmWebAppSlotMetrics gets Web App metrics for the specified slot.





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? 5

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Granularity <String>

Granularity



Required? true

Position? 6

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



Required? true

Position? 3

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



-Slot <String>

WebApp Slot Name



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-StartTime <DateTime>

Start Time in UTC



Required? true

Position? 4

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 Request of the specified Web App per minute(PT1M - Poll Time 1 minute) between StartTime and EndTime







RELATED LINKS

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

Get-AzureRmAppServicePlanMetrics

Get-AzureRmWebApp

Get-AzureRmWebAppSlot