BizTalk Services lets you create backup of the service to deal with some of the scenarios like
Note: This feature is not provided to Developer edition.
You need to install Windows Azure Powershell on your machine and download Windows Azure BizTalk Service Management PowerShell Cmdlets. Details about both of these is available here. This link contains a sample for management of BizTalk Services through Powershell. Follow the description of this sample to setup your machine. Summarizing the steps needed to be performed:
If you followed the steps mentioned in the sample's description you should have Windows Azure PowerShell command window open with subscription set to the one where your BizTalk Service is provisioned. Execute following commands to set Azure subscription:
C:\PS> $subID = <Subscription ID> C:\PS> $thumbprint = <Certificate Thumbprint> C:\PS> $myCert = Get-Item cert:\\LocalMachine\My\$thumbprint C:\PS> Set-AzureSubscription –SubscriptionName "MySub" -SubscriptionId $subID -Certificate $myCert
Note: Install the management certificate for your subscription in machine's certificate store under Local Machine.
Execute the Backup-AzureBizTalkService cmdlet to take backup of the service. This cmdlet takes following inputs:
C:\PS> Backup-AzureBizTalkService -ResourceName <Biztalk Service name> -BackupName <Backup container name> -BackupStoreConnectionString "BlobEndpoint=https://<account name>.blob.core.windows.net/; QueueEndpoint=https://<account name>.queue.core.windows.net/; TableEndpoint=https://<account name>.table.core.windows.net/; AccountName=<account name>; AccountKey=<account key>; DefaultEndpointsProtocol=https"
C:\PS> Backup-AzureBizTalkService -ResourceName <Biztalk Service name> -BackupName <Backup container name> -BackupStoreConnectionString "DefaultEndpointsProtocol=https; AccountName=<your storage account name>; AccountKey=<your storage account key>"
Note: This may take up around 30 minutes to 1 hour to complete.