VSAE Adding Binary Resource Features - TechNet Articles - United States (English) - TechNet Wiki

Source: http://michelkamp.wordpress.com/2012/11/06/vsae-adding-binary-resource-features/

Challenge

One of the greatest new features of the schema 2.0 in combination with VSAE is the binary resource distributions. Using this feature you want to include a binary file that will be used in your OM12 SCHEMA 2.0 MP. You want this binary file to be available on the agent where the workflow runs. So do the steps below.

VSAE Adding Binary Resource Features

Source: http://michelkamp.wordpress.com/2012/11/06/vsae-adding-bina_project">1) Add your resource to the project:

Drag your binary to the MP project. For this example I used a .ZIP file.

image

Most important: Do NOT forget to set it to “Embedded Resource” !!

2) Add your resource to the MP:

<DeployableResource
ID=”AgentResource.Binary”
FileName=”xxxxxxxx.zip”
Accessibility=”Public”
HasNullStream=”false”
/>

3) How to reference it in your workflows

Now you want to know where this binary resource is put at the agent, correct ? Use the $FileResource tag. The example below fills the Value element with the runtime path where the binary is standing.

<Value>$FileResource[Name="AgentResource.Binary"]/Path$</Value>

This FileResource\Path parser is very handy. Because you must know that every time the MP is updated or the agent is restarted the resource path will change.

In runtime this Value element will be filled with for example: (running on the MS server)

C:\Program Files\System Center 2012\Operations Manager\Server\Health Service State\Monitoring Host Temporary Files 4249\194\xxxxxxxx.zip

 

Happy scomming.

Michel Kamp