Swap Staging And Production Slots

Microsoft.SystemCenter.MicrosoftAzure.GenericDomainName.Swap.Task (Task)

Swaps the staging slot to the production slot.

Element properties:

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

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction Microsoft.SystemCenter.MicrosoftAzure.ArmResource.Operation.WA Default

Source Code:

<Task ID="Microsoft.SystemCenter.MicrosoftAzure.GenericDomainName.Swap.Task" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.MicrosoftAzure.GenericDomainName" 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>
<Audience>$Target/Host/Host/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.Subscription"]/ResourceUri$</Audience>
<TimeoutSeconds>300</TimeoutSeconds>
<ResourceId>$Target/Property[Type="Microsoft.SystemCenter.MicrosoftAzure.AzureServiceGeneric"]/ServiceId$</ResourceId>
<OperationName>swap</OperationName>
<RequestType>post</RequestType>
</WriteAction>
</Task>