Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Start-ASAppMonitoring

Start-ASAppMonitoring

Starts monitoring at the specified scope. You can monitor your application by capturing tracing information emitted by the application at run time and storing it in the monitoring store. The captured information is then available in the Dashboard feature in the IIS Management console, or directly from the monitoring store.

Syntax

Parameter Set: SiteNameAndVirtualPath
Start-ASAppMonitoring [-SiteName] <String> [[-VirtualPath] <String> ] [ <CommonParameters>]


Detailed Description

Running the Start-ASAppMonitoring cmdlet sets <enabled=true> to start monitoring.

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?

-MonitoringInfo<MonitoringInfo>

Required. Structure containing monitoring information;  ConnectionString, ConnectionStringName, IsEnabled, MonitoringLevel, ProviderId, SiteName, TrackingProfile, and VirtualPath. An object that monitoring configuration Cmdlets output. This allows piping monitoring configuration 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 targeted.


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 targeted.


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.

  • None


Outputs

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

  • None


Examples

Example 1

This cmdlet example starts (enables) monitoring at the root level. The value IsEnabled=True means monitoring is started.


PS C:\Windows\system32> Start-ASAppMonitoring -RootConnectionStringName : ApplicationServerMonitoringConnectionStringConnectionString : Data Source=MICROSO-XNMDH06;Initial Catalog=AppFabricMonitoringStore;Integrated Security=TrueIsEnabled : TrueMonitoringLevel : HealthMonitoringProviderId : 824ca028-35a2-4c39-8f9c-1d19223b7d26ProviderName : System.Data.SqlClientTrackingProfile : HealthMonitoring Tracking ProfileSiteName :VirtualPath :

Example 2

This cmdlet example starts (enables) monitoring at the application level. The value IsEnabled=True means monitoring is started.


PS C:\Windows\system32> Start-ASAppMonitoring -Sitename "Default Web Site" -VirtualPath "/MyWorkflowApp"ConnectionStringName : ApplicationServerMonitoringConnectionStringConnectionString : Data Source=MICROSO-XNMDH06;Initial Catalog=AppFabricMonitoringStore;Integrated Security=TrueIsEnabled : TrueMonitoringLevel : HealthMonitoringProviderId : 0d163658-e838-4ade-adff-f0d8a8e20b52ProviderName : System.Data.SqlClientTrackingProfile : HealthMonitoring Tracking ProfileSiteName : Default Web SiteVirtualPath : /MyWorkflowApp
Show:
© 2015 Microsoft