Change Number of Role Instances

Microsoft.SystemCenter.MicrosoftAzure.GenericRole.Scale.Task (Task)

Increase or decrease the number of role instances.

Element properties:

TargetMicrosoft.SystemCenter.MicrosoftAzure.GenericRole
AccessibilityPublic
CategorySystem
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction Microsoft.SystemCenter.MicrosoftAzure.GenericRole.Scale.WA Default

Source Code:

<Task ID="Microsoft.SystemCenter.MicrosoftAzure.GenericRole.Scale.Task" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.MicrosoftAzure.GenericRole" Timeout="300" Remotable="true">
<Category>System</Category>
<WriteAction ID="WA" TypeID="Microsoft.SystemCenter.MicrosoftAzure.GenericRole.Scale.WA">
<ADUserName>$RunAs[Name="Microsoft.SystemCenter.MicrosoftAzure.RunAsProfile.ADCredentials"]/UserName$</ADUserName>
<ADPassword>$RunAs[Name="Microsoft.SystemCenter.MicrosoftAzure.RunAsProfile.ADCredentials"]/Password$</ADPassword>
<ADClientId>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ClientId$</ADClientId>
<SubscriptionId>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/SubscriptionId$</SubscriptionId>
<Proxy>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ProxyServerAddress$</Proxy>
<AuthBaseAddress>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/Authority$</AuthBaseAddress>
<ResourceBaseAddress>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ArmServiceUri$</ResourceBaseAddress>
<Audience>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ResourceUri$</Audience>
<TimeoutSeconds>300</TimeoutSeconds>
<ResourceId>$Target/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.ServiceResource"]/ResourceId$</ResourceId>
<ResourceName>$Target/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.ServiceResource"]/ResourceName$</ResourceName>
<RoleInstanceCount>2</RoleInstanceCount>
</WriteAction>
</Task>