From cdd2d5faf47d89d3e13f8eee0c590e91019e5e40 Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Wed, 9 Jan 2019 17:03:44 -0800 Subject: [PATCH 01/14] First draft of changed to update the enums for the various windows stacks --- .../management/appservice/JavaVersion.java | 20 +++- .../appservice/NetFrameworkVersion.java | 18 ++- .../management/appservice/NodeVersion.java | 99 ++++++++++++++++ .../management/appservice/PhpVersion.java | 15 ++- .../management/appservice/PythonVersion.java | 15 ++- .../management/appservice/RuntimeVersion.java | 98 +++++++++++++++ .../management/appservice/WebAppBase.java | 8 ++ .../management/appservice/WebContainer.java | 34 +++++- .../implementation/AppServiceManager.java | 112 +++++++++++++++++- .../implementation/ApplicationStackInner.java | 88 ++++++++++++++ .../implementation/ProvidersInner.java | 1 + .../implementation/WebAppBaseImpl.java | 93 ++++++++------- .../appservice/implementation/WebAppImpl.java | 17 ++- .../management/appservice/WebAppsTests.java | 81 ++++++++++++- 14 files changed, 633 insertions(+), 66 deletions(-) create mode 100644 azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java create mode 100644 azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java index 0d99188c1cd..900aef94c42 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java @@ -13,7 +13,8 @@ /** * Defines values for Java versions. */ -public final class JavaVersion extends ExpandableStringEnum { +public final class JavaVersion extends RuntimeVersion { + public static final String ComponentName = "java"; /** Static value 'Off' for JavaVersion. */ public static final JavaVersion OFF = fromString("null"); @@ -65,4 +66,21 @@ public static JavaVersion fromString(String name) { public static Collection values() { return values(JavaVersion.class); } + + @Override + public String getRuntimeName() { + return ComponentName; + } + + @Override + protected boolean shouldProcessMinorVersions() { + return true; + } + + @Override + protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { + if (ComponentName.equalsIgnoreCase(name)) { + fromString(runtimeVersion); + } + } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java index 149e6f98abd..4db5ed4a03c 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java @@ -13,7 +13,11 @@ /** * Defines values for .NET framework version. */ -public final class NetFrameworkVersion extends ExpandableStringEnum { +public final class NetFrameworkVersion extends RuntimeVersion { + public static final String ComponentName = "aspnet"; + + public static final NetFrameworkVersion OFF = NetFrameworkVersion.fromString("null"); + /** Static value v3.5 for NetFrameworkVersion. */ public static final NetFrameworkVersion V3_0 = NetFrameworkVersion.fromString("v3.0"); @@ -35,4 +39,16 @@ public static NetFrameworkVersion fromString(String name) { public static Collection values() { return values(NetFrameworkVersion.class); } + + @Override + public String getRuntimeName() { + return ComponentName; + } + + @Override + protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { + if(ComponentName.equalsIgnoreCase(name)) { + fromString(displayVersion); + } + } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java new file mode 100644 index 00000000000..ed09b49fc1f --- /dev/null +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java @@ -0,0 +1,99 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.appservice; + +import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; + +import java.util.Collection; + +/** + * Defines values for PHP version. + */ +public final class NodeVersion extends RuntimeVersion { + public static final String ComponentName = "node"; + /** Static value 'Off' for NodeVersion. */ + public static final NodeVersion OFF = NodeVersion.fromString("null"); + + /** Static value 0.6 for NodeVersion. */ + public static final NodeVersion NODE0_6 = NodeVersion.fromString("0.6"); + + /** Static value 0.8 for NodeVersion. */ + public static final NodeVersion NODE0_8 = NodeVersion.fromString("0.8"); + + /** Static value 0.10 for NodeVersion. */ + public static final NodeVersion NODE0_10 = NodeVersion.fromString("0.10"); + + /** Static value 0.12 for NodeVersion. */ + public static final NodeVersion NODE0_12 = NodeVersion.fromString("0.12"); + + /** Static value 4.8 for NodeVersion. */ + public static final NodeVersion NODE4_8 = NodeVersion.fromString("4.8"); + + /** Static value 6.5 for NodeVersion. */ + public static final NodeVersion NODE6_5 = NodeVersion.fromString("6.5"); + + /** Static value 6.9 for NodeVersion. */ + public static final NodeVersion NODE6_9 = NodeVersion.fromString("6.9"); + + /** Static value 6.12 for NodeVersion. */ + public static final NodeVersion NODE6_12 = NodeVersion.fromString("6.12"); + + /** Static value 7.10 for NodeVersion. */ + public static final NodeVersion NODE7_10 = NodeVersion.fromString("7.10"); + + /** Static value 8.1 for NodeVersion. */ + public static final NodeVersion NODE8_1 = NodeVersion.fromString("8.1"); + + /** Static value 8.4 for NodeVersion. */ + public static final NodeVersion NODE8_4 = NodeVersion.fromString("8.4"); + + /** Static value 8.5 for NodeVersion. */ + public static final NodeVersion NODE8_5 = NodeVersion.fromString("8.5"); + + /** Static value 8.9 for NodeVersion. */ + public static final NodeVersion NODE8_9 = NodeVersion.fromString("8.9"); + + /** Static value 8.10 for NodeVersion. */ + public static final NodeVersion NODE8_10 = NodeVersion.fromString("8.10"); + + /** Static value 8.11 for NodeVersion. */ + public static final NodeVersion NODE8_11 = NodeVersion.fromString("8.11"); + + /** Static value 10.0 for NodeVersion. */ + public static final NodeVersion NODE10_0 = NodeVersion.fromString("10.0"); + + /** Static value 10.6 for NodeVersion. */ + public static final NodeVersion NODE10_6 = NodeVersion.fromString("10.6"); + + /** + * Finds or creates a PHP version based on the specified name. + * @param name a name + * @return a PhpVersion instance + */ + public static NodeVersion fromString(String name) { + return fromString(name, NodeVersion.class); + } + + /** + * @return known PHP versions + */ + public static Collection values() { + return values(NodeVersion.class); + } + + @Override + public String getRuntimeName() { + return ComponentName; + } + + @Override + protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { + if(ComponentName.equalsIgnoreCase(name)) { + fromString(runtimeVersion); + } + } +} diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java index cd47ee7a716..ca43b24792a 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java @@ -13,7 +13,8 @@ /** * Defines values for PHP version. */ -public final class PhpVersion extends ExpandableStringEnum { +public final class PhpVersion extends RuntimeVersion { + public static final String ComponentName = "php"; /** Static value 'Off' for PhpVersion. */ public static final PhpVersion OFF = PhpVersion.fromString("null"); @@ -44,4 +45,16 @@ public static PhpVersion fromString(String name) { public static Collection values() { return values(PhpVersion.class); } + + @Override + public String getRuntimeName() { + return ComponentName; + } + + @Override + protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { + if (ComponentName.equalsIgnoreCase(name)) { + fromString(runtimeVersion); + } + } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java index 3f9a0d2c63e..e0651941119 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java @@ -13,7 +13,8 @@ /** * Defines values for Python version. */ -public final class PythonVersion extends ExpandableStringEnum { +public final class PythonVersion extends RuntimeVersion { + public static final String ComponentName = "python"; /** Static value 'Off' for PythonVersion. */ public static final PythonVersion OFF = PythonVersion.fromString("null"); @@ -38,4 +39,16 @@ public static PythonVersion fromString(String name) { public static Collection values() { return values(PythonVersion.class); } + + @Override + public String getRuntimeName() { + return ComponentName; + } + + @Override + protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { + if (ComponentName.equalsIgnoreCase(name)) { + fromString(runtimeVersion); + } + } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java new file mode 100644 index 00000000000..5377feb27c0 --- /dev/null +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java @@ -0,0 +1,98 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.appservice; + +import com.microsoft.azure.management.appservice.implementation.ApplicationStackInner; +import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; + +/** + * Defines values for Java versions. + */ +public abstract class RuntimeVersion> extends ExpandableStringEnum{ + + /** + * Rrturns the name of the runtime + * @return + */ + public abstract String getRuntimeName(); + + /** + + * @param version runtime version for which we need to create the enum + */ + /** + * Creates an enum for the version of the runtime if one does not already exist + * @param name name of the framweork + * @param displayVersion display version of the runtime + * @param runtimeVersion runtime versin of the runtime + */ + protected abstract void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion); + + /** + * If a subclass is interested in creating enums for the minor versions, then override this + * function and return true; + * @return should we process the minor versions + */ + protected boolean shouldProcessMinorVersions() { + return false; + } + + /** + * If a subclass is interested in creating enums for the frameworks, then override this + * function and return true; + * @return should we process the minor versions + */ + protected boolean shouldProcessFrameworks() { + return false; + } + + /** + * Process the information in the framework information + * @param frameworkInfo, the frameework information to process + */ + protected void processFrameWorkInformation(ApplicationStackInner.Properties frameworkInfo) { + for(StackMajorVersion majorVersion : frameworkInfo.majorVersions()) { + this.processRuntimeMajorVersion(frameworkInfo.name(), majorVersion); + } + } + + /** + * Check if we need to create enum(s) for this major version of the runtime + * @param name, name of the runtime + * @param versionInfo major bversion information + */ + protected void processRuntimeMajorVersion(String name, StackMajorVersion versionInfo) { + createEnumFromVersionInformation(name, versionInfo.displayVersion(), versionInfo.runtimeVersion()); + + if (this.shouldProcessMinorVersions()) { + for(StackMinorVersion minorVersionInfo : versionInfo.minorVersions()) { + this.createEnumFromVersionInformation(name, minorVersionInfo.displayVersion(), minorVersionInfo.runtimeVersion()); + } + } + } + + public void parseApplicationStackInner(ApplicationStackInner appStack) { + if (getRuntimeName().equalsIgnoreCase(appStack.name())) { + //this is ours... process it + + //process the major versions + if (appStack.properties().majorVersions() != null) { + for (StackMajorVersion majorVersion : appStack.properties().majorVersions()) { + this.processRuntimeMajorVersion(appStack.name(), majorVersion); + } + } + + if (this.shouldProcessFrameworks() && appStack.properties().frameworks() != null) { + //process the frameworks + for (ApplicationStackInner.Properties frameworkInfo : appStack.properties().frameworks()) { + this.processFrameWorkInformation(frameworkInfo); + } + } + + } + } +} diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebAppBase.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebAppBase.java index 3b06f97a9cf..f0bc5b5051f 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebAppBase.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebAppBase.java @@ -23,6 +23,7 @@ import java.io.File; import java.io.InputStream; +import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; @@ -758,6 +759,13 @@ interface WithSiteConfigs { */ WithCreate withPythonVersion(PythonVersion version); + /** + * Specifies the Node version. + * @param version the Node version + * @return the next stage of the definition + */ + WithCreate withNodeVersion(NodeVersion version); + /** * Specifies the platform architecture to use. * @param platform the platform architecture diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java index 73e61c17c38..7338c0d6b34 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java @@ -13,7 +13,10 @@ /** * Defines values for Java web container. */ -public final class WebContainer extends ExpandableStringEnum { +public final class WebContainer extends RuntimeVersion { + public static final String ComponentName = "javaContainers"; + public static final String SEPERATOR = " "; + public static final WebContainer OFF = WebContainer.fromString("null"); /** Static value tomcat 7.0 newest for WebContainer. */ public static final WebContainer TOMCAT_7_0_NEWEST = WebContainer.fromString("tomcat 7.0"); @@ -65,10 +68,39 @@ public static WebContainer fromString(String name) { return fromString(name, WebContainer.class); } + /** + * Finds or creates a Java container version based on the specified name and version. + * @param name framework name + * @return framework instance version + */ + public static WebContainer fromString(String name, String version) { + return fromString(name + SEPERATOR + version, WebContainer.class); + } + /** * @return known Web container types */ public static Collection values() { return values(WebContainer.class); } + + @Override + public String getRuntimeName() { + return this.ComponentName; + } + + @Override + protected boolean shouldProcessFrameworks() { + return true; + } + + @Override + protected boolean shouldProcessMinorVersions() { + return true; + } + + @Override + protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { + fromString(name, runtimeVersion); + } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java index 60203f8faf0..2bc3d6f370a 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java @@ -10,12 +10,7 @@ import com.microsoft.azure.AzureResponseBuilder; import com.microsoft.azure.credentials.AzureTokenCredentials; import com.microsoft.azure.management.apigeneration.Beta; -import com.microsoft.azure.management.appservice.AppServiceCertificateOrders; -import com.microsoft.azure.management.appservice.AppServiceCertificates; -import com.microsoft.azure.management.appservice.AppServiceDomains; -import com.microsoft.azure.management.appservice.AppServicePlans; -import com.microsoft.azure.management.appservice.FunctionApps; -import com.microsoft.azure.management.appservice.WebApps; +import com.microsoft.azure.management.appservice.*; import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; import com.microsoft.azure.management.resources.fluentcore.arm.AzureConfigurable; @@ -27,6 +22,10 @@ import com.microsoft.azure.serializer.AzureJacksonAdapter; import com.microsoft.rest.RestClient; +import java.util.Collection; +import java.util.Hashtable; +import java.util.Iterator; + /** * Entry point to Azure storage resource management. */ @@ -202,4 +201,105 @@ public FunctionApps functionApps() { } return functionApps; } + + /** + * + * @return Returns the latest Windows runtime stacks + */ + public Runtimes latestRuntimes() { + Hashtable variousRuntimes = new Hashtable<>(); + variousRuntimes.put(JavaVersion.ComponentName.toLowerCase(), JavaVersion.OFF); + variousRuntimes.put(NodeVersion.ComponentName.toLowerCase(), NodeVersion.OFF); + variousRuntimes.put(WebContainer.ComponentName.toLowerCase(), WebContainer.OFF); + variousRuntimes.put(PythonVersion.ComponentName.toLowerCase(), PythonVersion.OFF); + variousRuntimes.put(PhpVersion.ComponentName.toLowerCase(), PhpVersion.OFF); + variousRuntimes.put(NetFrameworkVersion.ComponentName.toLowerCase(), NetFrameworkVersion.OFF); + + Iterator stackIter = this.innerManagementClient.providers().getAvailableStacks("Windows").iterator(); + while (stackIter.hasNext()) { + ApplicationStackInner stack = stackIter.next(); + + RuntimeVersion runtime = variousRuntimes.get(stack.name().toLowerCase()); + if (runtime != null) { + runtime.parseApplicationStackInner(stack); + } else { + //throw new FileNotFoundException("Runtime " + stack.name() + " not supported"); + } + } + + Runtimes runtimes = new Runtimes(); + + runtimes.withJavaVersions(JavaVersion.values()); + runtimes.withNetFrameworkVersions(NetFrameworkVersion.values()); + runtimes.withPhpVersions(PhpVersion.values()); + runtimes.withPythonVersions(PythonVersion.values()); + runtimes.withWebContainers(WebContainer.values()); + runtimes.withNodeVersions(NodeVersion.values()); + + return runtimes; + } + + public class Runtimes { + private Collection netframeworkVersions; + private Collection pythonVersions; + private Collection phpVersions; + private Collection javaVersions; + private Collection nodeVersions; + private Collection webContainers; + + public Runtimes() { + } + + public Runtimes withNetFrameworkVersions(Collection versions){ + this.netframeworkVersions = versions; + return this; + } + + public Runtimes withPythonVersions(Collection versions) { + this.pythonVersions = versions; + return this; + } + + public Runtimes withPhpVersions(Collection versions) { + this.phpVersions = versions; + return this; + } + + public Runtimes withJavaVersions(Collection versions) { + this.javaVersions = versions; + return this; + } + + public Runtimes withWebContainers(Collection versions) { + this.webContainers = versions; + return this; + } + + public Runtimes withNodeVersions(Collection versions) { + this.nodeVersions = versions; + return this; + } + + public Collection NetFrameworkVersions() { + return this.netframeworkVersions; + } + + public Collection PythonVersions() { + return this.pythonVersions; + } + + public Collection PhpVersions() { + return this.phpVersions; + } + + public Collection JavaVersions() { + return this.javaVersions; + } + + public Collection Webcontainers() { return this.webContainers; } + + public Collection NodeVersins() { + return this.nodeVersions; + } + } } \ No newline at end of file diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java index e9d67dec72d..a340a0c364b 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java @@ -16,6 +16,84 @@ * Application stack. */ public class ApplicationStackInner { + public static class Properties { + /** + * Application stack name. + */ + @JsonProperty(value = "name") + private String name; + + /** + * Application stack display name. + */ + @JsonProperty(value = "display") + private String display; + + /** + * Application stack dependency. + */ + @JsonProperty(value = "dependency") + private String dependency; + + /** + * List of major versions available. + */ + @JsonProperty(value = "majorVersions") + private List majorVersions; + + /** + * List of frameworks associated with application stack. + */ + @JsonProperty(value = "frameworks") + private List frameworks; + + + /** + * Get application stack name. + * + * @return the name value + */ + public String name() { + return this.name; + } + + /** + * Get application stack display name. + * + * @return the display value + */ + public String display() { + return this.display; + } + + /** + * Get application stack dependency. + * + * @return the dependency value + */ + public String dependency() { + return this.dependency; + } + + /** + * Get list of major versions available. + * + * @return the majorVersions value + */ + public List majorVersions() { + return this.majorVersions; + } + + /** + * Get list of frameworks associated with application stack. + * + * @return the frameworks value + */ + public List frameworks() { + return this.frameworks; + } + } + /** * Application stack name. */ @@ -46,6 +124,9 @@ public class ApplicationStackInner { @JsonProperty(value = "frameworks") private List frameworks; + @JsonProperty(value = "properties") + private Properties properties; + /** * Get application stack name. * @@ -146,4 +227,11 @@ public ApplicationStackInner withFrameworks(List framewor return this; } + public Properties properties() { return this.properties; } + + public ApplicationStackInner withProperties(Properties properties) { + this.properties = properties; + return this; + } + } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ProvidersInner.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ProvidersInner.java index d31512d68c8..a2b96bb62ab 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ProvidersInner.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ProvidersInner.java @@ -293,6 +293,7 @@ public Observable>> call(Response> getAvailableStacksDelegate(Response response) throws DefaultErrorResponseException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory()., DefaultErrorResponseException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken>() { }.getType()) .registerError(DefaultErrorResponseException.class) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java index 49d811ae789..72e38053626 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java @@ -11,39 +11,7 @@ import com.google.common.collect.Sets; import com.microsoft.azure.AzureEnvironment; import com.microsoft.azure.management.apigeneration.LangDefinition; -import com.microsoft.azure.management.appservice.AppServiceCertificate; -import com.microsoft.azure.management.appservice.AppServiceDomain; -import com.microsoft.azure.management.appservice.AppSetting; -import com.microsoft.azure.management.appservice.AzureResourceType; -import com.microsoft.azure.management.appservice.CloningInfo; -import com.microsoft.azure.management.appservice.ConnStringValueTypePair; -import com.microsoft.azure.management.appservice.ConnectionString; -import com.microsoft.azure.management.appservice.ConnectionStringType; -import com.microsoft.azure.management.appservice.CustomHostNameDnsRecordType; -import com.microsoft.azure.management.appservice.FtpsState; -import com.microsoft.azure.management.appservice.HostNameBinding; -import com.microsoft.azure.management.appservice.HostNameSslState; -import com.microsoft.azure.management.appservice.HostNameType; -import com.microsoft.azure.management.appservice.JavaVersion; -import com.microsoft.azure.management.appservice.MSDeploy; -import com.microsoft.azure.management.appservice.ManagedPipelineMode; -import com.microsoft.azure.management.appservice.ManagedServiceIdentity; -import com.microsoft.azure.management.appservice.ManagedServiceIdentityType; -import com.microsoft.azure.management.appservice.NetFrameworkVersion; -import com.microsoft.azure.management.appservice.OperatingSystem; -import com.microsoft.azure.management.appservice.PhpVersion; -import com.microsoft.azure.management.appservice.PlatformArchitecture; -import com.microsoft.azure.management.appservice.PythonVersion; -import com.microsoft.azure.management.appservice.RemoteVisualStudioVersion; -import com.microsoft.azure.management.appservice.ScmType; -import com.microsoft.azure.management.appservice.SiteAvailabilityState; -import com.microsoft.azure.management.appservice.SiteConfig; -import com.microsoft.azure.management.appservice.SslState; -import com.microsoft.azure.management.appservice.UsageState; -import com.microsoft.azure.management.appservice.VirtualApplication; -import com.microsoft.azure.management.appservice.WebAppAuthentication; -import com.microsoft.azure.management.appservice.WebAppBase; -import com.microsoft.azure.management.appservice.WebContainer; +import com.microsoft.azure.management.appservice.*; import com.microsoft.azure.management.graphrbac.BuiltInRole; import com.microsoft.azure.management.resources.fluentcore.arm.ResourceId; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; @@ -67,14 +35,7 @@ import java.io.InputStream; import java.io.PipedInputStream; import java.io.PipedOutputStream; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeMap; +import java.util.*; import java.util.concurrent.Callable; /** @@ -132,6 +93,8 @@ abstract class WebAppBaseImpl< private FunctionalTaskItem msiHandler; private boolean isInCreateMode; + public static final String NODE_VERSION_CONFIG_NAME = "WEBSITE_NODE_DEFAULT_VERSION"; + WebAppBaseImpl(String name, SiteInner innerObject, SiteConfigResourceInner siteConfig, SiteLogsConfigInner logConfig, AppServiceManager manager) { super(name, innerObject, manager); if (innerObject != null && innerObject.kind() != null) { @@ -1239,6 +1202,51 @@ public FluentImplT withoutJava() { return withJavaVersion(JavaVersion.fromString("")).withWebContainer(WebContainer.fromString("")); } + @SuppressWarnings("unchecked") + public FluentImplT withNodeVersion(NodeVersion version) { + if (siteConfig == null) { + siteConfig = new SiteConfigResourceInner(); + } + + List appSettings = siteConfig.appSettings(); + if (appSettings == null) { + appSettings = new ArrayList<>(); + } + + NameValuePair pair = getExistingAppSetting(NODE_VERSION_CONFIG_NAME, appSettings); + boolean pairCreated = false; + if (pair == null) { + pair = new NameValuePair(); + pairCreated = true; + } + + pair.withName(NODE_VERSION_CONFIG_NAME); + pair.withValue(version.toString()); + + if (pairCreated) { + appSettings.add(pair); + } + siteConfig.withAppSettings(appSettings); + + return (FluentImplT) this; + } + + public FluentImplT withoutNodeVersion() { + return withNodeVersion(NodeVersion.fromString("")).withWebContainer(WebContainer.fromString("")); + } + + private static NameValuePair getExistingAppSetting(String settingName, List settings) { + NameValuePair pair = null; + + for(NameValuePair setting : settings) { + if (setting.name().equalsIgnoreCase(settingName)) { + pair = setting; + break; + } + } + return pair; + } + @SuppressWarnings("unchecked") public FluentImplT withWebContainer(WebContainer webContainer) { if (siteConfig == null) { @@ -1251,7 +1259,7 @@ public FluentImplT withWebContainer(WebContainer webContainer) { siteConfig.withJavaContainer(""); siteConfig.withJavaContainerVersion(""); } else { - String[] containerInfo = webContainer.toString().split(" "); + String[] containerInfo = webContainer.toString().split(WebContainer.SEPERATOR); siteConfig.withJavaContainer(containerInfo[0]); siteConfig.withJavaContainerVersion(containerInfo[1]); } @@ -1671,6 +1679,7 @@ public WebAppDiagnosticLogsImpl updateDiagnosticLogsConfig return defineDiagnosticLogsConfiguration(); } + private static class PipedInputStreamWithCallback extends PipedInputStream { private Action0 callback; diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java index dfefef642f8..0a4aaee1de5 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java @@ -6,20 +6,17 @@ package com.microsoft.azure.management.appservice.implementation; +import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.LangDefinition; -import com.microsoft.azure.management.appservice.AppServicePlan; -import com.microsoft.azure.management.appservice.DeploymentSlots; -import com.microsoft.azure.management.appservice.OperatingSystem; -import com.microsoft.azure.management.appservice.PricingTier; -import com.microsoft.azure.management.appservice.RuntimeStack; -import com.microsoft.azure.management.appservice.WebApp; +import com.microsoft.azure.management.appservice.*; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import rx.Completable; +import sun.plugin.JavaRunTime; -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; +import java.io.*; +import java.util.ArrayList; +import java.util.Hashtable; +import java.util.Iterator; /** * The implementation for WebApp. diff --git a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java index f6da135d263..a7b1eee0c10 100644 --- a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java +++ b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java @@ -6,6 +6,7 @@ package com.microsoft.azure.management.appservice; +import com.microsoft.azure.management.appservice.implementation.AppServiceManager; import com.microsoft.azure.management.resources.fluentcore.arm.Region; import com.microsoft.rest.RestClient; import org.junit.Assert; @@ -16,23 +17,57 @@ public class WebAppsTests extends AppServiceTest { private static String RG_NAME_1 = ""; private static String RG_NAME_2 = ""; + private static String RG_NAME_3 = ""; + private static String RG_NAME_4 = ""; + private static String RG_NAME_5 = ""; private static String WEBAPP_NAME_1 = ""; private static String WEBAPP_NAME_2 = ""; + private static String WEBAPP_NAME_3 = ""; + private static String WEBAPP_NAME_4 = ""; + private static String WEBAPP_NAME_5 = ""; + private boolean createdWebApp1 = false; + private boolean createdWebApp2 = false; + private boolean createdWebApp3 = false; + private boolean createdWebApp4 = false; + private boolean createdWebApp5 = false; @Override protected void initializeClients(RestClient restClient, String defaultSubscription, String domain) { WEBAPP_NAME_1 = generateRandomResourceName("java-webapp-", 20); WEBAPP_NAME_2 = generateRandomResourceName("java-webapp-", 20); + WEBAPP_NAME_3 = generateRandomResourceName("java-webapp-", 20); + WEBAPP_NAME_4 = generateRandomResourceName("java-webapp-", 20); + WEBAPP_NAME_5 = generateRandomResourceName("java-webapp-", 20); RG_NAME_1 = generateRandomResourceName("javacsmrg", 20); RG_NAME_2 = generateRandomResourceName("javacsmrg", 20); + RG_NAME_3 = generateRandomResourceName("javacsmrg", 20); + RG_NAME_4 = generateRandomResourceName("javacsmrg", 20); + RG_NAME_5 = generateRandomResourceName("javacsmrg", 20); super.initializeClients(restClient, defaultSubscription, domain); } @Override protected void cleanUpResources() { - resourceManager.resourceGroups().beginDeleteByName(RG_NAME_2); - resourceManager.resourceGroups().beginDeleteByName(RG_NAME_1); + if (createdWebApp5) { + resourceManager.resourceGroups().beginDeleteByName(RG_NAME_5); + } + + if (createdWebApp4) { + resourceManager.resourceGroups().beginDeleteByName(RG_NAME_4); + } + + if (createdWebApp3) { + resourceManager.resourceGroups().beginDeleteByName(RG_NAME_3); + } + + if (createdWebApp2) { + resourceManager.resourceGroups().beginDeleteByName(RG_NAME_2); + } + + if (createdWebApp1) { + resourceManager.resourceGroups().beginDeleteByName(RG_NAME_1); + } } @Test @@ -42,8 +77,10 @@ public void canCRUDWebApp() throws Exception { .withRegion(Region.US_WEST) .withNewResourceGroup(RG_NAME_1) .withNewWindowsPlan(PricingTier.BASIC_B1) - .withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2015) + .withPhpVersion(PhpVersion.PHP5_6) + //.withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2015) .create(); + createdWebApp1 = true; Assert.assertNotNull(webApp1); Assert.assertEquals(Region.US_WEST, webApp1.region()); AppServicePlan plan1 = appServiceManager.appServicePlans().getById(webApp1.appServicePlanId()); @@ -56,9 +93,41 @@ public void canCRUDWebApp() throws Exception { .withExistingWindowsPlan(plan1) .withNewResourceGroup(RG_NAME_2) .create(); + createdWebApp2 = true; Assert.assertNotNull(webApp2); Assert.assertEquals(Region.US_WEST, webApp1.region()); + WebApp webApp3 = appServiceManager.webApps().define(WEBAPP_NAME_3) + .withRegion(Region.US_WEST) + .withNewResourceGroup(RG_NAME_3) + .withNewWindowsPlan(PricingTier.BASIC_B1) + .withJavaVersion(JavaVersion.JAVA_8_NEWEST) + .withWebContainer(WebContainer.TOMCAT_8_0_NEWEST) + //.withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2015) + .create(); + createdWebApp3 = true; + Assert.assertNotNull(webApp3); + Assert.assertEquals(Region.US_WEST, webApp3.region()); + AppServicePlan plan3 = appServiceManager.appServicePlans().getById(webApp3.appServicePlanId()); + Assert.assertNotNull(plan3); + Assert.assertEquals(Region.US_WEST, plan3.region()); + Assert.assertEquals(PricingTier.BASIC_B1, plan3.pricingTier()); + + WebApp webApp4 = appServiceManager.webApps().define(WEBAPP_NAME_4) + .withRegion(Region.US_WEST) + .withNewResourceGroup(RG_NAME_4) + .withNewWindowsPlan(PricingTier.BASIC_B1) + .withNodeVersion(NodeVersion.NODE6_5) + //.withRemoteDebuggingEnabled(RemoteVisualStudioVersion.VS2015) + .create(); + createdWebApp4 = true; + Assert.assertNotNull(webApp4); + Assert.assertEquals(Region.US_WEST, webApp4.region()); + AppServicePlan plan4 = appServiceManager.appServicePlans().getById(webApp4.appServicePlanId()); + Assert.assertNotNull(plan4); + Assert.assertEquals(Region.US_WEST, plan4.region()); + Assert.assertEquals(PricingTier.BASIC_B1, plan4.pricingTier()); + // Get WebApp webApp = appServiceManager.webApps().getByResourceGroup(RG_NAME_1, webApp1.name()); Assert.assertEquals(webApp1.id(), webApp.id()); @@ -79,5 +148,11 @@ public void canCRUDWebApp() throws Exception { Assert.assertNotNull(plan2); Assert.assertEquals(Region.US_WEST, plan2.region()); Assert.assertEquals(PricingTier.STANDARD_S2, plan2.pricingTier()); + + } + + @Test + public void canUpdateRuntimes() { + AppServiceManager.Runtimes runtimes = appServiceManager.latestRuntimes(); } } \ No newline at end of file From 4e42ed147715d2f6411c6cefb5cecf55cf688c45 Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Thu, 10 Jan 2019 11:48:44 -0800 Subject: [PATCH 02/14] Add tests --- .../management/appservice/JavaVersion.java | 11 ++ .../appservice/NetFrameworkVersion.java | 11 ++ .../management/appservice/NodeVersion.java | 11 ++ .../management/appservice/PhpVersion.java | 11 ++ .../management/appservice/PythonVersion.java | 11 ++ .../management/appservice/RuntimeVersion.java | 9 ++ .../management/appservice/WebContainer.java | 11 ++ .../implementation/AppServiceManager.java | 2 +- .../management/appservice/WebAppsTests.java | 118 +++++++++++++++++- 9 files changed, 193 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java index 900aef94c42..040982d4438 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java @@ -72,6 +72,17 @@ public String getRuntimeName() { return ComponentName; } + @Override + public boolean containsVersion(String version) { + for (JavaVersion ver : values()) { + if (ver.toString().equalsIgnoreCase(version)) { + return true; + } + } + + return false; + } + @Override protected boolean shouldProcessMinorVersions() { return true; diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java index 4db5ed4a03c..97c6773d349 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java @@ -45,6 +45,17 @@ public String getRuntimeName() { return ComponentName; } + @Override + public boolean containsVersion(String version) { + for (NetFrameworkVersion ver : values()) { + if (ver.toString().equalsIgnoreCase(version)) { + return true; + } + } + + return false; + } + @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { if(ComponentName.equalsIgnoreCase(name)) { diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java index ed09b49fc1f..451a4a46c42 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java @@ -90,6 +90,17 @@ public String getRuntimeName() { return ComponentName; } + @Override + public boolean containsVersion(String version) { + for (NodeVersion ver : values()) { + if (ver.toString().equalsIgnoreCase(version)) { + return true; + } + } + + return false; + } + @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { if(ComponentName.equalsIgnoreCase(name)) { diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java index ca43b24792a..63209da2c7a 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java @@ -51,6 +51,17 @@ public String getRuntimeName() { return ComponentName; } + @Override + public boolean containsVersion(String version) { + for (PhpVersion ver : values()) { + if (ver.toString().equalsIgnoreCase(version)) { + return true; + } + } + + return false; + } + @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { if (ComponentName.equalsIgnoreCase(name)) { diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java index e0651941119..ac7631f5d09 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java @@ -45,6 +45,17 @@ public String getRuntimeName() { return ComponentName; } + @Override + public boolean containsVersion(String version) { + for (PythonVersion ver : values()) { + if (ver.toString().equalsIgnoreCase(version)) { + return true; + } + } + + return false; + } + @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { if (ComponentName.equalsIgnoreCase(name)) { diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java index 5377feb27c0..38bb48f27bc 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java @@ -9,6 +9,8 @@ import com.microsoft.azure.management.appservice.implementation.ApplicationStackInner; import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; +import java.util.Collection; + /** * Defines values for Java versions. */ @@ -20,6 +22,13 @@ public abstract class RuntimeVersion> extends Expand */ public abstract String getRuntimeName(); + /** + * Checks if the runtime contains the version provided + * @param version the version to check + * @return true if the version is present in the enum, false otherwise + */ + public abstract boolean containsVersion(String version); + /** * @param version runtime version for which we need to create the enum diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java index 7338c0d6b34..c55a82acb58 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java @@ -89,6 +89,17 @@ public String getRuntimeName() { return this.ComponentName; } + @Override + public boolean containsVersion(String version) { + for (WebContainer ver : values()) { + if (ver.toString().equalsIgnoreCase(version)) { + return true; + } + } + + return false; + } + @Override protected boolean shouldProcessFrameworks() { return true; diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java index 2bc3d6f370a..bd2be9612f0 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java @@ -206,7 +206,7 @@ public FunctionApps functionApps() { * * @return Returns the latest Windows runtime stacks */ - public Runtimes latestRuntimes() { + public Runtimes latestWindowsRuntimes() { Hashtable variousRuntimes = new Hashtable<>(); variousRuntimes.put(JavaVersion.ComponentName.toLowerCase(), JavaVersion.OFF); variousRuntimes.put(NodeVersion.ComponentName.toLowerCase(), NodeVersion.OFF); diff --git a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java index a7b1eee0c10..e7e52cf4730 100644 --- a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java +++ b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java @@ -7,11 +7,16 @@ package com.microsoft.azure.management.appservice; import com.microsoft.azure.management.appservice.implementation.AppServiceManager; +import com.microsoft.azure.management.appservice.implementation.ApplicationStackInner; +import com.microsoft.azure.management.appservice.implementation.ProvidersInner; +import com.microsoft.azure.management.appservice.implementation.WebSiteManagementClientImpl; import com.microsoft.azure.management.resources.fluentcore.arm.Region; import com.microsoft.rest.RestClient; import org.junit.Assert; import org.junit.Test; +import java.util.Collection; +import java.util.Iterator; import java.util.List; public class WebAppsTests extends AppServiceTest { @@ -30,6 +35,7 @@ public class WebAppsTests extends AppServiceTest { private boolean createdWebApp3 = false; private boolean createdWebApp4 = false; private boolean createdWebApp5 = false; + private RestClient restClient = null; @Override protected void initializeClients(RestClient restClient, String defaultSubscription, String domain) { @@ -44,6 +50,7 @@ protected void initializeClients(RestClient restClient, String defaultSubscripti RG_NAME_4 = generateRandomResourceName("javacsmrg", 20); RG_NAME_5 = generateRandomResourceName("javacsmrg", 20); + this.restClient = restClient; super.initializeClients(restClient, defaultSubscription, domain); } @@ -153,6 +160,115 @@ public void canCRUDWebApp() throws Exception { @Test public void canUpdateRuntimes() { - AppServiceManager.Runtimes runtimes = appServiceManager.latestRuntimes(); + + //Get the runtime data and check that all the altest runtimes do have it + ProvidersInner providerInner = new ProvidersInner(restClient.retrofit(), new WebSiteManagementClientImpl(restClient) + .withSubscriptionId(appServiceManager.subscriptionId())); + + Iterator stackIter = providerInner.getAvailableStacks("Windows").iterator(); + + //Get the runtimes from appSvcManager + AppServiceManager.Runtimes runtimes = appServiceManager.latestWindowsRuntimes(); + + //Check if all the Runtimes returned by the providerInner are present in the runtimes + while (stackIter.hasNext()) { + ApplicationStackInner stackInfo = stackIter.next(); + + String valuesNotFound = null; + if (stackInfo.name().equalsIgnoreCase(WebContainer.ComponentName)){ + valuesNotFound = checkJavaContainerEnumContainsAllValues(stackInfo.properties().frameworks(), runtimes.Webcontainers()); + } else { + valuesNotFound = checkRuntimeContainsValues(stackInfo.name(), stackInfo.properties().majorVersions(), runtimes); + } + + Assert.assertNull(valuesNotFound); + } + } + + private String checkJavaContainerEnumContainsAllValues(List frameworks, Collection webContainerCollection) { + String valuesNotFound = null; + + for(ApplicationStackInner.Properties framerwork : frameworks) { + for (StackMajorVersion majorVersion : framerwork.majorVersions()) { + String majorVersionString = framerwork.name() + WebContainer.SEPERATOR + majorVersion.runtimeVersion(); + + if (!WebContainer.OFF.containsVersion(majorVersionString)) { + valuesNotFound += "\'" + majorVersionString + "\' "; + } + + //for webContainers we process the minor versions as well + if (majorVersion.minorVersions() != null) { + for (StackMinorVersion minorVersion : majorVersion.minorVersions()) { + String minorVersionString = framerwork.name() + WebContainer.SEPERATOR + minorVersion.runtimeVersion(); + if (!WebContainer.OFF.containsVersion(minorVersionString)) { + valuesNotFound += "\'" + minorVersionString + "\' "; + } + } + } + } + } + + return valuesNotFound; + } + + private String checkRuntimeContainsValues(String runtimeName, List majorVersions, AppServiceManager.Runtimes runtimes) { + String valuesNotFound = null; + boolean checkMinorVersion = false; + boolean checkRuntimeVersion = true; + + RuntimeVersion runtimeVersionToUse = null; + switch (runtimeName) { + case JavaVersion.ComponentName : { + runtimeVersionToUse = JavaVersion.OFF; + checkMinorVersion = true; + break; + } + case NodeVersion.ComponentName : { + runtimeVersionToUse = NodeVersion.OFF; + break; + } + case PhpVersion.ComponentName : { + runtimeVersionToUse = PhpVersion.OFF; + break; + } + case PythonVersion.ComponentName : { + runtimeVersionToUse = PythonVersion.OFF; + break; + } + case NetFrameworkVersion.ComponentName : { + runtimeVersionToUse = NetFrameworkVersion.OFF; + checkRuntimeVersion = false; + break; + } + default : + //runtime name not found + return runtimeName; + } + + for (StackMajorVersion majorVersion : majorVersions) { + String majorVersionString = majorVersion.runtimeVersion(); + if (!checkRuntimeVersion) { + majorVersionString = majorVersion.displayVersion(); + } + + if (!runtimeVersionToUse.containsVersion(majorVersionString)) { + valuesNotFound += "\'" + majorVersionString + "\' "; + } + + if (checkMinorVersion && majorVersion.minorVersions() != null) { + for (StackMinorVersion minorVersion : majorVersion.minorVersions()) { + String minorVersionString = minorVersion.runtimeVersion(); + if (!checkRuntimeVersion) { + minorVersionString = minorVersion.displayVersion(); + } + + if (!runtimeVersionToUse.containsVersion(minorVersionString)) { + valuesNotFound += "\'" + minorVersionString + "\' "; + } + } + } + } + + return valuesNotFound; } } \ No newline at end of file From 443bea56c36b08625703808982bad3978f304b4b Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Thu, 10 Jan 2019 14:47:41 -0800 Subject: [PATCH 03/14] Fix build break and update linux stacks --- .../management/appservice/RuntimeStack.java | 79 +++++++++++++++---- .../appservice/implementation/WebAppImpl.java | 2 - 2 files changed, 65 insertions(+), 16 deletions(-) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java index 81b2c166572..9d1ff03aaad 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java @@ -13,23 +13,59 @@ */ @Fluent(ContainerName = "/Microsoft.Azure.Management.AppService.Fluent") public class RuntimeStack { - /** Node.JS 6.10. */ - public static final RuntimeStack NODEJS_6_10 = new RuntimeStack("NODE", "6.10"); + /** Ruby 2.3. */ + public static final RuntimeStack RUBY_2_3 = new RuntimeStack("RUBY", "2.3"); - /** Node.JS 6.9. */ - public static final RuntimeStack NODEJS_6_9 = new RuntimeStack("NODE", "6.9"); + /** Node.JS 4.4. */ + public static final RuntimeStack NODEJS_4_4 = new RuntimeStack("NODE", "4.4"); - /** Node.JS 6.6. */ - public static final RuntimeStack NODEJS_6_6 = new RuntimeStack("NODE", "6.6"); + /** Node.JS 4.5. */ + public static final RuntimeStack NODEJS_4_5 = new RuntimeStack("NODE", "4.5"); /** Node.JS 6.2. */ public static final RuntimeStack NODEJS_6_2 = new RuntimeStack("NODE", "6.2"); - /** Node.JS 4.5. */ - public static final RuntimeStack NODEJS_4_5 = new RuntimeStack("NODE", "4.5"); + /** Node.JS 6.6. */ + public static final RuntimeStack NODEJS_6_6 = new RuntimeStack("NODE", "6.6"); - /** Node.JS 4.4. */ - public static final RuntimeStack NODEJS_4_4 = new RuntimeStack("NODE", "4.4"); + /** Node.JS 6.9. */ + public static final RuntimeStack NODEJS_6_9 = new RuntimeStack("NODE", "6.9"); + + /** Node.JS 6.10. */ + public static final RuntimeStack NODEJS_6_10 = new RuntimeStack("NODE", "6.10"); + + /** Node.JS 6.11. */ + public static final RuntimeStack NODEJS_6_11 = new RuntimeStack("NODE", "6.11"); + + /** Node.JS 8.0. */ + public static final RuntimeStack NODEJS_8_0 = new RuntimeStack("NODE", "8.0"); + + /** Node.JS 8.1. */ + public static final RuntimeStack NODEJS_8_1 = new RuntimeStack("NODE", "8.1"); + + /** Node.JS 8.2. */ + public static final RuntimeStack NODEJS_8_2 = new RuntimeStack("NODE", "8.2"); + + /** Node.JS 8.8. */ + public static final RuntimeStack NODEJS_8_8 = new RuntimeStack("NODE", "8.8"); + + /** Node.JS 8.9. */ + public static final RuntimeStack NODEJS_8_9 = new RuntimeStack("NODE", "8.9"); + + /** Node.JS 8.11. */ + public static final RuntimeStack NODEJS_8_11 = new RuntimeStack("NODE", "8.11"); + + /** Node.JS 8.12. */ + public static final RuntimeStack NODEJS_8_12 = new RuntimeStack("NODE", "8.12"); + + /** Node.JS 9.4. */ + public static final RuntimeStack NODEJS_9_4 = new RuntimeStack("NODE", "9_4"); + + /** Node.JS 10.1. */ + public static final RuntimeStack NODEJS_10_1 = new RuntimeStack("NODE", "10.1"); + + /** Node.JS 10.10. */ + public static final RuntimeStack NODEJS_10_10 = new RuntimeStack("NODE", "10.10"); /** PHP 5.6. */ public static final RuntimeStack PHP_5_6 = new RuntimeStack("PHP", "5.6"); @@ -37,17 +73,20 @@ public class RuntimeStack { /** PHP 7.0. */ public static final RuntimeStack PHP_7_0 = new RuntimeStack("PHP", "7.0"); + /** PHP 7.2. */ + public static final RuntimeStack PHP_7_2 = new RuntimeStack("PHP", "7.2"); + /** .NET Core v1.0. */ public static final RuntimeStack NETCORE_V1_0 = new RuntimeStack("DOTNETCORE", "1.0"); /** .NET Core v1.1. */ public static final RuntimeStack NETCORE_V1_1 = new RuntimeStack("DOTNETCORE", "1.1"); - /** Ruby 2.3. */ - public static final RuntimeStack RUBY_2_3 = new RuntimeStack("RUBY", "2.3"); + /** .NET Core v2.0. */ + public static final RuntimeStack NETCORE_V2_0 = new RuntimeStack("DOTNETCORE", "2.0"); - /** Java JRE 8. */ - public static final RuntimeStack JAVA_8_JRE8 = new RuntimeStack("JAVA", "8-jre8"); + /** .NET Core v2.1. */ + public static final RuntimeStack NETCORE_V2_1 = new RuntimeStack("DOTNETCORE", "2.1"); /** Tomcat 8.5-jre8 image with catalina root set to Azure wwwroot. */ public static final RuntimeStack TOMCAT_8_5_JRE8 = new RuntimeStack("TOMCAT", "8.5-jre8"); @@ -55,9 +94,21 @@ public class RuntimeStack { /** Tomcat 9.0-jre8 image with catalina root set to Azure wwwroot. */ public static final RuntimeStack TOMCAT_9_0_JRE8 = new RuntimeStack("TOMCAT", "9.0-jre8"); + /** Java JRE 8. */ + public static final RuntimeStack JAVA_8_JRE8 = new RuntimeStack("JAVA", "8-jre8"); + /** WildFly 14.0-jre image. */ public static final RuntimeStack WILDFLY_14_JRE8 = new RuntimeStack("WILDFLY", "14-jre8"); + /** PYTHON 3.7. */ + public static final RuntimeStack PYTHON_3_7 = new RuntimeStack("PYTHON", "3.7"); + + /** PYTHON 3.6. */ + public static final RuntimeStack PYTHON_3_6 = new RuntimeStack("PYTHON", "3.6"); + + /** PYTHON 2.7. */ + public static final RuntimeStack PYTHON_2_7 = new RuntimeStack("PYTHON", "2.7"); + /** The name of the language runtime stack. */ private String stack; /** The version of the runtime. */ diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java index 0a4aaee1de5..08fd121eae2 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java @@ -6,12 +6,10 @@ package com.microsoft.azure.management.appservice.implementation; -import com.microsoft.azure.PagedList; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azure.management.appservice.*; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import rx.Completable; -import sun.plugin.JavaRunTime; import java.io.*; import java.util.ArrayList; From 98935ce840a8b89a83b0fb3179017fe96aa5529d Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Thu, 10 Jan 2019 16:32:05 -0800 Subject: [PATCH 04/14] Take care of review comments and fix build issues --- .../appservice/AppServiceRuntimes.java | 48 +++++++++ .../management/appservice/JavaVersion.java | 28 +++++- .../appservice/NetFrameworkVersion.java | 24 ++++- .../management/appservice/NodeVersion.java | 24 ++++- .../management/appservice/PhpVersion.java | 12 ++- .../management/appservice/PythonVersion.java | 24 ++++- .../management/appservice/RuntimeVersion.java | 47 ++++----- .../management/appservice/WebContainer.java | 28 +++++- .../implementation/AppServiceManager.java | 98 +++++++++++++++---- .../implementation/ApplicationStackInner.java | 8 ++ .../implementation/WebAppBaseImpl.java | 48 ++++++++- .../appservice/implementation/WebAppImpl.java | 3 - .../management/appservice/WebAppsTests.java | 18 ++-- 13 files changed, 323 insertions(+), 87 deletions(-) create mode 100644 azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java new file mode 100644 index 00000000000..d566c410ef1 --- /dev/null +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java @@ -0,0 +1,48 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.appservice; + +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Fluent; + +import java.util.Collection; + +/** + * Endpoints and credentials for publishing to a web app. + */ +@Fluent(ContainerName = "/Microsoft.Azure.Management.AppService.Fluent") +@Beta +public interface AppServiceRuntimes { + /** + * @return the netframework versions. + */ + Collection NetFrameworkVersions(); + + /** + * @return the python versions. + */ + Collection PythonVersions(); + + /** + * @return the php versions. + */ + Collection PhpVersions(); + + /** + * @return the java versions. + */ + Collection JavaVersions(); + + /** + * @return The web container versions. + */ + Collection Webcontainers(); + + /** + * @return The node versions. + */ + Collection NodeVersions(); +} diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java index 040982d4438..9628ff1ab69 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/JavaVersion.java @@ -6,15 +6,17 @@ package com.microsoft.azure.management.appservice; -import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; - import java.util.Collection; /** * Defines values for Java versions. */ public final class JavaVersion extends RuntimeVersion { - public static final String ComponentName = "java"; + /** + * Name of the component. + */ + public static final String COMPONENT_NAME = "java"; + /** Static value 'Off' for JavaVersion. */ public static final JavaVersion OFF = fromString("null"); @@ -67,11 +69,18 @@ public static Collection values() { return values(JavaVersion.class); } + /** + * @return the component name. + */ @Override public String getRuntimeName() { - return ComponentName; + return COMPONENT_NAME; } + /** + * @param version the version to check. + * @return Check if the version is present in the enum. + */ @Override public boolean containsVersion(String version) { for (JavaVersion ver : values()) { @@ -83,14 +92,23 @@ public boolean containsVersion(String version) { return false; } + /** + * @return true. We process minor versions for this runtime. + */ @Override protected boolean shouldProcessMinorVersions() { return true; } + /** + * Create a version enum from the passed in values if one does not already exist. + * @param name name of the framweork + * @param displayVersion display version of the runtime + * @param runtimeVersion runtime versin of the runtime + */ @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { - if (ComponentName.equalsIgnoreCase(name)) { + if (COMPONENT_NAME.equalsIgnoreCase(name)) { fromString(runtimeVersion); } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java index 97c6773d349..c414b0c3976 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java @@ -8,13 +8,14 @@ import java.util.Collection; -import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; - /** * Defines values for .NET framework version. */ public final class NetFrameworkVersion extends RuntimeVersion { - public static final String ComponentName = "aspnet"; + /** + * Name of the component + */ + public static final String COMPONENT_NAME = "aspnet"; public static final NetFrameworkVersion OFF = NetFrameworkVersion.fromString("null"); @@ -40,11 +41,18 @@ public static Collection values() { return values(NetFrameworkVersion.class); } + /** + * @return The runtime name + */ @Override public String getRuntimeName() { - return ComponentName; + return COMPONENT_NAME; } + /** + * @param version the version to check + * @return true if the version present in the enum, false otherwise + */ @Override public boolean containsVersion(String version) { for (NetFrameworkVersion ver : values()) { @@ -56,9 +64,15 @@ public boolean containsVersion(String version) { return false; } + /** + * Create the enum fomr the passed in values if it does not already exist + * @param name name of the framweork + * @param displayVersion display version of the runtime + * @param runtimeVersion runtime version of the runtime + */ @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { - if(ComponentName.equalsIgnoreCase(name)) { + if(COMPONENT_NAME.equalsIgnoreCase(name)) { fromString(displayVersion); } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java index 451a4a46c42..0e64de77c73 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java @@ -6,15 +6,16 @@ package com.microsoft.azure.management.appservice; -import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; - import java.util.Collection; /** * Defines values for PHP version. */ public final class NodeVersion extends RuntimeVersion { - public static final String ComponentName = "node"; + /** + * Name of the component + */ + public static final String COMPONENT_NAME = "node"; /** Static value 'Off' for NodeVersion. */ public static final NodeVersion OFF = NodeVersion.fromString("null"); @@ -85,11 +86,18 @@ public static Collection values() { return values(NodeVersion.class); } + /** + * @return the name of the component. + */ @Override public String getRuntimeName() { - return ComponentName; + return COMPONENT_NAME; } + /** + * @param version the version to check + * @return true if the version is present in the enum, false otherwise. + */ @Override public boolean containsVersion(String version) { for (NodeVersion ver : values()) { @@ -101,9 +109,15 @@ public boolean containsVersion(String version) { return false; } + /** + * Vreate a new version enum form the passed in values if one does not exist already. + * @param name name of the framweork + * @param displayVersion display version of the runtime + * @param runtimeVersion runtime versin of the runtime + */ @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { - if(ComponentName.equalsIgnoreCase(name)) { + if(COMPONENT_NAME.equalsIgnoreCase(name)) { fromString(runtimeVersion); } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java index 63209da2c7a..8d897c1189e 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java @@ -8,13 +8,15 @@ import java.util.Collection; -import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; - /** * Defines values for PHP version. */ public final class PhpVersion extends RuntimeVersion { - public static final String ComponentName = "php"; + /** + * Name of the component + */ + public static final String COMPONENT_NAME = "php"; + /** Static value 'Off' for PhpVersion. */ public static final PhpVersion OFF = PhpVersion.fromString("null"); @@ -48,7 +50,7 @@ public static Collection values() { @Override public String getRuntimeName() { - return ComponentName; + return COMPONENT_NAME; } @Override @@ -64,7 +66,7 @@ public boolean containsVersion(String version) { @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { - if (ComponentName.equalsIgnoreCase(name)) { + if (COMPONENT_NAME.equalsIgnoreCase(name)) { fromString(runtimeVersion); } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java index ac7631f5d09..4177d5a3e48 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PythonVersion.java @@ -8,13 +8,14 @@ import java.util.Collection; -import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; - /** * Defines values for Python version. */ public final class PythonVersion extends RuntimeVersion { - public static final String ComponentName = "python"; + /** + * Name of the component. + */ + public static final String COMPONENT_NAME = "python"; /** Static value 'Off' for PythonVersion. */ public static final PythonVersion OFF = PythonVersion.fromString("null"); @@ -40,11 +41,18 @@ public static Collection values() { return values(PythonVersion.class); } + /** + * @return the runtime name. + */ @Override public String getRuntimeName() { - return ComponentName; + return COMPONENT_NAME; } + /** + * @param version the version to check. + * @return true if the enum contains the version, false otherwise. + */ @Override public boolean containsVersion(String version) { for (PythonVersion ver : values()) { @@ -56,9 +64,15 @@ public boolean containsVersion(String version) { return false; } + /** + * Create a version enum form the values passed in if one does not exist already. + * @param name name of the framweork + * @param displayVersion display version of the runtime + * @param runtimeVersion runtime versin of the runtime + */ @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { - if (ComponentName.equalsIgnoreCase(name)) { + if (COMPONENT_NAME.equalsIgnoreCase(name)) { fromString(runtimeVersion); } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java index 38bb48f27bc..53a93560174 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java @@ -9,7 +9,6 @@ import com.microsoft.azure.management.appservice.implementation.ApplicationStackInner; import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; -import java.util.Collection; /** * Defines values for Java versions. @@ -17,73 +16,75 @@ public abstract class RuntimeVersion> extends ExpandableStringEnum{ /** - * Rrturns the name of the runtime - * @return + * @return Rrturns the name of the runtime. */ public abstract String getRuntimeName(); /** - * Checks if the runtime contains the version provided - * @param version the version to check - * @return true if the version is present in the enum, false otherwise + * Checks if the runtime contains the version provided. + * @param version the version to check. + * @return true if the version is present in the enum, false otherwise. */ public abstract boolean containsVersion(String version); /** - * @param version runtime version for which we need to create the enum + * @param version runtime version for which we need to create the enum. */ /** - * Creates an enum for the version of the runtime if one does not already exist - * @param name name of the framweork - * @param displayVersion display version of the runtime - * @param runtimeVersion runtime versin of the runtime + * Creates an enum for the version of the runtime if one does not already exist. + * @param name name of the framweork. + * @param displayVersion display version of the runtime. + * @param runtimeVersion runtime versin of the runtime. */ protected abstract void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion); /** - * If a subclass is interested in creating enums for the minor versions, then override this + * If a subclass is interested in creating enums for the minor versions, then override this. * function and return true; - * @return should we process the minor versions + * @return should we process the minor versions. */ protected boolean shouldProcessMinorVersions() { return false; } /** - * If a subclass is interested in creating enums for the frameworks, then override this - * function and return true; - * @return should we process the minor versions + * If a subclass is interested in creating enums for the frameworks, then override this function and return true. + * @return should we process the minor versions. */ protected boolean shouldProcessFrameworks() { return false; } /** - * Process the information in the framework information - * @param frameworkInfo, the frameework information to process + * Process the information in the framework information. + * @param frameworkInfo, the frameework information to process. */ protected void processFrameWorkInformation(ApplicationStackInner.Properties frameworkInfo) { - for(StackMajorVersion majorVersion : frameworkInfo.majorVersions()) { + for (StackMajorVersion majorVersion : frameworkInfo.majorVersions()) { this.processRuntimeMajorVersion(frameworkInfo.name(), majorVersion); } } /** - * Check if we need to create enum(s) for this major version of the runtime - * @param name, name of the runtime - * @param versionInfo major bversion information + * Check if we need to create enum(s) for this major version of the runtime. + * @param name, name of the runtime. + * @param versionInfo major bversion information. */ protected void processRuntimeMajorVersion(String name, StackMajorVersion versionInfo) { createEnumFromVersionInformation(name, versionInfo.displayVersion(), versionInfo.runtimeVersion()); if (this.shouldProcessMinorVersions()) { - for(StackMinorVersion minorVersionInfo : versionInfo.minorVersions()) { + for( StackMinorVersion minorVersionInfo : versionInfo.minorVersions()) { this.createEnumFromVersionInformation(name, minorVersionInfo.displayVersion(), minorVersionInfo.runtimeVersion()); } } } + /** + * Create versions from the p[assed in data. + * @param appStack Latest app stack data to be processed. + */ public void parseApplicationStackInner(ApplicationStackInner appStack) { if (getRuntimeName().equalsIgnoreCase(appStack.name())) { //this is ours... process it diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java index c55a82acb58..af70c71c238 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java @@ -6,15 +6,16 @@ package com.microsoft.azure.management.appservice; -import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; - import java.util.Collection; /** * Defines values for Java web container. */ public final class WebContainer extends RuntimeVersion { - public static final String ComponentName = "javaContainers"; + /** + * Name of the component. + */ + public static final String COMPONENT_NAME = "javaContainers"; public static final String SEPERATOR = " "; public static final WebContainer OFF = WebContainer.fromString("null"); /** Static value tomcat 7.0 newest for WebContainer. */ @@ -84,11 +85,18 @@ public static Collection values() { return values(WebContainer.class); } + /** + * @return the component name. + */ @Override public String getRuntimeName() { - return this.ComponentName; + return this.COMPONENT_NAME; } + /** + * @param version the version to check + * @return True if the enum contains the version, false otherwise. + */ @Override public boolean containsVersion(String version) { for (WebContainer ver : values()) { @@ -100,16 +108,28 @@ public boolean containsVersion(String version) { return false; } + /** + * @return true. This runtime processes frameworks. + */ @Override protected boolean shouldProcessFrameworks() { return true; } + /** + * @return true, This runtime processes minor versions. + */ @Override protected boolean shouldProcessMinorVersions() { return true; } + /** + * Create a new version enum from the passed in values if one does not already exist. + * @param name name of the framweork + * @param displayVersion display version of the runtime + * @param runtimeVersion runtime versin of the runtime + */ @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { fromString(name, runtimeVersion); diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java index bd2be9612f0..d54b2878593 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java @@ -10,7 +10,20 @@ import com.microsoft.azure.AzureResponseBuilder; import com.microsoft.azure.credentials.AzureTokenCredentials; import com.microsoft.azure.management.apigeneration.Beta; -import com.microsoft.azure.management.appservice.*; +import com.microsoft.azure.management.appservice.AppServiceCertificateOrders; +import com.microsoft.azure.management.appservice.AppServiceCertificates; +import com.microsoft.azure.management.appservice.AppServiceDomains; +import com.microsoft.azure.management.appservice.AppServicePlans; +import com.microsoft.azure.management.appservice.AppServiceRuntimes; +import com.microsoft.azure.management.appservice.FunctionApps; +import com.microsoft.azure.management.appservice.JavaVersion; +import com.microsoft.azure.management.appservice.NetFrameworkVersion; +import com.microsoft.azure.management.appservice.NodeVersion; +import com.microsoft.azure.management.appservice.PhpVersion; +import com.microsoft.azure.management.appservice.PythonVersion; +import com.microsoft.azure.management.appservice.RuntimeVersion; +import com.microsoft.azure.management.appservice.WebApps; +import com.microsoft.azure.management.appservice.WebContainer; import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; import com.microsoft.azure.management.resources.fluentcore.arm.AzureConfigurable; @@ -206,14 +219,14 @@ public FunctionApps functionApps() { * * @return Returns the latest Windows runtime stacks */ - public Runtimes latestWindowsRuntimes() { + public AppServiceRuntimes latestWindowsRuntimes() { Hashtable variousRuntimes = new Hashtable<>(); - variousRuntimes.put(JavaVersion.ComponentName.toLowerCase(), JavaVersion.OFF); - variousRuntimes.put(NodeVersion.ComponentName.toLowerCase(), NodeVersion.OFF); - variousRuntimes.put(WebContainer.ComponentName.toLowerCase(), WebContainer.OFF); - variousRuntimes.put(PythonVersion.ComponentName.toLowerCase(), PythonVersion.OFF); - variousRuntimes.put(PhpVersion.ComponentName.toLowerCase(), PhpVersion.OFF); - variousRuntimes.put(NetFrameworkVersion.ComponentName.toLowerCase(), NetFrameworkVersion.OFF); + variousRuntimes.put(JavaVersion.COMPONENT_NAME.toLowerCase(), JavaVersion.OFF); + variousRuntimes.put(NodeVersion.COMPONENT_NAME.toLowerCase(), NodeVersion.OFF); + variousRuntimes.put(WebContainer.COMPONENT_NAME.toLowerCase(), WebContainer.OFF); + variousRuntimes.put(PythonVersion.COMPONENT_NAME.toLowerCase(), PythonVersion.OFF); + variousRuntimes.put(PhpVersion.COMPONENT_NAME.toLowerCase(), PhpVersion.OFF); + variousRuntimes.put(NetFrameworkVersion.COMPONENT_NAME.toLowerCase(), NetFrameworkVersion.OFF); Iterator stackIter = this.innerManagementClient.providers().getAvailableStacks("Windows").iterator(); while (stackIter.hasNext()) { @@ -227,7 +240,7 @@ public Runtimes latestWindowsRuntimes() { } } - Runtimes runtimes = new Runtimes(); + AppServiceRuntimesImpl runtimes = new AppServiceRuntimesImpl(); runtimes.withJavaVersions(JavaVersion.values()); runtimes.withNetFrameworkVersions(NetFrameworkVersion.values()); @@ -239,7 +252,10 @@ public Runtimes latestWindowsRuntimes() { return runtimes; } - public class Runtimes { + /** + * The runtimes data to be consumed by the user. + */ + public class AppServiceRuntimesImpl implements AppServiceRuntimes { private Collection netframeworkVersions; private Collection pythonVersions; private Collection phpVersions; @@ -247,58 +263,102 @@ public class Runtimes { private Collection nodeVersions; private Collection webContainers; - public Runtimes() { + public AppServiceRuntimesImpl() { } - public Runtimes withNetFrameworkVersions(Collection versions){ + /** + * @param versions the NetFramweork versions. + * @return AppServiceRuntimesImpl object + */ + public AppServiceRuntimesImpl withNetFrameworkVersions(Collection versions) { this.netframeworkVersions = versions; return this; } - public Runtimes withPythonVersions(Collection versions) { + /** + * @param versions the Python versions. + * @return AppServiceRuntimesImpl object + */ + public AppServiceRuntimesImpl withPythonVersions(Collection versions) { this.pythonVersions = versions; return this; } - public Runtimes withPhpVersions(Collection versions) { + /** + * @param versions the Php Versions. + * @return AppServiceRuntimesImpl object. + */ + public AppServiceRuntimesImpl withPhpVersions(Collection versions) { this.phpVersions = versions; return this; } - public Runtimes withJavaVersions(Collection versions) { + /** + * @param versions The Java Versions + * @return The runtimes object. + */ + public AppServiceRuntimesImpl withJavaVersions(Collection versions) { this.javaVersions = versions; return this; } - public Runtimes withWebContainers(Collection versions) { + /** + * @param versions The WebContainer versions + * @return The runtimes object. + */ + public AppServiceRuntimesImpl withWebContainers(Collection versions) { this.webContainers = versions; return this; } - public Runtimes withNodeVersions(Collection versions) { + /** + * @param versions the node versions. + * @return The runtimes object. + */ + public AppServiceRuntimesImpl withNodeVersions(Collection versions) { this.nodeVersions = versions; return this; } + /** + * @return the netframework versions. + */ public Collection NetFrameworkVersions() { return this.netframeworkVersions; } + /** + * @return the python versions. + */ public Collection PythonVersions() { return this.pythonVersions; } + /** + * @return the php versions. + */ public Collection PhpVersions() { return this.phpVersions; } + /** + * @return the java versions. + */ public Collection JavaVersions() { return this.javaVersions; } - public Collection Webcontainers() { return this.webContainers; } + /** + * @return The web container versions. + */ + public Collection Webcontainers() { + return this.webContainers; + } - public Collection NodeVersins() { + /** + * @return The node versions. + */ + public Collection NodeVersions() { return this.nodeVersions; } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java index a340a0c364b..e5284121b99 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java @@ -227,8 +227,16 @@ public ApplicationStackInner withFrameworks(List framewor return this; } + /** + * @return the properties + */ public Properties properties() { return this.properties; } + /** + * Sets the properties associated with the application stack. + * @param properties the properties to be set. + * @return the ApplicationStackInner object itself. + */ public ApplicationStackInner withProperties(Properties properties) { this.properties = properties; return this; diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java index 72e38053626..4972ea5405b 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java @@ -11,7 +11,41 @@ import com.google.common.collect.Sets; import com.microsoft.azure.AzureEnvironment; import com.microsoft.azure.management.apigeneration.LangDefinition; -import com.microsoft.azure.management.appservice.*; +import com.microsoft.azure.management.appservice.AppServiceCertificate; +import com.microsoft.azure.management.appservice.AppServiceDomain; +import com.microsoft.azure.management.appservice.AppSetting; +import com.microsoft.azure.management.appservice.AzureResourceType; +import com.microsoft.azure.management.appservice.CloningInfo; +import com.microsoft.azure.management.appservice.ConnStringValueTypePair; +import com.microsoft.azure.management.appservice.ConnectionString; +import com.microsoft.azure.management.appservice.ConnectionStringType; +import com.microsoft.azure.management.appservice.CustomHostNameDnsRecordType; +import com.microsoft.azure.management.appservice.FtpsState; +import com.microsoft.azure.management.appservice.HostNameBinding; +import com.microsoft.azure.management.appservice.HostNameSslState; +import com.microsoft.azure.management.appservice.HostNameType; +import com.microsoft.azure.management.appservice.JavaVersion; +import com.microsoft.azure.management.appservice.MSDeploy; +import com.microsoft.azure.management.appservice.ManagedPipelineMode; +import com.microsoft.azure.management.appservice.ManagedServiceIdentity; +import com.microsoft.azure.management.appservice.ManagedServiceIdentityType; +import com.microsoft.azure.management.appservice.NameValuePair; +import com.microsoft.azure.management.appservice.NetFrameworkVersion; +import com.microsoft.azure.management.appservice.NodeVersion; +import com.microsoft.azure.management.appservice.OperatingSystem; +import com.microsoft.azure.management.appservice.PhpVersion; +import com.microsoft.azure.management.appservice.PlatformArchitecture; +import com.microsoft.azure.management.appservice.PythonVersion; +import com.microsoft.azure.management.appservice.RemoteVisualStudioVersion; +import com.microsoft.azure.management.appservice.ScmType; +import com.microsoft.azure.management.appservice.SiteAvailabilityState; +import com.microsoft.azure.management.appservice.SiteConfig; +import com.microsoft.azure.management.appservice.SslState; +import com.microsoft.azure.management.appservice.UsageState; +import com.microsoft.azure.management.appservice.VirtualApplication; +import com.microsoft.azure.management.appservice.WebAppAuthentication; +import com.microsoft.azure.management.appservice.WebAppBase; +import com.microsoft.azure.management.appservice.WebContainer; import com.microsoft.azure.management.graphrbac.BuiltInRole; import com.microsoft.azure.management.resources.fluentcore.arm.ResourceId; import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl; @@ -35,7 +69,14 @@ import java.io.InputStream; import java.io.PipedInputStream; import java.io.PipedOutputStream; -import java.util.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; +import java.util.TreeMap; import java.util.concurrent.Callable; /** @@ -1216,11 +1257,10 @@ public FluentImplT withNodeVersion(NodeVersion version) { NameValuePair pair = getExistingAppSetting(NODE_VERSION_CONFIG_NAME, appSettings); boolean pairCreated = false; if (pair == null) { - pair = new NameValuePair(); + pair = new NameValuePair().withName(NODE_VERSION_CONFIG_NAME); pairCreated = true; } - pair.withName(NODE_VERSION_CONFIG_NAME); pair.withValue(version.toString()); if (pairCreated) { diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java index 08fd121eae2..576b41bf784 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java @@ -12,9 +12,6 @@ import rx.Completable; import java.io.*; -import java.util.ArrayList; -import java.util.Hashtable; -import java.util.Iterator; /** * The implementation for WebApp. diff --git a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java index e7e52cf4730..9a66f4d6d0c 100644 --- a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java +++ b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java @@ -168,14 +168,14 @@ public void canUpdateRuntimes() { Iterator stackIter = providerInner.getAvailableStacks("Windows").iterator(); //Get the runtimes from appSvcManager - AppServiceManager.Runtimes runtimes = appServiceManager.latestWindowsRuntimes(); + AppServiceRuntimes runtimes = appServiceManager.latestWindowsRuntimes(); - //Check if all the Runtimes returned by the providerInner are present in the runtimes + //Check if all the AppServiceRuntimesImpl returned by the providerInner are present in the runtimes while (stackIter.hasNext()) { ApplicationStackInner stackInfo = stackIter.next(); String valuesNotFound = null; - if (stackInfo.name().equalsIgnoreCase(WebContainer.ComponentName)){ + if (stackInfo.name().equalsIgnoreCase(WebContainer.COMPONENT_NAME)){ valuesNotFound = checkJavaContainerEnumContainsAllValues(stackInfo.properties().frameworks(), runtimes.Webcontainers()); } else { valuesNotFound = checkRuntimeContainsValues(stackInfo.name(), stackInfo.properties().majorVersions(), runtimes); @@ -211,31 +211,31 @@ private String checkJavaContainerEnumContainsAllValues(List majorVersions, AppServiceManager.Runtimes runtimes) { + private String checkRuntimeContainsValues(String runtimeName, List majorVersions, AppServiceRuntimes runtimes) { String valuesNotFound = null; boolean checkMinorVersion = false; boolean checkRuntimeVersion = true; RuntimeVersion runtimeVersionToUse = null; switch (runtimeName) { - case JavaVersion.ComponentName : { + case JavaVersion.COMPONENT_NAME: { runtimeVersionToUse = JavaVersion.OFF; checkMinorVersion = true; break; } - case NodeVersion.ComponentName : { + case NodeVersion.COMPONENT_NAME: { runtimeVersionToUse = NodeVersion.OFF; break; } - case PhpVersion.ComponentName : { + case PhpVersion.COMPONENT_NAME: { runtimeVersionToUse = PhpVersion.OFF; break; } - case PythonVersion.ComponentName : { + case PythonVersion.COMPONENT_NAME: { runtimeVersionToUse = PythonVersion.OFF; break; } - case NetFrameworkVersion.ComponentName : { + case NetFrameworkVersion.COMPONENT_NAME: { runtimeVersionToUse = NetFrameworkVersion.OFF; checkRuntimeVersion = false; break; From c15f0fc1a76c8a6d318cfc7045158df9db6774b0 Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Thu, 10 Jan 2019 16:34:27 -0800 Subject: [PATCH 05/14] Add one more java doc entry --- .../microsoft/azure/management/appservice/WebContainer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java index af70c71c238..16d6972d67d 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java @@ -16,6 +16,9 @@ public final class WebContainer extends RuntimeVersion { * Name of the component. */ public static final String COMPONENT_NAME = "javaContainers"; + /** + * Seperator used to create the version. + */ public static final String SEPERATOR = " "; public static final WebContainer OFF = WebContainer.fromString("null"); /** Static value tomcat 7.0 newest for WebContainer. */ From 9e846c7fb85aa8e37b1e139449b8d5ce75ce2cb1 Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Thu, 10 Jan 2019 16:38:36 -0800 Subject: [PATCH 06/14] Fix one * include --- .../management/appservice/implementation/WebAppImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java index 576b41bf784..a33bb7cba29 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java @@ -11,7 +11,10 @@ import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import rx.Completable; -import java.io.*; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; /** * The implementation for WebApp. From 40261e7ff0fd117d35ca92fc4af77c6a0885165d Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Fri, 11 Jan 2019 09:42:06 -0800 Subject: [PATCH 07/14] Fix build issues --- .../management/appservice/AppServiceRuntimes.java | 12 ++++++------ .../appservice/NetFrameworkVersion.java | 14 +++++++++----- .../azure/management/appservice/NodeVersion.java | 4 ++-- .../azure/management/appservice/PhpVersion.java | 2 +- .../management/appservice/RuntimeVersion.java | 5 +++-- .../azure/management/appservice/WebAppBase.java | 1 - .../azure/management/appservice/WebContainer.java | 5 +++++ .../implementation/AppServiceManager.java | 15 +++++++++------ .../implementation/ApplicationStackInner.java | 7 ++++++- .../appservice/implementation/WebAppBaseImpl.java | 2 +- .../appservice/implementation/WebAppImpl.java | 7 ++++++- .../azure/management/appservice/WebAppsTests.java | 3 +-- 12 files changed, 49 insertions(+), 28 deletions(-) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java index d566c410ef1..5578c50239a 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java @@ -19,30 +19,30 @@ public interface AppServiceRuntimes { /** * @return the netframework versions. */ - Collection NetFrameworkVersions(); + Collection netFrameworkVersions(); /** * @return the python versions. */ - Collection PythonVersions(); + Collection pythonVersions(); /** * @return the php versions. */ - Collection PhpVersions(); + Collection phpVersions(); /** * @return the java versions. */ - Collection JavaVersions(); + Collection javaVersions(); /** * @return The web container versions. */ - Collection Webcontainers(); + Collection webContainers(); /** * @return The node versions. */ - Collection NodeVersions(); + Collection nodeVersions(); } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java index c414b0c3976..c9876bb433b 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java @@ -13,10 +13,13 @@ */ public final class NetFrameworkVersion extends RuntimeVersion { /** - * Name of the component + * Name of the component. */ public static final String COMPONENT_NAME = "aspnet"; + /** + * Netframework Off setting. + */ public static final NetFrameworkVersion OFF = NetFrameworkVersion.fromString("null"); /** Static value v3.5 for NetFrameworkVersion. */ @@ -42,7 +45,7 @@ public static Collection values() { } /** - * @return The runtime name + * @return The runtime name. */ @Override public String getRuntimeName() { @@ -50,8 +53,8 @@ public String getRuntimeName() { } /** - * @param version the version to check - * @return true if the version present in the enum, false otherwise + * @param version the version to check. + * @return true if the version present in the enum, false otherwise. */ @Override public boolean containsVersion(String version) { @@ -65,7 +68,8 @@ public boolean containsVersion(String version) { } /** - * Create the enum fomr the passed in values if it does not already exist + * Create the enum fomr the passed in values if it does not already exist. + * * @param name name of the framweork * @param displayVersion display version of the runtime * @param runtimeVersion runtime version of the runtime diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java index 0e64de77c73..eff56cef7f4 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NodeVersion.java @@ -13,7 +13,7 @@ */ public final class NodeVersion extends RuntimeVersion { /** - * Name of the component + * Name of the component. */ public static final String COMPONENT_NAME = "node"; /** Static value 'Off' for NodeVersion. */ @@ -117,7 +117,7 @@ public boolean containsVersion(String version) { */ @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { - if(COMPONENT_NAME.equalsIgnoreCase(name)) { + if (COMPONENT_NAME.equalsIgnoreCase(name)) { fromString(runtimeVersion); } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java index 8d897c1189e..fa190368d86 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/PhpVersion.java @@ -13,7 +13,7 @@ */ public final class PhpVersion extends RuntimeVersion { /** - * Name of the component + * Name of the component. */ public static final String COMPONENT_NAME = "php"; diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java index 53a93560174..b889b536db9 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java @@ -12,8 +12,9 @@ /** * Defines values for Java versions. + * @param The class that extends RuntimeVersion. */ -public abstract class RuntimeVersion> extends ExpandableStringEnum{ +public abstract class RuntimeVersion> extends ExpandableStringEnum { /** * @return Rrturns the name of the runtime. @@ -75,7 +76,7 @@ protected void processRuntimeMajorVersion(String name, StackMajorVersion version createEnumFromVersionInformation(name, versionInfo.displayVersion(), versionInfo.runtimeVersion()); if (this.shouldProcessMinorVersions()) { - for( StackMinorVersion minorVersionInfo : versionInfo.minorVersions()) { + for ( StackMinorVersion minorVersionInfo : versionInfo.minorVersions()) { this.createEnumFromVersionInformation(name, minorVersionInfo.displayVersion(), minorVersionInfo.runtimeVersion()); } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebAppBase.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebAppBase.java index f0bc5b5051f..c7486cbe394 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebAppBase.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebAppBase.java @@ -23,7 +23,6 @@ import java.io.File; import java.io.InputStream; -import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java index 16d6972d67d..909d9b3e1a3 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebContainer.java @@ -20,6 +20,9 @@ public final class WebContainer extends RuntimeVersion { * Seperator used to create the version. */ public static final String SEPERATOR = " "; + /** + * WebContainer off setting. + */ public static final WebContainer OFF = WebContainer.fromString("null"); /** Static value tomcat 7.0 newest for WebContainer. */ public static final WebContainer TOMCAT_7_0_NEWEST = WebContainer.fromString("tomcat 7.0"); @@ -74,7 +77,9 @@ public static WebContainer fromString(String name) { /** * Finds or creates a Java container version based on the specified name and version. + * * @param name framework name + * @param version framework version * @return framework instance version */ public static WebContainer fromString(String name, String version) { diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java index d54b2878593..9a580dde6c6 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java @@ -263,6 +263,9 @@ public class AppServiceRuntimesImpl implements AppServiceRuntimes { private Collection nodeVersions; private Collection webContainers; + /** + * Basic constructor. + */ public AppServiceRuntimesImpl() { } @@ -323,42 +326,42 @@ public AppServiceRuntimesImpl withNodeVersions(Collection versions) /** * @return the netframework versions. */ - public Collection NetFrameworkVersions() { + public Collection netFrameworkVersions() { return this.netframeworkVersions; } /** * @return the python versions. */ - public Collection PythonVersions() { + public Collection pythonVersions() { return this.pythonVersions; } /** * @return the php versions. */ - public Collection PhpVersions() { + public Collection phpVersions() { return this.phpVersions; } /** * @return the java versions. */ - public Collection JavaVersions() { + public Collection javaVersions() { return this.javaVersions; } /** * @return The web container versions. */ - public Collection Webcontainers() { + public Collection webContainers() { return this.webContainers; } /** * @return The node versions. */ - public Collection NodeVersions() { + public Collection nodeVersions() { return this.nodeVersions; } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java index e5284121b99..71eeb45d119 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/ApplicationStackInner.java @@ -16,6 +16,9 @@ * Application stack. */ public class ApplicationStackInner { + /** + * Class representing the inner properties of an application stack. + */ public static class Properties { /** * Application stack name. @@ -230,7 +233,9 @@ public ApplicationStackInner withFrameworks(List framewor /** * @return the properties */ - public Properties properties() { return this.properties; } + public Properties properties() { + return this.properties; + } /** * Sets the properties associated with the application stack. diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java index 4972ea5405b..711cb982b61 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppBaseImpl.java @@ -1278,7 +1278,7 @@ public FluentImplT withoutNodeVersion() { private static NameValuePair getExistingAppSetting(String settingName, List settings) { NameValuePair pair = null; - for(NameValuePair setting : settings) { + for (NameValuePair setting : settings) { if (setting.name().equalsIgnoreCase(settingName)) { pair = setting; break; diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java index a33bb7cba29..dfefef642f8 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WebAppImpl.java @@ -7,7 +7,12 @@ package com.microsoft.azure.management.appservice.implementation; import com.microsoft.azure.management.apigeneration.LangDefinition; -import com.microsoft.azure.management.appservice.*; +import com.microsoft.azure.management.appservice.AppServicePlan; +import com.microsoft.azure.management.appservice.DeploymentSlots; +import com.microsoft.azure.management.appservice.OperatingSystem; +import com.microsoft.azure.management.appservice.PricingTier; +import com.microsoft.azure.management.appservice.RuntimeStack; +import com.microsoft.azure.management.appservice.WebApp; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; import rx.Completable; diff --git a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java index 9a66f4d6d0c..94c8815bae7 100644 --- a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java +++ b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java @@ -6,7 +6,6 @@ package com.microsoft.azure.management.appservice; -import com.microsoft.azure.management.appservice.implementation.AppServiceManager; import com.microsoft.azure.management.appservice.implementation.ApplicationStackInner; import com.microsoft.azure.management.appservice.implementation.ProvidersInner; import com.microsoft.azure.management.appservice.implementation.WebSiteManagementClientImpl; @@ -176,7 +175,7 @@ public void canUpdateRuntimes() { String valuesNotFound = null; if (stackInfo.name().equalsIgnoreCase(WebContainer.COMPONENT_NAME)){ - valuesNotFound = checkJavaContainerEnumContainsAllValues(stackInfo.properties().frameworks(), runtimes.Webcontainers()); + valuesNotFound = checkJavaContainerEnumContainsAllValues(stackInfo.properties().frameworks(), runtimes.webContainers()); } else { valuesNotFound = checkRuntimeContainsValues(stackInfo.name(), stackInfo.properties().majorVersions(), runtimes); } From 8a7143d8ec232102df0e152bca3e580828655d2b Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Fri, 11 Jan 2019 09:53:37 -0800 Subject: [PATCH 08/14] fix build issues --- .../azure/management/appservice/NetFrameworkVersion.java | 2 +- .../microsoft/azure/management/appservice/RuntimeVersion.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java index c9876bb433b..2901a280c1f 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/NetFrameworkVersion.java @@ -76,7 +76,7 @@ public boolean containsVersion(String version) { */ @Override protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { - if(COMPONENT_NAME.equalsIgnoreCase(name)) { + if (COMPONENT_NAME.equalsIgnoreCase(name)) { fromString(displayVersion); } } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java index b889b536db9..9ebf7da36b0 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeVersion.java @@ -76,7 +76,7 @@ protected void processRuntimeMajorVersion(String name, StackMajorVersion version createEnumFromVersionInformation(name, versionInfo.displayVersion(), versionInfo.runtimeVersion()); if (this.shouldProcessMinorVersions()) { - for ( StackMinorVersion minorVersionInfo : versionInfo.minorVersions()) { + for (StackMinorVersion minorVersionInfo : versionInfo.minorVersions()) { this.createEnumFromVersionInformation(name, minorVersionInfo.displayVersion(), minorVersionInfo.runtimeVersion()); } } From 4dc43e68a08ccaeca55afd57a4b47ead3a4892ac Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Fri, 11 Jan 2019 10:09:11 -0800 Subject: [PATCH 09/14] Update test recordings --- .../session-records/canCRUDWebApp.json | 748 +++++++++++++----- .../session-records/canUpdateRuntimes.json | 62 ++ 2 files changed, 602 insertions(+), 208 deletions(-) create mode 100644 azure-mgmt-appservice/src/test/resources/session-records/canUpdateRuntimes.json diff --git a/azure-mgmt-appservice/src/test/resources/session-records/canCRUDWebApp.json b/azure-mgmt-appservice/src/test/resources/session-records/canCRUDWebApp.json index 7e36ec30da1..7f699a0314d 100644 --- a/azure-mgmt-appservice/src/test/resources/session-records/canCRUDWebApp.json +++ b/azure-mgmt-appservice/src/test/resources/session-records/canCRUDWebApp.json @@ -1,13 +1,13 @@ { "networkCallRecords" : [ { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg7ca655543?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrgd90157002?api-version=2017-05-10", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (ResourceManagementClient, 2017-05-10)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (ResourceManagementClient, 2017-05-10)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:37:54 GMT", + "date" : "Fri, 11 Jan 2019 18:02:38 GMT", "content-length" : "273", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1199", @@ -15,25 +15,25 @@ "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a2d2db6e-a21b-4b3c-94c0-e24aacebb6f1", + "x-ms-correlation-request-id" : "563a7698-5b06-4c9f-a01f-be4be3aa8bf0", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193754Z:a2d2db6e-a21b-4b3c-94c0-e24aacebb6f1", + "x-ms-routing-request-id" : "WESTUS2:20190111T180239Z:563a7698-5b06-4c9f-a01f-be4be3aa8bf0", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "a2d2db6e-a21b-4b3c-94c0-e24aacebb6f1", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543\",\"name\":\"javacsmrg7ca655543\",\"location\":\"westus\",\"tags\":{\"date\":\"2018-11-15T19:37:53.779Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "563a7698-5b06-4c9f-a01f-be4be3aa8bf0", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002\",\"name\":\"javacsmrgd90157002\",\"location\":\"westus\",\"tags\":{\"date\":\"2019-01-11T18:02:38.270Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:16 GMT", + "date" : "Fri, 11 Jan 2019 18:03:03 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "1306", + "content-length" : "1353", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -43,26 +43,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "57ca5740-1e29-42ee-bf0a-1b59728359bb", + "x-ms-correlation-request-id" : "450142b1-06ae-446d-b1c3-808fbb85da33", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193817Z:57ca5740-1e29-42ee-bf0a-1b59728359bb", + "x-ms-routing-request-id" : "WESTUS2:20190111T180304Z:450142b1-06ae-446d-b1c3-808fbb85da33", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "85334a1c-d180-4971-b650-7b5a1fab26d6", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721\",\"name\":\"java-webapp-59758cplanf43505721\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":3669,\"name\":\"java-webapp-59758cplanf43505721\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":3,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrg7ca655543\",\"reserved\":false,\"isXenon\":false,\"mdmId\":\"waws-prod-bay-115_3669\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"size\":\"B1\",\"family\":\"B\",\"capacity\":1}}" + "x-ms-request-id" : "942781cc-cf0a-433f-8aa2-884af89081c8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868\",\"name\":\"java-webapp-588890plan2bb965868\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":15831,\"name\":\"java-webapp-588890plan2bb965868\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":3,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrgd90157002\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-bay-093_15831\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"size\":\"B1\",\"family\":\"B\",\"capacity\":1}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:35 GMT", + "date" : "Fri, 11 Jan 2019 18:03:23 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2867", + "content-length" : "2891", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -71,28 +71,28 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "20c55688-6e7c-40cb-8eaf-47017354b9af", + "x-ms-correlation-request-id" : "7208e548-990e-4f25-b137-59353c7beab9", "x-content-type-options" : "nosniff", "x-ms-ratelimit-remaining-subscription-resource-requests" : "499", - "x-ms-routing-request-id" : "WESTUS2:20181115T193835Z:20c55688-6e7c-40cb-8eaf-47017354b9af", + "x-ms-routing-request-id" : "WESTUS2:20190111T180323Z:7208e548-990e-4f25-b137-59353c7beab9", "x-powered-by" : "ASP.NET", "content-type" : "application/json", - "etag" : "\"1D47D1AC2D7D4D5\"", + "etag" : "\"1D4A9D7E7CCABC0\"", "cache-control" : "no-cache", - "x-ms-request-id" : "0e45a8b8-f283-465c-b2ed-9fbe28d42aec", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c\",\"name\":\"java-webapp-59758c\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-59758c\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-59758c.azurewebsites.net\"],\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7ca655543-WestUSwebspace/sites/java-webapp-59758c\",\"repositorySiteName\":\"java-webapp-59758c\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-59758c.azurewebsites.net\",\"java-webapp-59758c.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-59758c.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-59758c.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/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-11-15T19:38:18.87\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-59758c\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143\",\"possibleOutboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-115\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg7ca655543\",\"defaultHostName\":\"java-webapp-59758c.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" + "x-ms-request-id" : "cae2f3c8-2e54-46ce-8fd3-bc482f8395e8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890\",\"name\":\"java-webapp-588890\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-588890\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-588890.azurewebsites.net\"],\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-093.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgd90157002-WestUSwebspace/sites/java-webapp-588890\",\"repositorySiteName\":\"java-webapp-588890\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-588890.azurewebsites.net\",\"java-webapp-588890.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-588890.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-588890.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/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:03:06.6966667\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-588890\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41\",\"possibleOutboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41,138.91.254.30,138.91.249.213\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-093\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgd90157002\",\"defaultHostName\":\"java-webapp-588890.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/web?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/web?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:36 GMT", + "date" : "Fri, 11 Jan 2019 18:03:24 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2535", + "content-length" : "2573", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -102,27 +102,27 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "f9357a1d-9dae-418c-9647-2c1f108349f4", + "x-ms-correlation-request-id" : "f51b1879-f589-4efe-936c-56264c285d15", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193837Z:f9357a1d-9dae-418c-9647-2c1f108349f4", + "x-ms-routing-request-id" : "WESTUS2:20190111T180325Z:f51b1879-f589-4efe-936c-56264c285d15", "x-powered-by" : "ASP.NET", "content-type" : "application/json", - "etag" : "\"1D47D1ACD8D53C0\"", + "etag" : "\"1D4A9D7F235DF6B\"", "cache-control" : "no-cache", - "x-ms-request-id" : "d8af82a2-b196-4989-a0c2-74322b2c9733", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c\",\"name\":\"java-webapp-59758c\",\"type\":\"Microsoft.Web/sites\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":true,\"remoteDebuggingVersion\":\"VS2015\",\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-59758c\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" + "x-ms-request-id" : "29c644fc-a764-4d82-a11e-cb57d3901cd8", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890\",\"name\":\"java-webapp-588890\",\"type\":\"Microsoft.Web/sites\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-588890\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:36 GMT", + "date" : "Fri, 11 Jan 2019 18:03:25 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "1306", + "content-length" : "1353", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -132,24 +132,24 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "dbe968a9-be5d-4601-b961-f0d0063b8a0c", + "x-ms-correlation-request-id" : "68badeb7-5639-40a0-80b2-8892ea3ed200", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193837Z:dbe968a9-be5d-4601-b961-f0d0063b8a0c", + "x-ms-routing-request-id" : "WESTUS2:20190111T180325Z:68badeb7-5639-40a0-80b2-8892ea3ed200", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "64af7e1a-2aec-4a1e-bd56-d2f513f076f7", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721\",\"name\":\"java-webapp-59758cplanf43505721\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":3669,\"name\":\"java-webapp-59758cplanf43505721\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":3,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"numberOfSites\":1,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrg7ca655543\",\"reserved\":false,\"isXenon\":false,\"mdmId\":\"waws-prod-bay-115_3669\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"size\":\"B1\",\"family\":\"B\",\"capacity\":1}}" + "x-ms-request-id" : "abde77b3-9d59-4621-bcd7-8f2c3d764597", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868\",\"name\":\"java-webapp-588890plan2bb965868\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":15831,\"name\":\"java-webapp-588890plan2bb965868\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":3,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":1,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrgd90157002\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-bay-093_15831\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"size\":\"B1\",\"family\":\"B\",\"capacity\":1}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg015830525?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrgb5656660c?api-version=2017-05-10", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (ResourceManagementClient, 2017-05-10)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (ResourceManagementClient, 2017-05-10)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:37 GMT", + "date" : "Fri, 11 Jan 2019 18:03:25 GMT", "content-length" : "273", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-writes" : "1196", @@ -157,25 +157,25 @@ "StatusCode" : "201", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "f67a322e-318b-4478-837f-e4977dd677ff", + "x-ms-correlation-request-id" : "65b281cf-3770-40ed-81c0-f69e21ebdcc6", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193838Z:f67a322e-318b-4478-837f-e4977dd677ff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180326Z:65b281cf-3770-40ed-81c0-f69e21ebdcc6", "content-type" : "application/json; charset=utf-8", "cache-control" : "no-cache", - "x-ms-request-id" : "f67a322e-318b-4478-837f-e4977dd677ff", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525\",\"name\":\"javacsmrg015830525\",\"location\":\"westus\",\"tags\":{\"date\":\"2018-11-15T19:38:37.756Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + "x-ms-request-id" : "65b281cf-3770-40ed-81c0-f69e21ebdcc6", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c\",\"name\":\"javacsmrgb5656660c\",\"location\":\"westus\",\"tags\":{\"date\":\"2019-01-11T18:03:25.648Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:56 GMT", + "date" : "Fri, 11 Jan 2019 18:03:44 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2873", + "content-length" : "2892", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -184,28 +184,141 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5c8e5229-0f6d-44db-8d8a-356c33ca53b5", + "x-ms-correlation-request-id" : "50496be5-6ef6-424e-9688-2762b7115638", "x-content-type-options" : "nosniff", "x-ms-ratelimit-remaining-subscription-resource-requests" : "498", - "x-ms-routing-request-id" : "WESTUS2:20181115T193856Z:5c8e5229-0f6d-44db-8d8a-356c33ca53b5", + "x-ms-routing-request-id" : "WESTUS2:20190111T180345Z:50496be5-6ef6-424e-9688-2762b7115638", "x-powered-by" : "ASP.NET", "content-type" : "application/json", - "etag" : "\"1D47D1ACF9C4395\"", + "etag" : "\"1D4A9D7F49D4F80\"", "cache-control" : "no-cache", - "x-ms-request-id" : "72202108-b34e-4bda-aaca-31bb007eaea7", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960\",\"name\":\"java-webapp-868960\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-868960\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-868960.azurewebsites.net\"],\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7ca655543-WestUSwebspace/sites/java-webapp-868960\",\"repositorySiteName\":\"java-webapp-868960\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-868960.azurewebsites.net\",\"java-webapp-868960.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-868960.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-868960.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/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-11-15T19:38:40.2433333\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-868960\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143\",\"possibleOutboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-115\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg015830525\",\"defaultHostName\":\"java-webapp-868960.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" + "x-ms-request-id" : "57aa40bb-735a-45c7-952a-9b47f99986d7", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724\",\"name\":\"java-webapp-884724\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-884724\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-884724.azurewebsites.net\"],\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-093.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgd90157002-WestUSwebspace/sites/java-webapp-884724\",\"repositorySiteName\":\"java-webapp-884724\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-884724.azurewebsites.net\",\"java-webapp-884724.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-884724.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-884724.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/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:03:28.3066667\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-884724\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41\",\"possibleOutboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41,138.91.254.30,138.91.249.213\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-093\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgb5656660c\",\"defaultHostName\":\"java-webapp-884724.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg9ff66435b?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:03:44 GMT", + "content-length" : "273", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "f7ae9df2-29d6-478e-8f49-305a07ed4865", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180345Z:f7ae9df2-29d6-478e-8f49-305a07ed4865", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "f7ae9df2-29d6-478e-8f49-305a07ed4865", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b\",\"name\":\"javacsmrg9ff66435b\",\"location\":\"westus\",\"tags\":{\"date\":\"2019-01-11T18:03:45.151Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b/providers/Microsoft.Web/serverfarms/java-webapp-89319eplan6d050457b?api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:04:07 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1351", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "5927d6a3-8010-4126-ab39-c767b848904f", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180407Z:5927d6a3-8010-4126-ab39-c767b848904f", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "1b288f91-689c-4725-802b-97fc137626bd", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b/providers/Microsoft.Web/serverfarms/java-webapp-89319eplan6d050457b\",\"name\":\"java-webapp-89319eplan6d050457b\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":9397,\"name\":\"java-webapp-89319eplan6d050457b\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg9ff66435b-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":3,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrg9ff66435b\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-bay-113_9397\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"size\":\"B1\",\"family\":\"B\",\"capacity\":1}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b/providers/Microsoft.Web/sites/java-webapp-89319e?api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:04:25 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "2878", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "c6bf33f0-1688-4e84-aeeb-34fa7b8407f1", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "497", + "x-ms-routing-request-id" : "WESTUS2:20190111T180426Z:c6bf33f0-1688-4e84-aeeb-34fa7b8407f1", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "etag" : "\"1D4A9D80D0E6E6B\"", + "cache-control" : "no-cache", + "x-ms-request-id" : "86a0d2d6-445d-4737-b06a-1fb3a0bc47e1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b/providers/Microsoft.Web/sites/java-webapp-89319e\",\"name\":\"java-webapp-89319e\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-89319e\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-89319e.azurewebsites.net\"],\"webSpace\":\"javacsmrg9ff66435b-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-113.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg9ff66435b-WestUSwebspace/sites/java-webapp-89319e\",\"repositorySiteName\":\"java-webapp-89319e\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-89319e.azurewebsites.net\",\"java-webapp-89319e.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-89319e.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-89319e.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/javacsmrg9ff66435b/providers/Microsoft.Web/serverfarms/java-webapp-89319eplan6d050457b\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:04:09.33\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-89319e\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.78.48.219,104.40.3.246,104.40.8.50,104.40.4.179,104.40.14.83\",\"possibleOutboundIpAddresses\":\"40.78.48.219,104.40.3.246,104.40.8.50,104.40.4.179,104.40.14.83,104.40.12.222,104.40.2.67,104.40.9.121\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-113\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg9ff66435b\",\"defaultHostName\":\"java-webapp-89319e.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b/providers/Microsoft.Web/sites/java-webapp-89319e/config/web?api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:04:27 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "2579", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1193", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "851ca7a8-0adc-4266-b0af-c89d49fe7e14", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180428Z:851ca7a8-0adc-4266-b0af-c89d49fe7e14", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "etag" : "\"1D4A9D817BF5975\"", + "cache-control" : "no-cache", + "x-ms-request-id" : "c7cdb7b1-83b6-4155-8f95-fc7cde092974", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b/providers/Microsoft.Web/sites/java-webapp-89319e\",\"name\":\"java-webapp-89319e\",\"type\":\"Microsoft.Web/sites\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-89319e\",\"publishingPassword\":null,\"appSettings\":null,\"azureStorageAccounts\":{},\"metadata\":null,\"connectionStrings\":null,\"machineKey\":null,\"handlerMappings\":null,\"documentRoot\":null,\"scmType\":\"None\",\"use32BitWorkerProcess\":true,\"webSocketsEnabled\":false,\"alwaysOn\":false,\"javaVersion\":\"1.8\",\"javaContainer\":\"TOMCAT\",\"javaContainerVersion\":\"8.0\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b/providers/Microsoft.Web/serverfarms/java-webapp-89319eplan6d050457b?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:56 GMT", + "date" : "Fri, 11 Jan 2019 18:04:27 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2868", + "content-length" : "1351", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -215,27 +328,139 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "d5ef4007-5790-497f-a1e1-d62fc80762e7", + "x-ms-correlation-request-id" : "b7a06e74-4739-405a-b8fc-7940abf749d2", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180428Z:b7a06e74-4739-405a-b8fc-7940abf749d2", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "8765a2ff-4a2e-4ab4-a055-3b2e618f5e98", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg9ff66435b/providers/Microsoft.Web/serverfarms/java-webapp-89319eplan6d050457b\",\"name\":\"java-webapp-89319eplan6d050457b\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":9397,\"name\":\"java-webapp-89319eplan6d050457b\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg9ff66435b-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":3,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":1,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrg9ff66435b\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-bay-113_9397\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"size\":\"B1\",\"family\":\"B\",\"capacity\":1}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrgb20270255?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:04:28 GMT", + "content-length" : "273", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-writes" : "1192", + "retry-after" : "0", + "StatusCode" : "201", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "ff153719-66cf-4f88-992a-5420c4480d02", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180428Z:ff153719-66cf-4f88-992a-5420c4480d02", + "content-type" : "application/json; charset=utf-8", + "cache-control" : "no-cache", + "x-ms-request-id" : "ff153719-66cf-4f88-992a-5420c4480d02", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255\",\"name\":\"javacsmrgb20270255\",\"location\":\"westus\",\"tags\":{\"date\":\"2019-01-11T18:04:28.352Z\",\"product\":\"javasdk\",\"cause\":\"automation\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255/providers/Microsoft.Web/serverfarms/java-webapp-44202aplan243264413?api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:04:50 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "1351", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1191", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "208fa574-a1e8-4634-80a5-81f329a61101", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180450Z:208fa574-a1e8-4634-80a5-81f329a61101", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "30072564-e72c-4ec3-896b-81d709ab8a59", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255/providers/Microsoft.Web/serverfarms/java-webapp-44202aplan243264413\",\"name\":\"java-webapp-44202aplan243264413\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":8373,\"name\":\"java-webapp-44202aplan243264413\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrgb20270255-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":3,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrgb20270255\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-bay-115_8373\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"size\":\"B1\",\"family\":\"B\",\"capacity\":1}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255/providers/Microsoft.Web/sites/java-webapp-44202a?api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:05:07 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "2881", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b4783194-efb1-43c6-a108-82a1384e3a8f", + "x-content-type-options" : "nosniff", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "496", + "x-ms-routing-request-id" : "WESTUS2:20190111T180508Z:b4783194-efb1-43c6-a108-82a1384e3a8f", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "etag" : "\"1D4A9D827326D75\"", + "cache-control" : "no-cache", + "x-ms-request-id" : "40c6f5d2-8479-4f8b-be76-27f5520dcf4a", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255/providers/Microsoft.Web/sites/java-webapp-44202a\",\"name\":\"java-webapp-44202a\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-44202a\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-44202a.azurewebsites.net\"],\"webSpace\":\"javacsmrgb20270255-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgb20270255-WestUSwebspace/sites/java-webapp-44202a\",\"repositorySiteName\":\"java-webapp-44202a\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-44202a.azurewebsites.net\",\"java-webapp-44202a.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-44202a.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-44202a.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/javacsmrgb20270255/providers/Microsoft.Web/serverfarms/java-webapp-44202aplan243264413\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:04:53.2\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-44202a\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143\",\"possibleOutboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-115\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgb20270255\",\"defaultHostName\":\"java-webapp-44202a.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" + } + }, { + "Method" : "PUT", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255/providers/Microsoft.Web/sites/java-webapp-44202a/config/web?api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:05:08 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "2573", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "x-ms-ratelimit-remaining-subscription-writes" : "1190", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "119ef741-6ac2-4379-8926-4d9ad0916206", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193856Z:d5ef4007-5790-497f-a1e1-d62fc80762e7", + "x-ms-routing-request-id" : "WESTUS2:20190111T180509Z:119ef741-6ac2-4379-8926-4d9ad0916206", "x-powered-by" : "ASP.NET", "content-type" : "application/json", - "etag" : "\"1D47D1ACD8D53C0\"", + "etag" : "\"1D4A9D83046D98B\"", "cache-control" : "no-cache", - "x-ms-request-id" : "a49800a5-0a57-44b7-b577-ff92113a1934", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c\",\"name\":\"java-webapp-59758c\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-59758c\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-59758c.azurewebsites.net\"],\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7ca655543-WestUSwebspace/sites/java-webapp-59758c\",\"repositorySiteName\":\"java-webapp-59758c\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-59758c.azurewebsites.net\",\"java-webapp-59758c.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-59758c.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-59758c.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/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-11-15T19:38:37.18\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-59758c\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143\",\"possibleOutboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-115\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg7ca655543\",\"defaultHostName\":\"java-webapp-59758c.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" + "x-ms-request-id" : "1f58f17e-69a5-4de1-89d8-ec5286fb21d7", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255/providers/Microsoft.Web/sites/java-webapp-44202a\",\"name\":\"java-webapp-44202a\",\"type\":\"Microsoft.Web/sites\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-44202a\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/web?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255/providers/Microsoft.Web/serverfarms/java-webapp-44202aplan243264413?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:57 GMT", + "date" : "Fri, 11 Jan 2019 18:05:09 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2553", + "content-length" : "1351", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -245,26 +470,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "49219b24-64db-4a57-acdb-dc2667625ac3", + "x-ms-correlation-request-id" : "e2774ba1-7427-47a5-b3f8-add6637bb409", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193857Z:49219b24-64db-4a57-acdb-dc2667625ac3", + "x-ms-routing-request-id" : "WESTUS2:20190111T180510Z:e2774ba1-7427-47a5-b3f8-add6637bb409", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "ad3f4c49-05df-4175-84cc-0e65b3380703", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/web\",\"name\":\"java-webapp-59758c\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":true,\"remoteDebuggingVersion\":\"VS2015\",\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-59758c\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" + "x-ms-request-id" : "8ee33fee-6edf-4114-b823-ad788d242fa5", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb20270255/providers/Microsoft.Web/serverfarms/java-webapp-44202aplan243264413\",\"name\":\"java-webapp-44202aplan243264413\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":8373,\"name\":\"java-webapp-44202aplan243264413\",\"workerSize\":\"Default\",\"workerSizeId\":0,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Default\",\"currentWorkerSizeId\":0,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrgb20270255-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":3,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":1,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrgb20270255\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-bay-115_8373\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"B1\",\"tier\":\"Basic\",\"size\":\"B1\",\"family\":\"B\",\"capacity\":1}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/logs?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:58 GMT", + "date" : "Fri, 11 Jan 2019 18:05:10 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "666", + "content-length" : "2892", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -274,26 +499,27 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9fb0aef3-a13f-447f-bc14-d5969f2f86b3", + "x-ms-correlation-request-id" : "60d29d3c-df0b-4973-8059-37a83a609cb2", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193858Z:9fb0aef3-a13f-447f-bc14-d5969f2f86b3", + "x-ms-routing-request-id" : "WESTUS2:20190111T180510Z:60d29d3c-df0b-4973-8059-37a83a609cb2", "x-powered-by" : "ASP.NET", "content-type" : "application/json", + "etag" : "\"1D4A9D7F235DF6B\"", "cache-control" : "no-cache", - "x-ms-request-id" : "0aa49f54-d872-4c5c-8aa0-c8ada9bd7e5e", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/logs\",\"name\":\"logs\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"applicationLogs\":{\"fileSystem\":{\"level\":\"Off\"},\"azureTableStorage\":{\"level\":\"Off\",\"sasUrl\":null},\"azureBlobStorage\":{\"level\":\"Off\",\"sasUrl\":null,\"retentionInDays\":null}},\"httpLogs\":{\"fileSystem\":{\"retentionInMb\":35,\"retentionInDays\":null,\"enabled\":false},\"azureBlobStorage\":{\"sasUrl\":null,\"retentionInDays\":null,\"enabled\":false}},\"failedRequestsTracing\":{\"enabled\":false},\"detailedErrorMessages\":{\"enabled\":false}}}" + "x-ms-request-id" : "7078d880-5a8a-456e-b034-d9228486dd3f", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890\",\"name\":\"java-webapp-588890\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-588890\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-588890.azurewebsites.net\"],\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-093.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgd90157002-WestUSwebspace/sites/java-webapp-588890\",\"repositorySiteName\":\"java-webapp-588890\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-588890.azurewebsites.net\",\"java-webapp-588890.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-588890.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-588890.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/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:03:24.7266667\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-588890\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41\",\"possibleOutboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41,138.91.254.30,138.91.249.213\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-093\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgd90157002\",\"defaultHostName\":\"java-webapp-588890.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/web?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:38:58 GMT", + "date" : "Fri, 11 Jan 2019 18:05:10 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2873", + "content-length" : "2591", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -303,27 +529,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0dd96f80-3cf8-4be1-a832-bc906d32dfe8", + "x-ms-correlation-request-id" : "bd57cd10-937d-454d-b0e8-56ac56450c45", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193858Z:0dd96f80-3cf8-4be1-a832-bc906d32dfe8", + "x-ms-routing-request-id" : "WESTUS2:20190111T180510Z:bd57cd10-937d-454d-b0e8-56ac56450c45", "x-powered-by" : "ASP.NET", "content-type" : "application/json", - "etag" : "\"1D47D1ACF9C4395\"", "cache-control" : "no-cache", - "x-ms-request-id" : "596dd1d8-40c1-4616-94c3-e2b059029ff2", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960\",\"name\":\"java-webapp-868960\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-868960\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-868960.azurewebsites.net\"],\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7ca655543-WestUSwebspace/sites/java-webapp-868960\",\"repositorySiteName\":\"java-webapp-868960\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-868960.azurewebsites.net\",\"java-webapp-868960.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-868960.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-868960.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/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-11-15T19:38:40.6333333\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-868960\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143\",\"possibleOutboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-115\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg015830525\",\"defaultHostName\":\"java-webapp-868960.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" + "x-ms-request-id" : "0e04f487-e4bf-4aef-ad48-8d88aa8bf87c", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/web\",\"name\":\"java-webapp-588890\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-588890\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960/config/web?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/logs?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:00 GMT", + "date" : "Fri, 11 Jan 2019 18:05:10 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2550", + "content-length" : "666", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -333,26 +558,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "0c3add2b-f68f-47e2-8f67-c11f07503cac", + "x-ms-correlation-request-id" : "01eb8afb-7d9a-4b5b-b90d-cfc0fe0beedb", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193900Z:0c3add2b-f68f-47e2-8f67-c11f07503cac", + "x-ms-routing-request-id" : "WESTUS2:20190111T180511Z:01eb8afb-7d9a-4b5b-b90d-cfc0fe0beedb", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "1eb20978-a1fc-40ee-a481-5a497dc18187", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960/config/web\",\"name\":\"java-webapp-868960\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-868960\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" + "x-ms-request-id" : "df7c5556-3adf-4caf-aff4-92f189d6d9bd", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/logs\",\"name\":\"logs\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"applicationLogs\":{\"fileSystem\":{\"level\":\"Off\"},\"azureTableStorage\":{\"level\":\"Off\",\"sasUrl\":null},\"azureBlobStorage\":{\"level\":\"Off\",\"sasUrl\":null,\"retentionInDays\":null}},\"httpLogs\":{\"fileSystem\":{\"retentionInMb\":35,\"retentionInDays\":null,\"enabled\":false},\"azureBlobStorage\":{\"sasUrl\":null,\"retentionInDays\":null,\"enabled\":false}},\"failedRequestsTracing\":{\"enabled\":false},\"detailedErrorMessages\":{\"enabled\":false}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960/config/logs?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:01 GMT", + "date" : "Fri, 11 Jan 2019 18:05:10 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "666", + "content-length" : "2887", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -362,26 +587,27 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "377ffc92-d9d1-4f2a-aeb1-f46edfa05341", + "x-ms-correlation-request-id" : "4f28993c-9d26-4ea7-abec-45e5256c005b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193901Z:377ffc92-d9d1-4f2a-aeb1-f46edfa05341", + "x-ms-routing-request-id" : "WESTUS2:20190111T180511Z:4f28993c-9d26-4ea7-abec-45e5256c005b", "x-powered-by" : "ASP.NET", "content-type" : "application/json", + "etag" : "\"1D4A9D7F49D4F80\"", "cache-control" : "no-cache", - "x-ms-request-id" : "62b0c84d-9841-49d4-acd5-793f0a9456bf", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960/config/logs\",\"name\":\"logs\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"applicationLogs\":{\"fileSystem\":{\"level\":\"Off\"},\"azureTableStorage\":{\"level\":\"Off\",\"sasUrl\":null},\"azureBlobStorage\":{\"level\":\"Off\",\"sasUrl\":null,\"retentionInDays\":null}},\"httpLogs\":{\"fileSystem\":{\"retentionInMb\":35,\"retentionInDays\":null,\"enabled\":false},\"azureBlobStorage\":{\"sasUrl\":null,\"retentionInDays\":null,\"enabled\":false}},\"failedRequestsTracing\":{\"enabled\":false},\"detailedErrorMessages\":{\"enabled\":false}}}" + "x-ms-request-id" : "de468ec5-8b41-4d90-9e40-47f291d4993b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724\",\"name\":\"java-webapp-884724\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-884724\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-884724.azurewebsites.net\"],\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-093.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgd90157002-WestUSwebspace/sites/java-webapp-884724\",\"repositorySiteName\":\"java-webapp-884724\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-884724.azurewebsites.net\",\"java-webapp-884724.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-884724.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-884724.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/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:03:28.76\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-884724\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41\",\"possibleOutboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41,138.91.254.30,138.91.249.213\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-093\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgb5656660c\",\"defaultHostName\":\"java-webapp-884724.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724/config/web?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:01 GMT", + "date" : "Fri, 11 Jan 2019 18:05:11 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2906", + "content-length" : "2591", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -391,26 +617,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "288a80c9-c04f-4d2f-a6b9-7c661d5f0818", + "x-ms-correlation-request-id" : "aa9f1a96-aad4-4453-92c7-6378b61b7979", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193901Z:288a80c9-c04f-4d2f-a6b9-7c661d5f0818", + "x-ms-routing-request-id" : "WESTUS2:20190111T180511Z:aa9f1a96-aad4-4453-92c7-6378b61b7979", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "dabdb03c-3348-483e-8c9b-4cf15e499899", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c\",\"name\":\"java-webapp-59758c\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-59758c\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-59758c.azurewebsites.net\"],\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7ca655543-WestUSwebspace/sites/java-webapp-59758c\",\"repositorySiteName\":\"java-webapp-59758c\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-59758c.azurewebsites.net\",\"java-webapp-59758c.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-59758c.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-59758c.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/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-11-15T19:38:37.18\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-59758c\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143\",\"possibleOutboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-115\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg7ca655543\",\"defaultHostName\":\"java-webapp-59758c.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}],\"nextLink\":null,\"id\":null}" + "x-ms-request-id" : "2cb6784b-1cc7-4794-9767-09c4ffe78842", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724/config/web\",\"name\":\"java-webapp-884724\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-884724\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/web?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724/config/logs?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:01 GMT", + "date" : "Fri, 11 Jan 2019 18:05:11 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2553", + "content-length" : "666", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -420,26 +646,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "081b0469-c299-471f-812d-63e46d9a13a4", + "x-ms-correlation-request-id" : "f962f66a-bfc9-437e-87a7-30ed337fca3a", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193902Z:081b0469-c299-471f-812d-63e46d9a13a4", + "x-ms-routing-request-id" : "WESTUS2:20190111T180512Z:f962f66a-bfc9-437e-87a7-30ed337fca3a", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "28682620-88dc-4439-befd-48237916715b", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/web\",\"name\":\"java-webapp-59758c\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":true,\"remoteDebuggingVersion\":\"VS2015\",\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-59758c\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" + "x-ms-request-id" : "6e36f0fd-b878-49a4-8cda-59d9996f5b98", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724/config/logs\",\"name\":\"logs\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"applicationLogs\":{\"fileSystem\":{\"level\":\"Off\"},\"azureTableStorage\":{\"level\":\"Off\",\"sasUrl\":null},\"azureBlobStorage\":{\"level\":\"Off\",\"sasUrl\":null,\"retentionInDays\":null}},\"httpLogs\":{\"fileSystem\":{\"retentionInMb\":35,\"retentionInDays\":null,\"enabled\":false},\"azureBlobStorage\":{\"sasUrl\":null,\"retentionInDays\":null,\"enabled\":false}},\"failedRequestsTracing\":{\"enabled\":false},\"detailedErrorMessages\":{\"enabled\":false}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/logs?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:02 GMT", + "date" : "Fri, 11 Jan 2019 18:05:11 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "666", + "content-length" : "2930", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -449,26 +675,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "29705342-9989-4b06-9634-4873737ce8d9", + "x-ms-correlation-request-id" : "31949038-59a6-4181-b965-17a174387bcd", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193902Z:29705342-9989-4b06-9634-4873737ce8d9", + "x-ms-routing-request-id" : "WESTUS2:20190111T180512Z:31949038-59a6-4181-b965-17a174387bcd", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "8d725f55-1004-4ff3-9af9-a7b848984a56", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/logs\",\"name\":\"logs\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"applicationLogs\":{\"fileSystem\":{\"level\":\"Off\"},\"azureTableStorage\":{\"level\":\"Off\",\"sasUrl\":null},\"azureBlobStorage\":{\"level\":\"Off\",\"sasUrl\":null,\"retentionInDays\":null}},\"httpLogs\":{\"fileSystem\":{\"retentionInMb\":35,\"retentionInDays\":null,\"enabled\":false},\"azureBlobStorage\":{\"sasUrl\":null,\"retentionInDays\":null,\"enabled\":false}},\"failedRequestsTracing\":{\"enabled\":false},\"detailedErrorMessages\":{\"enabled\":false}}}" + "x-ms-request-id" : "5223d465-df67-47c4-adff-2b4ec925977f", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890\",\"name\":\"java-webapp-588890\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-588890\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-588890.azurewebsites.net\"],\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-093.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgd90157002-WestUSwebspace/sites/java-webapp-588890\",\"repositorySiteName\":\"java-webapp-588890\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-588890.azurewebsites.net\",\"java-webapp-588890.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-588890.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-588890.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/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:03:24.7266667\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-588890\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41\",\"possibleOutboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41,138.91.254.30,138.91.249.213\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-093\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgd90157002\",\"defaultHostName\":\"java-webapp-588890.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}],\"nextLink\":null,\"id\":null}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/web?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:02 GMT", + "date" : "Fri, 11 Jan 2019 18:05:12 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2911", + "content-length" : "2591", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -478,26 +704,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "580f05e5-cbf6-45d0-8691-e17d6fcfa814", + "x-ms-correlation-request-id" : "cb92e314-5449-4826-a29f-09a5de7f72dc", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193902Z:580f05e5-cbf6-45d0-8691-e17d6fcfa814", + "x-ms-routing-request-id" : "WESTUS2:20190111T180512Z:cb92e314-5449-4826-a29f-09a5de7f72dc", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "28369b7d-a82f-4427-87ed-70d8167bc7f4", - "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960\",\"name\":\"java-webapp-868960\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-868960\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-868960.azurewebsites.net\"],\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7ca655543-WestUSwebspace/sites/java-webapp-868960\",\"repositorySiteName\":\"java-webapp-868960\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-868960.azurewebsites.net\",\"java-webapp-868960.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-868960.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-868960.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/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanf43505721\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-11-15T19:38:40.6333333\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-868960\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143\",\"possibleOutboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-115\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg015830525\",\"defaultHostName\":\"java-webapp-868960.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}],\"nextLink\":null,\"id\":null}" + "x-ms-request-id" : "0f69b8bd-77cb-4d73-8f4a-c69769d911f0", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/web\",\"name\":\"java-webapp-588890\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-588890\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960/config/web?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/logs?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:02 GMT", + "date" : "Fri, 11 Jan 2019 18:05:12 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2550", + "content-length" : "666", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -507,26 +733,26 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "3b9a18eb-0c82-4ced-921d-9e0380d5b69f", + "x-ms-correlation-request-id" : "3eed5894-a036-4437-9f04-b98bd6d111d5", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193902Z:3b9a18eb-0c82-4ced-921d-9e0380d5b69f", + "x-ms-routing-request-id" : "WESTUS2:20190111T180513Z:3eed5894-a036-4437-9f04-b98bd6d111d5", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "63bc2f94-e6c8-4167-86f0-1c1c1cb6a2d9", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960/config/web\",\"name\":\"java-webapp-868960\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-868960\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" + "x-ms-request-id" : "fc2cb175-4887-4921-90e9-c5cf5275f39b", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/logs\",\"name\":\"logs\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"applicationLogs\":{\"fileSystem\":{\"level\":\"Off\"},\"azureTableStorage\":{\"level\":\"Off\",\"sasUrl\":null},\"azureBlobStorage\":{\"level\":\"Off\",\"sasUrl\":null,\"retentionInDays\":null}},\"httpLogs\":{\"fileSystem\":{\"retentionInMb\":35,\"retentionInDays\":null,\"enabled\":false},\"azureBlobStorage\":{\"sasUrl\":null,\"retentionInDays\":null,\"enabled\":false}},\"failedRequestsTracing\":{\"enabled\":false},\"detailedErrorMessages\":{\"enabled\":false}}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960/config/logs?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:02 GMT", + "date" : "Fri, 11 Jan 2019 18:05:12 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "666", + "content-length" : "2925", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -536,55 +762,113 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "dec8cf81-3512-43ef-9998-fdf43427b2e2", + "x-ms-correlation-request-id" : "dcf676c3-62f6-4657-b4d5-2edf5fd4a685", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180513Z:dcf676c3-62f6-4657-b4d5-2edf5fd4a685", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "cefc5581-7f86-4357-98ac-cbede0b84cae", + "Body" : "{\"value\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724\",\"name\":\"java-webapp-884724\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-884724\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-884724.azurewebsites.net\"],\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-093.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgd90157002-WestUSwebspace/sites/java-webapp-884724\",\"repositorySiteName\":\"java-webapp-884724\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-884724.azurewebsites.net\",\"java-webapp-884724.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-884724.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-884724.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/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan2bb965868\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:03:28.76\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-884724\",\"trafficManagerHostNames\":null,\"sku\":\"Basic\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41\",\"possibleOutboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41,138.91.254.30,138.91.249.213\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-093\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgb5656660c\",\"defaultHostName\":\"java-webapp-884724.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}],\"nextLink\":null,\"id\":null}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724/config/web?api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:05:12 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "2591", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b08acbd8-4e4b-4567-ad49-6976ee12252e", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180513Z:b08acbd8-4e4b-4567-ad49-6976ee12252e", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "d18cee56-31de-47e1-bc7e-60ef6a8036e1", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724/config/web\",\"name\":\"java-webapp-884724\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":null,\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-884724\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724/config/logs?api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:05:13 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "666", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "x-ms-ratelimit-remaining-subscription-reads" : "11985", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "e15a0e5d-4966-4329-befb-f92adb842e4b", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193902Z:dec8cf81-3512-43ef-9998-fdf43427b2e2", + "x-ms-routing-request-id" : "WESTUS2:20190111T180513Z:e15a0e5d-4966-4329-befb-f92adb842e4b", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "0bd66391-53eb-4062-9f93-95706dad582d", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg015830525/providers/Microsoft.Web/sites/java-webapp-868960/config/logs\",\"name\":\"logs\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"applicationLogs\":{\"fileSystem\":{\"level\":\"Off\"},\"azureTableStorage\":{\"level\":\"Off\",\"sasUrl\":null},\"azureBlobStorage\":{\"level\":\"Off\",\"sasUrl\":null,\"retentionInDays\":null}},\"httpLogs\":{\"fileSystem\":{\"retentionInMb\":35,\"retentionInDays\":null,\"enabled\":false},\"azureBlobStorage\":{\"sasUrl\":null,\"retentionInDays\":null,\"enabled\":false}},\"failedRequestsTracing\":{\"enabled\":false},\"detailedErrorMessages\":{\"enabled\":false}}}" + "x-ms-request-id" : "7a0369c6-d532-4da7-b851-93de332e43cb", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgb5656660c/providers/Microsoft.Web/sites/java-webapp-884724/config/logs\",\"name\":\"logs\",\"type\":\"Microsoft.Web/sites/config\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"applicationLogs\":{\"fileSystem\":{\"level\":\"Off\"},\"azureTableStorage\":{\"level\":\"Off\",\"sasUrl\":null},\"azureBlobStorage\":{\"level\":\"Off\",\"sasUrl\":null,\"retentionInDays\":null}},\"httpLogs\":{\"fileSystem\":{\"retentionInMb\":35,\"retentionInDays\":null,\"enabled\":false},\"azureBlobStorage\":{\"sasUrl\":null,\"retentionInDays\":null,\"enabled\":false}},\"failedRequestsTracing\":{\"enabled\":false},\"detailedErrorMessages\":{\"enabled\":false}}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanb5759071a?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan9e599818c?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:21 GMT", + "date" : "Fri, 11 Jan 2019 18:05:36 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "1308", + "content-length" : "1355", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", - "x-ms-ratelimit-remaining-subscription-writes" : "1195", + "x-ms-ratelimit-remaining-subscription-writes" : "1189", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "656053e8-2be0-47b7-8f4d-cc622c4b28a6", + "x-ms-correlation-request-id" : "0376b5fa-1e34-4427-adcf-c961b6bc8646", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193921Z:656053e8-2be0-47b7-8f4d-cc622c4b28a6", + "x-ms-routing-request-id" : "WESTUS2:20190111T180536Z:0376b5fa-1e34-4427-adcf-c961b6bc8646", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "57c9677a-76d1-4631-af02-2249721a5806", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanb5759071a\",\"name\":\"java-webapp-59758cplanb5759071a\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":3670,\"name\":\"java-webapp-59758cplanb5759071a\",\"workerSize\":\"Medium\",\"workerSizeId\":1,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Medium\",\"currentWorkerSizeId\":1,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":10,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrg7ca655543\",\"reserved\":false,\"isXenon\":false,\"mdmId\":\"waws-prod-bay-115_3670\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"S2\",\"tier\":\"Standard\",\"size\":\"S2\",\"family\":\"S\",\"capacity\":1}}" + "x-ms-request-id" : "acdaac0f-a5a6-4eca-b9b3-00c49dadc193", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan9e599818c\",\"name\":\"java-webapp-588890plan9e599818c\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":15832,\"name\":\"java-webapp-588890plan9e599818c\",\"workerSize\":\"Medium\",\"workerSizeId\":1,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Medium\",\"currentWorkerSizeId\":1,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":10,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":0,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrgd90157002\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-bay-093_15832\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"S2\",\"tier\":\"Standard\",\"size\":\"S2\",\"family\":\"S\",\"capacity\":1}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:23 GMT", + "date" : "Fri, 11 Jan 2019 18:05:41 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2875", + "content-length" : "2889", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", @@ -593,85 +877,85 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "9b847c36-c5b9-4cc3-828f-879f22ecdfdc", + "x-ms-correlation-request-id" : "aac3c1fe-d4ca-4b93-88bb-838285945e26", "x-content-type-options" : "nosniff", - "x-ms-ratelimit-remaining-subscription-resource-requests" : "497", - "x-ms-routing-request-id" : "WESTUS2:20181115T193923Z:9b847c36-c5b9-4cc3-828f-879f22ecdfdc", + "x-ms-ratelimit-remaining-subscription-resource-requests" : "495", + "x-ms-routing-request-id" : "WESTUS2:20190111T180541Z:aac3c1fe-d4ca-4b93-88bb-838285945e26", "x-powered-by" : "ASP.NET", "content-type" : "application/json", - "etag" : "\"1D47D1AE90BB2AB\"", + "etag" : "\"1D4A9D842DD0C80\"", "cache-control" : "no-cache", - "x-ms-request-id" : "00211b89-47d6-4067-9e27-bc828294e419", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c\",\"name\":\"java-webapp-59758c\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-59758c\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-59758c.azurewebsites.net\"],\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-115.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrg7ca655543-WestUSwebspace/sites/java-webapp-59758c\",\"repositorySiteName\":\"java-webapp-59758c\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-59758c.azurewebsites.net\",\"java-webapp-59758c.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-59758c.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-59758c.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/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanb5759071a\",\"reserved\":false,\"isXenon\":false,\"lastModifiedTimeUtc\":\"2018-11-15T19:39:23.3066667\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-59758c\",\"trafficManagerHostNames\":null,\"sku\":\"Standard\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143\",\"possibleOutboundIpAddresses\":\"40.112.192.69,40.112.196.57,40.112.198.128,40.78.3.182,40.78.2.143,40.112.193.168,40.78.1.240,40.78.1.3\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-115\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrg7ca655543\",\"defaultHostName\":\"java-webapp-59758c.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" + "x-ms-request-id" : "19873a3e-ba79-4256-8bf5-5c9dfe65cabf", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890\",\"name\":\"java-webapp-588890\",\"type\":\"Microsoft.Web/sites\",\"kind\":\"app\",\"location\":\"westus\",\"tags\":{},\"properties\":{\"name\":\"java-webapp-588890\",\"state\":\"Running\",\"hostNames\":[\"java-webapp-588890.azurewebsites.net\"],\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"selfLink\":\"https://waws-prod-bay-093.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/javacsmrgd90157002-WestUSwebspace/sites/java-webapp-588890\",\"repositorySiteName\":\"java-webapp-588890\",\"owner\":null,\"usageState\":\"Normal\",\"enabled\":true,\"adminEnabled\":true,\"enabledHostNames\":[\"java-webapp-588890.azurewebsites.net\",\"java-webapp-588890.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-588890.azurewebsites.net\",\"sslState\":\"Disabled\",\"ipBasedSslResult\":null,\"virtualIP\":null,\"thumbprint\":null,\"toUpdate\":null,\"toUpdateIpBasedSsl\":null,\"ipBasedSslState\":\"NotConfigured\",\"hostType\":\"Standard\"},{\"name\":\"java-webapp-588890.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/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan9e599818c\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"lastModifiedTimeUtc\":\"2019-01-11T18:05:40.04\",\"storageRecoveryDefaultState\":\"Running\",\"contentAvailabilityState\":\"Normal\",\"runtimeAvailabilityState\":\"Normal\",\"siteConfig\":null,\"deploymentId\":\"java-webapp-588890\",\"trafficManagerHostNames\":null,\"sku\":\"Standard\",\"scmSiteAlsoStopped\":false,\"targetSwapSlot\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"clientAffinityEnabled\":true,\"clientCertEnabled\":false,\"hostNamesDisabled\":false,\"domainVerificationIdentifiers\":null,\"kind\":\"app\",\"outboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41\",\"possibleOutboundIpAddresses\":\"40.112.191.159,138.91.252.122,40.86.180.238,138.91.248.136,138.91.253.41,138.91.254.30,138.91.249.213\",\"containerSize\":0,\"dailyMemoryTimeQuota\":0,\"suspendedTill\":null,\"siteDisabledReason\":0,\"functionExecutionUnitsCache\":null,\"maxNumberOfWorkers\":null,\"homeStamp\":\"waws-prod-bay-093\",\"cloningInfo\":null,\"hostingEnvironmentId\":null,\"tags\":{},\"resourceGroup\":\"javacsmrgd90157002\",\"defaultHostName\":\"java-webapp-588890.azurewebsites.net\",\"slotSwapStatus\":null,\"httpsOnly\":false}}" } }, { "Method" : "PUT", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c/config/web?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890/config/web?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:24 GMT", + "date" : "Fri, 11 Jan 2019 18:05:42 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "2535", + "content-length" : "2577", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", - "x-ms-ratelimit-remaining-subscription-writes" : "1194", + "x-ms-ratelimit-remaining-subscription-writes" : "1188", "retry-after" : "0", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "8342caa0-a4d4-4e24-b6f8-6b1e7952bcab", + "x-ms-correlation-request-id" : "08f7c3e4-3b71-4b4d-bec5-13bde1c8d242", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193925Z:8342caa0-a4d4-4e24-b6f8-6b1e7952bcab", + "x-ms-routing-request-id" : "WESTUS2:20190111T180542Z:08f7c3e4-3b71-4b4d-bec5-13bde1c8d242", "x-powered-by" : "ASP.NET", "content-type" : "application/json", - "etag" : "\"1D47D1AE9E45F6B\"", + "etag" : "\"1D4A9D8445A84C0\"", "cache-control" : "no-cache", - "x-ms-request-id" : "98f8717a-183c-450a-b58a-f6763c04cd91", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/sites/java-webapp-59758c\",\"name\":\"java-webapp-59758c\",\"type\":\"Microsoft.Web/sites\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":true,\"remoteDebuggingVersion\":\"VS2015\",\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-59758c\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" + "x-ms-request-id" : "3d69c1eb-d2d2-4e18-83d3-bc29bd6d7f95", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/sites/java-webapp-588890\",\"name\":\"java-webapp-588890\",\"type\":\"Microsoft.Web/sites\",\"location\":\"West 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\":\"\",\"linuxFxVersion\":\"\",\"windowsFxVersion\":null,\"requestTracingEnabled\":false,\"remoteDebuggingEnabled\":false,\"remoteDebuggingVersion\":\"VS2017\",\"httpLoggingEnabled\":false,\"logsDirectorySizeLimit\":35,\"detailedErrorLoggingEnabled\":false,\"publishingUsername\":\"$java-webapp-588890\",\"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\":\"\",\"siteAuthEnabled\":false,\"siteAuthSettings\":{\"enabled\":null,\"unauthenticatedClientAction\":null,\"tokenStoreEnabled\":null,\"allowedExternalRedirectUrls\":null,\"defaultProvider\":null,\"clientId\":null,\"clientSecret\":null,\"clientSecretCertificateThumbprint\":null,\"issuer\":null,\"allowedAudiences\":null,\"additionalLoginParams\":null,\"isAadAutoProvisioned\":false,\"googleClientId\":null,\"googleClientSecret\":null,\"googleOAuthScopes\":null,\"facebookAppId\":null,\"facebookAppSecret\":null,\"facebookOAuthScopes\":null,\"twitterConsumerKey\":null,\"twitterConsumerSecret\":null,\"microsoftAccountClientId\":null,\"microsoftAccountClientSecret\":null,\"microsoftAccountOAuthScopes\":null},\"cors\":null,\"push\":null,\"apiDefinition\":null,\"autoSwapSlotName\":null,\"localMySqlEnabled\":false,\"managedServiceIdentityId\":null,\"xManagedServiceIdentityId\":null,\"ipSecurityRestrictions\":null,\"http20Enabled\":false,\"minTlsVersion\":\"1.2\",\"ftpsState\":\"AllAllowed\",\"reservedInstanceCount\":0}}" } }, { "Method" : "GET", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanb5759071a?api-version=2018-02-01", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan9e599818c?api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:25 GMT", + "date" : "Fri, 11 Jan 2019 18:05:43 GMT", "server" : "Microsoft-IIS/10.0", - "content-length" : "1308", + "content-length" : "1355", "expires" : "-1", "transfer-encoding" : "chunked", "vary" : "Accept-Encoding", "x-aspnet-version" : "4.0.30319", "retry-after" : "0", - "x-ms-ratelimit-remaining-subscription-reads" : "11986", + "x-ms-ratelimit-remaining-subscription-reads" : "11984", "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "a48785d3-63f6-4a6f-b5a6-b834b872d502", + "x-ms-correlation-request-id" : "83c37bd9-ee6f-4c5d-afd7-2eb756b766a3", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193926Z:a48785d3-63f6-4a6f-b5a6-b834b872d502", + "x-ms-routing-request-id" : "WESTUS2:20190111T180543Z:83c37bd9-ee6f-4c5d-afd7-2eb756b766a3", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "b547c97e-2ff7-49be-a818-e1d72857f142", - "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrg7ca655543/providers/Microsoft.Web/serverfarms/java-webapp-59758cplanb5759071a\",\"name\":\"java-webapp-59758cplanb5759071a\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":3670,\"name\":\"java-webapp-59758cplanb5759071a\",\"workerSize\":\"Medium\",\"workerSizeId\":1,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Medium\",\"currentWorkerSizeId\":1,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrg7ca655543-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":10,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"numberOfSites\":1,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrg7ca655543\",\"reserved\":false,\"isXenon\":false,\"mdmId\":\"waws-prod-bay-115_3670\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"S2\",\"tier\":\"Standard\",\"size\":\"S2\",\"family\":\"S\",\"capacity\":1}}" + "x-ms-request-id" : "e3b00ddf-f7fe-406b-b5bc-6cb9106cf53e", + "Body" : "{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/javacsmrgd90157002/providers/Microsoft.Web/serverfarms/java-webapp-588890plan9e599818c\",\"name\":\"java-webapp-588890plan9e599818c\",\"type\":\"Microsoft.Web/serverfarms\",\"kind\":\"app\",\"location\":\"West US\",\"tags\":{},\"properties\":{\"serverFarmId\":15832,\"name\":\"java-webapp-588890plan9e599818c\",\"workerSize\":\"Medium\",\"workerSizeId\":1,\"workerTierName\":null,\"numberOfWorkers\":1,\"currentWorkerSize\":\"Medium\",\"currentWorkerSizeId\":1,\"currentNumberOfWorkers\":1,\"status\":\"Ready\",\"webSpace\":\"javacsmrgd90157002-WestUSwebspace\",\"subscription\":\"00000000-0000-0000-0000-000000000000\",\"adminSiteName\":null,\"hostingEnvironment\":null,\"hostingEnvironmentProfile\":null,\"maximumNumberOfWorkers\":10,\"planName\":\"VirtualDedicatedPlan\",\"adminRuntimeSiteName\":null,\"computeMode\":\"Dedicated\",\"siteMode\":null,\"geoRegion\":\"West US\",\"perSiteScaling\":false,\"maximumElasticWorkerCount\":1,\"numberOfSites\":1,\"hostingEnvironmentId\":null,\"isSpot\":false,\"spotExpirationTime\":null,\"freeOfferExpirationTime\":null,\"tags\":{},\"kind\":\"app\",\"resourceGroup\":\"javacsmrgd90157002\",\"reserved\":false,\"isXenon\":false,\"hyperV\":false,\"mdmId\":\"waws-prod-bay-093_15832\",\"targetWorkerCount\":0,\"targetWorkerSizeId\":0,\"provisioningState\":\"Succeeded\",\"webSiteId\":null},\"sku\":{\"name\":\"S2\",\"tier\":\"Standard\",\"size\":\"S2\",\"family\":\"S\",\"capacity\":1}}" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg015830525?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrgb20270255?api-version=2017-05-10", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (ResourceManagementClient, 2017-05-10)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (ResourceManagementClient, 2017-05-10)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:26 GMT", + "date" : "Fri, 11 Jan 2019 18:05:43 GMT", "content-length" : "0", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-deletes" : "14999", @@ -679,23 +963,23 @@ "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "5331ba1f-eddb-4050-9d5f-4286038abf7a", + "x-ms-correlation-request-id" : "6d3c617c-1907-4e52-b9db-e47c74faceb4", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193926Z:5331ba1f-eddb-4050-9d5f-4286038abf7a", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkcwMTU4MzA1MjUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2017-05-10", + "x-ms-routing-request-id" : "WESTUS2:20190111T180543Z:6d3c617c-1907-4e52-b9db-e47c74faceb4", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkdCMjAyNzAyNTUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2017-05-10", "cache-control" : "no-cache", - "x-ms-request-id" : "5331ba1f-eddb-4050-9d5f-4286038abf7a", + "x-ms-request-id" : "6d3c617c-1907-4e52-b9db-e47c74faceb4", "Body" : "" } }, { "Method" : "DELETE", - "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg7ca655543?api-version=2017-05-10", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrg9ff66435b?api-version=2017-05-10", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Mac OS X/10.13.6 MacAddressHash:3a717c0e378b5becf439d311da0ed758c997ddd81c6299a71a007552435ef840 Java:1.8.0_181 (ResourceManagementClient, 2017-05-10)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (ResourceManagementClient, 2017-05-10)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Thu, 15 Nov 2018 19:39:27 GMT", + "date" : "Fri, 11 Jan 2019 18:05:44 GMT", "content-length" : "0", "expires" : "-1", "x-ms-ratelimit-remaining-subscription-deletes" : "14998", @@ -703,14 +987,62 @@ "StatusCode" : "202", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "46757ada-2a32-4b2e-9d66-e55ca3cc9fe6", + "x-ms-correlation-request-id" : "6778743c-8fcd-43b7-ad97-e993abba5fce", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180544Z:6778743c-8fcd-43b7-ad97-e993abba5fce", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc5RkY2NjQzNUItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "6778743c-8fcd-43b7-ad97-e993abba5fce", + "Body" : "" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrgb5656660c?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:05:44 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14997", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "0f024ec4-9f54-4b52-afd3-9cdd9ba7ef2f", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180544Z:0f024ec4-9f54-4b52-afd3-9cdd9ba7ef2f", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkdCNTY1NjY2MEMtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2017-05-10", + "cache-control" : "no-cache", + "x-ms-request-id" : "0f024ec4-9f54-4b52-afd3-9cdd9ba7ef2f", + "Body" : "" + } + }, { + "Method" : "DELETE", + "Uri" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/javacsmrgd90157002?api-version=2017-05-10", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (ResourceManagementClient, 2017-05-10)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:05:44 GMT", + "content-length" : "0", + "expires" : "-1", + "x-ms-ratelimit-remaining-subscription-deletes" : "14996", + "retry-after" : "0", + "StatusCode" : "202", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "f9654c12-16f2-44f6-bf0b-8b522299ed9f", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20181115T193928Z:46757ada-2a32-4b2e-9d66-e55ca3cc9fe6", - "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkc3Q0E2NTU1NDMtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2017-05-10", + "x-ms-routing-request-id" : "WESTUS2:20190111T180545Z:f9654c12-16f2-44f6-bf0b-8b522299ed9f", + "location" : "http://localhost:1234/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1KQVZBQ1NNUkdEOTAxNTcwMDItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2017-05-10", "cache-control" : "no-cache", - "x-ms-request-id" : "46757ada-2a32-4b2e-9d66-e55ca3cc9fe6", + "x-ms-request-id" : "f9654c12-16f2-44f6-bf0b-8b522299ed9f", "Body" : "" } } ], - "variables" : [ "java-webapp-59758c", "java-webapp-868960", "javacsmrg7ca655543", "javacsmrg015830525", "javacsmrg187959828", "f0f8fe75-fd7a-468f-96c0-6eebe35ca902", "74163559-63a3-471a-a477-dfd2d0d56649", "java-webapp-59758cplanf43505721", "1373356d-a8c4-4542-8117-fd122517365c", "35800d69-6f89-4ad1-9de1-6f225b4e2e12", "f7e6a0c6-31a8-426b-bbb9-8135bcc26adc", "a62a9fc0-317e-4b6c-8513-7d2f090de5ea", "5f039b80-1576-488d-b7da-9bded99fe77f", "3093b046-a779-4a8b-90ab-5058e633cc12", "e1f29d14-369d-4560-ace8-82065f134eeb", "80f94bac-a58c-4a37-9698-d9290ed1e977", "eb378138-ab04-4a51-9206-ec56a4c2b660", "340dd26f-9a79-41bf-b754-a454d57e6ed5", "b144dcd8-e0dc-4f2f-9e45-a84078e8026a", "a64b41f1-706d-4a06-a1aa-d97903514f8a", "4a67429c-7a90-4671-97bc-f7a2116d71dc", "8f48c8b9-4140-4187-a481-e2b0069947f5", "665601df-4875-4547-80b7-deac71531018", "8ea66365-cab6-4727-aef1-46b99e424007", "2fb6e54b-e00f-461d-9c43-fd9da23e7371", "e88563f6-4087-4f00-8003-235eb7a1b0f4", "97246126-f25d-4def-a596-b77be13ee886", "0f85af0f-9a4e-458b-ab57-5ffe1c9064b5", "java-webapp-59758cplanb5759071a", "37deba31-0b1f-4635-b387-efabeaadf72f", "740f5633-24cc-4fc6-a16a-ea938df839fa", "5c4ed28c-abf3-4e23-9694-11a19004c75f", "a777319d-2231-4049-8c8a-4942dfd48f98", "a13e8f32-e6ca-4e17-8542-fda2c104ec81", "bcad64d6-e993-4e76-9547-119982dc8d25", "df5696da-c430-4c28-95e8-b76f481656f6", "092cf2de-7f6d-4149-bb30-c48e869c798c" ] + "variables" : [ "java-webapp-588890", "java-webapp-884724", "java-webapp-89319e", "java-webapp-44202a", "java-webapp-87820c", "javacsmrgd90157002", "javacsmrgb5656660c", "javacsmrg9ff66435b", "javacsmrgb20270255", "javacsmrgef449772a", "javacsmrg49010429b", "041f47bd-42da-492c-9efe-714683b490f2", "e1376441-5b8c-40e1-b439-66089aee4ab9", "java-webapp-588890plan2bb965868", "ecb59571-e879-4c6c-91b2-314c993428c5", "1a174efd-e17a-4a84-870a-dbb24f0a329f", "765842a6-db66-4934-ab53-7fed2fcdd8a0", "470be2b2-1ddd-430b-8666-24bce0489961", "c9b8ee16-3012-4461-a152-abef77392b8f", "109e923c-9749-4895-8df6-18d83950d338", "8f8fa305-587f-420f-9d1e-3db79e9d7d05", "228d29c7-739f-4754-94d0-de9ac4abed2a", "339d644d-a5ac-4a6d-9024-48c9a78b78ce", "3c9c03bc-b092-4814-b4ae-1b999631cbfe", "3e20a8c7-efdc-436f-9214-443244fd50d7", "4c61824e-4cfb-4578-974a-863e82f6ee46", "75c95383-5ab0-465f-b982-d7f7e8184cf5", "5ed504ac-48c2-4f64-b9d0-fe0637aae045", "e9f5e4ab-1793-4910-be55-8225ae7b9f2d", "37000b29-548a-4597-9f6c-4693ba959584", "b4a2e5e9-64d2-40ec-aff4-7d57f373e550", "d3f6c6a2-3477-4724-87ee-279a2a3f1cf2", "java-webapp-89319eplan6d050457b", "76255446-5ab1-4add-a89f-b53f228ae667", "43645423-4e8f-4ed7-a450-f02ca7b2fa4a", "2a399ac4-aa74-4465-995f-8311f793c720", "92c00ecc-2c2b-4eae-910c-9eb1f957f799", "8da4654e-3995-4016-9d01-04eb4379d0d3", "fa125c1c-c072-47e5-ba2d-0be481a87245", "591b3669-a544-4873-a863-99388b466d30", "6f1c671b-4fca-4a47-a177-c48393a8889e", "bb282611-d19a-4e42-abcc-88337fe9b5be", "34695dfb-c47e-4f47-bec1-50c33e337b67", "java-webapp-44202aplan243264413", "3015ac2b-f375-4c58-8aa5-18e122546714", "840d798d-ffac-4d24-bf70-0e4b83f457b8", "8e67d7c5-8a3a-4ec0-998f-3cfbbea72cf2", "996c0186-75c6-49d7-a5cb-c9dabbefe01d", "c6a3b792-830b-4c50-870c-818d65226460", "62e650f3-bc7b-42ef-8bc2-1db6a5e2672d", "82a45dba-69d3-4590-80a4-b4c1f6c42e2b", "7cbd266d-82c7-4985-a3ff-68a896e57eb9", "4d07ae58-ee46-4019-aa9e-046dc50d6b3e", "7aa39524-2592-4bb9-9aca-4d9b80bc7a4b", "b676d0ec-609e-4d31-b984-028e7f91fc85", "392c204a-3ffb-47b7-bb87-4016874acb1a", "java-webapp-588890plan9e599818c", "0cac5415-def3-40ee-943e-92e881714278", "73da064b-34f1-4169-a8c1-cd08ad8ef74a", "c292c472-0871-42a6-96de-ce9fe8a37191", "dd5d44eb-65e0-4a16-a98f-cdd127270609", "01c5bd58-d809-4c75-8f09-b7014ab8d145", "133ed40e-b54f-4c68-bd7a-d855b1bb1716", "510daaf9-6d39-4fc8-9d0d-86b3ba137ced", "78099fb1-d824-4833-8190-94b5378c7d88" ] } \ No newline at end of file diff --git a/azure-mgmt-appservice/src/test/resources/session-records/canUpdateRuntimes.json b/azure-mgmt-appservice/src/test/resources/session-records/canUpdateRuntimes.json new file mode 100644 index 00000000000..cf30b929a79 --- /dev/null +++ b/azure-mgmt-appservice/src/test/resources/session-records/canUpdateRuntimes.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "http://localhost:1234/providers/Microsoft.Web/availableStacks?osTypeSelected=Windows&api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:05:46 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "9607", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "b5d0ecdb-6d08-4bdc-8e7e-758d17c3b2c2", + "x-ms-ratelimit-remaining-tenant-reads" : "11999", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180546Z:b5d0ecdb-6d08-4bdc-8e7e-758d17c3b2c2", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "4078cf1f-111f-4d8c-97fb-f0413a2e0e38", + "Body" : "{\"value\":[{\"id\":null,\"name\":\"aspnet\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"aspnet\",\"display\":\"Net Framework Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"v4.7\",\"runtimeVersion\":\"v4.0\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"v3.5\",\"runtimeVersion\":\"v2.0\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"node\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"node\",\"display\":\"node.js Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"0.6\",\"runtimeVersion\":\"0.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.6.20\",\"runtimeVersion\":\"0.6.20\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.8\",\"runtimeVersion\":\"0.8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.8.2\",\"runtimeVersion\":\"0.8.2\",\"isDefault\":false},{\"displayVersion\":\"0.8.19\",\"runtimeVersion\":\"0.8.19\",\"isDefault\":false},{\"displayVersion\":\"0.8.26\",\"runtimeVersion\":\"0.8.26\",\"isDefault\":false},{\"displayVersion\":\"0.8.27\",\"runtimeVersion\":\"0.8.27\",\"isDefault\":false},{\"displayVersion\":\"0.8.28\",\"runtimeVersion\":\"0.8.28\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.10\",\"runtimeVersion\":\"0.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.10.5\",\"runtimeVersion\":\"0.10.5\",\"isDefault\":false},{\"displayVersion\":\"0.10.18\",\"runtimeVersion\":\"0.10.18\",\"isDefault\":false},{\"displayVersion\":\"0.10.21\",\"runtimeVersion\":\"0.10.21\",\"isDefault\":false},{\"displayVersion\":\"0.10.24\",\"runtimeVersion\":\"0.10.24\",\"isDefault\":false},{\"displayVersion\":\"0.10.28\",\"runtimeVersion\":\"0.10.28\",\"isDefault\":false},{\"displayVersion\":\"0.10.29\",\"runtimeVersion\":\"0.10.29\",\"isDefault\":false},{\"displayVersion\":\"0.10.31\",\"runtimeVersion\":\"0.10.31\",\"isDefault\":false},{\"displayVersion\":\"0.10.32\",\"runtimeVersion\":\"0.10.32\",\"isDefault\":false},{\"displayVersion\":\"0.10.40\",\"runtimeVersion\":\"0.10.40\",\"isDefault\":false},{\"displayVersion\":\"0.10.5\",\"runtimeVersion\":\"0.10.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.12\",\"runtimeVersion\":\"0.12\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.12.0\",\"runtimeVersion\":\"0.12.0\",\"isDefault\":false},{\"displayVersion\":\"0.12.2\",\"runtimeVersion\":\"0.12.2\",\"isDefault\":false},{\"displayVersion\":\"0.12.3\",\"runtimeVersion\":\"0.12.3\",\"isDefault\":false},{\"displayVersion\":\"0.12.6\",\"runtimeVersion\":\"0.12.6\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"4.8\",\"runtimeVersion\":\"4.8\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"6.5\",\"runtimeVersion\":\"6.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.5.0\",\"runtimeVersion\":\"6.5.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"6.9\",\"runtimeVersion\":\"6.9\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.9.1\",\"runtimeVersion\":\"6.9.1\",\"isDefault\":false},{\"displayVersion\":\"6.9.5\",\"runtimeVersion\":\"6.9.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"6.12\",\"runtimeVersion\":\"6.12\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.10\",\"runtimeVersion\":\"7.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.10.1\",\"runtimeVersion\":\"7.10.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.1\",\"runtimeVersion\":\"8.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.1.4\",\"runtimeVersion\":\"8.1.4\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.4\",\"runtimeVersion\":\"8.4\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"8.5\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.9\",\"runtimeVersion\":\"8.9\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.10\",\"runtimeVersion\":\"8.10\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.11\",\"runtimeVersion\":\"8.11\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"10.0\",\"runtimeVersion\":\"10.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.0.0\",\"runtimeVersion\":\"10.0.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"10.6\",\"runtimeVersion\":\"10.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.6.0\",\"runtimeVersion\":\"10.6.0\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"php\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"php\",\"display\":\"PHP Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"5.6\",\"runtimeVersion\":\"5.6\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.0\",\"runtimeVersion\":\"7.0\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.1\",\"runtimeVersion\":\"7.1\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.2\",\"runtimeVersion\":\"7.2\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"python\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"python\",\"display\":\"Python Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"2.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"2.7.3\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"3.4\",\"runtimeVersion\":\"3.4\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"3.4\",\"runtimeVersion\":\"3.4.0\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"java\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"java\",\"display\":\"Java Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"1.7\",\"runtimeVersion\":\"1.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"1.7.0_51 (Oracle)\",\"runtimeVersion\":\"1.7.0_51\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_71 (Oracle)\",\"runtimeVersion\":\"1.7.0_71\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_80 (Oracle)\",\"runtimeVersion\":\"1.7.0_80\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_191 (Azul)\",\"runtimeVersion\":\"1.7.0_191_ZULU\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"1.8\",\"runtimeVersion\":\"1.8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"1.8.0_25 (Oracle)\",\"runtimeVersion\":\"1.8.0_25\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_60 (Oracle)\",\"runtimeVersion\":\"1.8.0_60\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_73 (Oracle)\",\"runtimeVersion\":\"1.8.0_73\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_92 (Azul)\",\"runtimeVersion\":\"1.8.0_92\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_102 (Azul)\",\"runtimeVersion\":\"1.8.0_102\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_111 (Oracle)\",\"runtimeVersion\":\"1.8.0_111\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_144 (Azul)\",\"runtimeVersion\":\"1.8.0_144\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_172 (Oracle)\",\"runtimeVersion\":\"1.8.0_172\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_172 (Azul)\",\"runtimeVersion\":\"1.8.0_172_ZULU\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_181 (Oracle)\",\"runtimeVersion\":\"1.8.0_181\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_181 (Azul)\",\"runtimeVersion\":\"1.8.0_181_ZULU\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"javaContainers\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"javaContainers\",\"display\":\"Java Containers\",\"dependency\":\"java\",\"majorVersions\":[],\"frameworks\":[{\"name\":\"tomcat\",\"display\":\"Tomcat\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"7.0\",\"runtimeVersion\":\"7.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.0.50\",\"runtimeVersion\":\"7.0.50\",\"isDefault\":false},{\"displayVersion\":\"7.0.62\",\"runtimeVersion\":\"7.0.62\",\"isDefault\":false},{\"displayVersion\":\"7.0.81\",\"runtimeVersion\":\"7.0.81\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.0\",\"runtimeVersion\":\"8.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.0.23\",\"runtimeVersion\":\"8.0.23\",\"isDefault\":false},{\"displayVersion\":\"8.0.46\",\"runtimeVersion\":\"8.0.46\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"8.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.5.6\",\"runtimeVersion\":\"8.5.6\",\"isDefault\":false},{\"displayVersion\":\"8.5.20\",\"runtimeVersion\":\"8.5.20\",\"isDefault\":false},{\"displayVersion\":\"8.5.31\",\"runtimeVersion\":\"8.5.31\",\"isDefault\":false},{\"displayVersion\":\"8.5.34\",\"runtimeVersion\":\"8.5.34\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"9.0\",\"runtimeVersion\":\"9.0\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.0.0\",\"runtimeVersion\":\"9.0.0\",\"isDefault\":false},{\"displayVersion\":\"9.0.8\",\"runtimeVersion\":\"9.0.8\",\"isDefault\":false},{\"displayVersion\":\"9.0.12\",\"runtimeVersion\":\"9.0.12\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":null},{\"name\":\"jetty\",\"display\":\"Jetty\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"9.1\",\"runtimeVersion\":\"9.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"9.1.0\",\"runtimeVersion\":\"9.1.0.20131115\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"9.3\",\"runtimeVersion\":\"9.3\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.3.13\",\"runtimeVersion\":\"9.3.13.20161014\",\"isDefault\":false},{\"displayVersion\":\"9.3.25\",\"runtimeVersion\":\"9.3.25.20180904\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":null}]}}],\"nextLink\":null,\"id\":null}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/providers/Microsoft.Web/availableStacks?osTypeSelected=Windows&api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Fri, 11 Jan 2019 18:05:46 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "9607", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "880b05a7-a2cf-495a-9ee5-54ee415aac39", + "x-ms-ratelimit-remaining-tenant-reads" : "11998", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190111T180546Z:880b05a7-a2cf-495a-9ee5-54ee415aac39", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "e9fd3599-5085-46c2-a500-cb32ce3ed5c0", + "Body" : "{\"value\":[{\"id\":null,\"name\":\"aspnet\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"aspnet\",\"display\":\"Net Framework Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"v4.7\",\"runtimeVersion\":\"v4.0\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"v3.5\",\"runtimeVersion\":\"v2.0\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"node\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"node\",\"display\":\"node.js Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"0.6\",\"runtimeVersion\":\"0.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.6.20\",\"runtimeVersion\":\"0.6.20\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.8\",\"runtimeVersion\":\"0.8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.8.2\",\"runtimeVersion\":\"0.8.2\",\"isDefault\":false},{\"displayVersion\":\"0.8.19\",\"runtimeVersion\":\"0.8.19\",\"isDefault\":false},{\"displayVersion\":\"0.8.26\",\"runtimeVersion\":\"0.8.26\",\"isDefault\":false},{\"displayVersion\":\"0.8.27\",\"runtimeVersion\":\"0.8.27\",\"isDefault\":false},{\"displayVersion\":\"0.8.28\",\"runtimeVersion\":\"0.8.28\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.10\",\"runtimeVersion\":\"0.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.10.5\",\"runtimeVersion\":\"0.10.5\",\"isDefault\":false},{\"displayVersion\":\"0.10.18\",\"runtimeVersion\":\"0.10.18\",\"isDefault\":false},{\"displayVersion\":\"0.10.21\",\"runtimeVersion\":\"0.10.21\",\"isDefault\":false},{\"displayVersion\":\"0.10.24\",\"runtimeVersion\":\"0.10.24\",\"isDefault\":false},{\"displayVersion\":\"0.10.28\",\"runtimeVersion\":\"0.10.28\",\"isDefault\":false},{\"displayVersion\":\"0.10.29\",\"runtimeVersion\":\"0.10.29\",\"isDefault\":false},{\"displayVersion\":\"0.10.31\",\"runtimeVersion\":\"0.10.31\",\"isDefault\":false},{\"displayVersion\":\"0.10.32\",\"runtimeVersion\":\"0.10.32\",\"isDefault\":false},{\"displayVersion\":\"0.10.40\",\"runtimeVersion\":\"0.10.40\",\"isDefault\":false},{\"displayVersion\":\"0.10.5\",\"runtimeVersion\":\"0.10.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.12\",\"runtimeVersion\":\"0.12\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.12.0\",\"runtimeVersion\":\"0.12.0\",\"isDefault\":false},{\"displayVersion\":\"0.12.2\",\"runtimeVersion\":\"0.12.2\",\"isDefault\":false},{\"displayVersion\":\"0.12.3\",\"runtimeVersion\":\"0.12.3\",\"isDefault\":false},{\"displayVersion\":\"0.12.6\",\"runtimeVersion\":\"0.12.6\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"4.8\",\"runtimeVersion\":\"4.8\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"6.5\",\"runtimeVersion\":\"6.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.5.0\",\"runtimeVersion\":\"6.5.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"6.9\",\"runtimeVersion\":\"6.9\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.9.1\",\"runtimeVersion\":\"6.9.1\",\"isDefault\":false},{\"displayVersion\":\"6.9.5\",\"runtimeVersion\":\"6.9.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"6.12\",\"runtimeVersion\":\"6.12\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.10\",\"runtimeVersion\":\"7.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.10.1\",\"runtimeVersion\":\"7.10.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.1\",\"runtimeVersion\":\"8.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.1.4\",\"runtimeVersion\":\"8.1.4\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.4\",\"runtimeVersion\":\"8.4\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"8.5\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.9\",\"runtimeVersion\":\"8.9\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.10\",\"runtimeVersion\":\"8.10\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.11\",\"runtimeVersion\":\"8.11\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"10.0\",\"runtimeVersion\":\"10.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.0.0\",\"runtimeVersion\":\"10.0.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"10.6\",\"runtimeVersion\":\"10.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.6.0\",\"runtimeVersion\":\"10.6.0\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"php\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"php\",\"display\":\"PHP Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"5.6\",\"runtimeVersion\":\"5.6\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.0\",\"runtimeVersion\":\"7.0\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.1\",\"runtimeVersion\":\"7.1\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.2\",\"runtimeVersion\":\"7.2\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"python\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"python\",\"display\":\"Python Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"2.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"2.7.3\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"3.4\",\"runtimeVersion\":\"3.4\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"3.4\",\"runtimeVersion\":\"3.4.0\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"java\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"java\",\"display\":\"Java Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"1.7\",\"runtimeVersion\":\"1.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"1.7.0_51 (Oracle)\",\"runtimeVersion\":\"1.7.0_51\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_71 (Oracle)\",\"runtimeVersion\":\"1.7.0_71\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_80 (Oracle)\",\"runtimeVersion\":\"1.7.0_80\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_191 (Azul)\",\"runtimeVersion\":\"1.7.0_191_ZULU\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"1.8\",\"runtimeVersion\":\"1.8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"1.8.0_25 (Oracle)\",\"runtimeVersion\":\"1.8.0_25\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_60 (Oracle)\",\"runtimeVersion\":\"1.8.0_60\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_73 (Oracle)\",\"runtimeVersion\":\"1.8.0_73\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_92 (Azul)\",\"runtimeVersion\":\"1.8.0_92\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_102 (Azul)\",\"runtimeVersion\":\"1.8.0_102\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_111 (Oracle)\",\"runtimeVersion\":\"1.8.0_111\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_144 (Azul)\",\"runtimeVersion\":\"1.8.0_144\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_172 (Oracle)\",\"runtimeVersion\":\"1.8.0_172\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_172 (Azul)\",\"runtimeVersion\":\"1.8.0_172_ZULU\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_181 (Oracle)\",\"runtimeVersion\":\"1.8.0_181\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_181 (Azul)\",\"runtimeVersion\":\"1.8.0_181_ZULU\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"javaContainers\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"javaContainers\",\"display\":\"Java Containers\",\"dependency\":\"java\",\"majorVersions\":[],\"frameworks\":[{\"name\":\"tomcat\",\"display\":\"Tomcat\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"7.0\",\"runtimeVersion\":\"7.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.0.50\",\"runtimeVersion\":\"7.0.50\",\"isDefault\":false},{\"displayVersion\":\"7.0.62\",\"runtimeVersion\":\"7.0.62\",\"isDefault\":false},{\"displayVersion\":\"7.0.81\",\"runtimeVersion\":\"7.0.81\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.0\",\"runtimeVersion\":\"8.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.0.23\",\"runtimeVersion\":\"8.0.23\",\"isDefault\":false},{\"displayVersion\":\"8.0.46\",\"runtimeVersion\":\"8.0.46\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"8.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.5.6\",\"runtimeVersion\":\"8.5.6\",\"isDefault\":false},{\"displayVersion\":\"8.5.20\",\"runtimeVersion\":\"8.5.20\",\"isDefault\":false},{\"displayVersion\":\"8.5.31\",\"runtimeVersion\":\"8.5.31\",\"isDefault\":false},{\"displayVersion\":\"8.5.34\",\"runtimeVersion\":\"8.5.34\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"9.0\",\"runtimeVersion\":\"9.0\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.0.0\",\"runtimeVersion\":\"9.0.0\",\"isDefault\":false},{\"displayVersion\":\"9.0.8\",\"runtimeVersion\":\"9.0.8\",\"isDefault\":false},{\"displayVersion\":\"9.0.12\",\"runtimeVersion\":\"9.0.12\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":null},{\"name\":\"jetty\",\"display\":\"Jetty\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"9.1\",\"runtimeVersion\":\"9.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"9.1.0\",\"runtimeVersion\":\"9.1.0.20131115\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"9.3\",\"runtimeVersion\":\"9.3\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.3.13\",\"runtimeVersion\":\"9.3.13.20161014\",\"isDefault\":false},{\"displayVersion\":\"9.3.25\",\"runtimeVersion\":\"9.3.25.20180904\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":null}]}}],\"nextLink\":null,\"id\":null}" + } + } ], + "variables" : [ "java-webapp-199381", "java-webapp-179994", "java-webapp-427843", "java-webapp-713766", "java-webapp-38122a", "javacsmrgde615886c", "javacsmrgd3823864d", "javacsmrg91f673285", "javacsmrgd8212186c", "javacsmrg0e1788647", "javacsmrgf4b060141" ] +} \ No newline at end of file From ffbe504b75549c8c889b27fac8dcba79beba58ab Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Wed, 16 Jan 2019 13:55:20 -0800 Subject: [PATCH 10/14] Took care of design changes suggested and added tests for linux runtime stacks. --- .../appservice/AppServiceStacks.java | 29 ++++ .../appservice/LinuxStackVersion.java | 77 +++++++++ .../management/appservice/RuntimeStack.java | 66 ++++++- ...imes.java => WindowsAppServiceStacks.java} | 2 +- .../implementation/AppServiceManager.java | 163 +----------------- .../implementation/AppServiceStacksImpl.java | 93 ++++++++++ .../WindowsAppServiceStacksImpl.java | 125 ++++++++++++++ .../management/appservice/WebAppsTests.java | 33 +++- .../canUpdateLinuxRuntimes.json | 62 +++++++ 9 files changed, 486 insertions(+), 164 deletions(-) create mode 100644 azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceStacks.java create mode 100644 azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/LinuxStackVersion.java rename azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/{AppServiceRuntimes.java => WindowsAppServiceStacks.java} (96%) create mode 100644 azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceStacksImpl.java create mode 100644 azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WindowsAppServiceStacksImpl.java create mode 100644 azure-mgmt-appservice/src/test/resources/session-records/canUpdateLinuxRuntimes.json diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceStacks.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceStacks.java new file mode 100644 index 00000000000..3bde645a738 --- /dev/null +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceStacks.java @@ -0,0 +1,29 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ +package com.microsoft.azure.management.appservice; + +import com.microsoft.azure.management.apigeneration.Beta; +import com.microsoft.azure.management.apigeneration.Fluent; + +import java.util.Collection; +import java.util.Set; + +/** + * Endpoints and credentials for publishing to a web app. + */ +@Fluent(ContainerName = "/Microsoft.Azure.Management.AppService.Fluent") +@Beta +public interface AppServiceStacks { + /** + * @return the latest Windows application service stacks. + */ + WindowsAppServiceStacks getLatestWindowsStacks(); + + /** + * @return the latest Linux application service stacks. + */ + Set listLatestLinuxStacks(); +} diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/LinuxStackVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/LinuxStackVersion.java new file mode 100644 index 00000000000..8c8465216be --- /dev/null +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/LinuxStackVersion.java @@ -0,0 +1,77 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + +package com.microsoft.azure.management.appservice; + +import org.apache.commons.lang3.NotImplementedException; + +import java.util.Collection; + +/** + * Defines values for .NET framework version. + */ +public final class LinuxStackVersion extends RuntimeVersion { + /** + * Name of the component. + */ + public static final String COMPONENT_NAME = "linux"; + + /** + * Netframework Off setting. + */ + public static final LinuxStackVersion OFF = LinuxStackVersion.fromString("null"); + + /** + * Finds or creates a .NET Framework version based on the name. + * @param name a name + * @return an instance of NetFrameworkVersion + */ + public static LinuxStackVersion fromString(String name) { + return fromString(name, LinuxStackVersion.class); + } + + /** + * @return known .NET framework versions + */ + public static Collection values() { + return values(LinuxStackVersion.class); + } + + /** + * @return The runtime name. + */ + @Override + public String getRuntimeName() { + return COMPONENT_NAME; + } + + /** + * @param version the version to check. + * @return true if the version present in the enum, false otherwise. + */ + @Override + public boolean containsVersion(String version) { + for (LinuxStackVersion ver : values()) { + if (ver.toString().equalsIgnoreCase(version)) { + return true; + } + } + + return false; + } + + /** + * This entry point should never be used + * + * @param name name of the framweork + * @param displayVersion display version of the runtime + * @param runtimeVersion runtime version of the runtime + */ + @Override + protected void createEnumFromVersionInformation(String name, String displayVersion, String runtimeVersion) { + throw new NotImplementedException("Do not use this function to add new enums of type LinuxStackVersion, use RuntimeStack.fromStackNameAndVersionString"); + } +} diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java index 9d1ff03aaad..2f39fb48244 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java @@ -7,12 +7,25 @@ package com.microsoft.azure.management.appservice; import com.microsoft.azure.management.apigeneration.Fluent; +import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; +import com.sun.javaws.exceptions.InvalidArgumentException; + +import java.security.InvalidParameterException; +import java.util.Hashtable; /** * Defines App service pricing tiers. */ @Fluent(ContainerName = "/Microsoft.Azure.Management.AppService.Fluent") -public class RuntimeStack { +public class RuntimeStack extends ExpandableStringEnum { + /** Seperator used for joining the stack name and version. */ + private static final String SEPERATOR = "|"; + + /** Escape char to be appended to the SEPERATOR when using it in split*/ + private static final String SEPERATOR_FOR_REGEX = "\\|"; + + private static Hashtable values = new Hashtable<>(); + /** Ruby 2.3. */ public static final RuntimeStack RUBY_2_3 = new RuntimeStack("RUBY", "2.3"); @@ -114,16 +127,56 @@ public class RuntimeStack { /** The version of the runtime. */ private String version; + /** The linux version enum corresponding to this value. */ + private LinuxStackVersion linuxVersionEnum; + /** * Creates a custom app service pricing tier. * @param stack the name of the language stack * @param version the version of the runtime */ public RuntimeStack(String stack, String version) { - this.stack = stack; - this.version = version; + String key = stack + SEPERATOR + version; + if (values.containsKey(key)) { + //throw an exception here + throw new InvalidParameterException("Runtime with passed in stack and version already exists"); + } else { + this.stack = stack; + this.version = version; + this.linuxVersionEnum = LinuxStackVersion.fromString(key); + + values.put(key, this); + } + } + + /** + * Creates a RuntimeStack from the stack and version passed in. + * @param value The stack and version in the format "|" + * @return if the value passed in does not exist already and is formatted properly then a new runtimeStack instance, null otherwise. + */ + public static RuntimeStack fromStackNameAndVersionString(String value) { + RuntimeStack stack = null; + if (!values.containsKey(value)) { + String parts[] = value.split(SEPERATOR_FOR_REGEX); + if (parts.length == 2) { + stack = new RuntimeStack(parts[0], parts[1]); + } + } else { + stack = values.get(value); + } + + return stack; } + /** + * @param value The stack and version in the format "|." + * @return true if a RuntimeStack with the passed in value exists, false otherwise. + */ + public static boolean alreadyCreated(String value) { + return values.containsKey(value); + } + + /** * @return the name of the language runtime stack */ @@ -138,6 +191,13 @@ public String version() { return version; } + /** + * @return the linuxVersion enum. + */ + public LinuxStackVersion linuxStackVersion() { + return linuxVersionEnum; + } + @Override public String toString() { return stack + " " + version; diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WindowsAppServiceStacks.java similarity index 96% rename from azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java rename to azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WindowsAppServiceStacks.java index 5578c50239a..9e396070594 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceRuntimes.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WindowsAppServiceStacks.java @@ -15,7 +15,7 @@ */ @Fluent(ContainerName = "/Microsoft.Azure.Management.AppService.Fluent") @Beta -public interface AppServiceRuntimes { +public interface WindowsAppServiceStacks { /** * @return the netframework versions. */ diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java index 9a580dde6c6..b7178f65e4c 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceManager.java @@ -14,16 +14,9 @@ import com.microsoft.azure.management.appservice.AppServiceCertificates; import com.microsoft.azure.management.appservice.AppServiceDomains; import com.microsoft.azure.management.appservice.AppServicePlans; -import com.microsoft.azure.management.appservice.AppServiceRuntimes; +import com.microsoft.azure.management.appservice.AppServiceStacks; import com.microsoft.azure.management.appservice.FunctionApps; -import com.microsoft.azure.management.appservice.JavaVersion; -import com.microsoft.azure.management.appservice.NetFrameworkVersion; -import com.microsoft.azure.management.appservice.NodeVersion; -import com.microsoft.azure.management.appservice.PhpVersion; -import com.microsoft.azure.management.appservice.PythonVersion; -import com.microsoft.azure.management.appservice.RuntimeVersion; import com.microsoft.azure.management.appservice.WebApps; -import com.microsoft.azure.management.appservice.WebContainer; import com.microsoft.azure.management.graphrbac.implementation.GraphRbacManager; import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager; import com.microsoft.azure.management.resources.fluentcore.arm.AzureConfigurable; @@ -35,10 +28,6 @@ import com.microsoft.azure.serializer.AzureJacksonAdapter; import com.microsoft.rest.RestClient; -import java.util.Collection; -import java.util.Hashtable; -import java.util.Iterator; - /** * Entry point to Azure storage resource management. */ @@ -56,6 +45,7 @@ public final class AppServiceManager extends Manager variousRuntimes = new Hashtable<>(); - variousRuntimes.put(JavaVersion.COMPONENT_NAME.toLowerCase(), JavaVersion.OFF); - variousRuntimes.put(NodeVersion.COMPONENT_NAME.toLowerCase(), NodeVersion.OFF); - variousRuntimes.put(WebContainer.COMPONENT_NAME.toLowerCase(), WebContainer.OFF); - variousRuntimes.put(PythonVersion.COMPONENT_NAME.toLowerCase(), PythonVersion.OFF); - variousRuntimes.put(PhpVersion.COMPONENT_NAME.toLowerCase(), PhpVersion.OFF); - variousRuntimes.put(NetFrameworkVersion.COMPONENT_NAME.toLowerCase(), NetFrameworkVersion.OFF); - - Iterator stackIter = this.innerManagementClient.providers().getAvailableStacks("Windows").iterator(); - while (stackIter.hasNext()) { - ApplicationStackInner stack = stackIter.next(); - - RuntimeVersion runtime = variousRuntimes.get(stack.name().toLowerCase()); - if (runtime != null) { - runtime.parseApplicationStackInner(stack); - } else { - //throw new FileNotFoundException("Runtime " + stack.name() + " not supported"); - } + public AppServiceStacks appServiceStacks() { + if (appServiceStacks == null) { + appServiceStacks = new AppServiceStacksImpl(this); } - AppServiceRuntimesImpl runtimes = new AppServiceRuntimesImpl(); - - runtimes.withJavaVersions(JavaVersion.values()); - runtimes.withNetFrameworkVersions(NetFrameworkVersion.values()); - runtimes.withPhpVersions(PhpVersion.values()); - runtimes.withPythonVersions(PythonVersion.values()); - runtimes.withWebContainers(WebContainer.values()); - runtimes.withNodeVersions(NodeVersion.values()); - - return runtimes; + return appServiceStacks; } - /** - * The runtimes data to be consumed by the user. - */ - public class AppServiceRuntimesImpl implements AppServiceRuntimes { - private Collection netframeworkVersions; - private Collection pythonVersions; - private Collection phpVersions; - private Collection javaVersions; - private Collection nodeVersions; - private Collection webContainers; - - /** - * Basic constructor. - */ - public AppServiceRuntimesImpl() { - } - - /** - * @param versions the NetFramweork versions. - * @return AppServiceRuntimesImpl object - */ - public AppServiceRuntimesImpl withNetFrameworkVersions(Collection versions) { - this.netframeworkVersions = versions; - return this; - } - - /** - * @param versions the Python versions. - * @return AppServiceRuntimesImpl object - */ - public AppServiceRuntimesImpl withPythonVersions(Collection versions) { - this.pythonVersions = versions; - return this; - } - - /** - * @param versions the Php Versions. - * @return AppServiceRuntimesImpl object. - */ - public AppServiceRuntimesImpl withPhpVersions(Collection versions) { - this.phpVersions = versions; - return this; - } - - /** - * @param versions The Java Versions - * @return The runtimes object. - */ - public AppServiceRuntimesImpl withJavaVersions(Collection versions) { - this.javaVersions = versions; - return this; - } - - /** - * @param versions The WebContainer versions - * @return The runtimes object. - */ - public AppServiceRuntimesImpl withWebContainers(Collection versions) { - this.webContainers = versions; - return this; - } - - /** - * @param versions the node versions. - * @return The runtimes object. - */ - public AppServiceRuntimesImpl withNodeVersions(Collection versions) { - this.nodeVersions = versions; - return this; - } - - /** - * @return the netframework versions. - */ - public Collection netFrameworkVersions() { - return this.netframeworkVersions; - } - - /** - * @return the python versions. - */ - public Collection pythonVersions() { - return this.pythonVersions; - } - - /** - * @return the php versions. - */ - public Collection phpVersions() { - return this.phpVersions; - } - - /** - * @return the java versions. - */ - public Collection javaVersions() { - return this.javaVersions; - } - - /** - * @return The web container versions. - */ - public Collection webContainers() { - return this.webContainers; - } - - /** - * @return The node versions. - */ - public Collection nodeVersions() { - return this.nodeVersions; - } - } } \ No newline at end of file diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceStacksImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceStacksImpl.java new file mode 100644 index 00000000000..a0a4c40ea1a --- /dev/null +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceStacksImpl.java @@ -0,0 +1,93 @@ +package com.microsoft.azure.management.appservice.implementation; + +import com.microsoft.azure.management.appservice.AppServiceStacks; +import com.microsoft.azure.management.appservice.JavaVersion; +import com.microsoft.azure.management.appservice.NetFrameworkVersion; +import com.microsoft.azure.management.appservice.NodeVersion; +import com.microsoft.azure.management.appservice.PhpVersion; +import com.microsoft.azure.management.appservice.PythonVersion; +import com.microsoft.azure.management.appservice.RuntimeStack; +import com.microsoft.azure.management.appservice.RuntimeVersion; +import com.microsoft.azure.management.appservice.StackMajorVersion; +import com.microsoft.azure.management.appservice.WebContainer; +import com.microsoft.azure.management.appservice.WindowsAppServiceStacks; + +import java.util.HashSet; +import java.util.Hashtable; +import java.util.Iterator; +import java.util.Set; + +/** + * Implementation of AppServiceStacks. + */ +class AppServiceStacksImpl implements AppServiceStacks { + private static final String WINDOWS_OS_NAME = "Windows"; + + private static final String LINUX_OS_NAME = "Linux"; + + private AppServiceManager manager; + + /** + * @param appServiceManager The manager + */ + public AppServiceStacksImpl(AppServiceManager appServiceManager) { + this.manager = appServiceManager; + } + + /** + * @return Returns the latest Windows runtime stacks + */ + @Override + public WindowsAppServiceStacks getLatestWindowsStacks() { + Hashtable variousRuntimes = new Hashtable<>(); + variousRuntimes.put(JavaVersion.COMPONENT_NAME.toLowerCase(), JavaVersion.OFF); + variousRuntimes.put(NodeVersion.COMPONENT_NAME.toLowerCase(), NodeVersion.OFF); + variousRuntimes.put(WebContainer.COMPONENT_NAME.toLowerCase(), WebContainer.OFF); + variousRuntimes.put(PythonVersion.COMPONENT_NAME.toLowerCase(), PythonVersion.OFF); + variousRuntimes.put(PhpVersion.COMPONENT_NAME.toLowerCase(), PhpVersion.OFF); + variousRuntimes.put(NetFrameworkVersion.COMPONENT_NAME.toLowerCase(), NetFrameworkVersion.OFF); + + Iterator stackIter = this.manager.inner().providers().getAvailableStacks(WINDOWS_OS_NAME).iterator(); + while (stackIter.hasNext()) { + ApplicationStackInner stack = stackIter.next(); + + RuntimeVersion runtime = variousRuntimes.get(stack.name().toLowerCase()); + if (runtime != null) { + runtime.parseApplicationStackInner(stack); + } else { + //throw new FileNotFoundException("Runtime " + stack.name() + " not supported"); + } + } + + WindowsAppServiceStacksImpl runtimes = new WindowsAppServiceStacksImpl(); + + runtimes.withJavaVersions(JavaVersion.values()); + runtimes.withNetFrameworkVersions(NetFrameworkVersion.values()); + runtimes.withPhpVersions(PhpVersion.values()); + runtimes.withPythonVersions(PythonVersion.values()); + runtimes.withWebContainers(WebContainer.values()); + runtimes.withNodeVersions(NodeVersion.values()); + + return runtimes; + } + + @Override + public Set listLatestLinuxStacks() { + Set linuxStacks = null; + Iterator stackIter = this.manager.inner().providers().getAvailableStacks(LINUX_OS_NAME).iterator(); + + if (stackIter != null && stackIter.hasNext()) { + linuxStacks = new HashSet<>(); + } + + while(stackIter.hasNext()) { + ApplicationStackInner stack = stackIter.next(); + + for (StackMajorVersion majorVersion : stack.properties().majorVersions()) { + linuxStacks.add(RuntimeStack.fromStackNameAndVersionString(majorVersion.runtimeVersion())); + } + } + + return linuxStacks; + } +} diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WindowsAppServiceStacksImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WindowsAppServiceStacksImpl.java new file mode 100644 index 00000000000..2601528c38f --- /dev/null +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WindowsAppServiceStacksImpl.java @@ -0,0 +1,125 @@ +package com.microsoft.azure.management.appservice.implementation; + +import com.microsoft.azure.management.appservice.WindowsAppServiceStacks; +import com.microsoft.azure.management.appservice.JavaVersion; +import com.microsoft.azure.management.appservice.NetFrameworkVersion; +import com.microsoft.azure.management.appservice.NodeVersion; +import com.microsoft.azure.management.appservice.PhpVersion; +import com.microsoft.azure.management.appservice.PythonVersion; +import com.microsoft.azure.management.appservice.WebContainer; + +import java.util.Collection; + +/** + * The runtimes data to be consumed by the user. + */ +class WindowsAppServiceStacksImpl implements WindowsAppServiceStacks { + private Collection netframeworkVersions; + private Collection pythonVersions; + private Collection phpVersions; + private Collection javaVersions; + private Collection nodeVersions; + private Collection webContainers; + + /** + * Basic constructor. + */ + public WindowsAppServiceStacksImpl() { + } + + /** + * @param versions the NetFramweork versions. + * @return WindowsAppServiceStacksImpl object + */ + public WindowsAppServiceStacksImpl withNetFrameworkVersions(Collection versions) { + this.netframeworkVersions = versions; + return this; + } + + /** + * @param versions the Python versions. + * @return WindowsAppServiceStacksImpl object + */ + public WindowsAppServiceStacksImpl withPythonVersions(Collection versions) { + this.pythonVersions = versions; + return this; + } + + /** + * @param versions the Php Versions. + * @return WindowsAppServiceStacksImpl object. + */ + public WindowsAppServiceStacksImpl withPhpVersions(Collection versions) { + this.phpVersions = versions; + return this; + } + + /** + * @param versions The Java Versions + * @return The runtimes object. + */ + public WindowsAppServiceStacksImpl withJavaVersions(Collection versions) { + this.javaVersions = versions; + return this; + } + + /** + * @param versions The WebContainer versions + * @return The runtimes object. + */ + public WindowsAppServiceStacksImpl withWebContainers(Collection versions) { + this.webContainers = versions; + return this; + } + + /** + * @param versions the node versions. + * @return The runtimes object. + */ + public WindowsAppServiceStacksImpl withNodeVersions(Collection versions) { + this.nodeVersions = versions; + return this; + } + + /** + * @return the netframework versions. + */ + public Collection netFrameworkVersions() { + return this.netframeworkVersions; + } + + /** + * @return the python versions. + */ + public Collection pythonVersions() { + return this.pythonVersions; + } + + /** + * @return the php versions. + */ + public Collection phpVersions() { + return this.phpVersions; + } + + /** + * @return the java versions. + */ + public Collection javaVersions() { + return this.javaVersions; + } + + /** + * @return The web container versions. + */ + public Collection webContainers() { + return this.webContainers; + } + + /** + * @return The node versions. + */ + public Collection nodeVersions() { + return this.nodeVersions; + } +} diff --git a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java index 94c8815bae7..57f68c72f24 100644 --- a/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java +++ b/azure-mgmt-appservice/src/test/java/com/microsoft/azure/management/appservice/WebAppsTests.java @@ -17,6 +17,7 @@ import java.util.Collection; import java.util.Iterator; import java.util.List; +import java.util.Set; public class WebAppsTests extends AppServiceTest { private static String RG_NAME_1 = ""; @@ -158,7 +159,7 @@ public void canCRUDWebApp() throws Exception { } @Test - public void canUpdateRuntimes() { + public void canUpdateWindowsRuntimes() { //Get the runtime data and check that all the altest runtimes do have it ProvidersInner providerInner = new ProvidersInner(restClient.retrofit(), new WebSiteManagementClientImpl(restClient) @@ -167,9 +168,9 @@ public void canUpdateRuntimes() { Iterator stackIter = providerInner.getAvailableStacks("Windows").iterator(); //Get the runtimes from appSvcManager - AppServiceRuntimes runtimes = appServiceManager.latestWindowsRuntimes(); + WindowsAppServiceStacks runtimes = appServiceManager.appServiceStacks().getLatestWindowsStacks(); - //Check if all the AppServiceRuntimesImpl returned by the providerInner are present in the runtimes + //Check if all the WindowsAppServiceStacksImpl returned by the providerInner are present in the runtimes while (stackIter.hasNext()) { ApplicationStackInner stackInfo = stackIter.next(); @@ -184,6 +185,30 @@ public void canUpdateRuntimes() { } } + @Test + public void canUpdateLinuxRuntimes() { + //Get the runtime data and check that all the altest runtimes do have it + ProvidersInner providerInner = new ProvidersInner(restClient.retrofit(), new WebSiteManagementClientImpl(restClient) + .withSubscriptionId(appServiceManager.subscriptionId())); + + Iterator stackIter = providerInner.getAvailableStacks("Linux").iterator(); + + Set linuxStacks = appServiceManager.appServiceStacks().listLatestLinuxStacks(); + + while (stackIter.hasNext()) { + ApplicationStackInner stackInfo = stackIter.next(); + + String valuesNotFound = null; + for (StackMajorVersion majorVersion : stackInfo.properties().majorVersions()) { + if (!RuntimeStack.alreadyCreated(majorVersion.runtimeVersion())) { + valuesNotFound += "\'" + majorVersion.runtimeVersion() + "\' "; + } + } + + Assert.assertNull(valuesNotFound); + } + } + private String checkJavaContainerEnumContainsAllValues(List frameworks, Collection webContainerCollection) { String valuesNotFound = null; @@ -210,7 +235,7 @@ private String checkJavaContainerEnumContainsAllValues(List majorVersions, AppServiceRuntimes runtimes) { + private String checkRuntimeContainsValues(String runtimeName, List majorVersions, WindowsAppServiceStacks runtimes) { String valuesNotFound = null; boolean checkMinorVersion = false; boolean checkRuntimeVersion = true; diff --git a/azure-mgmt-appservice/src/test/resources/session-records/canUpdateLinuxRuntimes.json b/azure-mgmt-appservice/src/test/resources/session-records/canUpdateLinuxRuntimes.json new file mode 100644 index 00000000000..be030874dea --- /dev/null +++ b/azure-mgmt-appservice/src/test/resources/session-records/canUpdateLinuxRuntimes.json @@ -0,0 +1,62 @@ +{ + "networkCallRecords" : [ { + "Method" : "GET", + "Uri" : "http://localhost:1234/providers/Microsoft.Web/availableStacks?osTypeSelected=Linux&api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 16 Jan 2019 21:53:56 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "8442", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "4efeb013-754a-4d5b-91b0-30a54621f1a8", + "x-ms-ratelimit-remaining-tenant-reads" : "11999", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190116T215357Z:4efeb013-754a-4d5b-91b0-30a54621f1a8", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "739aad34-d5a5-4e14-bbef-a4f515cbd3d4", + "Body" : "{\"value\":[{\"id\":null,\"name\":\"ruby\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"ruby\",\"display\":\"Ruby\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"Ruby 2.3\",\"runtimeVersion\":\"RUBY|2.3\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"2.3.3\",\"runtimeVersion\":\"RUBY|2.3\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"node\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"node\",\"display\":\"Node.js\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"Node.js LTS\",\"runtimeVersion\":\"NODE|lts\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"LTS\",\"runtimeVersion\":\"NODE|lts\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 4.4\",\"runtimeVersion\":\"NODE|4.4\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"4.4.7\",\"runtimeVersion\":\"NODE|4.4\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 4.5\",\"runtimeVersion\":\"NODE|4.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"4.5.0\",\"runtimeVersion\":\"NODE|4.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 4.8\",\"runtimeVersion\":\"NODE|4.8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"4.8.7\",\"runtimeVersion\":\"NODE|4.8.7\",\"isDefault\":false}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.2\",\"runtimeVersion\":\"NODE|6.2\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.2.2\",\"runtimeVersion\":\"NODE|6.2\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.6\",\"runtimeVersion\":\"NODE|6.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.6.0\",\"runtimeVersion\":\"NODE|6.6\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.9\",\"runtimeVersion\":\"NODE|6.9\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.9.3\",\"runtimeVersion\":\"NODE|6.9\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.10\",\"runtimeVersion\":\"NODE|6.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.10\",\"runtimeVersion\":\"NODE|6.10\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.11\",\"runtimeVersion\":\"NODE|6.11\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.11.5\",\"runtimeVersion\":\"NODE|6.11\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.0\",\"runtimeVersion\":\"NODE|8.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.0.0\",\"runtimeVersion\":\"NODE|8.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.1\",\"runtimeVersion\":\"NODE|8.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.1.4\",\"runtimeVersion\":\"NODE|8.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.2\",\"runtimeVersion\":\"NODE|8.2\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.2.1\",\"runtimeVersion\":\"NODE|8.2\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.8\",\"runtimeVersion\":\"NODE|8.8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.8.1\",\"runtimeVersion\":\"NODE|8.8\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.9\",\"runtimeVersion\":\"NODE|8.9\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.9.4\",\"runtimeVersion\":\"NODE|8.9\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.11\",\"runtimeVersion\":\"NODE|8.11\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.11.4\",\"runtimeVersion\":\"NODE|8.11\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.12\",\"runtimeVersion\":\"NODE|8.12\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.12.0\",\"runtimeVersion\":\"NODE|8.12\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 9.4\",\"runtimeVersion\":\"NODE|9.4\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"9.4.0\",\"runtimeVersion\":\"NODE|9.4\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 10.1\",\"runtimeVersion\":\"NODE|10.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.1.0\",\"runtimeVersion\":\"NODE|10.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 10.10\",\"runtimeVersion\":\"NODE|10.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.10.0\",\"runtimeVersion\":\"NODE|10.10\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"php\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"php\",\"display\":\"PHP\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"PHP 5.6\",\"runtimeVersion\":\"PHP|5.6\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"5.6.38-apache\",\"runtimeVersion\":\"PHP|5.6\",\"isDefault\":true},{\"displayVersion\":\"5.6.38-apache-xdebug\",\"runtimeVersion\":\"PHP|5.6\",\"isDefault\":false}],\"applicationInsights\":false},{\"displayVersion\":\"PHP 7.0\",\"runtimeVersion\":\"PHP|7.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.0.32-apache\",\"runtimeVersion\":\"PHP|7.0\",\"isDefault\":true},{\"displayVersion\":\"7.0.32-apache-xdebug\",\"runtimeVersion\":\"PHP|7.0\",\"isDefault\":false}],\"applicationInsights\":false},{\"displayVersion\":\"PHP 7.2\",\"runtimeVersion\":\"PHP|7.2\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.2.11-apache\",\"runtimeVersion\":\"PHP|7.2\",\"isDefault\":true},{\"displayVersion\":\"7.2.11-apache-xdebug\",\"runtimeVersion\":\"PHP|7.2\",\"isDefault\":false},{\"displayVersion\":\"7.2.11-apache\",\"runtimeVersion\":\"PHP|7.2\",\"isDefault\":false}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"dotnetcore\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"dotnetcore\",\"display\":\".NET Core\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\".NET Core 1.0\",\"runtimeVersion\":\"DOTNETCORE|1.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"1.0.5\",\"runtimeVersion\":\"DOTNETCORE|1.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\".NET Core 1.1\",\"runtimeVersion\":\"DOTNETCORE|1.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"1.1.2\",\"runtimeVersion\":\"DOTNETCORE|1.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\".NET Core 2.0\",\"runtimeVersion\":\"DOTNETCORE|2.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"2.0.7\",\"runtimeVersion\":\"DOTNETCORE|2.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\".NET Core 2.1\",\"runtimeVersion\":\"DOTNETCORE|2.1\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"2.1.1\",\"runtimeVersion\":\"DOTNETCORE|2.1\",\"isDefault\":false},{\"displayVersion\":\"2.1.2\",\"runtimeVersion\":\"DOTNETCORE|2.1\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"java\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"java\",\"display\":\"Java\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"Tomcat 8.5 (JRE 8)\",\"runtimeVersion\":\"TOMCAT|8.5-jre8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"TOMCAT|8.5-jre8\",\"isDefault\":true}],\"applicationInsights\":true},{\"displayVersion\":\"Tomcat 9.0 (JRE 8)\",\"runtimeVersion\":\"TOMCAT|9.0-jre8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.0\",\"runtimeVersion\":\"TOMCAT|9.0-jre8\",\"isDefault\":true}],\"applicationInsights\":true},{\"displayVersion\":\"Java SE (JRE 8)\",\"runtimeVersion\":\"JAVA|8-jre8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"8\",\"runtimeVersion\":\"JAVA|8-jre8\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"WildFly 14 (JRE 8) - Preview\",\"runtimeVersion\":\"WILDFLY|14-jre8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"14\",\"runtimeVersion\":\"WILDFLY|14-jre8\",\"isDefault\":true}],\"applicationInsights\":true}],\"frameworks\":[]}},{\"id\":null,\"name\":\"python\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"python\",\"display\":\"Python (Preview)\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"Python 3.7\",\"runtimeVersion\":\"PYTHON|3.7\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"3.7\",\"runtimeVersion\":\"PYTHON|3.7\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Python 3.6\",\"runtimeVersion\":\"PYTHON|3.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"3.6\",\"runtimeVersion\":\"PYTHON|3.6\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Python 2.7\",\"runtimeVersion\":\"PYTHON|2.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"PYTHON|2.7\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}}],\"nextLink\":null,\"id\":null}" + } + }, { + "Method" : "GET", + "Uri" : "http://localhost:1234/providers/Microsoft.Web/availableStacks?osTypeSelected=Linux&api-version=2018-02-01", + "Headers" : { + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "Content-Type" : "application/json; charset=utf-8" + }, + "Response" : { + "date" : "Wed, 16 Jan 2019 21:53:57 GMT", + "server" : "Microsoft-IIS/10.0", + "content-length" : "8442", + "expires" : "-1", + "transfer-encoding" : "chunked", + "vary" : "Accept-Encoding", + "x-aspnet-version" : "4.0.30319", + "retry-after" : "0", + "StatusCode" : "200", + "pragma" : "no-cache", + "strict-transport-security" : "max-age=31536000; includeSubDomains", + "x-ms-correlation-request-id" : "1dee8822-e38e-458a-95da-446e055b04ca", + "x-ms-ratelimit-remaining-tenant-reads" : "11998", + "x-content-type-options" : "nosniff", + "x-ms-routing-request-id" : "WESTUS2:20190116T215358Z:1dee8822-e38e-458a-95da-446e055b04ca", + "x-powered-by" : "ASP.NET", + "content-type" : "application/json", + "cache-control" : "no-cache", + "x-ms-request-id" : "0c55d7c3-ef64-43b0-a0e2-b558510af705", + "Body" : "{\"value\":[{\"id\":null,\"name\":\"ruby\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"ruby\",\"display\":\"Ruby\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"Ruby 2.3\",\"runtimeVersion\":\"RUBY|2.3\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"2.3.3\",\"runtimeVersion\":\"RUBY|2.3\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"node\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"node\",\"display\":\"Node.js\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"Node.js LTS\",\"runtimeVersion\":\"NODE|lts\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"LTS\",\"runtimeVersion\":\"NODE|lts\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 4.4\",\"runtimeVersion\":\"NODE|4.4\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"4.4.7\",\"runtimeVersion\":\"NODE|4.4\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 4.5\",\"runtimeVersion\":\"NODE|4.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"4.5.0\",\"runtimeVersion\":\"NODE|4.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 4.8\",\"runtimeVersion\":\"NODE|4.8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"4.8.7\",\"runtimeVersion\":\"NODE|4.8.7\",\"isDefault\":false}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.2\",\"runtimeVersion\":\"NODE|6.2\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.2.2\",\"runtimeVersion\":\"NODE|6.2\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.6\",\"runtimeVersion\":\"NODE|6.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.6.0\",\"runtimeVersion\":\"NODE|6.6\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.9\",\"runtimeVersion\":\"NODE|6.9\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.9.3\",\"runtimeVersion\":\"NODE|6.9\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.10\",\"runtimeVersion\":\"NODE|6.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.10\",\"runtimeVersion\":\"NODE|6.10\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 6.11\",\"runtimeVersion\":\"NODE|6.11\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.11.5\",\"runtimeVersion\":\"NODE|6.11\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.0\",\"runtimeVersion\":\"NODE|8.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.0.0\",\"runtimeVersion\":\"NODE|8.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.1\",\"runtimeVersion\":\"NODE|8.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.1.4\",\"runtimeVersion\":\"NODE|8.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.2\",\"runtimeVersion\":\"NODE|8.2\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.2.1\",\"runtimeVersion\":\"NODE|8.2\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.8\",\"runtimeVersion\":\"NODE|8.8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.8.1\",\"runtimeVersion\":\"NODE|8.8\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.9\",\"runtimeVersion\":\"NODE|8.9\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.9.4\",\"runtimeVersion\":\"NODE|8.9\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.11\",\"runtimeVersion\":\"NODE|8.11\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.11.4\",\"runtimeVersion\":\"NODE|8.11\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 8.12\",\"runtimeVersion\":\"NODE|8.12\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.12.0\",\"runtimeVersion\":\"NODE|8.12\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 9.4\",\"runtimeVersion\":\"NODE|9.4\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"9.4.0\",\"runtimeVersion\":\"NODE|9.4\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 10.1\",\"runtimeVersion\":\"NODE|10.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.1.0\",\"runtimeVersion\":\"NODE|10.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Node.js 10.10\",\"runtimeVersion\":\"NODE|10.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.10.0\",\"runtimeVersion\":\"NODE|10.10\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"php\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"php\",\"display\":\"PHP\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"PHP 5.6\",\"runtimeVersion\":\"PHP|5.6\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"5.6.38-apache\",\"runtimeVersion\":\"PHP|5.6\",\"isDefault\":true},{\"displayVersion\":\"5.6.38-apache-xdebug\",\"runtimeVersion\":\"PHP|5.6\",\"isDefault\":false}],\"applicationInsights\":false},{\"displayVersion\":\"PHP 7.0\",\"runtimeVersion\":\"PHP|7.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.0.32-apache\",\"runtimeVersion\":\"PHP|7.0\",\"isDefault\":true},{\"displayVersion\":\"7.0.32-apache-xdebug\",\"runtimeVersion\":\"PHP|7.0\",\"isDefault\":false}],\"applicationInsights\":false},{\"displayVersion\":\"PHP 7.2\",\"runtimeVersion\":\"PHP|7.2\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.2.11-apache\",\"runtimeVersion\":\"PHP|7.2\",\"isDefault\":true},{\"displayVersion\":\"7.2.11-apache-xdebug\",\"runtimeVersion\":\"PHP|7.2\",\"isDefault\":false},{\"displayVersion\":\"7.2.11-apache\",\"runtimeVersion\":\"PHP|7.2\",\"isDefault\":false}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"dotnetcore\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"dotnetcore\",\"display\":\".NET Core\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\".NET Core 1.0\",\"runtimeVersion\":\"DOTNETCORE|1.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"1.0.5\",\"runtimeVersion\":\"DOTNETCORE|1.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\".NET Core 1.1\",\"runtimeVersion\":\"DOTNETCORE|1.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"1.1.2\",\"runtimeVersion\":\"DOTNETCORE|1.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\".NET Core 2.0\",\"runtimeVersion\":\"DOTNETCORE|2.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"2.0.7\",\"runtimeVersion\":\"DOTNETCORE|2.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\".NET Core 2.1\",\"runtimeVersion\":\"DOTNETCORE|2.1\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"2.1.1\",\"runtimeVersion\":\"DOTNETCORE|2.1\",\"isDefault\":false},{\"displayVersion\":\"2.1.2\",\"runtimeVersion\":\"DOTNETCORE|2.1\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"java\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"java\",\"display\":\"Java\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"Tomcat 8.5 (JRE 8)\",\"runtimeVersion\":\"TOMCAT|8.5-jre8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"TOMCAT|8.5-jre8\",\"isDefault\":true}],\"applicationInsights\":true},{\"displayVersion\":\"Tomcat 9.0 (JRE 8)\",\"runtimeVersion\":\"TOMCAT|9.0-jre8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.0\",\"runtimeVersion\":\"TOMCAT|9.0-jre8\",\"isDefault\":true}],\"applicationInsights\":true},{\"displayVersion\":\"Java SE (JRE 8)\",\"runtimeVersion\":\"JAVA|8-jre8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"8\",\"runtimeVersion\":\"JAVA|8-jre8\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"WildFly 14 (JRE 8) - Preview\",\"runtimeVersion\":\"WILDFLY|14-jre8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"14\",\"runtimeVersion\":\"WILDFLY|14-jre8\",\"isDefault\":true}],\"applicationInsights\":true}],\"frameworks\":[]}},{\"id\":null,\"name\":\"python\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Linux\",\"properties\":{\"name\":\"python\",\"display\":\"Python (Preview)\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"Python 3.7\",\"runtimeVersion\":\"PYTHON|3.7\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"3.7\",\"runtimeVersion\":\"PYTHON|3.7\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Python 3.6\",\"runtimeVersion\":\"PYTHON|3.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"3.6\",\"runtimeVersion\":\"PYTHON|3.6\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"Python 2.7\",\"runtimeVersion\":\"PYTHON|2.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"PYTHON|2.7\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}}],\"nextLink\":null,\"id\":null}" + } + } ], + "variables" : [ "java-webapp-51078a", "java-webapp-67386e", "java-webapp-56033a", "java-webapp-15342f", "java-webapp-61586d", "javacsmrg248864710", "javacsmrg8b3857769", "javacsmrg56a543041", "javacsmrgfb1841066", "javacsmrg18f392090", "javacsmrgbd4773803" ] +} \ No newline at end of file From 8120ec4868050cfbe4cf4c6c18ffa99921b46dcf Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Wed, 16 Jan 2019 14:19:54 -0800 Subject: [PATCH 11/14] remove unwanted import --- .../com/microsoft/azure/management/appservice/RuntimeStack.java | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java index 2f39fb48244..eee63f724e1 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java @@ -8,7 +8,6 @@ import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.resources.fluentcore.arm.ExpandableStringEnum; -import com.sun.javaws.exceptions.InvalidArgumentException; import java.security.InvalidParameterException; import java.util.Hashtable; From 2b73662dab35fa68e2eee45cd723d573c92559d1 Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Wed, 16 Jan 2019 14:51:30 -0800 Subject: [PATCH 12/14] i Fix build breaks --- .../azure/management/appservice/LinuxStackVersion.java | 2 +- .../azure/management/appservice/RuntimeStack.java | 4 ++-- .../implementation/AppServiceStacksImpl.java | 10 ++++++++-- .../implementation/WindowsAppServiceStacksImpl.java | 8 +++++++- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/LinuxStackVersion.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/LinuxStackVersion.java index 8c8465216be..f649f209ef8 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/LinuxStackVersion.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/LinuxStackVersion.java @@ -64,7 +64,7 @@ public boolean containsVersion(String version) { } /** - * This entry point should never be used + * This entry point should never be used. * * @param name name of the framweork * @param displayVersion display version of the runtime diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java index eee63f724e1..a1d7953024c 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/RuntimeStack.java @@ -20,7 +20,7 @@ public class RuntimeStack extends ExpandableStringEnum { /** Seperator used for joining the stack name and version. */ private static final String SEPERATOR = "|"; - /** Escape char to be appended to the SEPERATOR when using it in split*/ + /** Escape char to be appended to the SEPERATOR when using it in split. */ private static final String SEPERATOR_FOR_REGEX = "\\|"; private static Hashtable values = new Hashtable<>(); @@ -156,7 +156,7 @@ public RuntimeStack(String stack, String version) { public static RuntimeStack fromStackNameAndVersionString(String value) { RuntimeStack stack = null; if (!values.containsKey(value)) { - String parts[] = value.split(SEPERATOR_FOR_REGEX); + String[] parts = value.split(SEPERATOR_FOR_REGEX); if (parts.length == 2) { stack = new RuntimeStack(parts[0], parts[1]); } diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceStacksImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceStacksImpl.java index a0a4c40ea1a..90d8e2be991 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceStacksImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/AppServiceStacksImpl.java @@ -1,3 +1,9 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + package com.microsoft.azure.management.appservice.implementation; import com.microsoft.azure.management.appservice.AppServiceStacks; @@ -30,7 +36,7 @@ class AppServiceStacksImpl implements AppServiceStacks { /** * @param appServiceManager The manager */ - public AppServiceStacksImpl(AppServiceManager appServiceManager) { + AppServiceStacksImpl(AppServiceManager appServiceManager) { this.manager = appServiceManager; } @@ -80,7 +86,7 @@ public Set listLatestLinuxStacks() { linuxStacks = new HashSet<>(); } - while(stackIter.hasNext()) { + while (stackIter.hasNext()) { ApplicationStackInner stack = stackIter.next(); for (StackMajorVersion majorVersion : stack.properties().majorVersions()) { diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WindowsAppServiceStacksImpl.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WindowsAppServiceStacksImpl.java index 2601528c38f..4cf30b449a7 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WindowsAppServiceStacksImpl.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/implementation/WindowsAppServiceStacksImpl.java @@ -1,3 +1,9 @@ +/** + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + */ + package com.microsoft.azure.management.appservice.implementation; import com.microsoft.azure.management.appservice.WindowsAppServiceStacks; @@ -24,7 +30,7 @@ class WindowsAppServiceStacksImpl implements WindowsAppServiceStacks { /** * Basic constructor. */ - public WindowsAppServiceStacksImpl() { + WindowsAppServiceStacksImpl() { } /** From 2bcfa077519e6cb4e486f77681ca8db354e06d98 Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Wed, 16 Jan 2019 15:07:28 -0800 Subject: [PATCH 13/14] Fix build issue --- .../microsoft/azure/management/appservice/AppServiceStacks.java | 1 - 1 file changed, 1 deletion(-) diff --git a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceStacks.java b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceStacks.java index 3bde645a738..b2731a863b1 100644 --- a/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceStacks.java +++ b/azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/AppServiceStacks.java @@ -8,7 +8,6 @@ import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Fluent; -import java.util.Collection; import java.util.Set; /** From 893cb89923881f47f4ad1c7a63b5ebae4eced65b Mon Sep 17 00:00:00 2001 From: Pareekshit Singh Date: Wed, 16 Jan 2019 15:31:45 -0800 Subject: [PATCH 14/14] Rename test file --- ...mes.json => canUpdateWindowsRuntimes.json} | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) rename azure-mgmt-appservice/src/test/resources/session-records/{canUpdateRuntimes.json => canUpdateWindowsRuntimes.json} (95%) diff --git a/azure-mgmt-appservice/src/test/resources/session-records/canUpdateRuntimes.json b/azure-mgmt-appservice/src/test/resources/session-records/canUpdateWindowsRuntimes.json similarity index 95% rename from azure-mgmt-appservice/src/test/resources/session-records/canUpdateRuntimes.json rename to azure-mgmt-appservice/src/test/resources/session-records/canUpdateWindowsRuntimes.json index cf30b929a79..ea134db095a 100644 --- a/azure-mgmt-appservice/src/test/resources/session-records/canUpdateRuntimes.json +++ b/azure-mgmt-appservice/src/test/resources/session-records/canUpdateWindowsRuntimes.json @@ -3,11 +3,11 @@ "Method" : "GET", "Uri" : "http://localhost:1234/providers/Microsoft.Web/availableStacks?osTypeSelected=Windows&api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Fri, 11 Jan 2019 18:05:46 GMT", + "date" : "Wed, 16 Jan 2019 23:30:49 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "9607", "expires" : "-1", @@ -18,25 +18,25 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "b5d0ecdb-6d08-4bdc-8e7e-758d17c3b2c2", + "x-ms-correlation-request-id" : "9f5eb348-fa8a-498f-8ecb-22ea8b7da86c", "x-ms-ratelimit-remaining-tenant-reads" : "11999", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20190111T180546Z:b5d0ecdb-6d08-4bdc-8e7e-758d17c3b2c2", + "x-ms-routing-request-id" : "WESTUS2:20190116T233050Z:9f5eb348-fa8a-498f-8ecb-22ea8b7da86c", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "4078cf1f-111f-4d8c-97fb-f0413a2e0e38", + "x-ms-request-id" : "4529c552-8ff5-4699-a02b-1842b79d7a0f", "Body" : "{\"value\":[{\"id\":null,\"name\":\"aspnet\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"aspnet\",\"display\":\"Net Framework Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"v4.7\",\"runtimeVersion\":\"v4.0\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"v3.5\",\"runtimeVersion\":\"v2.0\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"node\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"node\",\"display\":\"node.js Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"0.6\",\"runtimeVersion\":\"0.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.6.20\",\"runtimeVersion\":\"0.6.20\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.8\",\"runtimeVersion\":\"0.8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.8.2\",\"runtimeVersion\":\"0.8.2\",\"isDefault\":false},{\"displayVersion\":\"0.8.19\",\"runtimeVersion\":\"0.8.19\",\"isDefault\":false},{\"displayVersion\":\"0.8.26\",\"runtimeVersion\":\"0.8.26\",\"isDefault\":false},{\"displayVersion\":\"0.8.27\",\"runtimeVersion\":\"0.8.27\",\"isDefault\":false},{\"displayVersion\":\"0.8.28\",\"runtimeVersion\":\"0.8.28\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.10\",\"runtimeVersion\":\"0.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.10.5\",\"runtimeVersion\":\"0.10.5\",\"isDefault\":false},{\"displayVersion\":\"0.10.18\",\"runtimeVersion\":\"0.10.18\",\"isDefault\":false},{\"displayVersion\":\"0.10.21\",\"runtimeVersion\":\"0.10.21\",\"isDefault\":false},{\"displayVersion\":\"0.10.24\",\"runtimeVersion\":\"0.10.24\",\"isDefault\":false},{\"displayVersion\":\"0.10.28\",\"runtimeVersion\":\"0.10.28\",\"isDefault\":false},{\"displayVersion\":\"0.10.29\",\"runtimeVersion\":\"0.10.29\",\"isDefault\":false},{\"displayVersion\":\"0.10.31\",\"runtimeVersion\":\"0.10.31\",\"isDefault\":false},{\"displayVersion\":\"0.10.32\",\"runtimeVersion\":\"0.10.32\",\"isDefault\":false},{\"displayVersion\":\"0.10.40\",\"runtimeVersion\":\"0.10.40\",\"isDefault\":false},{\"displayVersion\":\"0.10.5\",\"runtimeVersion\":\"0.10.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.12\",\"runtimeVersion\":\"0.12\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.12.0\",\"runtimeVersion\":\"0.12.0\",\"isDefault\":false},{\"displayVersion\":\"0.12.2\",\"runtimeVersion\":\"0.12.2\",\"isDefault\":false},{\"displayVersion\":\"0.12.3\",\"runtimeVersion\":\"0.12.3\",\"isDefault\":false},{\"displayVersion\":\"0.12.6\",\"runtimeVersion\":\"0.12.6\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"4.8\",\"runtimeVersion\":\"4.8\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"6.5\",\"runtimeVersion\":\"6.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.5.0\",\"runtimeVersion\":\"6.5.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"6.9\",\"runtimeVersion\":\"6.9\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.9.1\",\"runtimeVersion\":\"6.9.1\",\"isDefault\":false},{\"displayVersion\":\"6.9.5\",\"runtimeVersion\":\"6.9.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"6.12\",\"runtimeVersion\":\"6.12\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.10\",\"runtimeVersion\":\"7.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.10.1\",\"runtimeVersion\":\"7.10.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.1\",\"runtimeVersion\":\"8.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.1.4\",\"runtimeVersion\":\"8.1.4\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.4\",\"runtimeVersion\":\"8.4\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"8.5\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.9\",\"runtimeVersion\":\"8.9\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.10\",\"runtimeVersion\":\"8.10\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.11\",\"runtimeVersion\":\"8.11\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"10.0\",\"runtimeVersion\":\"10.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.0.0\",\"runtimeVersion\":\"10.0.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"10.6\",\"runtimeVersion\":\"10.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.6.0\",\"runtimeVersion\":\"10.6.0\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"php\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"php\",\"display\":\"PHP Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"5.6\",\"runtimeVersion\":\"5.6\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.0\",\"runtimeVersion\":\"7.0\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.1\",\"runtimeVersion\":\"7.1\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.2\",\"runtimeVersion\":\"7.2\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"python\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"python\",\"display\":\"Python Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"2.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"2.7.3\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"3.4\",\"runtimeVersion\":\"3.4\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"3.4\",\"runtimeVersion\":\"3.4.0\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"java\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"java\",\"display\":\"Java Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"1.7\",\"runtimeVersion\":\"1.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"1.7.0_51 (Oracle)\",\"runtimeVersion\":\"1.7.0_51\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_71 (Oracle)\",\"runtimeVersion\":\"1.7.0_71\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_80 (Oracle)\",\"runtimeVersion\":\"1.7.0_80\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_191 (Azul)\",\"runtimeVersion\":\"1.7.0_191_ZULU\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"1.8\",\"runtimeVersion\":\"1.8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"1.8.0_25 (Oracle)\",\"runtimeVersion\":\"1.8.0_25\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_60 (Oracle)\",\"runtimeVersion\":\"1.8.0_60\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_73 (Oracle)\",\"runtimeVersion\":\"1.8.0_73\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_92 (Azul)\",\"runtimeVersion\":\"1.8.0_92\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_102 (Azul)\",\"runtimeVersion\":\"1.8.0_102\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_111 (Oracle)\",\"runtimeVersion\":\"1.8.0_111\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_144 (Azul)\",\"runtimeVersion\":\"1.8.0_144\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_172 (Oracle)\",\"runtimeVersion\":\"1.8.0_172\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_172 (Azul)\",\"runtimeVersion\":\"1.8.0_172_ZULU\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_181 (Oracle)\",\"runtimeVersion\":\"1.8.0_181\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_181 (Azul)\",\"runtimeVersion\":\"1.8.0_181_ZULU\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"javaContainers\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"javaContainers\",\"display\":\"Java Containers\",\"dependency\":\"java\",\"majorVersions\":[],\"frameworks\":[{\"name\":\"tomcat\",\"display\":\"Tomcat\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"7.0\",\"runtimeVersion\":\"7.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.0.50\",\"runtimeVersion\":\"7.0.50\",\"isDefault\":false},{\"displayVersion\":\"7.0.62\",\"runtimeVersion\":\"7.0.62\",\"isDefault\":false},{\"displayVersion\":\"7.0.81\",\"runtimeVersion\":\"7.0.81\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.0\",\"runtimeVersion\":\"8.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.0.23\",\"runtimeVersion\":\"8.0.23\",\"isDefault\":false},{\"displayVersion\":\"8.0.46\",\"runtimeVersion\":\"8.0.46\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"8.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.5.6\",\"runtimeVersion\":\"8.5.6\",\"isDefault\":false},{\"displayVersion\":\"8.5.20\",\"runtimeVersion\":\"8.5.20\",\"isDefault\":false},{\"displayVersion\":\"8.5.31\",\"runtimeVersion\":\"8.5.31\",\"isDefault\":false},{\"displayVersion\":\"8.5.34\",\"runtimeVersion\":\"8.5.34\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"9.0\",\"runtimeVersion\":\"9.0\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.0.0\",\"runtimeVersion\":\"9.0.0\",\"isDefault\":false},{\"displayVersion\":\"9.0.8\",\"runtimeVersion\":\"9.0.8\",\"isDefault\":false},{\"displayVersion\":\"9.0.12\",\"runtimeVersion\":\"9.0.12\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":null},{\"name\":\"jetty\",\"display\":\"Jetty\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"9.1\",\"runtimeVersion\":\"9.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"9.1.0\",\"runtimeVersion\":\"9.1.0.20131115\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"9.3\",\"runtimeVersion\":\"9.3\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.3.13\",\"runtimeVersion\":\"9.3.13.20161014\",\"isDefault\":false},{\"displayVersion\":\"9.3.25\",\"runtimeVersion\":\"9.3.25.20180904\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":null}]}}],\"nextLink\":null,\"id\":null}" } }, { "Method" : "GET", "Uri" : "http://localhost:1234/providers/Microsoft.Web/availableStacks?osTypeSelected=Windows&api-version=2018-02-01", "Headers" : { - "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:cabb8b54d3f4da64a7302c11a50d51d4717c50d4c9d95d7168ac9abbf83a9ebc Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", + "User-Agent" : "Azure-SDK-For-Java/null OS:Windows 10/10.0 MacAddressHash:f82fa839f6b46fd84edc56e01cf7c8c6d4faaa2190534aff5c1d17095f0a3c13 Java:1.8.0_191 (WebSiteManagementClient, 2018-02-01)", "Content-Type" : "application/json; charset=utf-8" }, "Response" : { - "date" : "Fri, 11 Jan 2019 18:05:46 GMT", + "date" : "Wed, 16 Jan 2019 23:30:50 GMT", "server" : "Microsoft-IIS/10.0", "content-length" : "9607", "expires" : "-1", @@ -47,16 +47,16 @@ "StatusCode" : "200", "pragma" : "no-cache", "strict-transport-security" : "max-age=31536000; includeSubDomains", - "x-ms-correlation-request-id" : "880b05a7-a2cf-495a-9ee5-54ee415aac39", + "x-ms-correlation-request-id" : "12b1793e-90af-4149-ae34-e13c3a91288d", "x-ms-ratelimit-remaining-tenant-reads" : "11998", "x-content-type-options" : "nosniff", - "x-ms-routing-request-id" : "WESTUS2:20190111T180546Z:880b05a7-a2cf-495a-9ee5-54ee415aac39", + "x-ms-routing-request-id" : "WESTUS2:20190116T233050Z:12b1793e-90af-4149-ae34-e13c3a91288d", "x-powered-by" : "ASP.NET", "content-type" : "application/json", "cache-control" : "no-cache", - "x-ms-request-id" : "e9fd3599-5085-46c2-a500-cb32ce3ed5c0", + "x-ms-request-id" : "287b9ccc-875e-48e1-b8fc-9b322e4626bd", "Body" : "{\"value\":[{\"id\":null,\"name\":\"aspnet\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"aspnet\",\"display\":\"Net Framework Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"v4.7\",\"runtimeVersion\":\"v4.0\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"v3.5\",\"runtimeVersion\":\"v2.0\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"node\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"node\",\"display\":\"node.js Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"0.6\",\"runtimeVersion\":\"0.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.6.20\",\"runtimeVersion\":\"0.6.20\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.8\",\"runtimeVersion\":\"0.8\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.8.2\",\"runtimeVersion\":\"0.8.2\",\"isDefault\":false},{\"displayVersion\":\"0.8.19\",\"runtimeVersion\":\"0.8.19\",\"isDefault\":false},{\"displayVersion\":\"0.8.26\",\"runtimeVersion\":\"0.8.26\",\"isDefault\":false},{\"displayVersion\":\"0.8.27\",\"runtimeVersion\":\"0.8.27\",\"isDefault\":false},{\"displayVersion\":\"0.8.28\",\"runtimeVersion\":\"0.8.28\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.10\",\"runtimeVersion\":\"0.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.10.5\",\"runtimeVersion\":\"0.10.5\",\"isDefault\":false},{\"displayVersion\":\"0.10.18\",\"runtimeVersion\":\"0.10.18\",\"isDefault\":false},{\"displayVersion\":\"0.10.21\",\"runtimeVersion\":\"0.10.21\",\"isDefault\":false},{\"displayVersion\":\"0.10.24\",\"runtimeVersion\":\"0.10.24\",\"isDefault\":false},{\"displayVersion\":\"0.10.28\",\"runtimeVersion\":\"0.10.28\",\"isDefault\":false},{\"displayVersion\":\"0.10.29\",\"runtimeVersion\":\"0.10.29\",\"isDefault\":false},{\"displayVersion\":\"0.10.31\",\"runtimeVersion\":\"0.10.31\",\"isDefault\":false},{\"displayVersion\":\"0.10.32\",\"runtimeVersion\":\"0.10.32\",\"isDefault\":false},{\"displayVersion\":\"0.10.40\",\"runtimeVersion\":\"0.10.40\",\"isDefault\":false},{\"displayVersion\":\"0.10.5\",\"runtimeVersion\":\"0.10.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"0.12\",\"runtimeVersion\":\"0.12\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"0.12.0\",\"runtimeVersion\":\"0.12.0\",\"isDefault\":false},{\"displayVersion\":\"0.12.2\",\"runtimeVersion\":\"0.12.2\",\"isDefault\":false},{\"displayVersion\":\"0.12.3\",\"runtimeVersion\":\"0.12.3\",\"isDefault\":false},{\"displayVersion\":\"0.12.6\",\"runtimeVersion\":\"0.12.6\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"4.8\",\"runtimeVersion\":\"4.8\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"6.5\",\"runtimeVersion\":\"6.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.5.0\",\"runtimeVersion\":\"6.5.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"6.9\",\"runtimeVersion\":\"6.9\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"6.9.1\",\"runtimeVersion\":\"6.9.1\",\"isDefault\":false},{\"displayVersion\":\"6.9.5\",\"runtimeVersion\":\"6.9.5\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"6.12\",\"runtimeVersion\":\"6.12\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.10\",\"runtimeVersion\":\"7.10\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.10.1\",\"runtimeVersion\":\"7.10.1\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.1\",\"runtimeVersion\":\"8.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.1.4\",\"runtimeVersion\":\"8.1.4\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.4\",\"runtimeVersion\":\"8.4\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"8.5\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.9\",\"runtimeVersion\":\"8.9\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.10\",\"runtimeVersion\":\"8.10\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"8.11\",\"runtimeVersion\":\"8.11\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"10.0\",\"runtimeVersion\":\"10.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.0.0\",\"runtimeVersion\":\"10.0.0\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"10.6\",\"runtimeVersion\":\"10.6\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"10.6.0\",\"runtimeVersion\":\"10.6.0\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"php\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"php\",\"display\":\"PHP Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"5.6\",\"runtimeVersion\":\"5.6\",\"isDefault\":true,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.0\",\"runtimeVersion\":\"7.0\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.1\",\"runtimeVersion\":\"7.1\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false},{\"displayVersion\":\"7.2\",\"runtimeVersion\":\"7.2\",\"isDefault\":false,\"minorVersions\":[],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"python\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"python\",\"display\":\"Python Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"2.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"2.7\",\"runtimeVersion\":\"2.7.3\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"3.4\",\"runtimeVersion\":\"3.4\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"3.4\",\"runtimeVersion\":\"3.4.0\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"java\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"java\",\"display\":\"Java Version\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"1.7\",\"runtimeVersion\":\"1.7\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"1.7.0_51 (Oracle)\",\"runtimeVersion\":\"1.7.0_51\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_71 (Oracle)\",\"runtimeVersion\":\"1.7.0_71\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_80 (Oracle)\",\"runtimeVersion\":\"1.7.0_80\",\"isDefault\":false},{\"displayVersion\":\"1.7.0_191 (Azul)\",\"runtimeVersion\":\"1.7.0_191_ZULU\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"1.8\",\"runtimeVersion\":\"1.8\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"1.8.0_25 (Oracle)\",\"runtimeVersion\":\"1.8.0_25\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_60 (Oracle)\",\"runtimeVersion\":\"1.8.0_60\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_73 (Oracle)\",\"runtimeVersion\":\"1.8.0_73\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_92 (Azul)\",\"runtimeVersion\":\"1.8.0_92\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_102 (Azul)\",\"runtimeVersion\":\"1.8.0_102\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_111 (Oracle)\",\"runtimeVersion\":\"1.8.0_111\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_144 (Azul)\",\"runtimeVersion\":\"1.8.0_144\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_172 (Oracle)\",\"runtimeVersion\":\"1.8.0_172\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_172 (Azul)\",\"runtimeVersion\":\"1.8.0_172_ZULU\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_181 (Oracle)\",\"runtimeVersion\":\"1.8.0_181\",\"isDefault\":false},{\"displayVersion\":\"1.8.0_181 (Azul)\",\"runtimeVersion\":\"1.8.0_181_ZULU\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":[]}},{\"id\":null,\"name\":\"javaContainers\",\"type\":\"Microsoft.Web/availableStacks?osTypeSelected=Windows\",\"properties\":{\"name\":\"javaContainers\",\"display\":\"Java Containers\",\"dependency\":\"java\",\"majorVersions\":[],\"frameworks\":[{\"name\":\"tomcat\",\"display\":\"Tomcat\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"7.0\",\"runtimeVersion\":\"7.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"7.0.50\",\"runtimeVersion\":\"7.0.50\",\"isDefault\":false},{\"displayVersion\":\"7.0.62\",\"runtimeVersion\":\"7.0.62\",\"isDefault\":false},{\"displayVersion\":\"7.0.81\",\"runtimeVersion\":\"7.0.81\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.0\",\"runtimeVersion\":\"8.0\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.0.23\",\"runtimeVersion\":\"8.0.23\",\"isDefault\":false},{\"displayVersion\":\"8.0.46\",\"runtimeVersion\":\"8.0.46\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"8.5\",\"runtimeVersion\":\"8.5\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"8.5.6\",\"runtimeVersion\":\"8.5.6\",\"isDefault\":false},{\"displayVersion\":\"8.5.20\",\"runtimeVersion\":\"8.5.20\",\"isDefault\":false},{\"displayVersion\":\"8.5.31\",\"runtimeVersion\":\"8.5.31\",\"isDefault\":false},{\"displayVersion\":\"8.5.34\",\"runtimeVersion\":\"8.5.34\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"9.0\",\"runtimeVersion\":\"9.0\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.0.0\",\"runtimeVersion\":\"9.0.0\",\"isDefault\":false},{\"displayVersion\":\"9.0.8\",\"runtimeVersion\":\"9.0.8\",\"isDefault\":false},{\"displayVersion\":\"9.0.12\",\"runtimeVersion\":\"9.0.12\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":null},{\"name\":\"jetty\",\"display\":\"Jetty\",\"dependency\":null,\"majorVersions\":[{\"displayVersion\":\"9.1\",\"runtimeVersion\":\"9.1\",\"isDefault\":false,\"minorVersions\":[{\"displayVersion\":\"9.1.0\",\"runtimeVersion\":\"9.1.0.20131115\",\"isDefault\":true}],\"applicationInsights\":false},{\"displayVersion\":\"9.3\",\"runtimeVersion\":\"9.3\",\"isDefault\":true,\"minorVersions\":[{\"displayVersion\":\"9.3.13\",\"runtimeVersion\":\"9.3.13.20161014\",\"isDefault\":false},{\"displayVersion\":\"9.3.25\",\"runtimeVersion\":\"9.3.25.20180904\",\"isDefault\":true}],\"applicationInsights\":false}],\"frameworks\":null}]}}],\"nextLink\":null,\"id\":null}" } } ], - "variables" : [ "java-webapp-199381", "java-webapp-179994", "java-webapp-427843", "java-webapp-713766", "java-webapp-38122a", "javacsmrgde615886c", "javacsmrgd3823864d", "javacsmrg91f673285", "javacsmrgd8212186c", "javacsmrg0e1788647", "javacsmrgf4b060141" ] + "variables" : [ "java-webapp-826307", "java-webapp-135275", "java-webapp-809152", "java-webapp-65492c", "java-webapp-499577", "javacsmrge4242141f", "javacsmrgb0f324758", "javacsmrg0ff751930", "javacsmrgd0a974162", "javacsmrg9b0116588", "javacsmrgfb3686200" ] } \ No newline at end of file