Michel Kamp has published a short but very interesting article related to a new feature of the schema 2.0 in combination with VSAE : the binary resource distributions.
The feature is use to make binary file available on the agent where the workflow runs.
Here are the few step to follow to implement this :
- Add your resource to the project using drag & drop the binaries to the MP project and set it to “Embedded Resource”
- Add your resource to the MP: <DeployableResource
ID=”AgentResource.Binary”
FileName=”xxxxxxxx.zip”
Accessibility=”Public”
HasNullStream=”false” /> - Reference the resource in your workflows
<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
This posting is provided "AS IS" with no warranties.
No comments:
Post a Comment