diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/CHANGELOG.md b/sdk/resourcemanager/azure-resourcemanager-appservice/CHANGELOG.md index 309f697f37650..34f7056d2b529 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/CHANGELOG.md +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/CHANGELOG.md @@ -2,6 +2,8 @@ ## 2.0.0 (2020-09-27) +- Supported the configuration of container image for Windows web app. +- Supported the configuration of container image for deployment slot in update stage. - Changed return type of `list` and `listByResourceGroup` in `WebApps`, `FunctionApps`, `DeploymentSlots`, `FunctionDeploymentSlots`. - Added site properties for `WebApp`, `FunctionApp`, `DeploymentSlot`, `FunctionDeploymentSlot`. diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceBaseImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceBaseImpl.java index 6a120572d2b67..4072adefdb3d0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceBaseImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceBaseImpl.java @@ -53,11 +53,6 @@ abstract class AppServiceBaseImpl< private final ClientLogger logger = new ClientLogger(getClass()); - protected static final String SETTING_DOCKER_IMAGE = "DOCKER_CUSTOM_IMAGE_NAME"; - protected static final String SETTING_REGISTRY_SERVER = "DOCKER_REGISTRY_SERVER_URL"; - protected static final String SETTING_REGISTRY_USERNAME = "DOCKER_REGISTRY_SERVER_USERNAME"; - protected static final String SETTING_REGISTRY_PASSWORD = "DOCKER_REGISTRY_SERVER_PASSWORD"; - AppServiceBaseImpl( String name, SiteInner innerObject, @@ -450,7 +445,7 @@ public FluentImplT withPublicDockerHubImage(String imageAndTag) { if (siteConfig == null) { siteConfig = new SiteConfigResourceInner(); } - siteConfig.withLinuxFxVersion(String.format("DOCKER|%s", imageAndTag)); + setAppFrameworkVersion(String.format("DOCKER|%s", imageAndTag)); withAppSetting(SETTING_DOCKER_IMAGE, imageAndTag); return (FluentImplT) this; } @@ -467,7 +462,7 @@ public FluentImplT withPrivateRegistryImage(String imageAndTag, String serverUrl if (siteConfig == null) { siteConfig = new SiteConfigResourceInner(); } - siteConfig.withLinuxFxVersion(String.format("DOCKER|%s", imageAndTag)); + setAppFrameworkVersion(String.format("DOCKER|%s", imageAndTag)); withAppSetting(SETTING_DOCKER_IMAGE, imageAndTag); withAppSetting(SETTING_REGISTRY_SERVER, serverUrl); return (FluentImplT) this; diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DeploymentSlotBaseImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DeploymentSlotBaseImpl.java index 5365ff28dc047..dd72336e2b4a0 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DeploymentSlotBaseImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DeploymentSlotBaseImpl.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.appservice.models.ConnectionString; import com.azure.resourcemanager.appservice.models.CsmPublishingProfileOptions; import com.azure.resourcemanager.appservice.models.CsmSlotEntity; +import com.azure.resourcemanager.appservice.models.DeploymentSlotBase; import com.azure.resourcemanager.appservice.models.HostnameBinding; import com.azure.resourcemanager.appservice.models.MSDeploy; import com.azure.resourcemanager.appservice.models.PublishingProfile; @@ -39,7 +40,8 @@ abstract class DeploymentSlotBaseImpl< ParentImplT extends AppServiceBaseImpl, FluentWithCreateT, FluentUpdateT> - extends WebAppBaseImpl { + extends WebAppBaseImpl + implements DeploymentSlotBase, DeploymentSlotBase.Update { private final ParentImplT parent; private final String name; WebAppBase configurationSource; @@ -467,4 +469,77 @@ public Mono verifyDomainOwnershipAsync(String certificateOrderName, String resourceGroupName(), parent().name(), name(), certificateOrderName, identifierInner) .then(Mono.empty()); } + + @Override + public FluentImplT withRuntime(String runtime) { + return withAppSetting(SETTING_FUNCTIONS_WORKER_RUNTIME, runtime); + } + + @Override + public FluentImplT withRuntimeVersion(String version) { + return withAppSetting(SETTING_FUNCTIONS_EXTENSION_VERSION, version.startsWith("~") ? version : "~" + version); + } + + @Override + public FluentImplT withLatestRuntimeVersion() { + return withRuntimeVersion("latest"); + } + + @Override + public FluentImplT withPublicDockerHubImage(String imageAndTag) { + cleanUpContainerSettings(); + if (siteConfig == null) { + siteConfig = new SiteConfigResourceInner(); + } + setAppFrameworkVersion(String.format("DOCKER|%s", imageAndTag)); + return withAppSetting(SETTING_DOCKER_IMAGE, imageAndTag); + } + + @Override + public FluentImplT withPrivateDockerHubImage(String imageAndTag) { + return withPublicDockerHubImage(imageAndTag); + } + + @Override + public FluentImplT withPrivateRegistryImage(String imageAndTag, String serverUrl) { + imageAndTag = Utils.smartCompletionPrivateRegistryImage(imageAndTag, serverUrl); + + cleanUpContainerSettings(); + if (siteConfig == null) { + siteConfig = new SiteConfigResourceInner(); + } + setAppFrameworkVersion(String.format("DOCKER|%s", imageAndTag)); + withAppSetting(SETTING_DOCKER_IMAGE, imageAndTag); + return withAppSetting(SETTING_REGISTRY_SERVER, serverUrl); + } + + @Override + public FluentImplT withCredentials(String username, String password) { + withAppSetting(SETTING_REGISTRY_USERNAME, username); + return withAppSetting(SETTING_REGISTRY_PASSWORD, password); + } + + @Override + @SuppressWarnings("unchecked") + public FluentImplT withStartUpCommand(String startUpCommand) { + if (siteConfig == null) { + siteConfig = new SiteConfigResourceInner(); + } + siteConfig.withAppCommandLine(startUpCommand); + return (FluentImplT) this; + } + + protected void cleanUpContainerSettings() { + if (siteConfig != null && siteConfig.linuxFxVersion() != null) { + siteConfig.withLinuxFxVersion(null); + } + if (siteConfig != null && siteConfig.windowsFxVersion() != null) { + siteConfig.withWindowsFxVersion(null); + } + // Docker Hub + withoutAppSetting(SETTING_DOCKER_IMAGE); + withoutAppSetting(SETTING_REGISTRY_SERVER); + withoutAppSetting(SETTING_REGISTRY_USERNAME); + withoutAppSetting(SETTING_REGISTRY_PASSWORD); + } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DeploymentSlotImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DeploymentSlotImpl.java index a20d51bb81d10..8d0b26b13dd78 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DeploymentSlotImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DeploymentSlotImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.appservice.implementation; import com.azure.resourcemanager.appservice.models.DeploymentSlot; +import com.azure.resourcemanager.appservice.models.DeploymentSlotBase; import com.azure.resourcemanager.appservice.models.WebApp; import com.azure.resourcemanager.appservice.fluent.models.SiteConfigResourceInner; import com.azure.resourcemanager.appservice.fluent.models.SiteInner; @@ -21,8 +22,8 @@ class DeploymentSlotImpl DeploymentSlotImpl, WebAppImpl, DeploymentSlot.DefinitionStages.WithCreate, - DeploymentSlot.Update> - implements DeploymentSlot, DeploymentSlot.Definition, DeploymentSlot.Update { + DeploymentSlotBase.Update> + implements DeploymentSlot, DeploymentSlot.Definition { DeploymentSlotImpl( String name, diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/FunctionAppImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/FunctionAppImpl.java index c026eadc39071..d7326a38b4fe4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/FunctionAppImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/FunctionAppImpl.java @@ -74,8 +74,6 @@ class FunctionAppImpl private final ClientLogger logger = new ClientLogger(getClass()); - private static final String SETTING_FUNCTIONS_WORKER_RUNTIME = "FUNCTIONS_WORKER_RUNTIME"; - private static final String SETTING_FUNCTIONS_EXTENSION_VERSION = "FUNCTIONS_EXTENSION_VERSION"; private static final String SETTING_WEBSITE_CONTENTAZUREFILECONNECTIONSTRING = "WEBSITE_CONTENTAZUREFILECONNECTIONSTRING"; private static final String SETTING_WEBSITE_CONTENTSHARE = "WEBSITE_CONTENTSHARE"; @@ -394,6 +392,9 @@ protected void cleanUpContainerSettings() { if (siteConfig != null && siteConfig.linuxFxVersion() != null) { siteConfig.withLinuxFxVersion(null); } + if (siteConfig != null && siteConfig.windowsFxVersion() != null) { + siteConfig.withWindowsFxVersion(null); + } // Docker Hub withoutAppSetting(SETTING_DOCKER_IMAGE); withoutAppSetting(SETTING_REGISTRY_SERVER); diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/FunctionDeploymentSlotImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/FunctionDeploymentSlotImpl.java index db8b0954b07a9..c137bb4c49432 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/FunctionDeploymentSlotImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/FunctionDeploymentSlotImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.appservice.implementation; import com.azure.resourcemanager.appservice.fluent.models.SitePatchResourceInner; +import com.azure.resourcemanager.appservice.models.DeploymentSlotBase; import com.azure.resourcemanager.appservice.models.FunctionApp; import com.azure.resourcemanager.appservice.models.FunctionDeploymentSlot; import com.azure.resourcemanager.appservice.fluent.models.SiteConfigResourceInner; @@ -21,8 +22,8 @@ class FunctionDeploymentSlotImpl FunctionDeploymentSlotImpl, FunctionAppImpl, FunctionDeploymentSlot.DefinitionStages.WithCreate, - FunctionDeploymentSlot.Update> - implements FunctionDeploymentSlot, FunctionDeploymentSlot.Definition, FunctionDeploymentSlot.Update { + DeploymentSlotBase> + implements FunctionDeploymentSlot, FunctionDeploymentSlot.Definition { FunctionDeploymentSlotImpl( String name, diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppBaseImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppBaseImpl.java index dfb412f610bc1..5d2b861c2b776 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppBaseImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppBaseImpl.java @@ -102,6 +102,14 @@ abstract class WebAppBaseImpl DNS_MAP = new HashMap() { { @@ -456,6 +464,14 @@ public String linuxFxVersion() { return siteConfig.linuxFxVersion(); } + @Override + public String windowsFxVersion() { + if (siteConfig == null) { + return null; + } + return siteConfig.windowsFxVersion(); + } + @Override public String autoSwapSlotName() { if (siteConfig == null) { @@ -1702,4 +1718,12 @@ public void close() throws IOException { super.close(); } } + + protected void setAppFrameworkVersion(String fxVersion) { + if (operatingSystem() == OperatingSystem.LINUX) { + siteConfig.withLinuxFxVersion(fxVersion); + } else { + siteConfig.withWindowsFxVersion(fxVersion); + } + } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppImpl.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppImpl.java index b252b5e1c1bf8..81b2cf9267aa4 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppImpl.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/WebAppImpl.java @@ -29,7 +29,6 @@ class WebAppImpl extends AppServiceBaseImpl, WebDeploymentSlotBasic, - WebAppBase, - Updatable, + DeploymentSlotBase, + Updatable>, HasParent { /** @@ -147,8 +146,4 @@ interface WithConfiguration { interface WithCreate extends Creatable, WebAppBase.DefinitionStages.WithCreate { } } - - /** The template for a web app update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, WebAppBase.Update { - } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DeploymentSlotBase.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DeploymentSlotBase.java new file mode 100644 index 0000000000000..8becb4aacb648 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/DeploymentSlotBase.java @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.appservice.models; + +import com.azure.resourcemanager.resources.fluentcore.model.Appliable; +import com.azure.resourcemanager.resources.fluentcore.model.Updatable; + +/** + * An immutable client-side representation of an Azure Web App deployment slot. + * + * @param the type of the resource + */ +public interface DeploymentSlotBase extends + WebAppBase, + Updatable> { + + /** + * Grouping of all the deployment slot update stages. + */ + interface UpdateStages { + /** + * A deployment slot update allowing runtime version to be specified. + */ + interface WithRuntimeVersion { + /** + * Specifies the runtime for the function app. + * @param runtime the Azure Functions runtime + * @return the next stage of the definition + */ + Update withRuntime(String runtime); + + /** + * Specifies the runtime version for the function app. + * @param version the version of the Azure Functions runtime + * @return the next stage of the definition + */ + Update withRuntimeVersion(String version); + + /** + * Uses the latest runtime version for the function app. + * @return the next stage of the definition + */ + Update withLatestRuntimeVersion(); + } + + /** + * A deployment slot update allowing docker image source to be specified. + */ + interface WithDockerContainerImage { + /** + * Specifies the docker container image to be one from Docker Hub. + * @param imageAndTag image and optional tag (eg 'image:tag') + * @return the next stage of the web app update + */ + Update withPublicDockerHubImage(String imageAndTag); + + /** + * Specifies the docker container image to be one from Docker Hub. + * @param imageAndTag image and optional tag (eg 'image:tag') + * @return the next stage of the web app update + */ + UpdateStages.WithCredentials withPrivateDockerHubImage(String imageAndTag); + + /** + * Specifies the docker container image to be one from a private registry. + * @param imageAndTag image and optional tag (eg 'image:tag') + * @param serverUrl the URL to the private registry server + * @return the next stage of the web app update + */ + UpdateStages.WithCredentials withPrivateRegistryImage(String imageAndTag, String serverUrl); + } + + /** + * A deployment slot update allowing docker hub credentials to be set. + */ + interface WithCredentials { + /** + * Specifies the username and password for Docker Hub. + * @param username the username for Docker Hub + * @param password the password for Docker Hub + * @return the next stage of the web app update + */ + Update withCredentials(String username, String password); + } + + /** + * A deployment slot update allowing docker startup command to be specified. + * This will replace the "CMD" section in the Dockerfile. + */ + interface WithStartUpCommand { + /** + * Specifies the startup command. + * + * @param startUpCommand startup command to replace "CMD" in Dockerfile + * @return the next stage of the web app update + */ + Update withStartUpCommand(String startUpCommand); + } + } + + /** The template for a web app update operation, containing all the settings that can be modified. */ + interface Update extends + Appliable, + WebAppBase.Update, + UpdateStages.WithRuntimeVersion, + UpdateStages.WithDockerContainerImage, + UpdateStages.WithStartUpCommand, + UpdateStages.WithCredentials { + } +} diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FunctionDeploymentSlot.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FunctionDeploymentSlot.java index b6a347f19e913..1bc09a05c1ef8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FunctionDeploymentSlot.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/FunctionDeploymentSlot.java @@ -8,7 +8,6 @@ import com.azure.resourcemanager.appservice.fluent.models.SiteInner; import com.azure.resourcemanager.resources.fluentcore.arm.models.HasParent; import com.azure.resourcemanager.resources.fluentcore.arm.models.IndependentChildResource; -import com.azure.resourcemanager.resources.fluentcore.model.Appliable; import com.azure.resourcemanager.resources.fluentcore.model.Creatable; import com.azure.resourcemanager.resources.fluentcore.model.Updatable; @@ -17,8 +16,8 @@ public interface FunctionDeploymentSlot extends IndependentChildResource, FunctionDeploymentSlotBasic, - WebAppBase, - Updatable, + DeploymentSlotBase, + Updatable>, HasParent { /************************************************************** @@ -77,8 +76,4 @@ interface WithCreate extends Creatable, WebAppBase.DefinitionStages.WithCreate { } } - - /** The template for a web app update operation, containing all the settings that can be modified. */ - interface Update extends Appliable, WebAppBase.Update { - } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PricingTier.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PricingTier.java index 4159c5e12cee7..6623b77bf98b8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PricingTier.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/PricingTier.java @@ -48,6 +48,15 @@ public final class PricingTier { /** V2 Premium pricing tier with a large size. */ public static final PricingTier PREMIUM_P3V2 = COLLECTION.addValue(new PricingTier("PremiumV2", "P3v2")); + /** V3 Premium pricing tier with a small size. */ + public static final PricingTier PREMIUM_P1V3 = COLLECTION.addValue(new PricingTier("PremiumV3", "P1v3")); + + /** V3 Premium pricing tier with a medium size. */ + public static final PricingTier PREMIUM_P2V3 = COLLECTION.addValue(new PricingTier("PremiumV3", "P2v3")); + + /** V3 Premium pricing tier with a large size. */ + public static final PricingTier PREMIUM_P3V3 = COLLECTION.addValue(new PricingTier("PremiumV3", "P3v3")); + /** Free pricing tier. This does not work with Linux web apps, host name bindings, and SSL bindings. */ public static final PricingTier FREE_F1 = COLLECTION.addValue(new PricingTier("Free", "F1")); diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WebApp.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WebApp.java index 4be65d631e10d..88ce8a6ac8325 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WebApp.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WebApp.java @@ -104,9 +104,10 @@ interface Definition extends DefinitionStages.Blank, DefinitionStages.NewAppServicePlanWithGroup, DefinitionStages.WithNewAppServicePlan, - DefinitionStages.WithDockerContainerImage, + DefinitionStages.WithLinuxAppFramework, DefinitionStages.WithCredentials, DefinitionStages.WithStartUpCommand, + DefinitionStages.WithWindowsAppFramework, DefinitionStages.WithCreate { } @@ -146,7 +147,7 @@ interface ExistingWindowsPlanWithGroup { * @param groupName the name of an existing resource group to put this resource in. * @return the next stage of the definition */ - WithWindowsRuntimeStack withExistingResourceGroup(String groupName); + WithWindowsAppFramework withExistingResourceGroup(String groupName); /** * Associates the resource with an existing resource group. @@ -154,7 +155,7 @@ interface ExistingWindowsPlanWithGroup { * @param group an existing resource group to put the resource in * @return the next stage of the definition */ - WithWindowsRuntimeStack withExistingResourceGroup(ResourceGroup group); + WithWindowsAppFramework withExistingResourceGroup(ResourceGroup group); /** * Creates a new resource group to put the resource in. @@ -164,7 +165,7 @@ interface ExistingWindowsPlanWithGroup { * @param name the name of the new group * @return the next stage of the definition */ - WithWindowsRuntimeStack withNewResourceGroup(String name); + WithWindowsAppFramework withNewResourceGroup(String name); /** * Creates a new resource group to put the resource in. @@ -174,7 +175,7 @@ interface ExistingWindowsPlanWithGroup { * * @return the next stage of the definition */ - WithWindowsRuntimeStack withNewResourceGroup(); + WithWindowsAppFramework withNewResourceGroup(); /** * Creates a new resource group to put the resource in, based on the definition specified. @@ -182,7 +183,7 @@ interface ExistingWindowsPlanWithGroup { * @param groupDefinition a creatable definition for a new resource group * @return the next stage of the definition */ - WithWindowsRuntimeStack withNewResourceGroup(Creatable groupDefinition); + WithWindowsAppFramework withNewResourceGroup(Creatable groupDefinition); } /** @@ -195,7 +196,7 @@ interface ExistingLinuxPlanWithGroup { * @param groupName the name of an existing resource group to put this resource in. * @return the next stage of the definition */ - WithDockerContainerImage withExistingResourceGroup(String groupName); + WithLinuxAppFramework withExistingResourceGroup(String groupName); /** * Associates the resource with an existing resource group. @@ -203,7 +204,7 @@ interface ExistingLinuxPlanWithGroup { * @param group an existing resource group to put the resource in * @return the next stage of the definition */ - WithDockerContainerImage withExistingResourceGroup(ResourceGroup group); + WithLinuxAppFramework withExistingResourceGroup(ResourceGroup group); /** * Creates a new resource group to put the resource in. @@ -213,7 +214,7 @@ interface ExistingLinuxPlanWithGroup { * @param name the name of the new group * @return the next stage of the definition */ - WithDockerContainerImage withNewResourceGroup(String name); + WithLinuxAppFramework withNewResourceGroup(String name); /** * Creates a new resource group to put the resource in. @@ -223,7 +224,7 @@ interface ExistingLinuxPlanWithGroup { * * @return the next stage of the definition */ - WithDockerContainerImage withNewResourceGroup(); + WithLinuxAppFramework withNewResourceGroup(); /** * Creates a new resource group to put the resource in, based on the definition specified. @@ -231,7 +232,7 @@ interface ExistingLinuxPlanWithGroup { * @param groupDefinition a creatable definition for a new resource group * @return the next stage of the definition */ - WithDockerContainerImage withNewResourceGroup(Creatable groupDefinition); + WithLinuxAppFramework withNewResourceGroup(Creatable groupDefinition); } /** A web app definition allowing app service plan to be set. */ @@ -242,14 +243,14 @@ interface WithNewAppServicePlan { * * @return the next stage of the definition */ - WithWindowsRuntimeStack withNewFreeAppServicePlan(); + WithWindowsAppFramework withNewFreeAppServicePlan(); /** * Creates a new shared app service plan. * * @return the next stage of the definition */ - WithWindowsRuntimeStack withNewSharedAppServicePlan(); + WithWindowsAppFramework withNewSharedAppServicePlan(); /** * Creates a new app service plan to use. @@ -257,7 +258,7 @@ interface WithNewAppServicePlan { * @param pricingTier the sku of the app service plan * @return the next stage of the definition */ - WithWindowsRuntimeStack withNewWindowsPlan(PricingTier pricingTier); + WithWindowsAppFramework withNewWindowsPlan(PricingTier pricingTier); /** * Creates a new app service plan to use. @@ -266,7 +267,7 @@ interface WithNewAppServicePlan { * @param pricingTier the sku of the app service plan * @return the next stage of the definition */ - WithWindowsRuntimeStack withNewWindowsPlan(String appServicePlanName, PricingTier pricingTier); + WithWindowsAppFramework withNewWindowsPlan(String appServicePlanName, PricingTier pricingTier); /** * Creates a new app service plan to use. @@ -274,7 +275,7 @@ interface WithNewAppServicePlan { * @param appServicePlanCreatable the new app service plan creatable * @return the next stage of the definition */ - WithWindowsRuntimeStack withNewWindowsPlan(Creatable appServicePlanCreatable); + WithWindowsAppFramework withNewWindowsPlan(Creatable appServicePlanCreatable); /** * Creates a new app service plan to use. @@ -282,7 +283,7 @@ interface WithNewAppServicePlan { * @param pricingTier the sku of the app service plan * @return the next stage of the definition */ - WithDockerContainerImage withNewLinuxPlan(PricingTier pricingTier); + WithLinuxAppFramework withNewLinuxPlan(PricingTier pricingTier); /** * Creates a new app service plan to use. @@ -291,7 +292,7 @@ interface WithNewAppServicePlan { * @param pricingTier the sku of the app service plan * @return the next stage of the definition */ - WithDockerContainerImage withNewLinuxPlan(String appServicePlanName, PricingTier pricingTier); + WithLinuxAppFramework withNewLinuxPlan(String appServicePlanName, PricingTier pricingTier); /** * Creates a new app service plan to use. @@ -299,19 +300,11 @@ interface WithNewAppServicePlan { * @param appServicePlanCreatable the new app service plan creatable * @return the next stage of the definition */ - WithDockerContainerImage withNewLinuxPlan(Creatable appServicePlanCreatable); + WithLinuxAppFramework withNewLinuxPlan(Creatable appServicePlanCreatable); } - /** A web app definition allowing docker image source to be specified. */ - interface WithDockerContainerImage { - /** - * Specifies the docker container image to be a built in one. - * - * @param runtimeStack the runtime stack installed on the image - * @return the next stage of the definition - */ - WithCreate withBuiltInImage(RuntimeStack runtimeStack); - + /** A web app definition allowing container image source to be specified. */ + interface WithContainerImage { /** * Specifies the docker container image to be one from Docker Hub. * @@ -338,6 +331,17 @@ interface WithDockerContainerImage { WithCredentials withPrivateRegistryImage(String imageAndTag, String serverUrl); } + /** A web app definition allowing app framework on Linux operating system to be specified. */ + interface WithLinuxAppFramework extends WithContainerImage { + /** + * Specifies the docker container image to be a built in one. + * + * @param runtimeStack the runtime stack installed on the image + * @return the next stage of the definition + */ + WithCreate withBuiltInImage(RuntimeStack runtimeStack); + } + /** A web app definition allowing docker registry credentials to be set. */ interface WithCredentials { /** @@ -364,8 +368,8 @@ interface WithStartUpCommand extends WithCreate { WithCreate withStartUpCommand(String startUpCommand); } - /** A web app definition allowing runtime stack on Windows operating system to be specified. */ - interface WithWindowsRuntimeStack extends WithCreate { + /** A web app definition allowing app framework on Windows operating system to be specified. */ + interface WithWindowsAppFramework extends WithContainerImage, WithCreate { /** * Specifies the runtime stack for the web app on Windows operating system. * @@ -436,15 +440,8 @@ interface WithAppServicePlan { Update withExistingAppServicePlan(AppServicePlan appServicePlan); } - /** A web app update allowing docker image source to be specified. */ - interface WithDockerContainerImage { - /** - * Specifies the docker container image to be a built in one. - * - * @param runtimeStack the runtime stack installed on the image - * @return the next stage of the web app update - */ - Update withBuiltInImage(RuntimeStack runtimeStack); + /** A web app update allowing container image source to be specified. */ + interface WithContainerImage { /** * Specifies the docker container image to be one from Docker Hub. @@ -472,6 +469,17 @@ interface WithDockerContainerImage { WithCredentials withPrivateRegistryImage(String imageAndTag, String serverUrl); } + /** A web app update allowing built-in container image on Linux operating system to be specified. */ + interface WithLinuxAppImage { + /** + * Specifies the docker container image to be a built in one. + * + * @param runtimeStack the runtime stack installed on the image + * @return the next stage of the web app update + */ + Update withBuiltInImage(RuntimeStack runtimeStack); + } + /** A web app update allowing docker hub credentials to be set. */ interface WithCredentials { /** @@ -514,8 +522,9 @@ interface WithWindowsRuntimeStack { interface Update extends Appliable, UpdateStages.WithAppServicePlan, + UpdateStages.WithContainerImage, UpdateStages.WithWindowsRuntimeStack, - WebAppBase.Update, - UpdateStages.WithDockerContainerImage { + UpdateStages.WithLinuxAppImage, + WebAppBase.Update { } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WebAppBase.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WebAppBase.java index 40f1f579af681..bb1dc96ce5ea8 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WebAppBase.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/models/WebAppBase.java @@ -126,6 +126,9 @@ public interface WebAppBase extends HasName, GroupableResource { */ WithCreate withPhpVersion(PhpVersion version); - /** - * Turn off PHP support. - * - * @return the next stage of the definition - */ - WithCreate withoutPhp(); - /** * Specifies the Java version. * @@ -1074,6 +1070,13 @@ interface WithSiteConfigs { */ Update withPhpVersion(PhpVersion version); + /** + * Turn off PHP support. + * + * @return the next stage of the update + */ + Update withoutPhp(); + /** * Specifies the Java version. * diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/FunctionDeploymentSlotsTests.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/FunctionDeploymentSlotsTests.java index 7a4f30519acf9..87bd46ad36126 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/FunctionDeploymentSlotsTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/FunctionDeploymentSlotsTests.java @@ -12,6 +12,7 @@ import com.azure.resourcemanager.appservice.models.FunctionApp; import com.azure.resourcemanager.appservice.models.FunctionDeploymentSlot; import com.azure.resourcemanager.appservice.models.FunctionDeploymentSlotBasic; +import com.azure.resourcemanager.appservice.models.FunctionRuntimeStack; import com.azure.resourcemanager.appservice.models.PricingTier; import com.azure.resourcemanager.appservice.models.PythonVersion; import com.azure.resourcemanager.test.utils.TestUtilities; @@ -145,4 +146,28 @@ public void canCRUDFunctionSwapSlots() throws Exception { Assertions.assertEquals("sticky2value", slot3AppSettings.get("sticky2key").value()); Assertions.assertEquals("stickyvalue", slot3AppSettings.get("stickykey").value()); } + + private static final String FUNCTION_APP_PACKAGE_URL = + "https://raw.githubusercontent.com/Azure/azure-sdk-for-java/master/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/java-functions.zip"; + + @Test + public void canCRUDFunctionSlots() { + FunctionApp functionApp1 = appServiceManager.functionApps().define(webappName1) + .withRegion(Region.US_EAST) + .withNewResourceGroup(rgName) + .withNewLinuxAppServicePlan(PricingTier.STANDARD_S1) + .withBuiltInImage(FunctionRuntimeStack.JAVA_8) + .withHttpsOnly(true) + .withAppSetting("WEBSITE_RUN_FROM_PACKAGE", FUNCTION_APP_PACKAGE_URL) + .create(); + Assertions.assertNotNull(functionApp1); + + FunctionDeploymentSlot slot1 = functionApp1.deploymentSlots().define("slot1") + .withConfigurationFromParent() + .create(); + + slot1.update() + .withPublicDockerHubImage("wordpress") + .apply(); + } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsTests.java b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsTests.java index 7a50c09b08478..b7357f8a4534f 100644 --- a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsTests.java +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/java/com/azure/resourcemanager/appservice/WebAppsTests.java @@ -8,6 +8,7 @@ import com.azure.resourcemanager.appservice.models.AppServicePlan; import com.azure.resourcemanager.appservice.models.LogLevel; import com.azure.resourcemanager.appservice.models.NetFrameworkVersion; +import com.azure.resourcemanager.appservice.models.OperatingSystem; import com.azure.resourcemanager.appservice.models.PricingTier; import com.azure.resourcemanager.appservice.models.RemoteVisualStudioVersion; import com.azure.resourcemanager.appservice.models.WebApp; @@ -169,4 +170,27 @@ public void canListWebApp() throws Exception { Assertions.assertEquals(webApp1.diagnosticLogsConfig().applicationLoggingStorageBlobLogLevel(), webAppBasic1Refreshed.diagnosticLogsConfig().applicationLoggingStorageBlobLogLevel()); } + + @Test + public void canCRUDWebAppWithContainer() { + rgName2 = null; + + AppServicePlan plan1 = appServiceManager.appServicePlans().define(appServicePlanName1) + .withRegion(Region.US_EAST) // many other regions does not have quota for PREMIUM_P1V3 + .withNewResourceGroup(rgName1) + .withPricingTier(PricingTier.PREMIUM_P1V3) + .withOperatingSystem(OperatingSystem.WINDOWS) + .create(); + + final String imageAndTag = "mcr.microsoft.com/azure-app-service/samples/aspnethelloworld:latest"; + + WebApp webApp1 = appServiceManager.webApps().define(webappName1) + .withExistingWindowsPlan(plan1) + .withExistingResourceGroup(rgName1) + .withPublicDockerHubImage(imageAndTag) + .create(); + + Assertions.assertNotNull(webApp1.windowsFxVersion()); + Assertions.assertTrue(webApp1.windowsFxVersion().contains(imageAndTag)); + } } diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/session-records/FunctionDeploymentSlotsTests.canCRUDFunctionSlots.json b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/session-records/FunctionDeploymentSlotsTests.canCRUDFunctionSlots.json new file mode 100644 index 0000000000000..bdc6d1710f493 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/session-records/FunctionDeploymentSlotsTests.canCRUDFunctionSlots.json @@ -0,0 +1,698 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg7957246d?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "229590a4-29d6-4ece-9fdd-4bae282a16c0", + "Content-Type" : "application/json" + }, + "Response" : { + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "201", + "Date" : "Sat, 10 Oct 2020 03:53:38 GMT", + "x-ms-correlation-request-id" : "cf2f50f3-2943-4164-9870-fe140757c288", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035338Z:cf2f50f3-2943-4164-9870-fe140757c288", + "Expires" : "-1", + "Content-Length" : "231", + "x-ms-request-id" : "cf2f50f3-2943-4164-9870-fe140757c288", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d\",\"name\":\"javacsmrg7957246d\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Storage/storageAccounts/d2709f1f97b748abbd9e?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "0c6f28e2-4818-4f72-86c1-6b4ad183bde2", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "Pragma" : "no-cache", + "StatusCode" : "202", + "Date" : "Sat, 10 Oct 2020 03:53:45 GMT", + "x-ms-correlation-request-id" : "d8e0c9ea-2c1c-450e-bfea-6b4cbb4b1a25", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Retry-After" : "0", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035346Z:d8e0c9ea-2c1c-450e-bfea-6b4cbb4b1a25", + "Expires" : "-1", + "Content-Length" : "0", + "x-ms-request-id" : "7ae4e8bc-d0e4-466b-a4a0-3f17b7693a94", + "Body" : "", + "x-ms-client-request-id" : "0c6f28e2-4818-4f72-86c1-6b4ad183bde2", + "Content-Type" : "text/plain; charset=utf-8", + "Location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/7ae4e8bc-d0e4-466b-a4a0-3f17b7693a94?monitor=true&api-version=2019-06-01" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/7ae4e8bc-d0e4-466b-a4a0-3f17b7693a94?monitor=true&api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.fluentcore.policy/null (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "eeab6818-4ab1-4204-a79b-fea5ed6bf3df" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:03 GMT", + "x-ms-correlation-request-id" : "ff938d7f-f36a-4a94-9c28-0ff8b19e0bd9", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035404Z:ff938d7f-f36a-4a94-9c28-0ff8b19e0bd9", + "Expires" : "-1", + "Content-Length" : "1219", + "x-ms-request-id" : "fa824eda-b2b1-42e6-b0a9-25b138843eaa", + "Body" : "{\"sku\":{\"name\":\"Standard_GRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Storage/storageAccounts/d2709f1f97b748abbd9e\",\"name\":\"d2709f1f97b748abbd9e\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-10-10T03:53:45.9486249Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-10-10T03:53:45.9486249Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-10-10T03:53:45.8549270Z\",\"primaryEndpoints\":{\"blob\":\"https://d2709f1f97b748abbd9e.blob.core.windows.net/\",\"queue\":\"https://d2709f1f97b748abbd9e.queue.core.windows.net/\",\"table\":\"https://d2709f1f97b748abbd9e.table.core.windows.net/\",\"file\":\"https://d2709f1f97b748abbd9e.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\",\"secondaryLocation\":\"westus\",\"statusOfSecondary\":\"available\"}}", + "x-ms-client-request-id" : "eeab6818-4ab1-4204-a79b-fea5ed6bf3df", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/serverfarms/java-funcapp-506889plan850169c?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "808f3f0a-9305-4023-a9e5-1c3d64bff8e4", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:04 GMT", + "x-ms-correlation-request-id" : "314463bd-c909-4185-9016-b42af8ca100b", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035404Z:314463bd-c909-4185-9016-b42af8ca100b", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "1383", + "x-ms-request-id" : "39dc08a5-2eb4-4d16-91d5-7cb0e06885d8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/serverfarms/java-funcapp-506889plan850169c\",\"name\":\"java-funcapp-506889plan850169c\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"linux\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"serverFarmId\":12065,\"name\":\"java-funcapp-506889plan850169c\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg7957246d-EastUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":10,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"East US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"linux\",\"resourceGroup\":\"javacsmrg7957246d\",\"reserved\":true,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-blu-179_12065\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null,\"existingServerFarmIds\":null},\"sku\":{\"name\":\"S1\",\"tier\":\"Standard\",\"size\":\"S1\",\"family\":\"S\",\"capacity\":1}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Storage/storageAccounts/d2709f1f97b748abbd9e?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "c359e66b-00ee-459b-a880-ed3aea887ec8", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11998", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:04 GMT", + "x-ms-correlation-request-id" : "a159e8d5-2a22-4da9-867a-fcd1bcd34e78", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035404Z:a159e8d5-2a22-4da9-867a-fcd1bcd34e78", + "Expires" : "-1", + "Content-Length" : "1219", + "x-ms-request-id" : "42e8fc6c-18f8-47d7-943c-d2700ff8d0a5", + "Body" : "{\"sku\":{\"name\":\"Standard_GRS\",\"tier\":\"Standard\"},\"kind\":\"Storage\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Storage/storageAccounts/d2709f1f97b748abbd9e\",\"name\":\"d2709f1f97b748abbd9e\",\"type\":\"Microsoft.Storage/storageAccounts\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"privateEndpointConnections\":[],\"networkAcls\":{\"bypass\":\"AzureServices\",\"virtualNetworkRules\":[],\"ipRules\":[],\"defaultAction\":\"Allow\"},\"supportsHttpsTrafficOnly\":true,\"encryption\":{\"services\":{\"file\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-10-10T03:53:45.9486249Z\"},\"blob\":{\"keyType\":\"Account\",\"enabled\":true,\"lastEnabledTime\":\"2020-10-10T03:53:45.9486249Z\"}},\"keySource\":\"Microsoft.Storage\"},\"provisioningState\":\"Succeeded\",\"creationTime\":\"2020-10-10T03:53:45.8549270Z\",\"primaryEndpoints\":{\"blob\":\"https://d2709f1f97b748abbd9e.blob.core.windows.net/\",\"queue\":\"https://d2709f1f97b748abbd9e.queue.core.windows.net/\",\"table\":\"https://d2709f1f97b748abbd9e.table.core.windows.net/\",\"file\":\"https://d2709f1f97b748abbd9e.file.core.windows.net/\"},\"primaryLocation\":\"eastus\",\"statusOfPrimary\":\"available\",\"secondaryLocation\":\"westus\",\"statusOfSecondary\":\"available\"}}", + "x-ms-client-request-id" : "c359e66b-00ee-459b-a880-ed3aea887ec8", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "7fdccbc3-fbae-4b99-a895-463873ba31d1", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:25 GMT", + "x-ms-correlation-request-id" : "186f3570-3f04-4cca-be64-6ecb04d07e6a", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "499", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB9022088F5\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035426Z:186f3570-3f04-4cca-be64-6ecb04d07e6a", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "5580", + "x-ms-request-id" : "3435606e-51cc-4efa-9397-079fd76ddde8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889\",\"name\":\"java-funcapp-506889\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"functionapp,linux\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"name\":\"java-funcapp-506889\",\"state\":\"Running\",\"hostNames\":[\"java-funcapp-506889.azurewebsites.net\"],\"webSpace\":\"javacsmrg7957246d-EastUSwebspace\",\"selfLink\":\"https://waws-prod-blu-179.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7957246d-EastUSwebspace/sites/java-funcapp-506889\",\"repositorySiteName\":\"java-funcapp-506889\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-funcapp-506889.azurewebsites.net\",\"java-funcapp-506889.scm.azurewebsites.net\"],\"siteProperties\":{\"metadata\":null,\"properties\":[{\"name\":\"LinuxFxVersion\",\"value\":\"\"},{\"name\":\"WindowsFxVersion\",\"value\":null}],\"appSettings\":null},\"availabilityState\":\"Normal\",\"sslCertificates\":null,\"csrs\":[],\"cers\":null,\"siteMode\":null,\"hostNameSslStates\":[{\"name\":\"java-funcapp-506889.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-funcapp-506889.scm.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Repository\"}],\"computeMode\":null,\"serverFarm\":null,\"serverFarmId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/serverfarms/java-funcapp-506889plan850169c\",\"reserved\":true,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2020-10-10T03:54:09.1133333\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":{\"numberOfWorkers\":null,\"defaultDocuments\":null,\"netFrameworkVersion\":null,\"phpVersion\":null,\"pythonVersion\":null,\"nodeVersion\":null,\"powerShellVersion\":null,\"linuxFxVersion\":null,\"windowsFxVersion\":null,\"requestTracingEnabled\":null,\"remoteDebuggingEnabled\":null,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":null,\"azureMonitorLogCategories\":null,\"acrUseManagedIdentityCreds\":false,\"acrUserManagedIdentityID\":null,\"logsDirectorySizeLimit\":null,\"detailedErrorLoggingEnabled\":null,\"publishingUsername\":null,\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":null,\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":null,\"use32BitWorkerProcess\":null,\"webSocketsEnabled\":null,\"alwaysOn\":null,\"javaVersion\":null,\"javaContainer\":null,\"javaContainerVersion\":null,\"appCommandLine\":null,\"managedPipelineMode\":null,\"virtualApplications\":null,\"winAuthAdminState\":null,\"winAuthTenantState\":null,\"customAppPoolIdentityAdminState\":null,\"customAppPoolIdentityTenantState\":null,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":null,\"routingRules\":null,\"experiments\":null,\"limits\":null,\"autoHealEnabled\":null,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":null,\"vnetRouteAllEnabled\":null,\"cors\":null,\"push\":null,\"apiDefinition\":null,\"apiManagementConfig\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":null,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictionsUseMain\":null,\"http20Enabled\":null,\"minTlsVersion\":null,\"scmMinTlsVersion\":null,\"ftpsState\":null,\"preWarmedInstanceCount\":null,\"functionAppScaleLimit\":null,\"healthCheckPath\":null,\"fileChangeAuditEnabled\":null,\"functionsRuntimeScaleMonitoringEnabled\":null,\"websiteTimeZone\":null,\"minimumElasticInstanceCount\":0},\"deploymentId\":\"java-funcapp-506889\",\"trafficManagerHostNames\":null,\"sku\":\"Standard\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":false,\"clientCertEnabled\":false,\"clientCertMode\":\"Required\",\"clientCertExclusionPaths\":null,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"customDomainVerificationId\":\"0FFA32248F34E67BEAA6BC639753005F4F7BED4F59950F668037EEAB327F1054\",\"kind\":\"functionapp,linux\",\"inboundIpAddress\":\"40.71.11.167\",\"possibleInboundIpAddresses\":\"40.71.11.167\",\"ftpUsername\":\"java-funcapp-506889\\\\$java-funcapp-506889\",\"ftpsHostName\":\"ftps://waws-prod-blu-179.ftp.azurewebsites.windows.net/site/wwwroot\",\"outboundIpAddresses\":\"40.71.11.167,52.152.129.80,52.188.122.145,52.188.107.149,52.188.108.116\",\"possibleOutboundIpAddresses\":\"40.71.11.167,52.152.129.80,52.188.122.145,52.188.107.149,52.188.108.116,52.188.167.27,52.188.166.225,52.188.120.234,52.188.167.46,52.188.167.56\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-blu-179\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg7957246d\",\"defaultHostName\":\"java-funcapp-506889.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":true,\"redundancyMode\":\"None\",\"inProgressOperationId\":null,\"geoDistributions\":null,\"privateEndpointConnections\":null,\"buildVersion\":null,\"targetBuildVersion\":null,\"migrationState\":null}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/web?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "8a313159-00ec-4487-aae1-e85c8ecf58a6", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:27 GMT", + "x-ms-correlation-request-id" : "1473ce9a-202e-4817-85b5-a55a431d25c0", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB9022088F5\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035428Z:1473ce9a-202e-4817-85b5-a55a431d25c0", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "3692", + "x-ms-request-id" : "e0c3f16a-65b8-487f-9b27-b45ff5192bed", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889\",\"name\":\"java-funcapp-506889\",\"type\":\"Microsoft.Web/sites\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"numberOfWorkers\":1,\"defaultDocuments\":[\"Default.htm\",\"Default.html\",\"Default.asp\",\"index.htm\",\"index.html\",\"iisstart.htm\",\"default.aspx\",\"index.php\"],\"netFrameworkVersion\":\"v4.0\",\"phpVersion\":\"\",\"pythonVersion\":\"\",\"nodeVersion\":\"\",\"powerShellVersion\":\"\",\"linuxFxVersion\":\"java|8\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"azureMonitorLogCategories\":null,\"acrUseManagedIdentityCreds\":false,\"acrUserManagedIdentityID\":null,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-funcapp-506889\",\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":{},\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":\"None\",\"use32BitWorkerProcess\":false,\"webSocketsEnabled\":false,\"alwaysOn\":true,\"javaVersion\":null,\"javaContainer\":null,\"javaContainerVersion\":null,\"appCommandLine\":\"\",\"managedPipelineMode\":\"Integrated\",\"virtualApplications\":[{\"virtualPath\":\"/\",\"physicalPath\":\"site\\\\wwwroot\",\"preloadEnabled\":true,\"virtualDirectories\":null}],\"winAuthAdminState\":0,\"winAuthTenantState\":0,\"customAppPoolIdentityAdminState\":false,\"customAppPoolIdentityTenantState\":false,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":\"LeastRequests\",\"routingRules\":[],\"experiments\":{\"rampUpRules\":[]},\"limits\":null,\"autoHealEnabled\":false,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":\"\",\"vnetRouteAllEnabled\":false,\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretSettingName\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"aadClaimsAuthorization\":null,\"googleClientId\":null,\"googleClientSecret\":null,\"googleClientSecretSettingName\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookAppSecretSettingName\":null,\"facebookOAuthScopes\":null,\"gitHubClientId\":null,\"gitHubClientSecret\":null,\"gitHubClientSecretSettingName\":null,\"gitHubOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"twitterConsumerSecretSettingName\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountClientSecretSettingName\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":{\"allowedOrigins\":[\"https://functions.azure.com\",\"https://functions-staging.azure.com\",\"https://functions-next.azure.com\"],\"supportCredentials\":false},\"push\":null,\"apiDefinition\":null,\"apiManagementConfig\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictionsUseMain\":false,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"scmMinTlsVersion\":\"1.0\",\"ftpsState\":\"AllAllowed\",\"preWarmedInstanceCount\":0,\"functionAppScaleLimit\":0,\"healthCheckPath\":null,\"fileChangeAuditEnabled\":false,\"functionsRuntimeScaleMonitoringEnabled\":false,\"websiteTimeZone\":null,\"minimumElasticInstanceCount\":0}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Storage/storageAccounts/d2709f1f97b748abbd9e/listKeys?api-version=2019-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.storage.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "9d21c2a5-4db2-47bd-90bb-8ebeb4682bc8", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:27 GMT", + "x-ms-correlation-request-id" : "93a586e7-2c95-4909-94ee-417add68d70c", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "11999", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035428Z:93a586e7-2c95-4909-94ee-417add68d70c", + "Expires" : "-1", + "Content-Length" : "288", + "x-ms-request-id" : "575eb503-ab37-47bd-9100-030d930af283", + "Body" : "{\"keys\":[{\"keyName\":\"key1\",\"value\":\"***REMOVED***\",\"permissions\":\"FULL\"},{\"keyName\":\"key2\",\"value\":\"***REMOVED***\",\"permissions\":\"FULL\"}]}", + "x-ms-client-request-id" : "9d21c2a5-4db2-47bd-90bb-8ebeb4682bc8", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/serverfarms/java-funcapp-506889plan850169c?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "e4679dc0-cbb2-49c1-865f-d74453c5d682", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11997", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:27 GMT", + "x-ms-correlation-request-id" : "cde5df06-c94f-45cc-8c25-113d40654104", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035428Z:cde5df06-c94f-45cc-8c25-113d40654104", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "1383", + "x-ms-request-id" : "e88f9ad2-d285-463b-9aba-5f6a181f2de2", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/serverfarms/java-funcapp-506889plan850169c\",\"name\":\"java-funcapp-506889plan850169c\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"linux\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"serverFarmId\":12065,\"name\":\"java-funcapp-506889plan850169c\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg7957246d-EastUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":10,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"East US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":1,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"linux\",\"resourceGroup\":\"javacsmrg7957246d\",\"reserved\":true,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-blu-179_12065\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null,\"existingServerFarmIds\":null},\"sku\":{\"name\":\"S1\",\"tier\":\"Standard\",\"size\":\"S1\",\"family\":\"S\",\"capacity\":1}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/appsettings/list?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "6f148b25-e8dc-4ce0-a172-837641adbae2", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:28 GMT", + "x-ms-correlation-request-id" : "e106d88b-7fd1-485d-ac8d-98fe84a9c013", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "11999", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035429Z:e106d88b-7fd1-485d-ac8d-98fe84a9c013", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "300", + "x-ms-request-id" : "24171609-f420-445b-aa5d-8a2aadc69559", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"FUNCTIONS_EXTENSION_VERSION\":\"~1\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/appsettings?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "e5f47dd7-0b41-4f0c-ad28-82153c8059df", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:29 GMT", + "x-ms-correlation-request-id" : "3834a53b-ec90-4177-b30f-f5e410b11467", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB90E232E55\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035430Z:3834a53b-ec90-4177-b30f-f5e410b11467", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "962", + "x-ms-request-id" : "1204a29c-1425-4fac-bd3e-6d23b299cca4", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"FUNCTIONS_EXTENSION_VERSION\":\"~3\",\"AzureWebJobsDashboard\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\",\"WEBSITE_RUN_FROM_PACKAGE\":\"https://raw.githubusercontent.com/Azure/azure-sdk-for-java/master/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/java-functions.zip\",\"FUNCTIONS_WORKER_RUNTIME\":\"java\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "0384872c-d658-4676-89f9-266ee6d0e234", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:51 GMT", + "x-ms-correlation-request-id" : "ec41fb1a-71ac-491c-a801-289dfec1e6f5", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "499", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB90E232E55\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035452Z:ec41fb1a-71ac-491c-a801-289dfec1e6f5", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "5677", + "x-ms-request-id" : "8e588dbb-f34d-42db-b625-965926c65426", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1\",\"name\":\"java-funcapp-506889/slot1\",\"type\":\"Microsoft.Web/sites/slots\",\"kind\":\"functionapp,linux\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"name\":\"java-funcapp-506889(slot1)\",\"state\":\"Running\",\"hostNames\":[\"java-funcapp-506889-slot1.azurewebsites.net\"],\"webSpace\":\"javacsmrg7957246d-EastUSwebspace\",\"selfLink\":\"https://waws-prod-blu-179.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7957246d-EastUSwebspace/sites/java-funcapp-506889\",\"repositorySiteName\":\"java-funcapp-506889\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-funcapp-506889-slot1.azurewebsites.net\",\"java-funcapp-506889-slot1.scm.azurewebsites.net\"],\"siteProperties\":{\"metadata\":null,\"properties\":[{\"name\":\"LinuxFxVersion\",\"value\":\"java|8\"},{\"name\":\"WindowsFxVersion\",\"value\":null}],\"appSettings\":null},\"availabilityState\":\"Normal\",\"sslCertificates\":null,\"csrs\":[],\"cers\":null,\"siteMode\":null,\"hostNameSslStates\":[{\"name\":\"java-funcapp-506889-slot1.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-funcapp-506889-slot1.scm.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Repository\"}],\"computeMode\":null,\"serverFarm\":null,\"serverFarmId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/serverfarms/java-funcapp-506889plan850169c\",\"reserved\":true,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2020-10-10T03:54:34.9466667\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":{\"numberOfWorkers\":null,\"defaultDocuments\":null,\"netFrameworkVersion\":null,\"phpVersion\":null,\"pythonVersion\":null,\"nodeVersion\":null,\"powerShellVersion\":null,\"linuxFxVersion\":null,\"windowsFxVersion\":null,\"requestTracingEnabled\":null,\"remoteDebuggingEnabled\":null,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":null,\"azureMonitorLogCategories\":null,\"acrUseManagedIdentityCreds\":false,\"acrUserManagedIdentityID\":null,\"logsDirectorySizeLimit\":null,\"detailedErrorLoggingEnabled\":null,\"publishingUsername\":null,\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":null,\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":null,\"use32BitWorkerProcess\":null,\"webSocketsEnabled\":null,\"alwaysOn\":null,\"javaVersion\":null,\"javaContainer\":null,\"javaContainerVersion\":null,\"appCommandLine\":null,\"managedPipelineMode\":null,\"virtualApplications\":null,\"winAuthAdminState\":null,\"winAuthTenantState\":null,\"customAppPoolIdentityAdminState\":null,\"customAppPoolIdentityTenantState\":null,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":null,\"routingRules\":null,\"experiments\":null,\"limits\":null,\"autoHealEnabled\":null,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":null,\"vnetRouteAllEnabled\":null,\"cors\":null,\"push\":null,\"apiDefinition\":null,\"apiManagementConfig\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":null,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictionsUseMain\":null,\"http20Enabled\":null,\"minTlsVersion\":null,\"scmMinTlsVersion\":null,\"ftpsState\":null,\"preWarmedInstanceCount\":null,\"functionAppScaleLimit\":null,\"healthCheckPath\":null,\"fileChangeAuditEnabled\":null,\"functionsRuntimeScaleMonitoringEnabled\":null,\"websiteTimeZone\":null,\"minimumElasticInstanceCount\":0},\"deploymentId\":\"java-funcapp-506889__366e\",\"trafficManagerHostNames\":null,\"sku\":\"Standard\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":false,\"clientCertEnabled\":false,\"clientCertMode\":\"Required\",\"clientCertExclusionPaths\":null,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"customDomainVerificationId\":\"0FFA32248F34E67BEAA6BC639753005F4F7BED4F59950F668037EEAB327F1054\",\"kind\":\"functionapp,linux\",\"inboundIpAddress\":\"40.71.11.167\",\"possibleInboundIpAddresses\":\"40.71.11.167\",\"ftpUsername\":\"java-funcapp-506889__slot1\\\\$java-funcapp-506889__slot1\",\"ftpsHostName\":\"ftps://waws-prod-blu-179.ftp.azurewebsites.windows.net/site/wwwroot\",\"outboundIpAddresses\":\"40.71.11.167,52.152.129.80,52.188.122.145,52.188.107.149,52.188.108.116\",\"possibleOutboundIpAddresses\":\"40.71.11.167,52.152.129.80,52.188.122.145,52.188.107.149,52.188.108.116,52.188.167.27,52.188.166.225,52.188.120.234,52.188.167.46,52.188.167.56\",\"containerSize\":1536,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-blu-179\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg7957246d\",\"defaultHostName\":\"java-funcapp-506889-slot1.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false,\"redundancyMode\":\"None\",\"inProgressOperationId\":null,\"geoDistributions\":null,\"privateEndpointConnections\":null,\"buildVersion\":null,\"targetBuildVersion\":null,\"migrationState\":null}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/web?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "44ea81ef-2818-4277-ac08-6fd814fd4265", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:53 GMT", + "x-ms-correlation-request-id" : "46e04c6e-b755-48c9-ac4f-571ed7f8997f", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB911BA44CB\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035454Z:46e04c6e-b755-48c9-ac4f-571ed7f8997f", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "3727", + "x-ms-request-id" : "d780e025-373f-4ffc-b4f1-383fb90d82bf", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1\",\"name\":\"java-funcapp-506889/slot1\",\"type\":\"Microsoft.Web/sites/slots\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"numberOfWorkers\":1,\"defaultDocuments\":[\"Default.htm\",\"Default.html\",\"Default.asp\",\"index.htm\",\"index.html\",\"iisstart.htm\",\"default.aspx\",\"index.php\"],\"netFrameworkVersion\":\"v4.0\",\"phpVersion\":\"\",\"pythonVersion\":\"\",\"nodeVersion\":\"\",\"powerShellVersion\":\"\",\"linuxFxVersion\":\"java|8\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":\"VS2019\",\"httpLoggingEnabled\":false,\"azureMonitorLogCategories\":null,\"acrUseManagedIdentityCreds\":false,\"acrUserManagedIdentityID\":null,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-funcapp-506889__slot1\",\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":{},\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":\"None\",\"use32BitWorkerProcess\":false,\"webSocketsEnabled\":false,\"alwaysOn\":true,\"javaVersion\":null,\"javaContainer\":null,\"javaContainerVersion\":null,\"appCommandLine\":\"\",\"managedPipelineMode\":\"Integrated\",\"virtualApplications\":[{\"virtualPath\":\"/\",\"physicalPath\":\"site\\\\wwwroot\",\"preloadEnabled\":true,\"virtualDirectories\":null}],\"winAuthAdminState\":0,\"winAuthTenantState\":0,\"customAppPoolIdentityAdminState\":false,\"customAppPoolIdentityTenantState\":false,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":\"LeastRequests\",\"routingRules\":[],\"experiments\":{\"rampUpRules\":[]},\"limits\":null,\"autoHealEnabled\":false,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":\"\",\"vnetRouteAllEnabled\":false,\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretSettingName\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"aadClaimsAuthorization\":null,\"googleClientId\":null,\"googleClientSecret\":null,\"googleClientSecretSettingName\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookAppSecretSettingName\":null,\"facebookOAuthScopes\":null,\"gitHubClientId\":null,\"gitHubClientSecret\":null,\"gitHubClientSecretSettingName\":null,\"gitHubOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"twitterConsumerSecretSettingName\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountClientSecretSettingName\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":{\"allowedOrigins\":[\"https://functions.azure.com\",\"https://functions-staging.azure.com\",\"https://functions-next.azure.com\"],\"supportCredentials\":false},\"push\":null,\"apiDefinition\":null,\"apiManagementConfig\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictionsUseMain\":false,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"scmMinTlsVersion\":\"1.0\",\"ftpsState\":\"AllAllowed\",\"preWarmedInstanceCount\":0,\"functionAppScaleLimit\":0,\"healthCheckPath\":null,\"fileChangeAuditEnabled\":false,\"functionsRuntimeScaleMonitoringEnabled\":false,\"websiteTimeZone\":null,\"minimumElasticInstanceCount\":0}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/slotConfigNames?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "802c162d-cb4d-4e65-9c4f-639458b74ceb", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11996", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:54 GMT", + "x-ms-correlation-request-id" : "ccce5c82-282d-48d6-ab99-5677a3139999", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035454Z:ccce5c82-282d-48d6-ab99-5677a3139999", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "198", + "x-ms-request-id" : "3f939443-cf14-4298-b6b7-0aa9410725d2", + "Body" : "{\"id\":null,\"name\":\"java-funcapp-506889\",\"type\":\"Microsoft.Web/sites\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"connectionStringNames\":null,\"appSettingNames\":null,\"azureStorageConfigNames\":null}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/appsettings/list?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "d9ee02eb-6d1c-48e4-89c6-2f259f387414", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:53 GMT", + "x-ms-correlation-request-id" : "ce095827-a93c-46ae-843a-ebdba12d408e", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "11998", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035454Z:ce095827-a93c-46ae-843a-ebdba12d408e", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "962", + "x-ms-request-id" : "627d400b-c1bf-4525-89c6-ea7e5e30630f", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"FUNCTIONS_EXTENSION_VERSION\":\"~3\",\"AzureWebJobsDashboard\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\",\"WEBSITE_RUN_FROM_PACKAGE\":\"https://raw.githubusercontent.com/Azure/azure-sdk-for-java/master/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/java-functions.zip\",\"FUNCTIONS_WORKER_RUNTIME\":\"java\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/slotConfigNames?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "fda377ad-9570-400e-9c55-3dbf541b62b5", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11999", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:54 GMT", + "x-ms-correlation-request-id" : "fe79b4f8-e23d-4c96-95bf-90c321c9d27f", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035455Z:fe79b4f8-e23d-4c96-95bf-90c321c9d27f", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "198", + "x-ms-request-id" : "451335ae-e292-4c9a-9ad3-3aeecf508754", + "Body" : "{\"id\":null,\"name\":\"java-funcapp-506889\",\"type\":\"Microsoft.Web/sites\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"connectionStringNames\":null,\"appSettingNames\":null,\"azureStorageConfigNames\":null}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/appsettings/list?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "0b50688f-5696-458d-ba39-e964a1876f61", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:54 GMT", + "x-ms-correlation-request-id" : "bb68ffc0-30d3-47e6-a5a7-31f1f8dae36a", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "11999", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035455Z:bb68ffc0-30d3-47e6-a5a7-31f1f8dae36a", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "974", + "x-ms-request-id" : "11cee6a3-2a36-4810-a813-b0f39a3f930f", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"FUNCTIONS_EXTENSION_VERSION\":\"~3\",\"AzureWebJobsDashboard\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\",\"WEBSITE_RUN_FROM_PACKAGE\":\"https://raw.githubusercontent.com/Azure/azure-sdk-for-java/master/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/java-functions.zip\",\"FUNCTIONS_WORKER_RUNTIME\":\"java\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/appsettings?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "fc1e9c71-f9a6-4a53-a0a0-c03be16acbb3", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:55 GMT", + "x-ms-correlation-request-id" : "6b451cb8-de58-454a-b5b9-5653176587eb", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB91D953DEB\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035456Z:6b451cb8-de58-454a-b5b9-5653176587eb", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "974", + "x-ms-request-id" : "9afadf77-0a1d-44ff-ab57-3d7dd835ef3a", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"FUNCTIONS_EXTENSION_VERSION\":\"~3\",\"AzureWebJobsDashboard\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\",\"WEBSITE_RUN_FROM_PACKAGE\":\"https://raw.githubusercontent.com/Azure/azure-sdk-for-java/master/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/java-functions.zip\",\"FUNCTIONS_WORKER_RUNTIME\":\"java\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/connectionstrings/list?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "a56585c7-2b81-4c66-8b79-c23beec467b9", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:56 GMT", + "x-ms-correlation-request-id" : "25c6032d-2751-4d66-b6be-1f5a46465647", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "11999", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035456Z:25c6032d-2751-4d66-b6be-1f5a46465647", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "278", + "x-ms-request-id" : "a8885453-7b43-4865-8176-e3a93309accd", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/config/connectionstrings\",\"name\":\"connectionstrings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "4131038d-f071-4331-833d-098b9664319f", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:54:58 GMT", + "x-ms-correlation-request-id" : "f754b443-215c-4253-92ad-78404f4af207", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "499", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB91D953DEB\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035459Z:f754b443-215c-4253-92ad-78404f4af207", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "5677", + "x-ms-request-id" : "01cacacb-a853-4800-b31c-8550430385d3", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1\",\"name\":\"java-funcapp-506889/slot1\",\"type\":\"Microsoft.Web/sites/slots\",\"kind\":\"functionapp,linux\",\"location\":\"eastus\",\"tags\":{},\"properties\":{\"name\":\"java-funcapp-506889(slot1)\",\"state\":\"Running\",\"hostNames\":[\"java-funcapp-506889-slot1.azurewebsites.net\"],\"webSpace\":\"javacsmrg7957246d-EastUSwebspace\",\"selfLink\":\"https://waws-prod-blu-179.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7957246d-EastUSwebspace/sites/java-funcapp-506889\",\"repositorySiteName\":\"java-funcapp-506889\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-funcapp-506889-slot1.azurewebsites.net\",\"java-funcapp-506889-slot1.scm.azurewebsites.net\"],\"siteProperties\":{\"metadata\":null,\"properties\":[{\"name\":\"LinuxFxVersion\",\"value\":\"java|8\"},{\"name\":\"WindowsFxVersion\",\"value\":null}],\"appSettings\":null},\"availabilityState\":\"Normal\",\"sslCertificates\":null,\"csrs\":[],\"cers\":null,\"siteMode\":null,\"hostNameSslStates\":[{\"name\":\"java-funcapp-506889-slot1.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-funcapp-506889-slot1.scm.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Repository\"}],\"computeMode\":null,\"serverFarm\":null,\"serverFarmId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/serverfarms/java-funcapp-506889plan850169c\",\"reserved\":true,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2020-10-10T03:54:57.7833333\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":{\"numberOfWorkers\":null,\"defaultDocuments\":null,\"netFrameworkVersion\":null,\"phpVersion\":null,\"pythonVersion\":null,\"nodeVersion\":null,\"powerShellVersion\":null,\"linuxFxVersion\":null,\"windowsFxVersion\":null,\"requestTracingEnabled\":null,\"remoteDebuggingEnabled\":null,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":null,\"azureMonitorLogCategories\":null,\"acrUseManagedIdentityCreds\":false,\"acrUserManagedIdentityID\":null,\"logsDirectorySizeLimit\":null,\"detailedErrorLoggingEnabled\":null,\"publishingUsername\":null,\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":null,\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":null,\"use32BitWorkerProcess\":null,\"webSocketsEnabled\":null,\"alwaysOn\":null,\"javaVersion\":null,\"javaContainer\":null,\"javaContainerVersion\":null,\"appCommandLine\":null,\"managedPipelineMode\":null,\"virtualApplications\":null,\"winAuthAdminState\":null,\"winAuthTenantState\":null,\"customAppPoolIdentityAdminState\":null,\"customAppPoolIdentityTenantState\":null,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":null,\"routingRules\":null,\"experiments\":null,\"limits\":null,\"autoHealEnabled\":null,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":null,\"vnetRouteAllEnabled\":null,\"cors\":null,\"push\":null,\"apiDefinition\":null,\"apiManagementConfig\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":null,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictionsUseMain\":null,\"http20Enabled\":null,\"minTlsVersion\":null,\"scmMinTlsVersion\":null,\"ftpsState\":null,\"preWarmedInstanceCount\":null,\"functionAppScaleLimit\":null,\"healthCheckPath\":null,\"fileChangeAuditEnabled\":null,\"functionsRuntimeScaleMonitoringEnabled\":null,\"websiteTimeZone\":null,\"minimumElasticInstanceCount\":0},\"deploymentId\":\"java-funcapp-506889__366e\",\"trafficManagerHostNames\":null,\"sku\":\"Standard\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":false,\"clientCertEnabled\":false,\"clientCertMode\":\"Required\",\"clientCertExclusionPaths\":null,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"customDomainVerificationId\":\"0FFA32248F34E67BEAA6BC639753005F4F7BED4F59950F668037EEAB327F1054\",\"kind\":\"functionapp,linux\",\"inboundIpAddress\":\"40.71.11.167\",\"possibleInboundIpAddresses\":\"40.71.11.167\",\"ftpUsername\":\"java-funcapp-506889__slot1\\\\$java-funcapp-506889__slot1\",\"ftpsHostName\":\"ftps://waws-prod-blu-179.ftp.azurewebsites.windows.net/site/wwwroot\",\"outboundIpAddresses\":\"40.71.11.167,52.152.129.80,52.188.122.145,52.188.107.149,52.188.108.116\",\"possibleOutboundIpAddresses\":\"40.71.11.167,52.152.129.80,52.188.122.145,52.188.107.149,52.188.108.116,52.188.167.27,52.188.166.225,52.188.120.234,52.188.167.46,52.188.167.56\",\"containerSize\":1536,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-blu-179\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg7957246d\",\"defaultHostName\":\"java-funcapp-506889-slot1.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false,\"redundancyMode\":\"None\",\"inProgressOperationId\":null,\"geoDistributions\":null,\"privateEndpointConnections\":null,\"buildVersion\":null,\"targetBuildVersion\":null,\"migrationState\":null}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/web?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "f132d322-1e30-4054-b005-4ab4240365fb", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:55:00 GMT", + "x-ms-correlation-request-id" : "def15c47-0b83-49d2-b670-68d1b966c32c", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB91EDB4575\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035500Z:def15c47-0b83-49d2-b670-68d1b966c32c", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "3737", + "x-ms-request-id" : "6fb09484-b8d7-4c08-8c35-b574b4675993", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1\",\"name\":\"java-funcapp-506889/slot1\",\"type\":\"Microsoft.Web/sites/slots\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"numberOfWorkers\":1,\"defaultDocuments\":[\"Default.htm\",\"Default.html\",\"Default.asp\",\"index.htm\",\"index.html\",\"iisstart.htm\",\"default.aspx\",\"index.php\"],\"netFrameworkVersion\":\"v4.0\",\"phpVersion\":\"\",\"pythonVersion\":\"\",\"nodeVersion\":\"\",\"powerShellVersion\":\"\",\"linuxFxVersion\":\"DOCKER|wordpress\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":\"VS2019\",\"httpLoggingEnabled\":false,\"azureMonitorLogCategories\":null,\"acrUseManagedIdentityCreds\":false,\"acrUserManagedIdentityID\":null,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-funcapp-506889__slot1\",\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":{},\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":\"None\",\"use32BitWorkerProcess\":false,\"webSocketsEnabled\":false,\"alwaysOn\":true,\"javaVersion\":null,\"javaContainer\":null,\"javaContainerVersion\":null,\"appCommandLine\":\"\",\"managedPipelineMode\":\"Integrated\",\"virtualApplications\":[{\"virtualPath\":\"/\",\"physicalPath\":\"site\\\\wwwroot\",\"preloadEnabled\":true,\"virtualDirectories\":null}],\"winAuthAdminState\":0,\"winAuthTenantState\":0,\"customAppPoolIdentityAdminState\":false,\"customAppPoolIdentityTenantState\":false,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":\"LeastRequests\",\"routingRules\":[],\"experiments\":{\"rampUpRules\":[]},\"limits\":null,\"autoHealEnabled\":false,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":\"\",\"vnetRouteAllEnabled\":false,\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretSettingName\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"aadClaimsAuthorization\":null,\"googleClientId\":null,\"googleClientSecret\":null,\"googleClientSecretSettingName\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookAppSecretSettingName\":null,\"facebookOAuthScopes\":null,\"gitHubClientId\":null,\"gitHubClientSecret\":null,\"gitHubClientSecretSettingName\":null,\"gitHubOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"twitterConsumerSecretSettingName\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountClientSecretSettingName\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":{\"allowedOrigins\":[\"https://functions.azure.com\",\"https://functions-staging.azure.com\",\"https://functions-next.azure.com\"],\"supportCredentials\":false},\"push\":null,\"apiDefinition\":null,\"apiManagementConfig\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictionsUseMain\":false,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"scmMinTlsVersion\":\"1.0\",\"ftpsState\":\"AllAllowed\",\"preWarmedInstanceCount\":0,\"functionAppScaleLimit\":0,\"healthCheckPath\":null,\"fileChangeAuditEnabled\":false,\"functionsRuntimeScaleMonitoringEnabled\":false,\"websiteTimeZone\":null,\"minimumElasticInstanceCount\":0}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/appsettings/list?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "39500d88-fda0-4b26-abac-8bd1dabf206e", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:55:00 GMT", + "x-ms-correlation-request-id" : "3ffbbb73-1a2e-4f3d-bf0c-fcd52ae39643", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "11999", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035501Z:3ffbbb73-1a2e-4f3d-bf0c-fcd52ae39643", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "974", + "x-ms-request-id" : "7fa92260-16f1-4c5d-bacc-38c5f05b4323", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"FUNCTIONS_EXTENSION_VERSION\":\"~3\",\"AzureWebJobsDashboard\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\",\"WEBSITE_RUN_FROM_PACKAGE\":\"https://raw.githubusercontent.com/Azure/azure-sdk-for-java/master/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/java-functions.zip\",\"FUNCTIONS_WORKER_RUNTIME\":\"java\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/appsettings?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "f7180bef-4d0a-49b5-81f5-2cb605061c59", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 03:55:02 GMT", + "x-ms-correlation-request-id" : "51f72aa9-4a82-41d0-a19b-5f1bac337c4a", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EB9213702C0\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035502Z:51f72aa9-4a82-41d0-a19b-5f1bac337c4a", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "1013", + "x-ms-request-id" : "0f5c850c-b979-4c57-ae96-16e93b30d79a", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7957246d/providers/Microsoft.Web/sites/java-funcapp-506889/slots/slot1/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"FUNCTIONS_EXTENSION_VERSION\":\"~3\",\"AzureWebJobsDashboard\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\",\"WEBSITE_RUN_FROM_PACKAGE\":\"https://raw.githubusercontent.com/Azure/azure-sdk-for-java/master/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/java-functions.zip\",\"FUNCTIONS_WORKER_RUNTIME\":\"java\",\"AzureWebJobsStorage\":\"DefaultEndpointsProtocol=https;AccountName=d2709f1f97b748abbd9e;AccountKey=***REMOVED***;EndpointSuffix=core.windows.net\",\"DOCKER_CUSTOM_IMAGE_NAME\":\"wordpress\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg7957246d?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "31692579-da8f-49c4-a9e1-99b3e223f787", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "StatusCode" : "202", + "Date" : "Sat, 10 Oct 2020 03:55:07 GMT", + "x-ms-correlation-request-id" : "deb0c51c-02c2-4687-b612-83eab62861ce", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Retry-After" : "0", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T035507Z:deb0c51c-02c2-4687-b612-83eab62861ce", + "Expires" : "-1", + "Content-Length" : "0", + "x-ms-request-id" : "deb0c51c-02c2-4687-b612-83eab62861ce", + "Location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3OTU3MjQ2RC1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01" + }, + "Exception" : null + } ], + "variables" : [ "java-funcapp-506889", "javacsmrg33532690", "java-slot-38112ce", "java-slot-687315e", "java-slot-7799671", "javacsmrg7957246d", "java-funcapp-506889plan850169c", "d2709f1f97b748abbd9e" ] +} \ No newline at end of file diff --git a/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/session-records/WebAppsTests.canCRUDWebAppWithContainer.json b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/session-records/WebAppsTests.canCRUDWebAppWithContainer.json new file mode 100644 index 0000000000000..015ad072b2c89 --- /dev/null +++ b/sdk/resourcemanager/azure-resourcemanager-appservice/src/test/resources/session-records/WebAppsTests.canCRUDWebAppWithContainer.json @@ -0,0 +1,203 @@ +{ + "networkCallRecords" : [ { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg8829036f?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "04338dda-56ec-4ef8-ac32-451317e9415c", + "Content-Type" : "application/json" + }, + "Response" : { + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1199", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "201", + "Date" : "Sat, 10 Oct 2020 02:18:43 GMT", + "x-ms-correlation-request-id" : "4d265244-d19c-4e63-9da3-e2d11b4c44fd", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T021843Z:4d265244-d19c-4e63-9da3-e2d11b4c44fd", + "Expires" : "-1", + "Content-Length" : "231", + "x-ms-request-id" : "4d265244-d19c-4e63-9da3-e2d11b4c44fd", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f\",\"name\":\"javacsmrg8829036f\",\"type\":\"Microsoft.Resources/resourceGroups\",\"location\":\"eastus\",\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/serverfarms/java-asp-5583543e?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "84345e2e-d836-4d4b-a811-cd02d90c3d47", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1198", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 02:18:55 GMT", + "x-ms-correlation-request-id" : "25db3564-5916-47b0-987c-e512a5933e99", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T021856Z:25db3564-5916-47b0-987c-e512a5933e99", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "1348", + "x-ms-request-id" : "c222a403-37e0-4931-a407-02b8a8dbae2d", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/serverfarms/java-asp-5583543e\",\"name\":\"java-asp-5583543e\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"serverFarmId\":20902,\"name\":\"java-asp-5583543e\",\"workerSize\":\"SmallV3\",\"workerSizeId\":6,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"SmallV3\",\"currentWorkerSizeId\":6,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg8829036f-EastUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":30,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"East US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrg8829036f\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-blu-185_20902\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null,\"existingServerFarmIds\":null},\"sku\":{\"name\":\"P1v3\",\"tier\":\"PremiumV3\",\"size\":\"P1v3\",\"family\":\"Pv3\",\"capacity\":1}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/sites/java-webapp-762533?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "94915b69-2e7e-40be-ac86-a0ff8ae1bb98", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 02:19:17 GMT", + "x-ms-correlation-request-id" : "4240e872-dced-453a-9c83-475fa733e9cc", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "499", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EABB71BF2AB\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T021917Z:4240e872-dced-453a-9c83-475fa733e9cc", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "5777", + "x-ms-request-id" : "0a345bf4-2704-4391-bf8c-c618d491f127", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/sites/java-webapp-762533\",\"name\":\"java-webapp-762533\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-762533\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-762533.azurewebsites.net\"],\"webSpace\":\"javacsmrg8829036f-EastUSwebspace\",\"selfLink\":\"https://waws-prod-blu-185.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg8829036f-EastUSwebspace/sites/java-webapp-762533\",\"repositorySiteName\":\"java-webapp-762533\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-762533.azurewebsites.net\",\"java-webapp-762533.scm.azurewebsites.net\"],\"siteProperties\":{\"metadata\":null,\"properties\":[{\"name\":\"LinuxFxVersion\",\"value\":\"\"},{\"name\":\"WindowsFxVersion\",\"value\":null}],\"appSettings\":null},\"availabilityState\":\"Normal\",\"sslCertificates\":null,\"csrs\":[],\"cers\":null,\"siteMode\":null,\"hostNameSslStates\":[{\"name\":\"java-webapp-762533.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-762533.scm.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Repository\"}],\"computeMode\":null,\"serverFarm\":null,\"serverFarmId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/serverfarms/java-asp-5583543e\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2020-10-10T02:18:59.7233333\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":{\"numberOfWorkers\":null,\"defaultDocuments\":null,\"netFrameworkVersion\":null,\"phpVersion\":null,\"pythonVersion\":null,\"nodeVersion\":null,\"powerShellVersion\":null,\"linuxFxVersion\":null,\"windowsFxVersion\":null,\"requestTracingEnabled\":null,\"remoteDebuggingEnabled\":null,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":null,\"azureMonitorLogCategories\":null,\"acrUseManagedIdentityCreds\":false,\"acrUserManagedIdentityID\":null,\"logsDirectorySizeLimit\":null,\"detailedErrorLoggingEnabled\":null,\"publishingUsername\":null,\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":null,\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":null,\"use32BitWorkerProcess\":null,\"webSocketsEnabled\":null,\"alwaysOn\":null,\"javaVersion\":null,\"javaContainer\":null,\"javaContainerVersion\":null,\"appCommandLine\":null,\"managedPipelineMode\":null,\"virtualApplications\":null,\"winAuthAdminState\":null,\"winAuthTenantState\":null,\"customAppPoolIdentityAdminState\":null,\"customAppPoolIdentityTenantState\":null,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":null,\"routingRules\":null,\"experiments\":null,\"limits\":null,\"autoHealEnabled\":null,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":null,\"vnetRouteAllEnabled\":null,\"cors\":null,\"push\":null,\"apiDefinition\":null,\"apiManagementConfig\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":null,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictionsUseMain\":null,\"http20Enabled\":null,\"minTlsVersion\":null,\"scmMinTlsVersion\":null,\"ftpsState\":null,\"preWarmedInstanceCount\":null,\"functionAppScaleLimit\":null,\"healthCheckPath\":null,\"fileChangeAuditEnabled\":null,\"functionsRuntimeScaleMonitoringEnabled\":null,\"websiteTimeZone\":null,\"minimumElasticInstanceCount\":0},\"deploymentId\":\"java-webapp-762533\",\"trafficManagerHostNames\":null,\"sku\":\"PremiumV3\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"clientCertMode\":\"Required\",\"clientCertExclusionPaths\":null,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"customDomainVerificationId\":\"0FFA32248F34E67BEAA6BC639753005F4F7BED4F59950F668037EEAB327F1054\",\"kind\":\"app\",\"inboundIpAddress\":\"20.49.104.1\",\"possibleInboundIpAddresses\":\"20.49.104.1\",\"ftpUsername\":\"java-webapp-762533\\\\$java-webapp-762533\",\"ftpsHostName\":\"ftps://waws-prod-blu-185.ftp.azurewebsites.windows.net/site/wwwroot\",\"outboundIpAddresses\":\"52.146.59.158,52.149.199.206,52.152.248.4,52.190.39.198,52.224.18.53,52.224.21.12\",\"possibleOutboundIpAddresses\":\"52.191.230.24,52.191.230.56,52.191.230.66,52.191.230.113,52.191.230.143,52.191.230.201,52.191.231.143,52.191.231.185,52.191.231.205,52.191.229.166,52.191.230.225,52.191.231.4,52.191.231.9,52.191.231.117,52.191.231.127,52.146.59.158,52.149.199.206,52.152.248.4,52.190.39.198,52.224.18.53,52.224.21.12,52.224.22.32,52.224.22.193,52.224.248.97,52.224.248.203,52.224.249.248,52.224.251.15\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-blu-185\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg8829036f\",\"defaultHostName\":\"java-webapp-762533.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false,\"redundancyMode\":\"None\",\"inProgressOperationId\":null,\"geoDistributions\":null,\"privateEndpointConnections\":null,\"buildVersion\":null,\"targetBuildVersion\":null,\"migrationState\":null}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/sites/java-webapp-762533/config/web?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "ccf7df7f-9873-4cc5-b695-a36c3bded739", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1197", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 02:19:19 GMT", + "x-ms-correlation-request-id" : "eb69e00d-372e-4001-8598-76b36cb15db0", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EABB71BF2AB\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T021919Z:eb69e00d-372e-4001-8598-76b36cb15db0", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "3633", + "x-ms-request-id" : "f9c85faf-e7ed-4f0b-9d41-e70e06e724ae", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/sites/java-webapp-762533\",\"name\":\"java-webapp-762533\",\"type\":\"Microsoft.Web/sites\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"numberOfWorkers\":1,\"defaultDocuments\":[\"Default.htm\",\"Default.html\",\"Default.asp\",\"index.htm\",\"index.html\",\"iisstart.htm\",\"default.aspx\",\"index.php\",\"hostingstart.html\"],\"netFrameworkVersion\":\"v4.0\",\"phpVersion\":\"5.6\",\"pythonVersion\":\"\",\"nodeVersion\":\"\",\"powerShellVersion\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":\"DOCKER|mcr.microsoft.com/azure-app-service/samples/aspnethelloworld:latest\",\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"azureMonitorLogCategories\":null,\"acrUseManagedIdentityCreds\":false,\"acrUserManagedIdentityID\":null,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-762533\",\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":{},\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":\"None\",\"use32BitWorkerProcess\":true,\"webSocketsEnabled\":false,\"alwaysOn\":false,\"javaVersion\":null,\"javaContainer\":null,\"javaContainerVersion\":null,\"appCommandLine\":\"\",\"managedPipelineMode\":\"Integrated\",\"virtualApplications\":[{\"virtualPath\":\"/\",\"physicalPath\":\"site\\\\wwwroot\",\"preloadEnabled\":false,\"virtualDirectories\":null}],\"winAuthAdminState\":0,\"winAuthTenantState\":0,\"customAppPoolIdentityAdminState\":false,\"customAppPoolIdentityTenantState\":false,\"runtimeADUser\":null,\"runtimeADUserPassword\":null,\"loadBalancing\":\"LeastRequests\",\"routingRules\":[],\"experiments\":{\"rampUpRules\":[]},\"limits\":null,\"autoHealEnabled\":false,\"autoHealRules\":null,\"tracingOptions\":null,\"vnetName\":\"\",\"vnetRouteAllEnabled\":false,\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretSettingName\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"aadClaimsAuthorization\":null,\"googleClientId\":null,\"googleClientSecret\":null,\"googleClientSecretSettingName\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookAppSecretSettingName\":null,\"facebookOAuthScopes\":null,\"gitHubClientId\":null,\"gitHubClientSecret\":null,\"gitHubClientSecretSettingName\":null,\"gitHubOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"twitterConsumerSecretSettingName\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountClientSecretSettingName\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"apiManagementConfig\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictions\":[{\"ipAddress\":\"Any\",\"action\":\"Allow\",\"priority\":1,\"name\":\"Allow all\",\"description\":\"Allow all access\"}],\"scmIpSecurityRestrictionsUseMain\":false,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"scmMinTlsVersion\":\"1.0\",\"ftpsState\":\"AllAllowed\",\"preWarmedInstanceCount\":0,\"functionAppScaleLimit\":0,\"healthCheckPath\":null,\"fileChangeAuditEnabled\":false,\"functionsRuntimeScaleMonitoringEnabled\":false,\"websiteTimeZone\":null,\"minimumElasticInstanceCount\":0}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/sites/java-webapp-762533/config/appsettings/list?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "11c5edeb-a9fb-439d-95bf-a0e01b107206", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 02:19:19 GMT", + "x-ms-correlation-request-id" : "c09f6e98-0cd8-4b73-87aa-5fa203fa1886", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "11999", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T021919Z:c09f6e98-0cd8-4b73-87aa-5fa203fa1886", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "303", + "x-ms-request-id" : "d3208126-a5a1-4c1f-967e-d74e5f0439fd", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/sites/java-webapp-762533/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"WEBSITE_NODE_DEFAULT_VERSION\":\"6.9.1\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/sites/java-webapp-762533/config/appsettings?api-version=2019-08-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.appservice.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "447867a0-cad2-4c6f-a718-62fdfdedb14d", + "Content-Type" : "application/json" + }, + "Response" : { + "Server" : "Microsoft-IIS/10.0", + "X-Content-Type-Options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-writes" : "1196", + "Pragma" : "no-cache", + "retry-after" : "0", + "StatusCode" : "200", + "Date" : "Sat, 10 Oct 2020 02:19:20 GMT", + "x-ms-correlation-request-id" : "03ea6cdb-695c-4980-9721-62ac8f9dfc53", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Cache-Control" : "no-cache", + "ETag" : "\"1D69EABC315704B\"", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T021920Z:03ea6cdb-695c-4980-9721-62ac8f9dfc53", + "X-AspNet-Version" : "4.0.30319", + "Expires" : "-1", + "Content-Length" : "400", + "x-ms-request-id" : "b6b87b45-824b-4b0b-b666-0987c638c02c", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg8829036f/providers/Microsoft.Web/sites/java-webapp-762533/config/appsettings\",\"name\":\"appsettings\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"East US\",\"tags\":{},\"properties\":{\"WEBSITE_NODE_DEFAULT_VERSION\":\"6.9.1\",\"DOCKER_CUSTOM_IMAGE_NAME\":\"mcr.microsoft.com/azure-app-service/samples/aspnethelloworld:latest\"}}", + "X-Powered-By" : "ASP.NET", + "Content-Type" : "application/json" + }, + "Exception" : null + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg8829036f?api-version=2020-06-01", + "Headers" : { + "User-Agent" : "azsdk-java-com.azure.resourcemanager.resources.implementation/2.0.0 (14.0.1; Windows 10; 10.0)", + "x-ms-client-request-id" : "5cb94952-fd1a-44c2-a65d-8479a6cb38ff", + "Content-Type" : "application/json" + }, + "Response" : { + "x-ms-ratelimit-remaining-subscription-deletes" : "14999", + "X-Content-Type-Options" : "nosniff", + "Pragma" : "no-cache", + "StatusCode" : "202", + "Date" : "Sat, 10 Oct 2020 02:19:46 GMT", + "x-ms-correlation-request-id" : "8fdfeed6-a3a0-476c-8b14-352ce556c5eb", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains", + "Retry-After" : "0", + "Cache-Control" : "no-cache", + "x-ms-routing-request-id" : "SOUTHEASTASIA:20201010T021946Z:8fdfeed6-a3a0-476c-8b14-352ce556c5eb", + "Expires" : "-1", + "Content-Length" : "0", + "x-ms-request-id" : "8fdfeed6-a3a0-476c-8b14-352ce556c5eb", + "Location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc4ODI5MDM2Ri1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2020-06-01" + }, + "Exception" : null + } ], + "variables" : [ "java-webapp-762533", "java-webapp-727359", "java-webapp-877027", "java-asp-5583543e", "javacsmrg8829036f", "javacsmrg2991097d", "javacsmrg9324869b" ] +} \ No newline at end of file