"MS Azure: DevOps с помощью TeamCity и PowerShell"

Post on 10-Apr-2017

113 views 1 download

Transcript of "MS Azure: DevOps с помощью TeamCity и PowerShell"

Deployment App Services• Download Publish Profile• Get Values From Publish Profile And

Set To Build Step: 1) PublishUrl -> MsDeployServiceUrl 2) MSdeploySite -> DeployIISAppPath 3) UserName -> UserName 4) UserPWD -> Password

Deployment Roles to Cloud Service• Set Roles Configuration• Download Publish Settings File• Import Publish Settings File to PowerShell• For Deployment Use PowerShell Command

«New-AzureDeployment» With Parameters: 1) Cloud Service Name 2) Storage Account Name 3) Slot 4) Package Path 5) Configuration Path 6) Publish Settings File Path

Migrate Data Between Storage Accounts• Migrate Blobs Using PowerShell

Command «Start-CopyAzureStorageBlob»• Migrate Tables Using AZCopy• Create Same Queues In

Destination Storage Account

Migrate Azure Virtual Machine• Copy OS VHD Between Storage Accounts• Copy Data VHD Between Storage

Accounts• Mount OS VHD In The Destination

Subscription• Create Azure VM Using Migrated OS

Image• Mount Data VHD Into New Azure VM

Optional• Add Same Endpoints

The End. Any Questions?