public void SwapSlotWithPreviewApplySlotConfig(string resourceGroupName, string webSiteName, string sourceSlotName, string destinationSlotName, bool?preserveVnet) { var csmSlotEntity = new CsmSlotEntity { TargetSlot = destinationSlotName, PreserveVnet = preserveVnet }; WrappedWebsitesClient.Sites.ApplySlotConfigSlot( resourceGroupName, webSiteName, csmSlotEntity, sourceSlotName); }
public void SwapSlotWithPreviewApplySlotConfig(string resourceGroupName, string webSiteName, string sourceSlotName, string destinationSlotName, bool?preserveVnet) { var csmSlotEntity = new CsmSlotEntity { TargetSlot = destinationSlotName }; if (preserveVnet.HasValue) { csmSlotEntity.PreserveVnet = preserveVnet.Value; } WrappedWebsitesClient.WebApps().ApplySlotConfigSlot( resourceGroupName, webSiteName, csmSlotEntity, sourceSlotName); }
public static void ApplySlotConfigSlot(this IWebAppsOperations webApp, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, string slot) { webApp.ApplySlotConfigurationSlot(resourceGroupName, name, slotSwapEntity, slot); }
public static void SwapSlotsSlot(this IWebAppsOperations webApp, string resourceGroupName, string name, CsmSlotEntity slotSwapEntity, string slot) { webApp.SwapSlotSlot(resourceGroupName, name, slotSwapEntity, slot); }