Get-ASAppMonitoring

Get-ASAppMonitoring

Gets the value of the ConnectionStringName, ConnectionString, IsEnabled, MonitoringLevel, ProviderId, ProviderName, TrackingProfile, SiteName, and VirtualPath elements from the configuration file associated with the specified scope. These are all used to configure monitoring within dublin.

Syntax

Parameter Set: SiteNameAndVirtualPath
Get-ASAppMonitoring [-SiteName] <String> [[-VirtualPath] <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?

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

-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

Outputs

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

  • MonitoringInfo

Examples

Example 1

This cmdlet example obtains monitoring settings defined at the root level. In this case monitoring is enabled by using the HealthMonitoring Tracking Profile monitoring level.

PS C:\Windows\system32> Get-ASAppMonitoring -RootConnectionStringName : ApplicationServerMonitoringConnectionStringConnectionString : Data Source=MICROSO-XNMDH06;InitialCatalog=AppFabricMonitoringStore;Integrated Security=TrueIsEnabled : TrueMonitoringLevel : HealthMonitoringProviderId : c651f5f6-1c0d-492e-8ae1-b4efd7c9d503ProviderName : System.Data.SqlClientTrackingProfile : HealthMonitoring Tracking ProfileSiteName :VirtualPath :

Example 2

This cmdlet example obtains monitoring settings defined at the application level for the MyWorkflowApp application. In this case monitoring is enabled by using the HealthMonitoring Tracking Profile monitoring level.

PS C:\Windows\system32> Get-ASAppMonitoring -Sitename "Default Web Site" -VirtualPath "/MyWorkflowApp"ConnectionStringName : ApplicationServerMonitoringConnectionStringConnectionString : Data Source=MICROSO-XNMDH06;Initial Catalog=AppFabricMonitoringStore;Integrated Security=TrueIsEnabled : TrueMonitoringLevel : HealthMonitoringProviderId : c651f5f6-1c0d-492e-8ae1-b4efd7c9d503ProviderName : System.Data.SqlClientTrackingProfile : HealthMonitoring Tracking ProfileSiteName : Default Web SiteVirtualPath : /MyWorkflowApp