Shutdown Scale Unit Node

Microsoft.SystemCenter.AzureStack.UnitNode.Shutdown.Task (Task)

This task allows to shut down the scale unit node.

Element properties:

TargetMicrosoft.SystemCenter.AzureStack.UnitNode
AccessibilityPublic
CategorySystem
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction Microsoft.SystemCenter.AzureStack.UnitNode.TaskRun.Task.WA Default

Source Code:

<Task ID="Microsoft.SystemCenter.AzureStack.UnitNode.Shutdown.Task" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.AzureStack.UnitNode" Timeout="300" Remotable="true">
<Category>System</Category>
<WriteAction ID="WA" TypeID="Microsoft.SystemCenter.AzureStack.UnitNode.TaskRun.Task.WA">
<ADUserName>$RunAs[Name="Microsoft.SystemCenter.AzureStack.RunAsProfile.ADCredentials"]/UserName$</ADUserName>
<ADPassword>$RunAs[Name="Microsoft.SystemCenter.AzureStack.RunAsProfile.ADCredentials"]/Password$</ADPassword>
<DeploymentId>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/EndpointUrl$</DeploymentId>
<TimeoutSeconds>300</TimeoutSeconds>
<DefaultRegion>$Target/Host/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Deployment"]/Region$</DefaultRegion>
<RegionId>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Region"]/RegionId$</RegionId>
<RegionName>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.AzureStack.Region"]/Name$</RegionName>
<ScaleUnitId>$Target/Host/Property[Type="Microsoft.SystemCenter.AzureStack.ScaleUnit"]/ScaleUnitId$</ScaleUnitId>
<ScaleUnitName>$Target/Host/Property[Type="Microsoft.SystemCenter.AzureStack.ScaleUnit"]/ScaleUnitName$</ScaleUnitName>
<UnitNodeId>$Target/Property[Type="Microsoft.SystemCenter.AzureStack.UnitNode"]/UnitNodeId$</UnitNodeId>
<UnitNodeName>$Target/Property[Type="Microsoft.SystemCenter.AzureStack.UnitNode"]/UnitNodeName$</UnitNodeName>
<TaskType>Shutdown</TaskType>
</WriteAction>
</Task>