Get-ASAppServiceTrackingProfile

Get-ASAppServiceTrackingProfile

Reads metadata about a tracking profile from the Web.config configuration files.

Syntax

Parameter Set: SiteNameAndVirtualPath
Get-ASAppServiceTrackingProfile [-SiteName] <String> [[-VirtualPath] <String> ] [-ProfileName <String> ] [ <CommonParameters>]


Parameters

-ApplicationObject<ApplicationInfo>

An object that application configuration cmdlets output.  This allows piping IIS configuration scope between commands.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

-ProfileName<String>

A tracking profile name used to filter the result set.  Only profiles whose name matches will be returned.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-Root

Indicates that only the root web.config file should be searched.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

-ServiceObject<ServiceInfo>

An object that service configuration cmdlets output. This allows piping IIS configuration scope between commands.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

-SiteName<String>

The IIS Web Site Name used to filter the configuration search.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-Uri<Uri>

The Uri to an application whose configuration should be searched.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

-VirtualPath<String>

The IIS Virtual Path used to filter the configuration search.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • ApplicationInfo or ServiceInfo


Outputs

The output type is the type of the objects that the cmdlet emits.

  • TrackingProfileInfo


Examples

Example 1

This cmdlet example gets the tracking status for the MyWorkflowApp application. All tracking levels returned False, which indicates that the profile is not defined in the local Web.config file for the application.


PS C:\Windows\system32> Get-ASAppServiceTrackingProfile -Sitename "Default Web Site" -VirtualPath "/MyWorkflowApp"Name SiteName VirtualPath IsLocal---- -------- ----------- --------Default Web Site /MyWorkflowApp FalseErrorsOnly Tracking Profile Default Web Site /MyWorkflowApp FalseHealthMonitoring Tracking ... Default Web Site /MyWorkflowApp FalseEndToEndMonitoring Trackin... Default Web Site /MyWorkflowApp FalseTroubleshooting Tracking P... Default Web Site /MyWorkflowApp False

Example 2

This example gets the tracking status for the MyWorkflowApp application, and shows it is False. This indicates that the profile is not defined in the local Web.config file.


PS C:\Windows\system32> Get-ASAppServiceTrackingProfile -Sitename "Default Web Site" -VirtualPath "/MyWorkflowApp" -PrfileName "ErrorsOnly Tracking Profile"Name SiteName VirtualPath IsLocal---- -------- ----------- -------ErrorsOnly Tracking Profile Default Web Site /MyWorkflowApp False

Example 3


This cmdlet gets the tracking status at the root level, and shows it as True. This means it is monitoring at the local ErrorsOnly Tracking Profile level.


PS C:\Windows\system32> Get-ASAppServiceTrackingProfile -Root -ProfileName "ErrorsOnly Tracking Profile"Name SiteName VirtualPath IsLocal---- -------- ----------- -------ErrorsOnly Tracking Profile True
Show: