WebAppGallery Discovery

WindowsAzurePack.Discovery.WebAppGallery (Discovery)

Discovers the WebAppGallery Service by finding its registry key and build number

Element properties:

TargetMicrosoft.Windows.Server.Computer
EnabledTrue
Frequency14400
RemotableFalse
CommentDiscovers the WebAppGallery by finding its build number in the registry

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
WindowsAzurePack.DataSource.Registry.WebAppGallery DataSource Microsoft.Windows.FilteredRegistryDiscoveryProvider Default

Source Code:

<Discovery ID="WindowsAzurePack.Discovery.WebAppGallery" Target="Windows!Microsoft.Windows.Server.Computer" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal" Comment="Discovers the WebAppGallery by finding its build number in the registry">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="WindowsAzurePack.WebAppGallery">
<Property TypeID="WindowsAzurePack.WAP.Server" PropertyID="BuildVersion"/>
</DiscoveryClass>
<!--<DiscoveryRelationship TypeID="WindowsAzurePack.Relation.WinServer.WAP" />-->
</DiscoveryTypes>
<DataSource ID="WindowsAzurePack.DataSource.Registry.WebAppGallery" TypeID="Windows!Microsoft.Windows.FilteredRegistryDiscoveryProvider" Comment="Registry keys created by the WebAppGallery when it installs">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<RegistryAttributeDefinitions>
<RegistryAttributeDefinition>
<AttributeName>WAPWebAppGalleryExists</AttributeName>
<Path>SOFTWARE\Microsoft\MgmtSvc\WebAppGallery</Path>
<PathType>0</PathType>
<AttributeType>0</AttributeType>
</RegistryAttributeDefinition>
<RegistryAttributeDefinition>
<AttributeName>BuildVersion</AttributeName>
<Path>SOFTWARE\Microsoft\MgmtSvc\WebAppGallery\BuildVersion</Path>
<PathType>1</PathType>
<AttributeType>1</AttributeType>
</RegistryAttributeDefinition>
</RegistryAttributeDefinitions>
<Frequency>14400</Frequency>
<!--<ClassId>BuildVersion</ClassId>-->
<ClassId>$MPElement[Name="WindowsAzurePack.WebAppGallery"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
<Value>WindowsAzurePack.WebAppGallery</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="WindowsAzurePack.WAP.Server"]/BuildVersion$</Name>
<Value>$Data/Values/BuildVersion$</Value>
</Setting>
</Settings>
</InstanceSettings>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">Values/WAPWebAppGalleryExists</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">True</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</DataSource>
</Discovery>