In services.xml try changing this:
<role alias="AutoscalingApplicationRole"
roleName="WorkerRoleExample"
wadStorageAccountName="targetstorage"/>
To this:
<role alias="WorkerRoleExample"
roleName="WorkerRoleExample"
wadStorageAccountName="targetstorage"/>
In rules.xml
the target
attribute of the scale
element looks for a matching alias
attribute
on the role
element in services.xml
- it was looking for WorkerRoleExample
and couldn't find it.
It would also work if, instead of the above, in rules.xml you changed:
<scale target="WorkerRoleExample" by="1"/>
To this:
<scale target="AutoscalingApplicationRole" by="1"/>