私はpowershell経由で空白のスロットスワッピングが実現できないようだと感じました(私は見ることができない、または黙って失敗していますが、スワップされるスロットは、スクリプトに示されているように、2つの非本番スロットの間にあります。成功すると思われる時間の約10%。私がここで間違っていることを誰かに知らせることができればうまくいけば、それはなぜ成功するか失敗するかわからない。Azure Powershell:ウェブサイトのスロットスワップが予想通りに動作しない
param ([string]$publishFilePath = "%system.teamcity.build.checkoutDir%\3.
deployment\Fu.publishsettings")
Import-AzurePublishSettingsFile $publishFilePath;
Select-AzureSubscription "Visual Studio Professional with MSDN";
Set-AzureSubscription -SubscriptionName "Visual Studio Professional with MSDN";
Switch-AzureWebsiteSlot -Name FuWebsite -Slot1 Build-Automation -Slot2 Staging -Force -Verbose
Switch-AzureWebsiteSlot -Name FuServices -Slot1 Build-Automation -Slot2 Staging -Force -Verbose
私が得る唯一のログは、次のとおりです:
[10:20:12][Step 5/5] VERBOSE: Performing the operation "Swapping website
production slot ..." on
[10:20:12][Step 5/5] target "FuWebsite".
[10:21:16][Step 5/5] VERBOSE: Performing the operation "Swapping website production slot ..." on
[10:21:16][Step 5/5] target "FuMeServices".
[10:22:19][Step 5/5]
[10:22:19][Step 5/5]
[10:22:19][Step 5/5] Process exited with code 0