Power Off Virtual Machine (Non-Classic)
Microsoft.SystemCenter.MicrosoftAzure.GenericVirtualMachine.NonClassic.PowerOff.Task (Task)
Powers off the virtual machine (non-classic). Note that the virtual machine will continue to be billed.
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SystemCenter.MicrosoftAzure.GenericVirtualMachine.NonClassic.PowerOff.Task" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.MicrosoftAzure.GenericVirtualMachine.NonClassic" Timeout="300" Remotable="true">
<Category>System</Category>
<WriteAction ID="WA" TypeID="Microsoft.SystemCenter.MicrosoftAzure.ArmResource.Operation.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/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ClientId$</ADClientId>
<SubscriptionId>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/SubscriptionId$</SubscriptionId>
<Proxy>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ProxyServerAddress$</Proxy>
<AuthBaseAddress>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/Authority$</AuthBaseAddress>
<ResourceBaseAddress>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ArmServiceUri$</ResourceBaseAddress>
<TimeoutSeconds>300</TimeoutSeconds>
<ResourceId>$Target/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.AzureServiceGeneric"]/ServiceId$</ResourceId>
<OperationName>powerOff</OperationName>
<RequestType>post</RequestType>
</WriteAction>
</Task>