From 7b994a242d749a1a844c5025d12c76e70a89da5c Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 28 Oct 2021 06:59:40 -0700 Subject: [PATCH 01/14] Updated for RP 2021-06-01 release This release removes legacy S1 SKU, has S360 fixes, releases new RP version 2021-06-01, and adds support for regional resources and system-assigned Managed Identities in IoT Central. --- .../iotcentral_resource-manager.txt | 8 +- package-lock.json | 8 +- .../AzSdk.RP.props | 2 +- .../src/Generated/IOperations.cs | 4 +- .../src/Generated/IotCentralClient.cs | 2 +- .../src/Generated/Models/App.cs | 26 +++++- .../src/Generated/Models/AppPatch.cs | 26 +++++- .../src/Generated/Models/AppSku.cs | 2 - .../src/Generated/Models/AppSkuInfo.cs | 6 +- .../src/Generated/Models/AppState.cs | 22 +++++ .../Models/SystemAssignedServiceIdentity.cs | 90 +++++++++++++++++++ .../SystemAssignedServiceIdentityType.cs | 22 +++++ .../src/Generated/Operations.cs | 4 +- .../src/Generated/OperationsExtensions.cs | 8 +- .../src/Generated/SdkInfo_IotCentralClient.cs | 10 +-- ...crosoft.Azure.Management.IotCentral.csproj | 7 +- .../src/Properties/AssemblyInfo.cs | 4 +- .../tests/Helpers/IotCentralTestUtilities.cs | 21 ++++- .../ScenarioTests/IotCentralLifeCycleTests.cs | 39 +++++--- .../tests/ScenarioTests/IotCentralTestBase.cs | 4 + 20 files changed, 264 insertions(+), 51 deletions(-) create mode 100644 sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppState.cs create mode 100644 sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/SystemAssignedServiceIdentity.cs create mode 100644 sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/SystemAssignedServiceIdentityType.cs diff --git a/eng/mgmt/mgmtmetadata/iotcentral_resource-manager.txt b/eng/mgmt/mgmtmetadata/iotcentral_resource-manager.txt index 189998183d5a..1684a3b665a1 100644 --- a/eng/mgmt/mgmtmetadata/iotcentral_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/iotcentral_resource-manager.txt @@ -3,12 +3,12 @@ AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/iotcentral/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.output-folder=C:\Users\pochen\Github\azure-sdk-for-net\sdk\iotcentral\Microsoft.Azure.Management.IotCentral\src\Generated -2021-02-04 03:45:38 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/iotcentral/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.output-folder=C:\code\azure-sdk-for-net\sdk\iotcentral\Microsoft.Azure.Management.IotCentral\src\Generated +2021-10-26 19:14:38 UTC Azure-rest-api-specs repository information GitHub fork: Azure -Branch: master -Commit: 42fdd45e761f87132e85ed77caf30d5cac81aee5 +Branch: main +Commit: aac5247b6299f15c9d9f5c1dd802c6d4f528953d AutoRest information Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/package-lock.json b/package-lock.json index 88deb1bc2792..fec92a5cc3c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2,10 +2,10 @@ "requires": true, "lockfileVersion": 1, "dependencies": { - "autorest": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/autorest/-/autorest-3.3.2.tgz", - "integrity": "sha512-Tj2Jyz57tMt/KIJK3NaQI13hzUBXZ3N9OmkVZfLU2vrYh1SEaxvdWCLkwWt883E5YlzasRXdbSkrMz86lzHnPA==" + "dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" } } } diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/AzSdk.RP.props b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/AzSdk.RP.props index 618e53fd1090..84f8a48a86bf 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/AzSdk.RP.props +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/AzSdk.RP.props @@ -1,7 +1,7 @@  - IoTCentral_2018-09-01; + IoTCentral_2021-06-01; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/IOperations.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/IOperations.cs index 76541811542c..f34c6086a585 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/IOperations.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/IOperations.cs @@ -24,7 +24,7 @@ namespace Microsoft.Azure.Management.IotCentral public partial interface IOperations { /// - /// Lists all of the available IoT Central application REST API + /// Lists all of the available IoT Central Resource Provider /// operations. /// /// @@ -44,7 +44,7 @@ public partial interface IOperations /// Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all of the available IoT Central application REST API + /// Lists all of the available IoT Central Resource Provider /// operations. /// /// diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/IotCentralClient.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/IotCentralClient.cs index 4b39279214a0..d6c21bfb8b38 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/IotCentralClient.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/IotCentralClient.cs @@ -329,7 +329,7 @@ private void Initialize() Apps = new AppsOperations(this); Operations = new Operations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2018-09-01"; + ApiVersion = "2021-06-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/App.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/App.cs index ae9f2efd9b97..6c46c617b8d0 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/App.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/App.cs @@ -49,14 +49,20 @@ public App() /// application. Optional; if not specified, defaults to a blank /// blueprint and allows the application to be defined from /// scratch. - public App(string location, AppSkuInfo sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string applicationId = default(string), string displayName = default(string), string subdomain = default(string), string template = default(string)) + /// The current state of the application. Possible + /// values include: 'created', 'suspended' + /// The managed identities for the IoT Central + /// application. + public App(string location, AppSkuInfo sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string applicationId = default(string), string displayName = default(string), string subdomain = default(string), string template = default(string), string state = default(string), SystemAssignedServiceIdentity identity = default(SystemAssignedServiceIdentity)) : base(location, id, name, type, tags) { ApplicationId = applicationId; DisplayName = displayName; Subdomain = subdomain; Template = template; + State = state; Sku = sku; + Identity = identity; CustomInit(); } @@ -92,12 +98,26 @@ public App() [JsonProperty(PropertyName = "properties.template")] public string Template { get; set; } + /// + /// Gets or sets the current state of the application. Possible values + /// include: 'created', 'suspended' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; set; } + /// /// Gets or sets a valid instance SKU. /// [JsonProperty(PropertyName = "sku")] public AppSkuInfo Sku { get; set; } + /// + /// Gets or sets the managed identities for the IoT Central + /// application. + /// + [JsonProperty(PropertyName = "identity")] + public SystemAssignedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// @@ -115,6 +135,10 @@ public override void Validate() { Sku.Validate(); } + if (Identity != null) + { + Identity.Validate(); + } } } } diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppPatch.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppPatch.cs index 1e5769cedb3c..846e38c3b4e4 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppPatch.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppPatch.cs @@ -45,7 +45,11 @@ public AppPatch() /// application. Optional; if not specified, defaults to a blank /// blueprint and allows the application to be defined from /// scratch. - public AppPatch(IDictionary tags = default(IDictionary), AppSkuInfo sku = default(AppSkuInfo), string applicationId = default(string), string displayName = default(string), string subdomain = default(string), string template = default(string)) + /// The current state of the application. Possible + /// values include: 'created', 'suspended' + /// The managed identities for the IoT Central + /// application. + public AppPatch(IDictionary tags = default(IDictionary), AppSkuInfo sku = default(AppSkuInfo), string applicationId = default(string), string displayName = default(string), string subdomain = default(string), string template = default(string), string state = default(string), SystemAssignedServiceIdentity identity = default(SystemAssignedServiceIdentity)) { Tags = tags; Sku = sku; @@ -53,6 +57,8 @@ public AppPatch() DisplayName = displayName; Subdomain = subdomain; Template = template; + State = state; + Identity = identity; CustomInit(); } @@ -100,6 +106,20 @@ public AppPatch() [JsonProperty(PropertyName = "properties.template")] public string Template { get; set; } + /// + /// Gets or sets the current state of the application. Possible values + /// include: 'created', 'suspended' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; set; } + + /// + /// Gets or sets the managed identities for the IoT Central + /// application. + /// + [JsonProperty(PropertyName = "identity")] + public SystemAssignedServiceIdentity Identity { get; set; } + /// /// Validate the object. /// @@ -112,6 +132,10 @@ public virtual void Validate() { Sku.Validate(); } + if (Identity != null) + { + Identity.Validate(); + } } } } diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppSku.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppSku.cs index 13c4e59ed5e8..86afed20418e 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppSku.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppSku.cs @@ -16,8 +16,6 @@ namespace Microsoft.Azure.Management.IotCentral.Models /// public static class AppSku { - public const string F1 = "F1"; - public const string S1 = "S1"; public const string ST0 = "ST0"; public const string ST1 = "ST1"; public const string ST2 = "ST2"; diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppSkuInfo.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppSkuInfo.cs index 1b8a01b1ffe4..d8c66165ce9d 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppSkuInfo.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppSkuInfo.cs @@ -31,7 +31,7 @@ public AppSkuInfo() /// Initializes a new instance of the AppSkuInfo class. /// /// The name of the SKU. Possible values include: - /// 'F1', 'S1', 'ST0', 'ST1', 'ST2' + /// 'ST0', 'ST1', 'ST2' public AppSkuInfo(string name) { Name = name; @@ -44,8 +44,8 @@ public AppSkuInfo(string name) partial void CustomInit(); /// - /// Gets or sets the name of the SKU. Possible values include: 'F1', - /// 'S1', 'ST0', 'ST1', 'ST2' + /// Gets or sets the name of the SKU. Possible values include: 'ST0', + /// 'ST1', 'ST2' /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppState.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppState.cs new file mode 100644 index 000000000000..948520387fbb --- /dev/null +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/AppState.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.IotCentral.Models +{ + + /// + /// Defines values for AppState. + /// + public static class AppState + { + public const string Created = "created"; + public const string Suspended = "suspended"; + } +} diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/SystemAssignedServiceIdentity.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/SystemAssignedServiceIdentity.cs new file mode 100644 index 000000000000..4164f9ada95a --- /dev/null +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/SystemAssignedServiceIdentity.cs @@ -0,0 +1,90 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.IotCentral.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Managed service identity (either system assigned, or none) + /// + public partial class SystemAssignedServiceIdentity + { + /// + /// Initializes a new instance of the SystemAssignedServiceIdentity + /// class. + /// + public SystemAssignedServiceIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SystemAssignedServiceIdentity + /// class. + /// + /// Possible values include: 'None', + /// 'SystemAssigned' + /// The service principal ID of the system + /// assigned identity. This property will only be provided for a system + /// assigned identity. + /// The tenant ID of the system assigned + /// identity. This property will only be provided for a system assigned + /// identity. + public SystemAssignedServiceIdentity(string type, System.Guid? principalId = default(System.Guid?), System.Guid? tenantId = default(System.Guid?)) + { + PrincipalId = principalId; + TenantId = tenantId; + Type = type; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the service principal ID of the system assigned identity. This + /// property will only be provided for a system assigned identity. + /// + [JsonProperty(PropertyName = "principalId")] + public System.Guid? PrincipalId { get; private set; } + + /// + /// Gets the tenant ID of the system assigned identity. This property + /// will only be provided for a system assigned identity. + /// + [JsonProperty(PropertyName = "tenantId")] + public System.Guid? TenantId { get; private set; } + + /// + /// Gets or sets possible values include: 'None', 'SystemAssigned' + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Type == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Type"); + } + } + } +} diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/SystemAssignedServiceIdentityType.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/SystemAssignedServiceIdentityType.cs new file mode 100644 index 000000000000..e1cbb946615b --- /dev/null +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Models/SystemAssignedServiceIdentityType.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.IotCentral.Models +{ + + /// + /// Defines values for SystemAssignedServiceIdentityType. + /// + public static class SystemAssignedServiceIdentityType + { + public const string None = "None"; + public const string SystemAssigned = "SystemAssigned"; + } +} diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Operations.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Operations.cs index 9f9db537c879..13de959a9439 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Operations.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/Operations.cs @@ -51,7 +51,7 @@ internal Operations(IotCentralClient client) public IotCentralClient Client { get; private set; } /// - /// Lists all of the available IoT Central application REST API operations. + /// Lists all of the available IoT Central Resource Provider operations. /// /// /// Headers that will be added to request. @@ -224,7 +224,7 @@ internal Operations(IotCentralClient client) } /// - /// Lists all of the available IoT Central application REST API operations. + /// Lists all of the available IoT Central Resource Provider operations. /// /// /// The NextLink from the previous successful call to List operation. diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/OperationsExtensions.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/OperationsExtensions.cs index 906d85c28906..e41818a6171c 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/OperationsExtensions.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/OperationsExtensions.cs @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.IotCentral public static partial class OperationsExtensions { /// - /// Lists all of the available IoT Central application REST API operations. + /// Lists all of the available IoT Central Resource Provider operations. /// /// /// The operations group for this extension method. @@ -33,7 +33,7 @@ public static IPage List(this IOperations operations) } /// - /// Lists all of the available IoT Central application REST API operations. + /// Lists all of the available IoT Central Resource Provider operations. /// /// /// The operations group for this extension method. @@ -50,7 +50,7 @@ public static IPage List(this IOperations operations) } /// - /// Lists all of the available IoT Central application REST API operations. + /// Lists all of the available IoT Central Resource Provider operations. /// /// /// The operations group for this extension method. @@ -64,7 +64,7 @@ public static IPage ListNext(this IOperations operations, string next } /// - /// Lists all of the available IoT Central application REST API operations. + /// Lists all of the available IoT Central Resource Provider operations. /// /// /// The operations group for this extension method. diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/SdkInfo_IotCentralClient.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/SdkInfo_IotCentralClient.cs index 665b5bf0583a..cdd1241e9faf 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/SdkInfo_IotCentralClient.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Generated/SdkInfo_IotCentralClient.cs @@ -19,18 +19,18 @@ public static IEnumerable> ApiInfo_IotCentralClien { return new Tuple[] { - new Tuple("IoTCentral", "Apps", "2018-09-01"), - new Tuple("IoTCentral", "Operations", "2018-09-01"), + new Tuple("IoTCentral", "Apps", "2021-06-01"), + new Tuple("IoTCentral", "Operations", "2021-06-01"), }.AsEnumerable(); } } // BEGIN: Code Generation Metadata Section public static readonly String AutoRestVersion = "v2"; public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/iotcentral/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.output-folder=C:\\Users\\pochen\\Github\\azure-sdk-for-net\\sdk\\iotcentral\\Microsoft.Azure.Management.IotCentral\\src\\Generated"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/iotcentral/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp.output-folder=C:\\code\\azure-sdk-for-net\\sdk\\iotcentral\\Microsoft.Azure.Management.IotCentral\\src\\Generated"; public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "42fdd45e761f87132e85ed77caf30d5cac81aee5"; + public static readonly String GithubBranchName = "main"; + public static readonly String GithubCommidId = "aac5247b6299f15c9d9f5c1dd802c6d4f528953d"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj index ca8749894ece..6b68f5cef4a6 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj @@ -8,13 +8,12 @@ Provides management capabilities for Microsoft Azure IotCentral. Microsoft Azure IotCentral Management Microsoft.Azure.Management.IotCentral - 3.1.0 + 3.2.0 Microsoft Azure IotCentral;IotCentral management;IotCentral; diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Properties/AssemblyInfo.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Properties/AssemblyInfo.cs index c311fcff1af9..63ae46a66052 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Properties/AssemblyInfo.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Properties/AssemblyInfo.cs @@ -7,8 +7,8 @@ [assembly: AssemblyTitle("Microsoft Azure IotCentral Management Library")] [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure IotCentral Resources.")] -[assembly: AssemblyVersion("3.1.0.0")] -[assembly: AssemblyFileVersion("3.1.0.0")] +[assembly: AssemblyVersion("3.2.0.0")] +[assembly: AssemblyFileVersion("3.2.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Microsoft Azure .NET SDK")] diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/Helpers/IotCentralTestUtilities.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/Helpers/IotCentralTestUtilities.cs index 126dc1a9c45d..1ccf3753ef73 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/Helpers/IotCentralTestUtilities.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/Helpers/IotCentralTestUtilities.cs @@ -6,8 +6,11 @@ namespace IotCentral.Tests.Helpers { + using System; + using System.Collections.Generic; using System.Net; using Microsoft.Azure.Management.IotCentral; + using Microsoft.Azure.Management.IotCentral.Models; using Microsoft.Azure.Management.ResourceManager; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; @@ -20,7 +23,23 @@ public class IotCentralTestUtilities public static string DefaultUpdateSubdomain = "defaultdotnetsdksubdomainupdate"; public static string DefaultResourceGroupName = "DefaultDotNetSdkIotCentralRG"; public static string DefaultUpdateResourceGroupName = "DefaultDotNetSdkIotCentralRGUpdate"; - + + internal static string RandomizedResourceName = DefaultResourceName + Guid.NewGuid().ToString("n"); + internal static string RandomizedSubdomain = DefaultUpdateSubdomain + Guid.NewGuid().ToString("n"); + internal static string RandomizedResourceGroupName = DefaultUpdateSubdomain + Guid.NewGuid().ToString("n"); + + internal static List SupportedAzureRegions = new List { + new AppTemplateLocations("australiaeast", "Australia East"), + new AppTemplateLocations("australiaeast", "Central US"), + new AppTemplateLocations("australiaeast", "East US"), + new AppTemplateLocations("australiaeast", "East US 2"), + new AppTemplateLocations("australiaeast", "Japan East"), + new AppTemplateLocations("australiaeast", "North Europe"), + new AppTemplateLocations("australiaeast", "South East Asia"), + new AppTemplateLocations("australiaeast", "UK South"), + new AppTemplateLocations("australiaeast", "West Europe"), + new AppTemplateLocations("australiaeast", "West US") }; + public static IotCentralClient GetIotCentralClient(MockContext context, RecordedDelegatingHandler handler = null) { if (handler != null) diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs index e2a3114d957f..f1049a783a32 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs @@ -27,41 +27,45 @@ public void TestIotCentralCreateLifeCycle() Initialize(context); // Create Resource Group - var resourceGroup = CreateResourceGroup(IotCentralTestUtilities.DefaultResourceGroupName); + Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(resourceGroupName); // Create App - var app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, IotCentralTestUtilities.DefaultResourceName, IotCentralTestUtilities.DefaultSubdomain); + App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, resourceName, subDomain); // Validate resourceName and subdomain are taken this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); Assert.NotNull(app); Assert.Equal(AppSku.ST1, app.Sku.Name); - Assert.Equal(IotCentralTestUtilities.DefaultResourceName, app.Name); - Assert.Equal(IotCentralTestUtilities.DefaultSubdomain, app.Subdomain); + Assert.Contains(IotCentralTestUtilities.DefaultResourceName, app.Name); + Assert.Contains(IotCentralTestUtilities.DefaultSubdomain, app.Subdomain); + Assert.Equal("eastus", app.Location); + Assert.Equal("created", app.State); + Assert.Equal("Microsoft.IoTCentral/IoTApps", app.Type); + Assert.NotNull(app.Identity); // Add and Get Tags IDictionary tags = new Dictionary { { "key1", "value1" }, - { "key2", "value2" } + { "key2", "value2" }, }; var appPatch = new AppPatch() { Tags = tags, - DisplayName = IotCentralTestUtilities.DefaultResourceName, - Subdomain = IotCentralTestUtilities.DefaultSubdomain + DisplayName = resourceName, + Subdomain = subDomain, }; - app = this.iotCentralClient.Apps.Update(IotCentralTestUtilities.DefaultResourceGroupName, IotCentralTestUtilities.DefaultResourceName, appPatch); + app = this.iotCentralClient.Apps.Update(resourceGroupName, resourceName, appPatch); Assert.NotNull(app); Assert.True(app.Tags.Count().Equals(2)); Assert.Equal("value2", app.Tags["key2"]); // Get all Iot Central apps in a resource group - var iotAppsByResourceGroup = this.iotCentralClient.Apps.ListByResourceGroup(IotCentralTestUtilities.DefaultResourceGroupName.ToLowerInvariant()).ToList(); + var iotAppsByResourceGroup = this.iotCentralClient.Apps.ListByResourceGroup(resourceGroupName.ToLowerInvariant()).ToList(); // Get all Iot Apps in a subscription var iotAppsBySubscription = this.iotCentralClient.Apps.ListBySubscription().ToList(); @@ -78,6 +82,11 @@ public void TestIotCentralUpdateLifeCycle() { this.Initialize(context); + // Initialize variables + string resourceName = IotCentralTestUtilities.RandomizedResourceName; + string subDomain = IotCentralTestUtilities.RandomizedSubdomain; + string resourceGroupName = IotCentralTestUtilities.RandomizedResourceGroupName; + // Create Resource Group var resourceGroup = CreateResourceGroup(IotCentralTestUtilities.DefaultUpdateResourceGroupName); @@ -97,7 +106,7 @@ public void TestIotCentralUpdateLifeCycle() IDictionary tags = new Dictionary { { "key1", "value1" }, - { "key2", "value2" } + { "key2", "value2" }, }; AppPatch appPatch = new AppPatch() @@ -132,8 +141,8 @@ public void TestAppWhenNullAppSkuInfo() { Location = IotCentralTestUtilities.DefaultLocation, Sku = new AppSkuInfo(), - Subdomain = IotCentralTestUtilities.DefaultUpdateSubdomain, - DisplayName = IotCentralTestUtilities.DefaultUpdateResourceName + Subdomain = subDomain, + DisplayName = IotCentralTestUtilities.DefaultUpdateResourceName, }; app.Validate(); } @@ -212,9 +221,11 @@ public void TestAppTemplateNameField() Assert.Equal("Retail", iotAppsTemplates[0].Industry); Assert.True(iotAppsTemplates[0].Locations.Count > 0); Assert.NotNull(iotAppsTemplates[0].Locations[0].Id); - Assert.Equal("unitedstates", iotAppsTemplates[0].Locations[0].Id); Assert.NotNull(iotAppsTemplates[0].Locations[0].DisplayName); - Assert.Equal("United States", iotAppsTemplates[0].Locations[0].DisplayName); + + // Validate Geo->Regional change. + IList locations = iotAppsTemplates[0].Locations; + Enumerable.SequenceEqual(locations, IotCentralTestUtilities.SupportedAzureRegions); } } diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs index e2cf4826197a..f9be640dc503 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs @@ -22,6 +22,10 @@ public class IotCentralTestBase protected string location; protected TestEnvironment testEnv; + protected String resourceName = IotCentralTestUtilities.RandomizedResourceName; + protected String subDomain = IotCentralTestUtilities.RandomizedSubdomain; + protected String resourceGroupName = IotCentralTestUtilities.RandomizedResourceGroupName; + protected void Initialize(MockContext context) { if (!initialized) From 060097813f073b5ebc670dbc2fc8de1584da9e0d Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 28 Oct 2021 12:55:29 -0700 Subject: [PATCH 02/14] Updated release notes, added tests for Managed Identities and different SKUs. Updated package release notes, added tests for Managed Identities, added tests for validating exceptions from invalid SKUs. --- ...crosoft.Azure.Management.IotCentral.csproj | 6 +- .../tests/Helpers/IotCentralTestUtilities.cs | 23 ++-- .../ScenarioTests/IotCentralLifeCycleTests.cs | 123 ++++++++++++++++-- .../tests/ScenarioTests/IotCentralTestBase.cs | 30 ++++- 4 files changed, 153 insertions(+), 29 deletions(-) diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj index 6b68f5cef4a6..125b6f62b13a 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj @@ -12,8 +12,10 @@ Microsoft Azure IotCentral;IotCentral management;IotCentral; diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/Helpers/IotCentralTestUtilities.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/Helpers/IotCentralTestUtilities.cs index 1ccf3753ef73..73a09966cfba 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/Helpers/IotCentralTestUtilities.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/Helpers/IotCentralTestUtilities.cs @@ -17,16 +17,19 @@ namespace IotCentral.Tests.Helpers public class IotCentralTestUtilities { public static string DefaultLocation = "EastUS"; - public static string DefaultResourceName = "defaultdotnetsdkapp"; - public static string DefaultUpdateResourceName = "defaultdotnetsdkappupdate"; - public static string DefaultSubdomain = "defaultdotnetsdksubdomain"; - public static string DefaultUpdateSubdomain = "defaultdotnetsdksubdomainupdate"; - public static string DefaultResourceGroupName = "DefaultDotNetSdkIotCentralRG"; - public static string DefaultUpdateResourceGroupName = "DefaultDotNetSdkIotCentralRGUpdate"; - - internal static string RandomizedResourceName = DefaultResourceName + Guid.NewGuid().ToString("n"); - internal static string RandomizedSubdomain = DefaultUpdateSubdomain + Guid.NewGuid().ToString("n"); - internal static string RandomizedResourceGroupName = DefaultUpdateSubdomain + Guid.NewGuid().ToString("n"); + public static string DefaultResourceName = "dotnetsdkapp"; + public static string DefaultUpdateResourceName = "dotnetsdkappupdate"; + public static string DefaultSubdomain = "dotnetsdksubdomain"; + public static string DefaultUpdateSubdomain = "dotnetsdksubdomainupdate"; + public static string DefaultResourceGroupName = "DotNetSdkIotCentralRG"; + public static string DefaultUpdateResourceGroupName = "DotNetSdkIotCentralRGUpdate"; + + internal static string RandomizedResourceName => DefaultResourceName + Guid.NewGuid().ToString("n"); + internal static string RandomizedSubdomain => DefaultSubdomain + Guid.NewGuid().ToString("n"); + internal static string RandomizedUpdateSubdomain => DefaultUpdateSubdomain + Guid.NewGuid().ToString("n"); + internal static string RandomizedResourceGroupName => DefaultUpdateSubdomain + Guid.NewGuid().ToString("n"); + internal static string RandomizedUpdateResourceName => DefaultUpdateResourceName + Guid.NewGuid().ToString("n"); + internal static string RandomizedUpdateResourceGroupName => DefaultUpdateResourceGroupName + Guid.NewGuid().ToString("n"); internal static List SupportedAzureRegions = new List { new AppTemplateLocations("australiaeast", "Australia East"), diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs index f1049a783a32..64ba27a815ff 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs @@ -12,7 +12,6 @@ namespace IotCentral.Tests.ScenarioTests using Microsoft.Azure.Management.IotCentral.Models; using Microsoft.Azure.Management.ResourceManager; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; - using Newtonsoft.Json.Linq; using Xunit; using Microsoft.Rest; using Microsoft.Rest.Azure; @@ -42,7 +41,70 @@ public void TestIotCentralCreateLifeCycle() Assert.Equal("eastus", app.Location); Assert.Equal("created", app.State); Assert.Equal("Microsoft.IoTCentral/IoTApps", app.Type); + Assert.Equal("None", app.Identity.Type); + + // Add and Get Tags + IDictionary tags = new Dictionary + { + { "key1", "value1" }, + { "key2", "value2" }, + }; + + var appPatch = new AppPatch() + { + Tags = tags, + DisplayName = resourceName, + Subdomain = subDomain, + }; + + app = this.iotCentralClient.Apps.Update(resourceGroupName, resourceName, appPatch); + + Assert.NotNull(app); + Assert.True(app.Tags.Count().Equals(2)); + Assert.Equal("value2", app.Tags["key2"]); + + // Get all Iot Central apps in a resource group + var iotAppsByResourceGroup = this.iotCentralClient.Apps.ListByResourceGroup(resourceGroupName.ToLowerInvariant()).ToList(); + + // Get all Iot Apps in a subscription + var iotAppsBySubscription = this.iotCentralClient.Apps.ListBySubscription().ToList(); + + Assert.True(iotAppsByResourceGroup.Count > 0); + Assert.True(iotAppsBySubscription.Count > 0); + } + } + + [Fact] + public void TestIotCentralCreateWithManagedIdentityLifeCycle() + { + using (MockContext context = MockContext.Start(this.GetType())) + { + Initialize(context); + + // Create Resource Group + Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(resourceGroupName); + + // Create App + App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, resourceName, subDomain, DefaultMIType); + + // Validate resourceName and subdomain are taken + this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); + + Assert.NotNull(app); + Assert.Equal(AppSku.ST1, app.Sku.Name); + Assert.Contains(IotCentralTestUtilities.DefaultResourceName, app.Name); + Assert.Contains(IotCentralTestUtilities.DefaultSubdomain, app.Subdomain); + Assert.Equal("eastus", app.Location); + Assert.Equal("created", app.State); + Assert.Equal("Microsoft.IoTCentral/IoTApps", app.Type); + + // validate managed identity. Assert.NotNull(app.Identity); + Assert.Equal("SystemAssigned", app.Identity.Type); + Assert.NotNull(app.Identity.PrincipalId); + Assert.NotNull(app.Identity.TenantId); + var principalId = app.Identity.PrincipalId; + var tenantId = app.Identity.TenantId; // Add and Get Tags IDictionary tags = new Dictionary @@ -63,6 +125,12 @@ public void TestIotCentralCreateLifeCycle() Assert.NotNull(app); Assert.True(app.Tags.Count().Equals(2)); Assert.Equal("value2", app.Tags["key2"]); + Assert.NotNull(app.Identity); + Assert.Equal("SystemAssigned", app.Identity.Type); + Assert.NotNull(app.Identity.PrincipalId); + Assert.NotNull(app.Identity.TenantId); + Assert.Equal(principalId, app.Identity.PrincipalId); + Assert.Equal(tenantId, app.Identity.TenantId); // Get all Iot Central apps in a resource group var iotAppsByResourceGroup = this.iotCentralClient.Apps.ListByResourceGroup(resourceGroupName.ToLowerInvariant()).ToList(); @@ -82,16 +150,11 @@ public void TestIotCentralUpdateLifeCycle() { this.Initialize(context); - // Initialize variables - string resourceName = IotCentralTestUtilities.RandomizedResourceName; - string subDomain = IotCentralTestUtilities.RandomizedSubdomain; - string resourceGroupName = IotCentralTestUtilities.RandomizedResourceGroupName; - // Create Resource Group - var resourceGroup = CreateResourceGroup(IotCentralTestUtilities.DefaultUpdateResourceGroupName); + var resourceGroup = CreateResourceGroup(updateResourceGroupName); // Create App - var app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, IotCentralTestUtilities.DefaultUpdateResourceName, IotCentralTestUtilities.DefaultUpdateSubdomain); + var app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, updateResourceName, updateSubDomain); // Validate the default sku Assert.Equal(app.Sku.Name, AppSku.ST1); @@ -100,8 +163,9 @@ public void TestIotCentralUpdateLifeCycle() this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); // Update App - var newSubDomain = "test-updated-sub-domain"; - var newDisplayName = "test-updated-display-name"; + var newSubDomain = "test-updated-sub-domain" + Guid.NewGuid().ToString("n"); + var newDisplayName = "test-updated-display-name" + Guid.NewGuid().ToString("n"); + // Add and Get Tags IDictionary tags = new Dictionary { @@ -117,11 +181,11 @@ public void TestIotCentralUpdateLifeCycle() Sku = new AppSkuInfo(AppSku.ST2), }; - app = UpdateIotCentral(resourceGroup, appPatch, IotCentralTestUtilities.DefaultUpdateResourceName); + app = UpdateIotCentral(resourceGroup, appPatch, updateResourceName); // List apps - app = iotCentralClient.Apps.ListByResourceGroup(IotCentralTestUtilities.DefaultUpdateResourceGroupName) - .FirstOrDefault(e => e.Name.Equals(IotCentralTestUtilities.DefaultUpdateResourceName, StringComparison.OrdinalIgnoreCase)); + app = iotCentralClient.Apps.ListByResourceGroup(updateResourceGroupName) + .FirstOrDefault(e => e.Name.Equals(updateResourceName, StringComparison.OrdinalIgnoreCase)); Assert.NotNull(app); Assert.Equal(newDisplayName, app.DisplayName); @@ -131,6 +195,18 @@ public void TestIotCentralUpdateLifeCycle() } } + [Fact] + public void TestAppWhenUnsupportedS1SkuIsUsed() + { + RunAndValidateCentralAppCreationForDifferentSkus("S1", $"The sku S1 is invalid, allowed skus are ST0, ST1, ST2"); + } + + [Fact] + public void TestAppWhenF1SkuIsUsed() + { + RunAndValidateCentralAppCreationForDifferentSkus("F1", "Cannot create a subscription less application with SKU F1"); + } + [Fact] public void TestAppWhenNullAppSkuInfo() { @@ -265,6 +341,27 @@ private void CheckAppNameAndSubdomainTaken(string resourceName, string subdomain Assert.False(resourceNameResult.NameAvailable); Assert.False(subdomainResult.NameAvailable); } + + private void RunAndValidateCentralAppCreationForDifferentSkus(string sku, string exceptionMessage) + { + using (MockContext context = MockContext.Start(this.GetType())) + { + Initialize(context); + + // Create Resource Group + Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(resourceGroupName); + + try + { + // Create App + App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, resourceName, subDomain, DefaultMIType, sku); + } + catch (CloudException cex) + { + Assert.Equal(exceptionMessage, cex.Body.Message); + } + } + } } } diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs index f9be640dc503..f81badf3af4f 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs @@ -23,8 +23,12 @@ public class IotCentralTestBase protected TestEnvironment testEnv; protected String resourceName = IotCentralTestUtilities.RandomizedResourceName; + protected String updateResourceName = IotCentralTestUtilities.RandomizedUpdateResourceName; protected String subDomain = IotCentralTestUtilities.RandomizedSubdomain; + protected String updateSubDomain = IotCentralTestUtilities.RandomizedUpdateSubdomain; protected String resourceGroupName = IotCentralTestUtilities.RandomizedResourceGroupName; + protected String updateResourceGroupName = IotCentralTestUtilities.RandomizedUpdateResourceGroupName; + protected SystemAssignedServiceIdentity DefaultMIType = new SystemAssignedServiceIdentity(type: "SystemAssigned"); protected void Initialize(MockContext context) { @@ -53,18 +57,35 @@ protected void Initialize(MockContext context) } } - protected App CreateIotCentral(ResourceGroup resourceGroup, string location, string appResourceName, string appSubdomain) + protected App CreateIotCentralApp(string location, string appResourceName, string appSubdomain, string sku = null) { - var app = new App() + return new App() { Location = location, Sku = new AppSkuInfo() { - Name = "ST1" + Name = sku ?? "ST1", }, Subdomain = appSubdomain, - DisplayName = appResourceName + DisplayName = appResourceName, }; + } + + protected App CreateIotCentral( + ResourceGroup resourceGroup, + string location, + string appResourceName, + string appSubdomain, + SystemAssignedServiceIdentity identity = null, + string sku = null) + { + var app = CreateIotCentralApp(location, appResourceName, appSubdomain, sku); + + // Set system-assigned identity as default. + if (identity != null) + { + app.Identity = identity; + } return this.iotCentralClient.Apps.CreateOrUpdate( resourceGroup.Name, @@ -72,6 +93,7 @@ protected App CreateIotCentral(ResourceGroup resourceGroup, string location, str app); } + protected App UpdateIotCentral(ResourceGroup resourceGroup, AppPatch app, string appResourceName) { return this.iotCentralClient.Apps.Update( From 19add1be2a977723d7c62a8e8f268bd039bb8e0c Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 28 Oct 2021 14:48:35 -0700 Subject: [PATCH 03/14] Minor: Updated default Sku in test Updated default sku to be ST2. --- .../tests/ScenarioTests/IotCentralLifeCycleTests.cs | 6 +++--- .../tests/ScenarioTests/IotCentralTestBase.cs | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs index 64ba27a815ff..bbd741c3a9af 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs @@ -35,7 +35,7 @@ public void TestIotCentralCreateLifeCycle() this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); Assert.NotNull(app); - Assert.Equal(AppSku.ST1, app.Sku.Name); + Assert.Equal(DefaultIotcSku, app.Sku.Name); Assert.Contains(IotCentralTestUtilities.DefaultResourceName, app.Name); Assert.Contains(IotCentralTestUtilities.DefaultSubdomain, app.Subdomain); Assert.Equal("eastus", app.Location); @@ -91,7 +91,7 @@ public void TestIotCentralCreateWithManagedIdentityLifeCycle() this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); Assert.NotNull(app); - Assert.Equal(AppSku.ST1, app.Sku.Name); + Assert.Equal(AppSku.ST2, app.Sku.Name); Assert.Contains(IotCentralTestUtilities.DefaultResourceName, app.Name); Assert.Contains(IotCentralTestUtilities.DefaultSubdomain, app.Subdomain); Assert.Equal("eastus", app.Location); @@ -157,7 +157,7 @@ public void TestIotCentralUpdateLifeCycle() var app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, updateResourceName, updateSubDomain); // Validate the default sku - Assert.Equal(app.Sku.Name, AppSku.ST1); + Assert.Equal(DefaultIotcSku, app.Sku.Name); // Validate resourceName and subdomain are taken this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs index f81badf3af4f..6a3563b0f743 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs @@ -14,6 +14,8 @@ namespace IotCentral.Tests.ScenarioTests { public class IotCentralTestBase { + protected static string DefaultIotcSku = AppSku.ST2.ToString(); + protected ResourceManagementClient resourcesClient; protected IotCentralClient iotCentralClient; @@ -64,7 +66,7 @@ protected App CreateIotCentralApp(string location, string appResourceName, strin Location = location, Sku = new AppSkuInfo() { - Name = sku ?? "ST1", + Name = sku ?? DefaultIotcSku, }, Subdomain = appSubdomain, DisplayName = appResourceName, From e2572ea899f39c70220dc19ed1446ffd58f15f53 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Mon, 1 Nov 2021 12:52:22 -0700 Subject: [PATCH 04/14] Updated version to 4.0.0 Updated version to 4.0.0 based on PR feedback. --- .../src/Microsoft.Azure.Management.IotCentral.csproj | 2 +- .../src/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj index 125b6f62b13a..1b9017550f64 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/src/Microsoft.Azure.Management.IotCentral.csproj @@ -8,7 +8,7 @@ Provides management capabilities for Microsoft Azure IotCentral. Microsoft Azure IotCentral Management Microsoft.Azure.Management.IotCentral - 3.2.0 + 4.0.0 Microsoft Azure IotCentral;IotCentral management;IotCentral; Date: Wed, 3 Nov 2021 10:09:28 -0700 Subject: [PATCH 05/14] Adding Session Records from execution of the IoTCentral DotNet SDK Tests Adding Session Records from execution of the IoTCentral DotNet SDK Tests --- .../Microsoft.Azure.Management.IotCentral.sln | 13 +- ...ateCentralAppCreationForDifferentSkus.json | 159 +++++ .../TestAppTemplateNameField.json | 39 +- .../TestAppWhenUnsupportedSkuIsUsed.json | 159 +++++ .../TestIotCentralCreateLifeCycle.json | 336 +++++---- ...ralCreateWithManagedIdentityLifeCycle.json | 661 ++++++++++++++++++ .../TestIotCentralOperationsApi.json | 41 +- .../TestIotCentralUpdateLifeCycle.json | 277 ++++---- .../TestFramework/TestRecordAndFramework.sln | 40 +- 9 files changed, 1363 insertions(+), 362 deletions(-) create mode 100644 sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/RunAndValidateCentralAppCreationForDifferentSkus.json create mode 100644 sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedSkuIsUsed.json create mode 100644 sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/Microsoft.Azure.Management.IotCentral.sln b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/Microsoft.Azure.Management.IotCentral.sln index cecab002c27f..ff98a26fe58f 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/Microsoft.Azure.Management.IotCentral.sln +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/Microsoft.Azure.Management.IotCentral.sln @@ -1,12 +1,14 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26430.4 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31729.503 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.IotCentral.Tests", "tests\Microsoft.Azure.Management.IotCentral.Tests.csproj", "{DD48424F-23AE-4CAA-A8C6-78ED453203FF}" EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.IotCentral", "src\Microsoft.Azure.Management.IotCentral.csproj", "{6D87768F-C148-4850-AA06-B6D0E0319563}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Rest.ClientRuntime.Azure.TestFramework", "..\..\mgmtcommon\TestFramework\ClientRuntime.Azure.TestFramework\Microsoft.Rest.ClientRuntime.Azure.TestFramework.csproj", "{DE97083A-3D43-49ED-A9F7-263464C832D9}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,8 +23,15 @@ Global {6D87768F-C148-4850-AA06-B6D0E0319563}.Debug|Any CPU.Build.0 = Debug|Any CPU {6D87768F-C148-4850-AA06-B6D0E0319563}.Release|Any CPU.ActiveCfg = Release|Any CPU {6D87768F-C148-4850-AA06-B6D0E0319563}.Release|Any CPU.Build.0 = Release|Any CPU + {DE97083A-3D43-49ED-A9F7-263464C832D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DE97083A-3D43-49ED-A9F7-263464C832D9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DE97083A-3D43-49ED-A9F7-263464C832D9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DE97083A-3D43-49ED-A9F7-263464C832D9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {795EB0E4-23F0-499F-A936-32C4FA36354A} + EndGlobalSection EndGlobal diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/RunAndValidateCentralAppCreationForDifferentSkus.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/RunAndValidateCentralAppCreationForDifferentSkus.json new file mode 100644 index 000000000000..74543f0d6618 --- /dev/null +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/RunAndValidateCentralAppCreationForDifferentSkus.json @@ -0,0 +1,159 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/dotnetsdksubdomainupdate0504f9ebbc07441e8c2147c0faefa29c?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA1MDRmOWViYmMwNzQ0MWU4YzIxNDdjMGZhZWZhMjljP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4a15a7e2-64dd-4ade-adc6-47a96b338532" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "8cb92ca3-14f0-47e8-8bd4-584642da16be" + ], + "x-ms-correlation-request-id": [ + "8cb92ca3-14f0-47e8-8bd4-584642da16be" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165422Z:8cb92ca3-14f0-47e8-8bd4-584642da16be" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 03 Nov 2021 16:54:21 GMT" + ], + "Content-Length": [ + "265" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0504f9ebbc07441e8c2147c0faefa29c\",\r\n \"name\": \"dotnetsdksubdomainupdate0504f9ebbc07441e8c2147c0faefa29c\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0504f9ebbc07441e8c2147c0faefa29c/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp01ef93e1178048dcb9a276230fe3fca7?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA1MDRmOWViYmMwNzQ0MWU4YzIxNDdjMGZhZWZhMjljL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDAxZWY5M2UxMTc4MDQ4ZGNiOWEyNzYyMzBmZTNmY2E3P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp01ef93e1178048dcb9a276230fe3fca7\",\r\n \"subdomain\": \"dotnetsdksubdomain0b83e6ba4ef44756bc329d66355871b9\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3d9fd676-ca07-4e47-8ff0-8ffd6e065a48" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "281" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "x-ms-request-id": [ + "e96605f6-d486-4857-9102-caaced532c3b" + ], + "x-iot-correlation": [ + "9g8f58bm.1.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-download-options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: DF3057982D654477A19DC62541AE599A Ref B: CO1EDGE1710 Ref C: 2021-11-03T16:54:25Z" + ], + "X-IoT-Version": [ + "102821.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5437fee2-15ad-4c17-9155-4a668b6f71b1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165436Z:5437fee2-15ad-4c17-9155-4a668b6f71b1" + ], + "Date": [ + "Wed, 03 Nov 2021 16:54:35 GMT" + ], + "Content-Length": [ + "102" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"400.200.006.026\",\r\n \"message\": \"The sku S1 is invalid, allowed skus are ST0, ST1, ST2\"\r\n }\r\n}", + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b" + } +} \ No newline at end of file diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppTemplateNameField.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppTemplateNameField.json index 0a9c57fcc281..75d6782e3785 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppTemplateNameField.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppTemplateNameField.json @@ -1,31 +1,28 @@ { "Entries": [ { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/appTemplates?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9hcHBUZW1wbGF0ZXM/YXBpLXZlcnNpb249MjAxOC0wOS0wMQ==", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/appTemplates?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9hcHBUZW1wbGF0ZXM/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "POST", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "eb8f89d0-865f-41fa-b609-69d59e7b49ef" + "46f7320a-d257-4db0-92a5-e8d678c8b9ab" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"22a9-FjYxTUpy4k+6GHuExnZd1JQa8n4\"" - ], "Vary": [ "Accept-Encoding" ], @@ -33,13 +30,10 @@ "1199" ], "x-ms-request-id": [ - "5ba6fb26-2942-420a-b031-74991a8ea1f7" + "a7fa0f6b-925c-49f5-a02f-4b07c669856c" ], "x-iot-correlation": [ - "b4uoqxdd.0" - ], - "x-envoy-upstream-service-time": [ - "391" + "5turzi8.0" ], "X-Content-Type-Options": [ "nosniff" @@ -54,7 +48,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -62,26 +56,29 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: D2EE335789864BAA9F334A03D55E3989 Ref B: BY3EDGE0216 Ref C: 2021-02-04T05:01:20Z" + "Ref A: 5340B0AD44374968B755B72D97D50B4B Ref B: CO1EDGE1413 Ref C: 2021-11-03T16:52:29Z" ], "x-ms-correlation-request-id": [ - "43c221b8-d6d3-4842-b3a6-65d9a05cef3f" + "ba585f9a-bc89-48d9-88d3-74bc8bb72cac" ], "x-ms-routing-request-id": [ - "WESTUS:20210204T050121Z:43c221b8-d6d3-4842-b3a6-65d9a05cef3f" + "WESTUS2:20211103T165230Z:ba585f9a-bc89-48d9-88d3-74bc8bb72cac" ], "Date": [ - "Thu, 04 Feb 2021 05:01:20 GMT" + "Wed, 03 Nov 2021 16:52:29 GMT" ], "Content-Length": [ - "8873" + "11126" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"manifestId\": \"iotc-condition\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"Store Analytics – Condition Monitoring\",\r\n \"title\": \"In-store Analytics – Condition Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Digitally connect and monitor your store environment to reduce operating costs and create experiences that customers love.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-consumption\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Water Consumption application template\",\r\n \"title\": \"Water Consumption Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Enable remote tracking of water consumption to reduce field operations, detect leaks in time, while empowering cities to conserve water.\",\r\n \"industry\": \"Government\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-distribution\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Digital Distribution Center application template\",\r\n \"title\": \"Digital Distribution Center\",\r\n \"order\": 99,\r\n \"description\": \"Digitally manage warehouse conveyor belt system efficiency using object detection and tracking.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-inventory\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Smart Inventory Management application template\",\r\n \"title\": \"Smart Inventory Management\",\r\n \"order\": 99,\r\n \"description\": \"Enable accurate inventory tracking and ensure shelves are always stocked.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-logistics\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Connected Logistics application template\",\r\n \"title\": \"Connected Logistics\",\r\n \"order\": 99,\r\n \"description\": \"Track your shipment in real-time across air, water and land with location and condition monitoring.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-meter\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Smart Meter Analytics application template\",\r\n \"title\": \"Smart Meter Analytics\",\r\n \"order\": 99,\r\n \"description\": \"Connect utility meters to gain insights into billing, forecast consumption, and proactively detect outages.\",\r\n \"industry\": \"Energy\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-mfc\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Micro-fulfillment Center\",\r\n \"title\": \"Micro-fulfillment Center\",\r\n \"order\": 99,\r\n \"description\": \"Digitally connect, monitor and manage all aspects of a fully automated fulfillment center to reduce costs by eliminating downtime while increasing security and overall efficiency.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-paad\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Phone-as-a-device application template\",\r\n \"title\": \"Paad\",\r\n \"order\": 99,\r\n \"description\": \"Create application with [\\\"paad\\\"] capabilities.\",\r\n \"industry\": \"Utility\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-patient\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Continuous Patient Monitoring application template\",\r\n \"title\": \"Continuous Patient Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Connect and manage devices for in-patient and remote monitoring to improve patient outcomes, reduce re-admissions, and manage chronic diseases.\",\r\n \"industry\": \"Health\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-pnp-preview\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central PnP template (preview)\",\r\n \"title\": \"Custom application\",\r\n \"order\": 1,\r\n \"description\": \"Create an application with Azure IoT Plug and Play.\",\r\n \"industry\": \"\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-power\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Solar Power Monitoring application template\",\r\n \"title\": \"Solar Power Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Connect, monitor, and manage your solar panels and energy generation.\",\r\n \"industry\": \"Energy\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-quality\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Water Quality Monitoring application template\",\r\n \"title\": \"Water Quality Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Improve water quality and detect issues earlier by analyzing real-time measurements across your environment.\",\r\n \"industry\": \"Government\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-store\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"Store Analytics – Checkout\",\r\n \"title\": \"In-store Analytics – Checkout\",\r\n \"order\": 99,\r\n \"description\": \"Monitor and manage the checkout flow inside your store to improve efficiency and reduce wait times.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-video-analytics-om\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Video analytics - object and motion detection application template\",\r\n \"title\": \"Video analytics - object and motion detection\",\r\n \"order\": 99,\r\n \"description\": \"Use cameras as a sensor in intelligent video analytics solutions powered by Azure IoT Edge, AI, and Azure Media Services.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-waste\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Connected Waste Management application template\",\r\n \"title\": \"Connected Waste Management\",\r\n \"order\": 99,\r\n \"description\": \"Maximize efficiency in the collection of solid wastes by dispatching field operators at the right time along an optimized collection route.\",\r\n \"industry\": \"Government\",\r\n \"locations\": [\r\n {\r\n \"id\": \"unitedstates\",\r\n \"displayName\": \"United States\"\r\n },\r\n {\r\n \"id\": \"europe\",\r\n \"displayName\": \"Europe\"\r\n },\r\n {\r\n \"id\": \"asiapacific\",\r\n \"displayName\": \"Asia Pacific\"\r\n },\r\n {\r\n \"id\": \"australia\",\r\n \"displayName\": \"Australia\"\r\n },\r\n {\r\n \"id\": \"uk\",\r\n \"displayName\": \"United Kingdom\"\r\n },\r\n {\r\n \"id\": \"japan\",\r\n \"displayName\": \"Japan\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"manifestId\": \"iotc-condition\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"Store Analytics – Condition Monitoring\",\r\n \"title\": \"In-store Analytics – Condition Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Digitally connect and monitor your store environment to reduce operating costs and create experiences that customers love.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-consumption\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Water Consumption application template\",\r\n \"title\": \"Water Consumption Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Enable remote tracking of water consumption to reduce field operations, detect leaks in time, while empowering cities to conserve water.\",\r\n \"industry\": \"Government\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-distribution\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Digital Distribution Center application template\",\r\n \"title\": \"Digital Distribution Center\",\r\n \"order\": 99,\r\n \"description\": \"Digitally manage warehouse conveyor belt system efficiency using object detection and tracking.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-inventory\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Smart Inventory Management application template\",\r\n \"title\": \"Smart Inventory Management\",\r\n \"order\": 99,\r\n \"description\": \"Enable accurate inventory tracking and ensure shelves are always stocked.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-logistics\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Connected Logistics application template\",\r\n \"title\": \"Connected Logistics\",\r\n \"order\": 99,\r\n \"description\": \"Track your shipment in real-time across air, water and land with location and condition monitoring.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-meter\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Smart Meter Analytics application template\",\r\n \"title\": \"Smart Meter Analytics\",\r\n \"order\": 99,\r\n \"description\": \"Connect utility meters to gain insights into billing, forecast consumption, and proactively detect outages.\",\r\n \"industry\": \"Energy\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-mfc\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Micro-fulfillment Center\",\r\n \"title\": \"Micro-fulfillment Center\",\r\n \"order\": 99,\r\n \"description\": \"Digitally connect, monitor and manage all aspects of a fully automated fulfillment center to reduce costs by eliminating downtime while increasing security and overall efficiency.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-patient\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Continuous Patient Monitoring application template\",\r\n \"title\": \"Continuous Patient Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Connect and manage devices for in-patient and remote monitoring to improve patient outcomes, reduce re-admissions, and manage chronic diseases.\",\r\n \"industry\": \"Health\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-pnp-preview\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central PnP template (preview)\",\r\n \"title\": \"Custom application\",\r\n \"order\": 1,\r\n \"description\": \"Create an application with Azure IoT Plug and Play.\",\r\n \"industry\": \"\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-power\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Solar Power Monitoring application template\",\r\n \"title\": \"Solar Power Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Connect, monitor, and manage your solar panels and energy generation.\",\r\n \"industry\": \"Energy\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-quality\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Water Quality Monitoring application template\",\r\n \"title\": \"Water Quality Monitoring\",\r\n \"order\": 99,\r\n \"description\": \"Improve water quality and detect issues earlier by analyzing real-time measurements across your environment.\",\r\n \"industry\": \"Government\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-store\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"Store Analytics – Checkout\",\r\n \"title\": \"In-store Analytics – Checkout\",\r\n \"order\": 99,\r\n \"description\": \"Monitor and manage the checkout flow inside your store to improve efficiency and reduce wait times.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-video-analytics-om\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Video analytics - object and motion detection application template\",\r\n \"title\": \"Video analytics - object and motion detection\",\r\n \"order\": 99,\r\n \"description\": \"Use cameras as a sensor in intelligent video analytics solutions powered by Azure IoT Edge, AI, and Azure Media Services.\",\r\n \"industry\": \"Retail\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n },\r\n {\r\n \"manifestId\": \"iotc-waste\",\r\n \"manifestVersion\": \"1.0.0\",\r\n \"name\": \"IoT Central Connected Waste Management application template\",\r\n \"title\": \"Connected Waste Management\",\r\n \"order\": 99,\r\n \"description\": \"Maximize efficiency in the collection of solid wastes by dispatching field operators at the right time along an optimized collection route.\",\r\n \"industry\": \"Government\",\r\n \"locations\": [\r\n {\r\n \"id\": \"australiaeast\",\r\n \"displayName\": \"Australia East\"\r\n },\r\n {\r\n \"id\": \"centralus\",\r\n \"displayName\": \"Central US\"\r\n },\r\n {\r\n \"id\": \"eastus\",\r\n \"displayName\": \"East US\"\r\n },\r\n {\r\n \"id\": \"eastus2\",\r\n \"displayName\": \"East US 2\"\r\n },\r\n {\r\n \"id\": \"japaneast\",\r\n \"displayName\": \"Japan East\"\r\n },\r\n {\r\n \"id\": \"northeurope\",\r\n \"displayName\": \"North Europe\"\r\n },\r\n {\r\n \"id\": \"southeastasia\",\r\n \"displayName\": \"Southeast Asia\"\r\n },\r\n {\r\n \"id\": \"uksouth\",\r\n \"displayName\": \"UK South\"\r\n },\r\n {\r\n \"id\": \"westeurope\",\r\n \"displayName\": \"West Europe\"\r\n },\r\n {\r\n \"id\": \"westus\",\r\n \"displayName\": \"West US\"\r\n }\r\n ]\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "StatusCode": 200 } ], diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedSkuIsUsed.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedSkuIsUsed.json new file mode 100644 index 000000000000..2b4c917b4bd7 --- /dev/null +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedSkuIsUsed.json @@ -0,0 +1,159 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTcyMzM2N2RiYTZkYzQ1MTFhZDRlNTUzMGZhMGZiY2YxP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "50722496-9e91-4c88-9346-8883374e8afe" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "329968ca-8a71-48f4-abc6-03b6f0ee69c4" + ], + "x-ms-correlation-request-id": [ + "329968ca-8a71-48f4-abc6-03b6f0ee69c4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211028T192801Z:329968ca-8a71-48f4-abc6-03b6f0ee69c4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 28 Oct 2021 19:28:00 GMT" + ], + "Content-Length": [ + "265" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1\",\r\n \"name\": \"dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp723367dba6dc4511ad4e5530fa0fbcf1?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTcyMzM2N2RiYTZkYzQ1MTFhZDRlNTUzMGZhMGZiY2YxL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDcyMzM2N2RiYTZkYzQ1MTFhZDRlNTUzMGZhMGZiY2YxP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp723367dba6dc4511ad4e5530fa0fbcf1\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f560ca4c-4bf7-49f2-b1c7-e651c9938be8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.2.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "287" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "x-ms-request-id": [ + "23be157f-29c8-4ff8-a208-2941cba9345a" + ], + "x-iot-correlation": [ + "1aaovsvb.1.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-download-options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 7AE56BA65FBC43AEACE637ED13E93C0E Ref B: CO1EDGE1410 Ref C: 2021-10-28T19:28:04Z" + ], + "X-IoT-Version": [ + "102621.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus01" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b91cae09-ca33-401f-bf36-b3aeca774467" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211028T192815Z:b91cae09-ca33-401f-bf36-b3aeca774467" + ], + "Date": [ + "Thu, 28 Oct 2021 19:28:15 GMT" + ], + "Content-Length": [ + "102" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"400.200.006.026\",\r\n \"message\": \"The sku S1 is invalid, allowed skus are ST0, ST1, ST2\"\r\n }\r\n}", + "StatusCode": 400 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b" + } +} \ No newline at end of file diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateLifeCycle.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateLifeCycle.json index e76a219c06c9..a91fecba4fa5 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateLifeCycle.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateLifeCycle.json @@ -1,21 +1,21 @@ { "Entries": [ { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DefaultDotNetSdkIotCentralRG?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkc/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "04b7380f-94f4-4c3b-b4e1-4bab000c3005" + "fc5d0df3-4bf5-4253-aab8-96f21db1a50f" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ], "Content-Type": [ @@ -33,16 +33,16 @@ "no-cache" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1199" ], "x-ms-request-id": [ - "f86ff0df-bb5a-4550-9e8f-cba2710d2727" + "f6801ffc-e35a-4be8-94bc-85cd238b94d1" ], "x-ms-correlation-request-id": [ - "f86ff0df-bb5a-4550-9e8f-cba2710d2727" + "f6801ffc-e35a-4be8-94bc-85cd238b94d1" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050205Z:f86ff0df-bb5a-4550-9e8f-cba2710d2727" + "WESTUS2:20211103T165441Z:f6801ffc-e35a-4be8-94bc-85cd238b94d1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Thu, 04 Feb 2021 05:02:05 GMT" + "Wed, 03 Nov 2021 16:54:40 GMT" ], "Content-Length": [ - "209" + "265" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,32 +63,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG\",\r\n \"name\": \"DefaultDotNetSdkIotCentralRG\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600\",\r\n \"name\": \"dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5Jb1RDZW50cmFsL2lvdEFwcHMvZGVmYXVsdGRvdG5ldHNka2FwcD9hcGktdmVyc2lvbj0yMDE4LTA5LTAx", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDY5M2MxOTFjY2NjNzQ5ZDI4OWUzMDMyODQyNzQ5NmFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"defaultdotnetsdkapp\",\r\n \"subdomain\": \"defaultdotnetsdksubdomain\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "6910216d-123e-49c6-a88f-f8137cb694dd" + "9d4a64f8-4c2c-4d87-8e1d-0c37f9f9e07c" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "179" + "229" ] }, "ResponseHeaders": { @@ -96,74 +96,75 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "\"6b0196dc-0000-0100-0000-601b7fcf0000\"" + "\"0102c6e8-0000-0100-0000-6182bed50000\"" ], "x-ms-request-id": [ - "7b81447a-ecc7-4185-8520-57984e3a90a5" + "6038e2dd-0018-4969-9ce1-41b3676b49a2" ], "x-iot-correlation": [ - "6abfox69.0" - ], - "x-envoy-upstream-service-time": [ - "2185" + "9o88ux4y.1.0" ], "X-Content-Type-Options": [ "nosniff" ], - "X-Download-Options": [ + "x-download-options": [ "noopen" ], "X-Frame-Options": [ "deny" ], - "X-XSS-Protection": [ + "x-xss-protection": [ "1; mode=block" ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 9C2D710F33F6489492B79C3E66147A95 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:54:43Z" + ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ - "iotcprodcentralus01" + "iotcprodwestus02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-MSEdge-Ref": [ - "Ref A: D4D1376BB87742639E87E27688BAE9F4 Ref B: CYS01EDGE0222 Ref C: 2021-02-04T05:02:07Z" - ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" + "1199" ], "x-ms-correlation-request-id": [ - "d548a427-f243-4b8f-95ed-84630cc2cc9a" + "0edf15b4-8f09-4cef-8536-730b296efa73" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050209Z:d548a427-f243-4b8f-95ed-84630cc2cc9a" + "WESTUS2:20211103T165447Z:0edf15b4-8f09-4cef-8536-730b296efa73" ], "Date": [ - "Thu, 04 Feb 2021 05:02:09 GMT" + "Wed, 03 Nov 2021 16:54:47 GMT" ], "Content-Length": [ - "718" + "636" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp\",\r\n \"name\": \"defaultdotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"d92d1958-b4ae-4b81-be77-0433e451aafb\",\r\n \"state\": \"created\",\r\n \"displayName\": \"defaultdotnetsdkapp\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"defaultdotnetsdksubdomain\",\r\n \"createdDate\": \"2021-02-04T05:02:07.943Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"etag\": \"\\\"6b0196dc-0000-0100-0000-601b7fcf0000\\\"\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5Jb1RDZW50cmFsL2lvdEFwcHMvZGVmYXVsdGRvdG5ldHNka2FwcD9hcGktdmVyc2lvbj0yMDE4LTA5LTAx", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDY5M2MxOTFjY2NjNzQ5ZDI4OWUzMDMyODQyNzQ5NmFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ] }, "ResponseHeaders": { @@ -171,7 +172,7 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"6b0196dc-0000-0100-0000-601b7fcf0000\"" + "W/\"0102c6e8-0000-0100-0000-6182bed50000\"" ], "Vary": [ "Accept-Encoding" @@ -180,13 +181,10 @@ "11999" ], "x-ms-request-id": [ - "b1e1649f-17f9-4deb-81a1-2912ced287c8" + "28934680-b848-4a67-9739-150f38625dc6" ], "x-iot-correlation": [ - "b0i9btw6.0" - ], - "x-envoy-upstream-service-time": [ - "68" + "cl7d0vj4.0" ], "X-Content-Type-Options": [ "nosniff" @@ -201,76 +199,73 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ - "iotcprodcentralus01" + "iotcprodwestus02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: F69DBC35CD224293BAF424B25ED873CD Ref B: CYS01EDGE0222 Ref C: 2021-02-04T05:02:39Z" + "Ref A: B8539A402825487C933578977015BE59 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:18Z" ], "x-ms-correlation-request-id": [ - "773d158d-58eb-4f29-a2c1-757b39c45c3c" + "8c6700f6-3360-44a3-8246-c82a8483aaed" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050239Z:773d158d-58eb-4f29-a2c1-757b39c45c3c" + "WESTUS2:20211103T165518Z:8c6700f6-3360-44a3-8246-c82a8483aaed" ], "Date": [ - "Thu, 04 Feb 2021 05:02:39 GMT" + "Wed, 03 Nov 2021 16:55:17 GMT" ], "Content-Length": [ - "718" + "636" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp\",\r\n \"name\": \"defaultdotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"d92d1958-b4ae-4b81-be77-0433e451aafb\",\r\n \"state\": \"created\",\r\n \"displayName\": \"defaultdotnetsdkapp\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"defaultdotnetsdksubdomain\",\r\n \"createdDate\": \"2021-02-04T05:02:07.943Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"etag\": \"\\\"6b0196dc-0000-0100-0000-601b7fcf0000\\\"\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAxOC0wOS0wMQ==", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"defaultdotnetsdkapp\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestBody": "{\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "4c34e9cf-04a5-48d1-b6dc-a27c8edc84b4" + "59d694c6-33e3-4e0a-8a3a-a0f1c1aaa14d" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "59" + "84" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"6b-Obxvouplxe0P3Of7PGeaPXdqcas\"" - ], "x-ms-request-id": [ - "d7966828-54d4-4d68-877b-8955caca910b" + "cfa4e3c4-280d-4318-90a9-8c6cb3b5beb9" ], "x-iot-correlation": [ - "300vol8z.0" - ], - "x-envoy-upstream-service-time": [ - "40" + "663rqjo3.0" ], "X-Content-Type-Options": [ "nosniff" @@ -285,28 +280,31 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ - "iotcprodcentralus01" + "iotcprodwestus02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: 7C57E4A7C32C4B8B98B2946F4AE57686 Ref B: CYS01EDGE0222 Ref C: 2021-02-04T05:02:39Z" + "Ref A: 7B8D12CADF3D48CD896BF6F64ED6577F Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:18Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "95266335-f93a-44d0-96b8-41dd6fff82a8" + "f9b7243c-eaf8-4f1b-8db5-27139b9dd252" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050240Z:95266335-f93a-44d0-96b8-41dd6fff82a8" + "WESTUS2:20211103T165518Z:f9b7243c-eaf8-4f1b-8db5-27139b9dd252" ], "Date": [ - "Thu, 04 Feb 2021 05:02:40 GMT" + "Wed, 03 Nov 2021 16:55:18 GMT" ], "Content-Length": [ "107" @@ -319,45 +317,39 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDE4LTA5LTAx", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"defaultdotnetsdksubdomain\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "e217f7ff-bf0d-4bfa-9f5f-7802886e0994" + "30d75bef-636d-44f3-b611-f8b5ff39dcd9" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "65" + "90" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"67-MxuXaGtJH++NM0vnQQJ9VrpyYOs\"" - ], "x-ms-request-id": [ - "fc8835c0-ff7a-4751-9305-49ee2de6eb89" + "ddb30d78-0f57-4eeb-9690-3dfbd07655be" ], "x-iot-correlation": [ - "c6lpyei8.0" - ], - "x-envoy-upstream-service-time": [ - "44" + "2qjbrj1y.0" ], "X-Content-Type-Options": [ "nosniff" @@ -372,28 +364,31 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ - "iotcprodcentralus01" + "iotcprodwestus02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: 88D78C846D4140838E2ED42BDA7ECC74 Ref B: CYS01EDGE0222 Ref C: 2021-02-04T05:02:40Z" + "Ref A: B35486E117EE4A55B1CC902D396D94D5 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:18Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "20338aa1-dc7f-448b-bbff-2d27e2123632" + "d49503bc-f977-4a1e-8e87-801f05b5a61b" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050240Z:20338aa1-dc7f-448b-bbff-2d27e2123632" + "WESTUS2:20211103T165518Z:d49503bc-f977-4a1e-8e87-801f05b5a61b" ], "Date": [ - "Thu, 04 Feb 2021 05:02:40 GMT" + "Wed, 03 Nov 2021 16:55:18 GMT" ], "Content-Length": [ "103" @@ -406,28 +401,28 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkcvcHJvdmlkZXJzL01pY3Jvc29mdC5Jb1RDZW50cmFsL2lvdEFwcHMvZGVmYXVsdGRvdG5ldHNka2FwcD9hcGktdmVyc2lvbj0yMDE4LTA5LTAx", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDY5M2MxOTFjY2NjNzQ5ZDI4OWUzMDMyODQyNzQ5NmFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"defaultdotnetsdkapp\",\r\n \"subdomain\": \"defaultdotnetsdksubdomain\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "229fd9e0-59ef-4d38-8a9c-eb2054ee9105" + "81937e11-246f-4041-8471-7e2274a45d7b" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "181" + "231" ] }, "ResponseHeaders": { @@ -435,92 +430,90 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"6b0136de-0000-0100-0000-601b7ff00000\"" + "W/\"01021cee-0000-0100-0000-6182bef70000\"" ], "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-writes": [ - "1197" + "1198" ], "x-ms-request-id": [ - "48f73a11-eafb-4e8b-96d9-c55d6a55c552" + "0bab4e19-543f-4b2c-89e6-474db3f27db3" ], "x-iot-correlation": [ - "41lo86tp.0" - ], - "x-envoy-upstream-service-time": [ - "459" + "2at4u1bj.1.0" ], "X-Content-Type-Options": [ "nosniff" ], - "X-Download-Options": [ + "x-download-options": [ "noopen" ], "X-Frame-Options": [ "deny" ], - "X-XSS-Protection": [ + "x-xss-protection": [ "1; mode=block" ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: C578E5126DC844229A5AA16642E450F6 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:19Z" + ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ - "iotcprodcentralus01" + "iotcprodwestus02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-MSEdge-Ref": [ - "Ref A: 02072358A95941C8B6A06AECF53D63E9 Ref B: CYS01EDGE0222 Ref C: 2021-02-04T05:02:40Z" - ], "x-ms-correlation-request-id": [ - "94008e7d-2c62-4704-91ca-85b644f90358" + "398c612e-8df2-4713-8fb1-9dc7a0c4bb9f" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050241Z:94008e7d-2c62-4704-91ca-85b644f90358" + "WESTUS2:20211103T165521Z:398c612e-8df2-4713-8fb1-9dc7a0c4bb9f" ], "Date": [ - "Thu, 04 Feb 2021 05:02:41 GMT" + "Wed, 03 Nov 2021 16:55:20 GMT" ], "Content-Length": [ - "790" + "667" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp\",\r\n \"name\": \"defaultdotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"d92d1958-b4ae-4b81-be77-0433e451aafb\",\r\n \"state\": \"created\",\r\n \"displayName\": \"defaultdotnetsdkapp\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"defaultdotnetsdksubdomain\",\r\n \"createdDate\": \"2021-02-04T05:02:07.943Z\",\r\n \"lastUpdated\": \"2021-02-04T05:02:40.908Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"etag\": \"\\\"6b0136de-0000-0100-0000-601b7ff00000\\\"\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdkiotcentralrg/providers/Microsoft.IoTCentral/iotApps?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RlZmF1bHRkb3RuZXRzZGtpb3RjZW50cmFscmcvcHJvdmlkZXJzL01pY3Jvc29mdC5Jb1RDZW50cmFsL2lvdEFwcHM/YXBpLXZlcnNpb249MjAxOC0wOS0wMQ==", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6049c27b-5119-4bdf-9d59-7efd471b0a5f" + "16c37555-00cb-4032-b930-9fdf25512520" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"322-XzwpMcizkvfZjU8Mwn8j9qBfXw8\"" - ], "Vary": [ "Accept-Encoding" ], @@ -528,13 +521,10 @@ "11998" ], "x-ms-request-id": [ - "1a63bc3a-fc80-46fe-aefb-28e2403b05d2" + "081a57b8-9b1f-4eb8-9630-5cee0e171a76" ], "x-iot-correlation": [ - "3ngw0y18.0" - ], - "x-envoy-upstream-service-time": [ - "40" + "ah7ozg8l.0" ], "X-Content-Type-Options": [ "nosniff" @@ -549,62 +539,62 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ - "iotcprodcentralus01" + "iotcprodwestus02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: 2054C0AA80E049939E39CF982C9AAC3B Ref B: CYS01EDGE0222 Ref C: 2021-02-04T05:02:41Z" + "Ref A: F2C800E187234CD187B6AAA2F6AF6FD4 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:21Z" ], "x-ms-correlation-request-id": [ - "8c485cee-ca9d-48de-955a-da6c18d13316" + "03c0df52-afe4-42c1-b330-10975e95b99e" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050241Z:8c485cee-ca9d-48de-955a-da6c18d13316" + "WESTUS2:20211103T165521Z:03c0df52-afe4-42c1-b330-10975e95b99e" ], "Date": [ - "Thu, 04 Feb 2021 05:02:41 GMT" + "Wed, 03 Nov 2021 16:55:20 GMT" ], "Content-Length": [ - "802" + "679" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp\",\r\n \"name\": \"defaultdotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"d92d1958-b4ae-4b81-be77-0433e451aafb\",\r\n \"state\": \"created\",\r\n \"displayName\": \"defaultdotnetsdkapp\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"defaultdotnetsdksubdomain\",\r\n \"createdDate\": \"2021-02-04T05:02:07.943Z\",\r\n \"lastUpdated\": \"2021-02-04T05:02:40.908Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"etag\": \"\\\"6b0136de-0000-0100-0000-601b7ff00000\\\"\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/iotApps?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMTgtMDktMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "6ccc4a00-ab90-4de9-b99f-fee037dde3df" + "cfe74e65-f4e2-446b-abe6-41b15ed955c3" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"e1d-ygP2sYoCH3OfrBcndfEuJpS65r4\"" - ], "Vary": [ "Accept-Encoding" ], @@ -612,13 +602,10 @@ "11997" ], "x-ms-request-id": [ - "6fc3c7e9-630e-47d8-9884-b039e8932610" + "6db65522-62bb-450d-8f6c-3963517f6346" ], "x-iot-correlation": [ - "9z3s25lg.0" - ], - "x-envoy-upstream-service-time": [ - "40" + "83pabsip.0" ], "X-Content-Type-Options": [ "nosniff" @@ -633,34 +620,37 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ - "iotcprodcentralus01" + "iotcprodwestus02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: 00569BF37A2C441FBD2CCFEE4EDFFF7D Ref B: CYS01EDGE0222 Ref C: 2021-02-04T05:02:41Z" + "Ref A: 9922B7CC610C46A1890F88A057A8438C Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:21Z" ], "x-ms-correlation-request-id": [ - "a1d45930-a69b-41dc-9ccc-c8a7c235fc41" + "32e2bee5-9d05-467a-93f4-d8f169b0534e" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050241Z:a1d45930-a69b-41dc-9ccc-c8a7c235fc41" + "WESTUS2:20211103T165521Z:32e2bee5-9d05-467a-93f4-d8f169b0534e" ], "Date": [ - "Thu, 04 Feb 2021 05:02:41 GMT" + "Wed, 03 Nov 2021 16:55:20 GMT" ], "Content-Length": [ - "3613" + "4633" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/poanchen\",\r\n \"name\": \"poanchen\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"unitedstates\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4414372a-16a7-4dec-a722-9457e77219d6\",\r\n \"state\": \"created\",\r\n \"displayName\": \"poanchen\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"poanchen\",\r\n \"createdDate\": \"2020-06-17T21:41:36.064Z\",\r\n \"geography\": \"unitedstates\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST0\"\r\n },\r\n \"etag\": \"\\\"0100607b-0000-0100-0000-60065f2b0000\\\"\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/baron-and-alice-home\",\r\n \"name\": \"baron-and-alice-home\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"unitedstates\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"8cb82338-9e9a-4a91-98c9-cd4991692025\",\r\n \"state\": \"created\",\r\n \"displayName\": \"Baron and Alice home\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"baron-and-alice-home\",\r\n \"createdDate\": \"2020-04-29T02:41:05.861Z\",\r\n \"geography\": \"unitedstates\",\r\n \"thumbnailUrl\": \"3b386a96-c81d-4775-9b12-4410e7159408\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"etag\": \"\\\"14045d30-0000-0100-0000-5fce9d3a0000\\\"\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testmetrics\",\r\n \"name\": \"testmetrics\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"applicationId\": \"f273a175-68cc-4bd8-b43b-2f7516998154\",\r\n \"displayName\": \"testmetrics\",\r\n \"subdomain\": \"testmetrics\",\r\n \"createdDate\": \"2020-10-24T00:10:07.592Z\",\r\n \"state\": \"created\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"quota\": {},\r\n \"capabilities\": {\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true,\r\n \"non-wrapped-properties\": true\r\n },\r\n \"thumbnailUrl\": \"589e2e38-27de-4421-a913-aea774a558ed\",\r\n \"template\": \"iotc-video-analytics-om@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"etag\": \"\\\"89006e8a-0000-0100-0000-5fd12b6a0000\\\"\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testshoebox\",\r\n \"name\": \"testshoebox\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"unitedstates\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"0949c74c-ce4b-48ba-a3c4-611d4ba06832\",\r\n \"state\": \"created\",\r\n \"displayName\": \"testshoebox\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"testshoebox\",\r\n \"createdDate\": \"2020-05-29T17:41:43.785Z\",\r\n \"geography\": \"unitedstates\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"etag\": \"\\\"0500b546-0000-0100-0000-5f08b91a0000\\\"\"\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp\",\r\n \"name\": \"defaultdotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"d92d1958-b4ae-4b81-be77-0433e451aafb\",\r\n \"state\": \"created\",\r\n \"displayName\": \"defaultdotnetsdkapp\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"defaultdotnetsdksubdomain\",\r\n \"createdDate\": \"2021-02-04T05:02:07.943Z\",\r\n \"lastUpdated\": \"2021-02-04T05:02:40.908Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"etag\": \"\\\"6b0136de-0000-0100-0000-601b7ff00000\\\"\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/poanchen\",\r\n \"name\": \"poanchen\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4414372a-16a7-4dec-a722-9457e77219d6\",\r\n \"displayName\": \"poanchen\",\r\n \"subdomain\": \"poanchen\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testmetrics\",\r\n \"name\": \"testmetrics\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"applicationId\": \"f273a175-68cc-4bd8-b43b-2f7516998154\",\r\n \"displayName\": \"testmetrics\",\r\n \"subdomain\": \"testmetrics\",\r\n \"template\": \"iotc-video-analytics-om@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdatef2e8ea4c5ef8463c94f04ac3add13964/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"name\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"c2943ade-d5e1-4dce-bb91-58f69131a526\",\r\n \"displayName\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatec9919d490d7e47a78f3b2b2fdaaeed04\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"85491086-8572-4727-911c-5c22c51ddf92\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdate06c9152c130143169154985550c6ffaa/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"name\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"bd119cdf-2b95-4ee6-8cc9-208793c4898d\",\r\n \"displayName\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatecd930f8709c94a8e92e0c4061a8c336d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/baron-and-alice-home\",\r\n \"name\": \"baron-and-alice-home\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"8cb82338-9e9a-4a91-98c9-cd4991692025\",\r\n \"displayName\": \"Baron and Alice home\",\r\n \"subdomain\": \"baron-and-alice-home\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testshoebox\",\r\n \"name\": \"testshoebox\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"0949c74c-ce4b-48ba-a3c4-611d4ba06832\",\r\n \"displayName\": \"testshoebox\",\r\n \"subdomain\": \"testshoebox\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0b27f3094db74ca38645995c0e74ccf1/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"name\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"9871d361-f206-4772-82d4-96e2d773eb91\",\r\n \"displayName\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"subdomain\": \"dotnetsdksubdomain48c027b867b94e1db5676549734f4a96\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"bde7f482-d677-45fe-ae67-0a50cce963d7\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json new file mode 100644 index 000000000000..5a8ba4c1d69f --- /dev/null +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json @@ -0,0 +1,661 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "daba75c1-3daa-48ed-bc3c-99c4bf8e1f82" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "d2c2ebdb-5a29-4c06-8184-8d90212bc69b" + ], + "x-ms-correlation-request-id": [ + "d2c2ebdb-5a29-4c06-8184-8d90212bc69b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165334Z:d2c2ebdb-5a29-4c06-8184-8d90212bc69b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 03 Nov 2021 16:53:34 GMT" + ], + "Content-Length": [ + "265" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a\",\r\n \"name\": \"dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDA3Y2ZlOWE4OThiNjRkMjU5MDZlZjQxZjY2YmI1ZjIwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2ed74a67-8348-4faf-821d-da0bbe5ce90b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "282" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "ETag": [ + "\"f6046f4e-0000-0100-0000-6182be960000\"" + ], + "x-ms-request-id": [ + "eea132a1-239e-49f4-a207-e8617376898b" + ], + "x-iot-correlation": [ + "9oo7lqv6.1.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-download-options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: D8F7EEDCCD0C4689B6EB926442025168 Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:53:37Z" + ], + "X-IoT-Version": [ + "102821.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "2c2d5811-7237-448a-93b0-097445d0f29f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165343Z:2c2d5811-7237-448a-93b0-097445d0f29f" + ], + "Date": [ + "Wed, 03 Nov 2021 16:53:42 GMT" + ], + "Content-Length": [ + "749" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDA3Y2ZlOWE4OThiNjRkMjU5MDZlZjQxZjY2YmI1ZjIwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "ETag": [ + "W/\"f6046f4e-0000-0100-0000-6182be960000\"" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "f85467e9-391c-47a6-96ab-c651ff2d8c6b" + ], + "x-iot-correlation": [ + "y0unyb8.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "102821.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 9CD4CAC3D8714AB1BA4DAFA9F9C126BF Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:13Z" + ], + "x-ms-correlation-request-id": [ + "7fe6cef8-6a08-475d-909e-4db380ec1152" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165414Z:7fe6cef8-6a08-475d-909e-4db380ec1152" + ], + "Date": [ + "Wed, 03 Nov 2021 16:54:13 GMT" + ], + "Content-Length": [ + "749" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8aa7d746-23e6-412e-b721-bd86ba53f88a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "84" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "x-ms-request-id": [ + "ebd24535-4f37-4571-b503-2ce28771f221" + ], + "x-iot-correlation": [ + "3dauwv7i.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "102821.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 5C245C706A9146119B93474EC7187339 Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:14Z" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "4fb24b28-8b09-4814-b183-7c3f1a9d0650" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165414Z:4fb24b28-8b09-4814-b183-7c3f1a9d0650" + ], + "Date": [ + "Wed, 03 Nov 2021 16:54:13 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"The resource name is in use\",\r\n \"message\": \"Try other variations of the name\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f9ce3fc0-74fb-42cf-a623-f3447c7a8517" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "90" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "x-ms-request-id": [ + "3ea5bfc0-b04b-498c-b692-6cf967670f1a" + ], + "x-iot-correlation": [ + "cbqa4u8j.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "102821.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 471C34AF12144B7E8017A61D53FFF1AD Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:14Z" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "7b5708d1-dc0a-4920-9421-c7b979ef6c1c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165414Z:7b5708d1-dc0a-4920-9421-c7b979ef6c1c" + ], + "Date": [ + "Wed, 03 Nov 2021 16:54:14 GMT" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"The subdomain is in use\",\r\n \"message\": \"Try other variations of the name\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDA3Y2ZlOWE4OThiNjRkMjU5MDZlZjQxZjY2YmI1ZjIwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "968febd0-1633-4ce9-b87e-b839910b9b36" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "231" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "ETag": [ + "W/\"f6044456-0000-0100-0000-6182beb80000\"" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "e453ba10-4ff6-4d30-a62e-e3f8946f9d36" + ], + "x-iot-correlation": [ + "bibppur1.1.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-download-options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 909D9484C9DF483E9604DC8C52C737CE Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:14Z" + ], + "X-IoT-Version": [ + "102821.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "94c7aa6d-e6cd-45a4-90aa-33fbacc89323" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165417Z:94c7aa6d-e6cd-45a4-90aa-33fbacc89323" + ], + "Date": [ + "Wed, 03 Nov 2021 16:54:16 GMT" + ], + "Content-Length": [ + "780" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cdc732d7-a926-4873-b7f2-125f746b2cdd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "62ef8a0c-d02f-4532-9423-25902d920376" + ], + "x-iot-correlation": [ + "4xxq892u.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "102821.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 6BC8E157FF104922ADEA00E8C8B92B96 Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:17Z" + ], + "x-ms-correlation-request-id": [ + "9ee19baf-c65c-497b-8c30-03e95ef2f22a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165417Z:9ee19baf-c65c-497b-8c30-03e95ef2f22a" + ], + "Date": [ + "Wed, 03 Nov 2021 16:54:17 GMT" + ], + "Content-Length": [ + "792" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "93d03321-86fb-4782-a4a9-97e4ed0c32a8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "e6b14163-4a23-4b41-bd92-dcd5a0f95477" + ], + "x-iot-correlation": [ + "324w6lke.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "102821.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 2C8E2F97353841D5883BF8AF6D24729B Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:17Z" + ], + "x-ms-correlation-request-id": [ + "0e6f9c28-381e-4aa5-8760-230d47664100" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211103T165418Z:0e6f9c28-381e-4aa5-8760-230d47664100" + ], + "Date": [ + "Wed, 03 Nov 2021 16:54:18 GMT" + ], + "Content-Length": [ + "4746" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testmetrics\",\r\n \"name\": \"testmetrics\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"applicationId\": \"f273a175-68cc-4bd8-b43b-2f7516998154\",\r\n \"displayName\": \"testmetrics\",\r\n \"subdomain\": \"testmetrics\",\r\n \"template\": \"iotc-video-analytics-om@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testshoebox\",\r\n \"name\": \"testshoebox\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"0949c74c-ce4b-48ba-a3c4-611d4ba06832\",\r\n \"displayName\": \"testshoebox\",\r\n \"subdomain\": \"testshoebox\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/poanchen\",\r\n \"name\": \"poanchen\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4414372a-16a7-4dec-a722-9457e77219d6\",\r\n \"displayName\": \"poanchen\",\r\n \"subdomain\": \"poanchen\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdate06c9152c130143169154985550c6ffaa/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"name\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"bd119cdf-2b95-4ee6-8cc9-208793c4898d\",\r\n \"displayName\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatecd930f8709c94a8e92e0c4061a8c336d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdatef2e8ea4c5ef8463c94f04ac3add13964/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"name\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"c2943ade-d5e1-4dce-bb91-58f69131a526\",\r\n \"displayName\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatec9919d490d7e47a78f3b2b2fdaaeed04\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"85491086-8572-4727-911c-5c22c51ddf92\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/baron-and-alice-home\",\r\n \"name\": \"baron-and-alice-home\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"8cb82338-9e9a-4a91-98c9-cd4991692025\",\r\n \"displayName\": \"Baron and Alice home\",\r\n \"subdomain\": \"baron-and-alice-home\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0b27f3094db74ca38645995c0e74ccf1/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"name\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"9871d361-f206-4772-82d4-96e2d773eb91\",\r\n \"displayName\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"subdomain\": \"dotnetsdksubdomain48c027b867b94e1db5676549734f4a96\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"bde7f482-d677-45fe-ae67-0a50cce963d7\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b" + } +} \ No newline at end of file diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralOperationsApi.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralOperationsApi.json index b3b6228debb0..2e9fc158d7dc 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralOperationsApi.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralOperationsApi.json @@ -1,31 +1,28 @@ { "Entries": [ { - "RequestUri": "/providers/Microsoft.IoTCentral/operations?api-version=2018-09-01", - "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9vcGVyYXRpb25zP2FwaS12ZXJzaW9uPTIwMTgtMDktMDE=", + "RequestUri": "/providers/Microsoft.IoTCentral/operations?api-version=2021-06-01", + "EncodedRequestUri": "L3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9vcGVyYXRpb25zP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "53491eed-4b58-44fc-a0f2-9e74484e7dc0" + "ca050377-3dea-4cae-ac5b-77f7913953a4" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"22b8-KcaRs29KlT4WtsBu8cudLZHmwLM\"" - ], "Vary": [ "Accept-Encoding" ], @@ -33,13 +30,10 @@ "11999" ], "x-ms-request-id": [ - "97667743-8f43-4790-bef3-0a2b198d207b" + "e1784829-5aad-400e-996c-e9f8833d6a33" ], "x-iot-correlation": [ - "48wwmnzk.0" - ], - "x-envoy-upstream-service-time": [ - "9" + "9vhquh3k.0" ], "X-Content-Type-Options": [ "nosniff" @@ -54,34 +48,37 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ - "iotcprodcentralus01" + "iotcprodwestus02" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: 4A0804537A1E4869A696C0992134B74D Ref B: CYS01EDGE0215 Ref C: 2021-02-04T05:02:03Z" + "Ref A: 4B2E197C27F8455B851A222CA2FFE6B8 Ref B: CO1EDGE1219 Ref C: 2021-11-03T16:54:38Z" ], "x-ms-correlation-request-id": [ - "01cb43a9-0f95-453d-bc78-2b328b152529" + "1a0adafb-8a9b-4f5a-a0b8-4cd088c7350d" ], "x-ms-routing-request-id": [ - "WESTCENTRALUS:20210204T050203Z:01cb43a9-0f95-453d-bc78-2b328b152529" + "WESTUS2:20211103T165438Z:1a0adafb-8a9b-4f5a-a0b8-4cd088c7350d" ], "Date": [ - "Thu, 04 Feb 2021 05:02:03 GMT" + "Wed, 03 Nov 2021 16:54:38 GMT" ], "Content-Length": [ - "8888" + "12804" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/read\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Get IoT Central Application\",\r\n \"description\": \"Gets a single IoT Central Application\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/write\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Create or Update IoT Central Application\",\r\n \"description\": \"Creates or Updates an IoT Central Applications\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/delete\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Delete IoT Central Application\",\r\n \"description\": \"Deletes an IoT Central Applications\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/checkNameAvailability/action\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"\",\r\n \"operation\": \"Check resource name availability\",\r\n \"description\": \"Checks if an IoT Central Application name is available\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/checkSubdomainAvailability/action\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"\",\r\n \"operation\": \"Check resource subdomain availability\",\r\n \"description\": \"Checks if an IoT Central Application subdomain is available\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/operations/read\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"\",\r\n \"operation\": \"Get all the available operations\",\r\n \"description\": \"Gets all the available operations on IoT Central Applications\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/appTemplates/action\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"Azure IoT Central Resource Provider\",\r\n \"operation\": \"Get all available application templates\",\r\n \"description\": \"Gets all the available application templates on Azure IoT Central\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/register/action\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"Azure IoT Central Resource Provider\",\r\n \"operation\": \"Register Azure IoT Central resource provider\",\r\n \"description\": \"Register the subscription for Azure IoT Central resource provider\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/providers/Microsoft.Insights/metricDefinitions/read\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Get all available Metrics definitions\",\r\n \"description\": \"Gets all the available Metrics definitions on Azure IoT Central\"\r\n },\r\n \"origin\": \"system\",\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"metricSpecifications\": [\r\n {\r\n \"name\": \"connectedDeviceCount\",\r\n \"displayName\": \"Total Connected Devices\",\r\n \"displayDescription\": \"Number of devices connected to IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"lockAggregationType\": \"Total\"\r\n },\r\n {\r\n \"name\": \"c2d.property.read.success\",\r\n \"displayName\": \"Successful Device Property Reads from IoT Central\",\r\n \"displayDescription\": \"The count of all successful property reads initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ]\r\n },\r\n {\r\n \"name\": \"c2d.property.read.failure\",\r\n \"displayName\": \"Failed Device Property Reads from IoT Central\",\r\n \"displayDescription\": \"The count of all failed property reads initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ]\r\n },\r\n {\r\n \"name\": \"d2c.property.read.success\",\r\n \"displayName\": \"Successful Device Property Reads from Devices\",\r\n \"displayDescription\": \"The count of all successful property reads initiated from devices\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ]\r\n },\r\n {\r\n \"name\": \"d2c.property.read.failure\",\r\n \"displayName\": \"Failed Device Property Reads from Devices\",\r\n \"displayDescription\": \"The count of all failed property reads initiated from devices\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ]\r\n },\r\n {\r\n \"name\": \"c2d.property.update.success\",\r\n \"displayName\": \"Successful Device Property Updates from IoT Central\",\r\n \"displayDescription\": \"The count of all successful property updates initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ]\r\n },\r\n {\r\n \"name\": \"c2d.property.update.failure\",\r\n \"displayName\": \"Failed Device Property Updates from IoT Central\",\r\n \"displayDescription\": \"The count of all failed property updates initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ]\r\n },\r\n {\r\n \"name\": \"d2c.property.update.success\",\r\n \"displayName\": \"Successful Device Property Updates from Devices\",\r\n \"displayDescription\": \"The count of all successful property updates initiated from devices\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ]\r\n },\r\n {\r\n \"name\": \"d2c.property.update.failure\",\r\n \"displayName\": \"Failed Device Property Updates from Devices\",\r\n \"displayDescription\": \"The count of all failed property updates initiated from devices\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ]\r\n },\r\n {\r\n \"name\": \"dataExport.messages.received\",\r\n \"displayName\": \"Data Export Messages Received\",\r\n \"displayDescription\": \"Number of messages incoming to data export, before filtering and enrichment processing\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"dataExport.messages.filtered\",\r\n \"displayName\": \"Data Export Messages Filtered\",\r\n \"displayDescription\": \"Number of messages that have passed through filters in data export\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"dataExport.messages.written\",\r\n \"displayName\": \"Data Export Messages Written\",\r\n \"displayDescription\": \"Number of messages written to a destination\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"dataExport.error\",\r\n \"displayName\": \"Data Export Errors\",\r\n \"displayDescription\": \"Number of errors encountered for data export\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/providers/Microsoft.Insights/diagnosticSettings/read\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Read diagnostic setting\",\r\n \"description\": \"Gets the diagnostic setting for the resource\"\r\n },\r\n \"origin\": \"system\"\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/providers/Microsoft.Insights/diagnosticSettings/write\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Write diagnostic setting\",\r\n \"description\": \"Creates or updates the diagnostic setting for the resource\"\r\n },\r\n \"origin\": \"system\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/read\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Get/List IoTApp resource(s)\",\r\n \"description\": \"Read IoTApp resources\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/write\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Create/Update/Patch IoTApp resources\",\r\n \"description\": \"Create or update a IoTApp resource\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/delete\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Delete IoTApp resource\",\r\n \"description\": \"Delete IoTApp resource\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/checkNameAvailability/action\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"\",\r\n \"operation\": \"Check IoTApp resource name availability\",\r\n \"description\": \"Checks if a IoTApp resource name is available\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/checkSubdomainAvailability/action\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"\",\r\n \"operation\": \"Check IoTApp resource subdomain availability\",\r\n \"description\": \"Check if a IoTApp resource subdomain is available\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/operations/read\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"\",\r\n \"operation\": \"Get/List operations\",\r\n \"description\": \"Get/List all the available operations for IoT Central\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/appTemplates/action\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"Azure IoT Central resource provider\",\r\n \"operation\": \"List app templates\",\r\n \"description\": \"Lists application templates for IoTApps resources.\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/register/action\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"Azure IoT Central resource provider\",\r\n \"operation\": \"Register Microsoft.IoTCentral resource provider\",\r\n \"description\": \"Register the subscription for the IoTCentral resource provider\"\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/providers/Microsoft.Insights/metricDefinitions/read\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Get/List metric definitions\",\r\n \"description\": \"Read all the available metric definitions for IoT Central\"\r\n },\r\n \"origin\": \"system\",\r\n \"properties\": {\r\n \"serviceSpecification\": {\r\n \"metricSpecifications\": [\r\n {\r\n \"name\": \"connectedDeviceCount\",\r\n \"displayName\": \"Total Connected Devices\",\r\n \"displayDescription\": \"Number of devices connected to IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": true,\r\n \"lockAggregationType\": \"Total\"\r\n },\r\n {\r\n \"name\": \"c2d.property.read.success\",\r\n \"displayName\": \"Successful Device Property Reads from IoT Central\",\r\n \"displayDescription\": \"The count of all successful property reads initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"c2d.property.read.failure\",\r\n \"displayName\": \"Failed Device Property Reads from IoT Central\",\r\n \"displayDescription\": \"The count of all failed property reads initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"d2c.property.read.success\",\r\n \"displayName\": \"Successful Device Property Reads from Devices\",\r\n \"displayDescription\": \"The count of all successful property reads initiated from devices\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"d2c.property.read.failure\",\r\n \"displayName\": \"Failed Device Property Reads from Devices\",\r\n \"displayDescription\": \"The count of all failed property reads initiated from devices\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"c2d.property.update.success\",\r\n \"displayName\": \"Successful Device Property Updates from IoT Central\",\r\n \"displayDescription\": \"The count of all successful property updates initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"c2d.property.update.failure\",\r\n \"displayName\": \"Failed Device Property Updates from IoT Central\",\r\n \"displayDescription\": \"The count of all failed property updates initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"d2c.property.update.success\",\r\n \"displayName\": \"Successful Device Property Updates from Devices\",\r\n \"displayDescription\": \"The count of all successful property updates initiated from devices\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"d2c.property.update.failure\",\r\n \"displayName\": \"Failed Device Property Updates from Devices\",\r\n \"displayDescription\": \"The count of all failed property updates initiated from devices\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"provisionedDeviceCount\",\r\n \"displayName\": \"Total Provisioned Devices\",\r\n \"displayDescription\": \"Number of devices provisioned in IoT Central application\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Average\",\r\n \"supportedAggregationTypes\": [\r\n \"Average\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": true,\r\n \"lockAggregationType\": \"Total\"\r\n },\r\n {\r\n \"name\": \"deviceDataUsage\",\r\n \"displayName\": \"Total Device Data Usage\",\r\n \"displayDescription\": \"Bytes transferred to and from any devices connected to IoT Central application\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": true\r\n },\r\n {\r\n \"name\": \"c2d.commands.success\",\r\n \"displayName\": \"Successful command invocations\",\r\n \"displayDescription\": \"The count of all successful command requests initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"c2d.commands.failure\",\r\n \"displayName\": \"Failed command invocations\",\r\n \"displayDescription\": \"The count of all failed command requests initiated from IoT Central\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"c2d.commands.requestSize\",\r\n \"displayName\": \"Request size of command invocations\",\r\n \"displayDescription\": \"Request size of all command requests initiated from IoT Central\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"c2d.commands.responseSize\",\r\n \"displayName\": \"Response size of command invocations\",\r\n \"displayDescription\": \"Response size of all command responses initiated from IoT Central\",\r\n \"unit\": \"Bytes\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"d2c.telemetry.ingress.allProtocol\",\r\n \"displayName\": \"Total Telemetry Message Send Attempts\",\r\n \"displayDescription\": \"Number of device-to-cloud telemetry messages attempted to be sent to the IoT Central application\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"d2c.telemetry.ingress.success\",\r\n \"displayName\": \"Total Telemetry Messages Sent\",\r\n \"displayDescription\": \"Number of device-to-cloud telemetry messages successfully sent to the IoT Central application\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false\r\n },\r\n {\r\n \"name\": \"dataExport.messages.received\",\r\n \"displayName\": \"Data Export Messages Received\",\r\n \"displayDescription\": \"Number of messages incoming to data export, before filtering and enrichment processing\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false,\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"dataExport.messages.filtered\",\r\n \"displayName\": \"Data Export Messages Filtered\",\r\n \"displayDescription\": \"Number of messages that have passed through filters in data export\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false,\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"dataExport.messages.written\",\r\n \"displayName\": \"Data Export Messages Written\",\r\n \"displayDescription\": \"Number of messages written to a destination\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": false,\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"dataExport.error\",\r\n \"displayName\": \"Data Export Errors\",\r\n \"displayDescription\": \"Number of errors encountered for data export\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": true,\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n },\r\n {\r\n \"name\": \"dataExport.statusChange\",\r\n \"displayName\": \"Data Export Status Change\",\r\n \"displayDescription\": \"Number of status changes\",\r\n \"unit\": \"Count\",\r\n \"aggregationType\": \"Total\",\r\n \"supportedAggregationTypes\": [\r\n \"Total\"\r\n ],\r\n \"supportedTimeGrainTypes\": [\r\n \"PT1M\",\r\n \"PT5M\",\r\n \"PT15M\",\r\n \"PT30M\",\r\n \"PT1H\",\r\n \"PT6H\",\r\n \"PT12H\",\r\n \"P1D\"\r\n ],\r\n \"fillGapWithZero\": true,\r\n \"dimensions\": [\r\n {\r\n \"name\": \"exportId\",\r\n \"displayName\": \"Export Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"exportDisplayName\",\r\n \"displayName\": \"Export Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationId\",\r\n \"displayName\": \"Destination Id\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"destinationDisplayName\",\r\n \"displayName\": \"Destination Display Name\",\r\n \"toBeExportedForShoebox\": true\r\n },\r\n {\r\n \"name\": \"status\",\r\n \"displayName\": \"Status\",\r\n \"toBeExportedForShoebox\": true\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/providers/Microsoft.Insights/diagnosticSettings/read\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Get/List diagnostic settings\",\r\n \"description\": \"Get/List all the diagnostic settings for the resource\"\r\n },\r\n \"origin\": \"system\"\r\n },\r\n {\r\n \"name\": \"Microsoft.IoTCentral/IoTApps/providers/Microsoft.Insights/diagnosticSettings/write\",\r\n \"display\": {\r\n \"provider\": \"Azure IoT Central\",\r\n \"resource\": \"IoTApps\",\r\n \"operation\": \"Create/Update/Patch diagnostic settings\",\r\n \"description\": \"Set diagnostic settings for the resource\"\r\n },\r\n \"origin\": \"system\"\r\n }\r\n ],\r\n \"nextLink\": null\r\n}", "StatusCode": 200 } ], diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json index c929ad7ce77a..d968bb9762f0 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json @@ -1,21 +1,21 @@ { "Entries": [ { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DefaultDotNetSdkIotCentralRGUpdate?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkdVcGRhdGU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "a346d83c-afe3-443a-a798-967f65798a31" + "06b6b3ce-7d49-4b99-8cf8-49075a8abaa8" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", + "OSVersion/Microsoft.Windows.10.0.19043.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ], "Content-Type": [ @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "0f9ac8da-78c7-4879-9c79-372550773e88" + "0b0cd097-0538-47b3-8661-7763f8a60c50" ], "x-ms-correlation-request-id": [ - "0f9ac8da-78c7-4879-9c79-372550773e88" + "0b0cd097-0538-47b3-8661-7763f8a60c50" ], "x-ms-routing-request-id": [ - "WESTUS:20210204T050123Z:0f9ac8da-78c7-4879-9c79-372550773e88" + "WESTUS2:20211103T165232Z:0b0cd097-0538-47b3-8661-7763f8a60c50" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Thu, 04 Feb 2021 05:01:22 GMT" + "Wed, 03 Nov 2021 16:52:32 GMT" ], "Content-Length": [ - "221" + "271" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,32 +63,32 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate\",\r\n \"name\": \"DefaultDotNetSdkIotCentralRGUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692\",\r\n \"name\": \"DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkappupdate?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkdVcGRhdGUvcHJvdmlkZXJzL01pY3Jvc29mdC5Jb1RDZW50cmFsL2lvdEFwcHMvZGVmYXVsdGRvdG5ldHNka2FwcHVwZGF0ZT9hcGktdmVyc2lvbj0yMDE4LTA5LTAx", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcHVwZGF0ZWMxMDIxMDQzNWNlNjQwYmM5YmFjYjg2ODMxYjdmYWNhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"defaultdotnetsdkappupdate\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdate\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate46f84dc04f994aac99202c2e8d84794d\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "ae32981b-4a93-46f8-b9eb-fee669d40dfd" + "8ab52c2c-7259-43de-9ca8-b2a7b5cbd467" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "191" + "241" ] }, "ResponseHeaders": { @@ -96,31 +96,35 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "\"2501ce86-0000-0100-0000-601b7fa50000\"" + "\"27025901-0000-0100-0000-6182be540000\"" ], "x-ms-request-id": [ - "7a2ca9bd-0b10-45af-b3fe-2935d23e9b91" + "99936160-39a0-493a-a4df-ba86a8d5486c" ], "x-iot-correlation": [ - "12eqq35f.0" - ], - "x-envoy-upstream-service-time": [ - "3208" + "1t1yv3d4.1.0" ], "X-Content-Type-Options": [ "nosniff" ], - "X-Download-Options": [ + "x-download-options": [ "noopen" ], "X-Frame-Options": [ "deny" ], - "X-XSS-Protection": [ + "x-xss-protection": [ "1; mode=block" ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: E4882D8BE23E4E5EB4E90834DDBCAFE3 Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:52:33Z" + ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -128,42 +132,39 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-MSEdge-Ref": [ - "Ref A: D254D79B29AD48F4AC9806F825D3B56B Ref B: BY3EDGE0312 Ref C: 2021-02-04T05:01:24Z" - ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "03c87160-d3dc-4f8e-9304-1859efb30cf8" + "2a423db4-b551-4503-8a84-d244b77e438a" ], "x-ms-routing-request-id": [ - "WESTUS:20210204T050128Z:03c87160-d3dc-4f8e-9304-1859efb30cf8" + "WESTUS2:20211103T165237Z:2a423db4-b551-4503-8a84-d244b77e438a" ], "Date": [ - "Thu, 04 Feb 2021 05:01:27 GMT" + "Wed, 03 Nov 2021 16:52:37 GMT" ], "Content-Length": [ - "748" + "663" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkappupdate\",\r\n \"name\": \"defaultdotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"f36735e3-3afc-4c6b-8d74-2953476d3956\",\r\n \"state\": \"created\",\r\n \"displayName\": \"defaultdotnetsdkappupdate\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdate\",\r\n \"createdDate\": \"2021-02-04T05:01:25.805Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"etag\": \"\\\"2501ce86-0000-0100-0000-601b7fa50000\\\"\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"7bf0205d-b26a-4bfe-835b-d84f79ed2b47\",\r\n \"displayName\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate46f84dc04f994aac99202c2e8d84794d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkappupdate?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkdVcGRhdGUvcHJvdmlkZXJzL01pY3Jvc29mdC5Jb1RDZW50cmFsL2lvdEFwcHMvZGVmYXVsdGRvdG5ldHNka2FwcHVwZGF0ZT9hcGktdmVyc2lvbj0yMDE4LTA5LTAx", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcHVwZGF0ZWMxMDIxMDQzNWNlNjQwYmM5YmFjYjg2ODMxYjdmYWNhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ] }, "ResponseHeaders": { @@ -171,7 +172,7 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"2501ce86-0000-0100-0000-601b7fa50000\"" + "W/\"27025901-0000-0100-0000-6182be540000\"" ], "Vary": [ "Accept-Encoding" @@ -180,13 +181,10 @@ "11999" ], "x-ms-request-id": [ - "9612198a-8561-418c-89a5-3f7f19fb6a6a" + "648cf6a4-a518-48fa-91af-f6e6258a2ccf" ], "x-iot-correlation": [ - "96vh7y8r.0" - ], - "x-envoy-upstream-service-time": [ - "78" + "82ywuhq1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -201,7 +199,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -209,68 +207,65 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: DD745D60813B443C8D66FE4B8EC6111E Ref B: BY3EDGE0312 Ref C: 2021-02-04T05:01:58Z" + "Ref A: 5A814FBE81FB43EAB1FB3E7C169EAEC1 Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:07Z" ], "x-ms-correlation-request-id": [ - "cd55858e-343f-45fa-b983-c2fcdf1237db" + "953fd146-f570-4070-9bcd-c045a5b25b60" ], "x-ms-routing-request-id": [ - "WESTUS:20210204T050159Z:cd55858e-343f-45fa-b983-c2fcdf1237db" + "WESTUS2:20211103T165307Z:953fd146-f570-4070-9bcd-c045a5b25b60" ], "Date": [ - "Thu, 04 Feb 2021 05:01:58 GMT" + "Wed, 03 Nov 2021 16:53:07 GMT" ], "Content-Length": [ - "748" + "663" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkappupdate\",\r\n \"name\": \"defaultdotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"f36735e3-3afc-4c6b-8d74-2953476d3956\",\r\n \"state\": \"created\",\r\n \"displayName\": \"defaultdotnetsdkappupdate\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdate\",\r\n \"createdDate\": \"2021-02-04T05:01:25.805Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"etag\": \"\\\"2501ce86-0000-0100-0000-601b7fa50000\\\"\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"7bf0205d-b26a-4bfe-835b-d84f79ed2b47\",\r\n \"displayName\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate46f84dc04f994aac99202c2e8d84794d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAxOC0wOS0wMQ==", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"defaultdotnetsdkappupdate\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestBody": "{\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "5daeea62-d166-4309-a809-a10ff294280e" + "57992153-df41-4b9f-910f-49f21cb35431" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "65" + "90" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"6b-Obxvouplxe0P3Of7PGeaPXdqcas\"" - ], "x-ms-request-id": [ - "52985bc7-df30-49f4-9a1f-0cc2d10cd584" + "cf586963-c6e6-4e91-a59e-39c8778f88d8" ], "x-iot-correlation": [ - "8z3mowoe.0" - ], - "x-envoy-upstream-service-time": [ - "43" + "7gt0d98v.0" ], "X-Content-Type-Options": [ "nosniff" @@ -285,7 +280,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -293,20 +288,23 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: 6E5E0D3C40CB478183C87D78200E1607 Ref B: BY3EDGE0312 Ref C: 2021-02-04T05:01:59Z" + "Ref A: 5D3F7B2E02D4414490FEC1EDDE858161 Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:07Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "cbb4f520-b2d4-4178-9428-6fb6041651c4" + "fd3b847b-1da0-49d8-8f47-ece74767bc6b" ], "x-ms-routing-request-id": [ - "WESTUS:20210204T050159Z:cbb4f520-b2d4-4178-9428-6fb6041651c4" + "WESTUS2:20211103T165307Z:fd3b847b-1da0-49d8-8f47-ece74767bc6b" ], "Date": [ - "Thu, 04 Feb 2021 05:01:58 GMT" + "Wed, 03 Nov 2021 16:53:07 GMT" ], "Content-Length": [ "107" @@ -319,45 +317,39 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDE4LTA5LTAx", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"defaultdotnetsdksubdomainupdate\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomainupdate46f84dc04f994aac99202c2e8d84794d\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "b890a490-9385-4df4-b559-57b6767cff82" + "80e80a54-0fe0-4521-b702-9d5120eca1a5" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "71" + "96" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"67-MxuXaGtJH++NM0vnQQJ9VrpyYOs\"" - ], "x-ms-request-id": [ - "9ed70b0d-c4db-4f15-9dbf-15425c5364bf" + "95e70ca5-e0bd-46d6-8a03-d8ff2f6ba0ab" ], "x-iot-correlation": [ - "6yhcs4zq.0" - ], - "x-envoy-upstream-service-time": [ - "43" + "27qmoej5.0" ], "X-Content-Type-Options": [ "nosniff" @@ -372,7 +364,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -380,20 +372,23 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: 12C9F67420234220837264A39B1BAAD6 Ref B: BY3EDGE0312 Ref C: 2021-02-04T05:01:59Z" + "Ref A: E0F55BB735B14E8380AAC59CD8856889 Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:07Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "ad83020d-a828-4def-87be-a8689d4e945b" + "2d12dbec-c0c9-4e48-b177-6d99413e56e6" ], "x-ms-routing-request-id": [ - "WESTUS:20210204T050159Z:ad83020d-a828-4def-87be-a8689d4e945b" + "WESTUS2:20211103T165307Z:2d12dbec-c0c9-4e48-b177-6d99413e56e6" ], "Date": [ - "Thu, 04 Feb 2021 05:01:58 GMT" + "Wed, 03 Nov 2021 16:53:07 GMT" ], "Content-Length": [ "103" @@ -406,28 +401,28 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkappupdate?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkdVcGRhdGUvcHJvdmlkZXJzL01pY3Jvc29mdC5Jb1RDZW50cmFsL2lvdEFwcHMvZGVmYXVsdGRvdG5ldHNka2FwcHVwZGF0ZT9hcGktdmVyc2lvbj0yMDE4LTA5LTAx", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcHVwZGF0ZWMxMDIxMDQzNWNlNjQwYmM5YmFjYjg2ODMxYjdmYWNhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"test-updated-display-name\",\r\n \"subdomain\": \"test-updated-sub-domain\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"test-updated-display-namea4a251210e3f4b84abd077f17ce28685\",\r\n \"subdomain\": \"test-updated-sub-domainf21d2daa58354f6e9bb7af648020ad3f\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "b48caacb-e77e-4478-9403-3004466494cd" + "cd81913f-5b59-4b6c-8941-a8848ed78d12" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "222" + "286" ] }, "ResponseHeaders": { @@ -435,7 +430,7 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"2501d387-0000-0100-0000-601b7fc80000\"" + "W/\"2702210e-0000-0100-0000-6182be760000\"" ], "Vary": [ "Accept-Encoding" @@ -444,28 +439,32 @@ "1198" ], "x-ms-request-id": [ - "dbc24716-8d9e-4074-99c6-714270ac82e3" + "9b42d849-70d1-43a2-a22e-7fe72b5984aa" ], "x-iot-correlation": [ - "7mxib7gd.0" - ], - "x-envoy-upstream-service-time": [ - "598" + "5du3xrla.1.0" ], "X-Content-Type-Options": [ "nosniff" ], - "X-Download-Options": [ + "x-download-options": [ "noopen" ], "X-Frame-Options": [ "deny" ], - "X-XSS-Protection": [ + "x-xss-protection": [ "1; mode=block" ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 1D1EB6448F90409B9C88F2FA154D0DAD Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:08Z" + ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -473,54 +472,48 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "X-MSEdge-Ref": [ - "Ref A: 1D8AF6CF59C34F66A6E58C48764DD43B Ref B: BY3EDGE0312 Ref C: 2021-02-04T05:01:59Z" - ], "x-ms-correlation-request-id": [ - "8aa557b9-3668-4718-b9fa-4c12191e2472" + "18986f77-2805-43df-a78c-cbad64f751ff" ], "x-ms-routing-request-id": [ - "WESTUS:20210204T050200Z:8aa557b9-3668-4718-b9fa-4c12191e2472" + "WESTUS2:20211103T165311Z:18986f77-2805-43df-a78c-cbad64f751ff" ], "Date": [ - "Thu, 04 Feb 2021 05:01:59 GMT" + "Wed, 03 Nov 2021 16:53:11 GMT" ], "Content-Length": [ - "812" + "700" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkappupdate\",\r\n \"name\": \"defaultdotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"f36735e3-3afc-4c6b-8d74-2953476d3956\",\r\n \"state\": \"created\",\r\n \"displayName\": \"test-updated-display-name\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"test-updated-sub-domain\",\r\n \"createdDate\": \"2021-02-04T05:01:25.805Z\",\r\n \"lastUpdated\": \"2021-02-04T05:02:00.035Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"etag\": \"\\\"2501d387-0000-0100-0000-601b7fc80000\\\"\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"7bf0205d-b26a-4bfe-835b-d84f79ed2b47\",\r\n \"displayName\": \"test-updated-display-namea4a251210e3f4b84abd077f17ce28685\",\r\n \"subdomain\": \"test-updated-sub-domainf21d2daa58354f6e9bb7af648020ad3f\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps?api-version=2018-09-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RlZmF1bHREb3ROZXRTZGtJb3RDZW50cmFsUkdVcGRhdGUvcHJvdmlkZXJzL01pY3Jvc29mdC5Jb1RDZW50cmFsL2lvdEFwcHM/YXBpLXZlcnNpb249MjAxOC0wOS0wMQ==", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "a7db3c6b-f2cb-43e0-bd05-4ef2fcdc6731" + "daa2d8d4-ef3a-4e9f-9a72-342cc60495fa" ], "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.29518.01", + "FxVersion/4.6.30411.01", "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19042.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.1.0.0" + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ] }, "ResponseHeaders": { "Cache-Control": [ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], - "ETag": [ - "W/\"338-RcRgaYBBcMCBxDxKeRycchIAucM\"" - ], "Vary": [ "Accept-Encoding" ], @@ -528,13 +521,10 @@ "11998" ], "x-ms-request-id": [ - "bcefa7f7-f7ed-437f-82db-d739c12bd5df" + "dfc7f57d-56c4-4ad7-bff9-bfcdb8bdcb5e" ], "x-iot-correlation": [ - "4ey8yrc.0" - ], - "x-envoy-upstream-service-time": [ - "36" + "9dl0hx3g.0" ], "X-Content-Type-Options": [ "nosniff" @@ -549,7 +539,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "020221.0002-master" + "102821.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -557,26 +547,29 @@ "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], "X-MSEdge-Ref": [ - "Ref A: BA2AB72ECF4B44668387DB733E0C8935 Ref B: BY3EDGE0312 Ref C: 2021-02-04T05:02:00Z" + "Ref A: 4A0FED69AA6F45898A40CB326D7DF77A Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:11Z" ], "x-ms-correlation-request-id": [ - "909636be-50fe-4ab7-b787-de62957d5b9e" + "149ce1be-288a-49e1-9a73-76e6e22aea47" ], "x-ms-routing-request-id": [ - "WESTUS:20210204T050201Z:909636be-50fe-4ab7-b787-de62957d5b9e" + "WESTUS2:20211103T165312Z:149ce1be-288a-49e1-9a73-76e6e22aea47" ], "Date": [ - "Thu, 04 Feb 2021 05:02:00 GMT" + "Wed, 03 Nov 2021 16:53:12 GMT" ], "Content-Length": [ - "824" + "712" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DefaultDotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkappupdate\",\r\n \"name\": \"defaultdotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"f36735e3-3afc-4c6b-8d74-2953476d3956\",\r\n \"state\": \"created\",\r\n \"displayName\": \"test-updated-display-name\",\r\n \"tenant\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"capabilities\": {\r\n \"non-wrapped-properties\": true,\r\n \"pnp-preview\": true,\r\n \"asa-stamp\": true,\r\n \"default\": true\r\n },\r\n \"subdomain\": \"test-updated-sub-domain\",\r\n \"createdDate\": \"2021-02-04T05:01:25.805Z\",\r\n \"lastUpdated\": \"2021-02-04T05:02:00.035Z\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"etag\": \"\\\"2501d387-0000-0100-0000-601b7fc80000\\\"\"\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"7bf0205d-b26a-4bfe-835b-d84f79ed2b47\",\r\n \"displayName\": \"test-updated-display-namea4a251210e3f4b84abd077f17ce28685\",\r\n \"subdomain\": \"test-updated-sub-domainf21d2daa58354f6e9bb7af648020ad3f\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], diff --git a/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln b/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln index c8d6bda4c440..e9a7370c62b2 100644 --- a/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln +++ b/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26403.7 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31729.503 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Test.HttpRecorder", "Microsoft.Azure.Test.HttpRecorder\Microsoft.Azure.Test.HttpRecorder.csproj", "{5D12D45A-E55F-410E-B8AF-9DC90E81B237}" EndProject @@ -21,6 +21,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Rest.ClientRuntim EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Rest.ClientRuntime.Azure.Authentication", "..\Auth\Az.Auth\Az.Authentication\Microsoft.Rest.ClientRuntime.Azure.Authentication.csproj", "{84E4B6AC-0C58-4A80-B251-3C9BCF18FA9D}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.IotCentral", "..\..\iotcentral\Microsoft.Azure.Management.IotCentral\src\Microsoft.Azure.Management.IotCentral.csproj", "{D03DE1AD-10E9-4D51-A507-F30767E83D5E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.IotCentral.Tests", "..\..\iotcentral\Microsoft.Azure.Management.IotCentral\tests\Microsoft.Azure.Management.IotCentral.Tests.csproj", "{A3CAE6F3-032C-4353-BE24-D292FD06C3F9}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -145,6 +149,38 @@ Global {84E4B6AC-0C58-4A80-B251-3C9BCF18FA9D}.Portable-Release|Any CPU.Build.0 = Release|Any CPU {84E4B6AC-0C58-4A80-B251-3C9BCF18FA9D}.Release|Any CPU.ActiveCfg = Release|Any CPU {84E4B6AC-0C58-4A80-B251-3C9BCF18FA9D}.Release|Any CPU.Build.0 = Release|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net40-Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net40-Debug|Any CPU.Build.0 = Debug|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net40-Release|Any CPU.ActiveCfg = Release|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net40-Release|Any CPU.Build.0 = Release|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net45-Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net45-Debug|Any CPU.Build.0 = Debug|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net45-Release|Any CPU.ActiveCfg = Release|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net45-Release|Any CPU.Build.0 = Release|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Portable-Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Portable-Debug|Any CPU.Build.0 = Debug|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Portable-Release|Any CPU.ActiveCfg = Release|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Portable-Release|Any CPU.Build.0 = Release|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Release|Any CPU.Build.0 = Release|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net40-Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net40-Debug|Any CPU.Build.0 = Debug|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net40-Release|Any CPU.ActiveCfg = Release|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net40-Release|Any CPU.Build.0 = Release|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net45-Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net45-Debug|Any CPU.Build.0 = Debug|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net45-Release|Any CPU.ActiveCfg = Release|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net45-Release|Any CPU.Build.0 = Release|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Portable-Debug|Any CPU.ActiveCfg = Debug|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Portable-Debug|Any CPU.Build.0 = Debug|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Portable-Release|Any CPU.ActiveCfg = Release|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Portable-Release|Any CPU.Build.0 = Release|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE From dde9d5e6fafbcdcb7bf90ea27ea9b6f99cc7d1a2 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Wed, 3 Nov 2021 15:19:22 -0700 Subject: [PATCH 06/14] Remove unused debug project ref to TestFramework Remove debug project ref to TestFramework --- .../Microsoft.Azure.Management.IotCentral.sln | 2 -- 1 file changed, 2 deletions(-) diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/Microsoft.Azure.Management.IotCentral.sln b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/Microsoft.Azure.Management.IotCentral.sln index ff98a26fe58f..e5b0013308d0 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/Microsoft.Azure.Management.IotCentral.sln +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/Microsoft.Azure.Management.IotCentral.sln @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management. EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.IotCentral", "src\Microsoft.Azure.Management.IotCentral.csproj", "{6D87768F-C148-4850-AA06-B6D0E0319563}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Rest.ClientRuntime.Azure.TestFramework", "..\..\mgmtcommon\TestFramework\ClientRuntime.Azure.TestFramework\Microsoft.Rest.ClientRuntime.Azure.TestFramework.csproj", "{DE97083A-3D43-49ED-A9F7-263464C832D9}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU From cfadea4c89c8d1248775795a821177a8c1809a27 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 4 Nov 2021 06:45:23 -0700 Subject: [PATCH 07/14] Removed randomization during session recording to prevent pipeline build failures for tests Removed randomization during session recording to prevent pipeline build failures for tests --- .../ScenarioTests/IotCentralLifeCycleTests.cs | 107 +-- .../tests/ScenarioTests/IotCentralTestBase.cs | 34 +- .../TestAppTemplateNameField.json | 18 +- ...sUsed.json => TestAppWhenF1SkuIsUsed.json} | 48 +- ...=> TestAppWhenUnsupportedS1SkuIsUsed.json} | 42 +- .../TestIotCentralCreateLifeCycle.json | 206 +++--- ...ralCreateWithManagedIdentityLifeCycle.json | 661 ------------------ .../TestIotCentralOperationsApi.json | 16 +- .../TestIotCentralUpdateLifeCycle.json | 164 ++--- 9 files changed, 341 insertions(+), 955 deletions(-) rename sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/{TestAppWhenUnsupportedSkuIsUsed.json => TestAppWhenF1SkuIsUsed.json} (62%) rename sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/{RunAndValidateCentralAppCreationForDifferentSkus.json => TestAppWhenUnsupportedS1SkuIsUsed.json} (66%) delete mode 100644 sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs index bbd741c3a9af..2fe4915bf74d 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs @@ -26,10 +26,10 @@ public void TestIotCentralCreateLifeCycle() Initialize(context); // Create Resource Group - Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(resourceGroupName); + Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(this.ResourceGroupName); // Create App - App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, resourceName, subDomain); + App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, ResourceName, SubDomain); // Validate resourceName and subdomain are taken this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); @@ -53,18 +53,18 @@ public void TestIotCentralCreateLifeCycle() var appPatch = new AppPatch() { Tags = tags, - DisplayName = resourceName, - Subdomain = subDomain, + DisplayName = ResourceName, + Subdomain = SubDomain, }; - app = this.iotCentralClient.Apps.Update(resourceGroupName, resourceName, appPatch); + app = this.iotCentralClient.Apps.Update(ResourceGroupName, ResourceName, appPatch); Assert.NotNull(app); Assert.True(app.Tags.Count().Equals(2)); Assert.Equal("value2", app.Tags["key2"]); // Get all Iot Central apps in a resource group - var iotAppsByResourceGroup = this.iotCentralClient.Apps.ListByResourceGroup(resourceGroupName.ToLowerInvariant()).ToList(); + var iotAppsByResourceGroup = this.iotCentralClient.Apps.ListByResourceGroup(ResourceGroupName.ToLowerInvariant()).ToList(); // Get all Iot Apps in a subscription var iotAppsBySubscription = this.iotCentralClient.Apps.ListBySubscription().ToList(); @@ -82,10 +82,10 @@ public void TestIotCentralCreateWithManagedIdentityLifeCycle() Initialize(context); // Create Resource Group - Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(resourceGroupName); + Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(ResourceGroupName); // Create App - App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, resourceName, subDomain, DefaultMIType); + App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, ResourceName, SubDomain, DefaultMIType); // Validate resourceName and subdomain are taken this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); @@ -116,11 +116,11 @@ public void TestIotCentralCreateWithManagedIdentityLifeCycle() var appPatch = new AppPatch() { Tags = tags, - DisplayName = resourceName, - Subdomain = subDomain, + DisplayName = ResourceName, + Subdomain = SubDomain, }; - app = this.iotCentralClient.Apps.Update(resourceGroupName, resourceName, appPatch); + app = this.iotCentralClient.Apps.Update(ResourceGroupName, ResourceName, appPatch); Assert.NotNull(app); Assert.True(app.Tags.Count().Equals(2)); @@ -133,7 +133,7 @@ public void TestIotCentralCreateWithManagedIdentityLifeCycle() Assert.Equal(tenantId, app.Identity.TenantId); // Get all Iot Central apps in a resource group - var iotAppsByResourceGroup = this.iotCentralClient.Apps.ListByResourceGroup(resourceGroupName.ToLowerInvariant()).ToList(); + var iotAppsByResourceGroup = this.iotCentralClient.Apps.ListByResourceGroup(ResourceGroupName.ToLowerInvariant()).ToList(); // Get all Iot Apps in a subscription var iotAppsBySubscription = this.iotCentralClient.Apps.ListBySubscription().ToList(); @@ -151,10 +151,10 @@ public void TestIotCentralUpdateLifeCycle() this.Initialize(context); // Create Resource Group - var resourceGroup = CreateResourceGroup(updateResourceGroupName); + var resourceGroup = CreateResourceGroup(UpdateResourceGroupName); // Create App - var app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, updateResourceName, updateSubDomain); + var app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, UpdateResourceName, UpdateSubDomain); // Validate the default sku Assert.Equal(DefaultIotcSku, app.Sku.Name); @@ -181,11 +181,11 @@ public void TestIotCentralUpdateLifeCycle() Sku = new AppSkuInfo(AppSku.ST2), }; - app = UpdateIotCentral(resourceGroup, appPatch, updateResourceName); + app = UpdateIotCentral(resourceGroup, appPatch, UpdateResourceName); // List apps - app = iotCentralClient.Apps.ListByResourceGroup(updateResourceGroupName) - .FirstOrDefault(e => e.Name.Equals(updateResourceName, StringComparison.OrdinalIgnoreCase)); + app = iotCentralClient.Apps.ListByResourceGroup(UpdateResourceGroupName) + .FirstOrDefault(e => e.Name.Equals(UpdateResourceName, StringComparison.OrdinalIgnoreCase)); Assert.NotNull(app); Assert.Equal(newDisplayName, app.DisplayName); @@ -198,13 +198,59 @@ public void TestIotCentralUpdateLifeCycle() [Fact] public void TestAppWhenUnsupportedS1SkuIsUsed() { - RunAndValidateCentralAppCreationForDifferentSkus("S1", $"The sku S1 is invalid, allowed skus are ST0, ST1, ST2"); + string sku = "S1"; + string exceptionMessage = "The sku S1 is invalid, allowed skus are ST0, ST1, ST2"; + var exceptionThrown = false; + + using (MockContext context = MockContext.Start(this.GetType())) + { + Initialize(context); + + // Create Resource Group + Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(ResourceGroupName); + + try + { + // Create App + App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, ResourceName, SubDomain, DefaultMIType, sku); + } + catch (CloudException cex) + { + exceptionThrown = true; + Assert.Equal(exceptionMessage, cex.Body.Message); + } + } + + Assert.True(exceptionThrown); } [Fact] public void TestAppWhenF1SkuIsUsed() { - RunAndValidateCentralAppCreationForDifferentSkus("F1", "Cannot create a subscription less application with SKU F1"); + string sku = "F1"; + string exceptionMessage = "Cannot create a subscription less application with SKU F1"; + var exceptionThrown = false; + + using (MockContext context = MockContext.Start(this.GetType())) + { + Initialize(context); + + // Create Resource Group + Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(ResourceGroupName); + + try + { + // Create App + App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, ResourceName, SubDomain, DefaultMIType, sku); + } + catch (CloudException cex) + { + exceptionThrown = true; + Assert.Equal(exceptionMessage, cex.Body.Message); + } + } + + Assert.True(exceptionThrown); } [Fact] @@ -217,7 +263,7 @@ public void TestAppWhenNullAppSkuInfo() { Location = IotCentralTestUtilities.DefaultLocation, Sku = new AppSkuInfo(), - Subdomain = subDomain, + Subdomain = SubDomain, DisplayName = IotCentralTestUtilities.DefaultUpdateResourceName, }; app.Validate(); @@ -341,27 +387,6 @@ private void CheckAppNameAndSubdomainTaken(string resourceName, string subdomain Assert.False(resourceNameResult.NameAvailable); Assert.False(subdomainResult.NameAvailable); } - - private void RunAndValidateCentralAppCreationForDifferentSkus(string sku, string exceptionMessage) - { - using (MockContext context = MockContext.Start(this.GetType())) - { - Initialize(context); - - // Create Resource Group - Microsoft.Azure.Management.ResourceManager.Models.ResourceGroup resourceGroup = CreateResourceGroup(resourceGroupName); - - try - { - // Create App - App app = CreateIotCentral(resourceGroup, IotCentralTestUtilities.DefaultLocation, resourceName, subDomain, DefaultMIType, sku); - } - catch (CloudException cex) - { - Assert.Equal(exceptionMessage, cex.Body.Message); - } - } - } } } diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs index 6a3563b0f743..0715d4acceeb 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralTestBase.cs @@ -24,12 +24,31 @@ public class IotCentralTestBase protected string location; protected TestEnvironment testEnv; - protected String resourceName = IotCentralTestUtilities.RandomizedResourceName; - protected String updateResourceName = IotCentralTestUtilities.RandomizedUpdateResourceName; - protected String subDomain = IotCentralTestUtilities.RandomizedSubdomain; - protected String updateSubDomain = IotCentralTestUtilities.RandomizedUpdateSubdomain; - protected String resourceGroupName = IotCentralTestUtilities.RandomizedResourceGroupName; - protected String updateResourceGroupName = IotCentralTestUtilities.RandomizedUpdateResourceGroupName; + // Use randomized names for testing locally (to avoid 'resource group is in deprovisioning state' error) + // and set isTestRecorderRun=true to update SessionRecords (to avoid pipeline failures on playback). + protected bool isTestRecorderRun = false; + + protected string randomizedResourceName = IotCentralTestUtilities.RandomizedResourceName; + protected string randomizedUpdateResourceName = IotCentralTestUtilities.RandomizedUpdateResourceName; + protected string randomizedSubDomain = IotCentralTestUtilities.RandomizedSubdomain; + protected string randomizedUpdateSubDomain = IotCentralTestUtilities.RandomizedUpdateSubdomain; + protected string randomizedResourceGroupName = IotCentralTestUtilities.RandomizedResourceGroupName; + protected string randomizedUpdateResourceGroupName = IotCentralTestUtilities.RandomizedUpdateResourceGroupName; + + protected string defaultResourceName = IotCentralTestUtilities.DefaultResourceName; + protected string defaultUpdateResourceName = IotCentralTestUtilities.DefaultUpdateResourceName; + protected string defaultSubDomain = IotCentralTestUtilities.DefaultSubdomain; + protected string defaultUpdateSubDomain = IotCentralTestUtilities.DefaultUpdateSubdomain; + protected string defaultResourceGroupName = IotCentralTestUtilities.DefaultResourceGroupName; + protected string defaultUpdateResourceGroupName = IotCentralTestUtilities.DefaultUpdateResourceGroupName; + + protected string ResourceName => isTestRecorderRun ? defaultResourceName : randomizedResourceName; + protected string UpdateResourceName => isTestRecorderRun ? defaultUpdateResourceName : randomizedUpdateResourceName; + protected string SubDomain => isTestRecorderRun ? defaultSubDomain : randomizedSubDomain; + protected string UpdateSubDomain => isTestRecorderRun ? defaultUpdateSubDomain : randomizedUpdateSubDomain; + protected string ResourceGroupName => isTestRecorderRun ? defaultResourceGroupName : randomizedResourceGroupName; + protected string UpdateResourceGroupName => isTestRecorderRun ? defaultUpdateResourceGroupName : randomizedUpdateResourceGroupName; + protected SystemAssignedServiceIdentity DefaultMIType = new SystemAssignedServiceIdentity(type: "SystemAssigned"); protected void Initialize(MockContext context) @@ -43,6 +62,9 @@ protected void Initialize(MockContext context) testEnv = TestEnvironmentFactory.GetTestEnvironment(); resourcesClient = IotCentralTestUtilities.GetResourceManagementClient(context, new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }); iotCentralClient = IotCentralTestUtilities.GetIotCentralClient(context, new RecordedDelegatingHandler { StatusCodeToReturn = HttpStatusCode.OK }); + + // Set this to true before running the tests for updating SessionRecords and the Github PR. + isTestRecorderRun = true; if (string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AZURE_VM_TEST_LOCATION"))) { diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppTemplateNameField.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppTemplateNameField.json index 75d6782e3785..acd6a90676ea 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppTemplateNameField.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppTemplateNameField.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "46f7320a-d257-4db0-92a5-e8d678c8b9ab" + "f29fd141-66af-4dbd-acef-996a28f7f00c" ], "Accept-Language": [ "en-US" @@ -30,10 +30,10 @@ "1199" ], "x-ms-request-id": [ - "a7fa0f6b-925c-49f5-a02f-4b07c669856c" + "33f6edf7-d72c-4a9f-b2e2-33b63b8f5540" ], "x-iot-correlation": [ - "5turzi8.0" + "2n20wpyp.0" ], "X-Content-Type-Options": [ "nosniff" @@ -48,10 +48,10 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ - "iotcprodwestus02" + "iotcprodwestus01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -60,16 +60,16 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 5340B0AD44374968B755B72D97D50B4B Ref B: CO1EDGE1413 Ref C: 2021-11-03T16:52:29Z" + "Ref A: 42173D2D85784B1698F01ED6DFF02F16 Ref B: CO1EDGE1315 Ref C: 2021-11-04T13:13:04Z" ], "x-ms-correlation-request-id": [ - "ba585f9a-bc89-48d9-88d3-74bc8bb72cac" + "25c799e0-453a-4025-8773-763da2da64fd" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165230Z:ba585f9a-bc89-48d9-88d3-74bc8bb72cac" + "WESTUS2:20211104T131304Z:25c799e0-453a-4025-8773-763da2da64fd" ], "Date": [ - "Wed, 03 Nov 2021 16:52:29 GMT" + "Thu, 04 Nov 2021 13:13:04 GMT" ], "Content-Length": [ "11126" diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedSkuIsUsed.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenF1SkuIsUsed.json similarity index 62% rename from sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedSkuIsUsed.json rename to sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenF1SkuIsUsed.json index 2b4c917b4bd7..0cdcf2b86693 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedSkuIsUsed.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenF1SkuIsUsed.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTcyMzM2N2RiYTZkYzQ1MTFhZDRlNTUzMGZhMGZiY2YxP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DotNetSdkIotCentralRG?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "50722496-9e91-4c88-9346-8883374e8afe" + "71431359-44b7-4916-9508-b7dde9432e26" ], "Accept-Language": [ "en-US" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "329968ca-8a71-48f4-abc6-03b6f0ee69c4" + "cf5a4600-5d05-491c-8b02-96c50a1adc26" ], "x-ms-correlation-request-id": [ - "329968ca-8a71-48f4-abc6-03b6f0ee69c4" + "cf5a4600-5d05-491c-8b02-96c50a1adc26" ], "x-ms-routing-request-id": [ - "WESTUS2:20211028T192801Z:329968ca-8a71-48f4-abc6-03b6f0ee69c4" + "WESTUS2:20211104T131316Z:cf5a4600-5d05-491c-8b02-96c50a1adc26" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Thu, 28 Oct 2021 19:28:00 GMT" + "Thu, 04 Nov 2021 13:13:15 GMT" ], "Content-Length": [ - "265" + "195" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1\",\r\n \"name\": \"dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG\",\r\n \"name\": \"DotNetSdkIotCentralRG\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp723367dba6dc4511ad4e5530fa0fbcf1?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTcyMzM2N2RiYTZkYzQ1MTFhZDRlNTUzMGZhMGZiY2YxL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDcyMzM2N2RiYTZkYzQ1MTFhZDRlNTUzMGZhMGZiY2YxP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp723367dba6dc4511ad4e5530fa0fbcf1\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate723367dba6dc4511ad4e5530fa0fbcf1\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\"\r\n },\r\n \"sku\": {\r\n \"name\": \"F1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "f560ca4c-4bf7-49f2-b1c7-e651c9938be8" + "41f0e3d9-75f4-4aa0-8ebe-157abd3254c6" ], "Accept-Language": [ "en-US" @@ -82,13 +82,13 @@ "FxVersion/4.6.30411.01", "OSName/Windows", "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/3.2.0.0" + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "287" + "217" ] }, "ResponseHeaders": { @@ -96,10 +96,10 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "x-ms-request-id": [ - "23be157f-29c8-4ff8-a208-2941cba9345a" + "52fff00f-ea89-4bd5-87ec-38eb252f9247" ], "x-iot-correlation": [ - "1aaovsvb.1.0" + "9y83tie3.1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -118,10 +118,10 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 7AE56BA65FBC43AEACE637ED13E93C0E Ref B: CO1EDGE1410 Ref C: 2021-10-28T19:28:04Z" + "Ref A: 1C922B9DDFC141BC8B7C8C9A50F2E517 Ref B: CO1EDGE1221 Ref C: 2021-11-04T13:13:26Z" ], "X-IoT-Version": [ - "102621.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus01" @@ -133,22 +133,22 @@ "1199" ], "x-ms-correlation-request-id": [ - "b91cae09-ca33-401f-bf36-b3aeca774467" + "385ec999-c441-41a0-82be-b94e933cee69" ], "x-ms-routing-request-id": [ - "WESTUS2:20211028T192815Z:b91cae09-ca33-401f-bf36-b3aeca774467" + "WESTUS2:20211104T131329Z:385ec999-c441-41a0-82be-b94e933cee69" ], "Date": [ - "Thu, 28 Oct 2021 19:28:15 GMT" + "Thu, 04 Nov 2021 13:13:29 GMT" ], "Content-Length": [ - "102" + "106" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"400.200.006.026\",\r\n \"message\": \"The sku S1 is invalid, allowed skus are ST0, ST1, ST2\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"400.200.006.032\",\r\n \"message\": \"Cannot create a subscription less application with SKU F1\"\r\n }\r\n}", "StatusCode": 400 } ], diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/RunAndValidateCentralAppCreationForDifferentSkus.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedS1SkuIsUsed.json similarity index 66% rename from sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/RunAndValidateCentralAppCreationForDifferentSkus.json rename to sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedS1SkuIsUsed.json index 74543f0d6618..b7db308899fc 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/RunAndValidateCentralAppCreationForDifferentSkus.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestAppWhenUnsupportedS1SkuIsUsed.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/dotnetsdksubdomainupdate0504f9ebbc07441e8c2147c0faefa29c?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA1MDRmOWViYmMwNzQ0MWU4YzIxNDdjMGZhZWZhMjljP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DotNetSdkIotCentralRG?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "4a15a7e2-64dd-4ade-adc6-47a96b338532" + "1c95560f-f85e-4081-ad81-50a18c459e15" ], "Accept-Language": [ "en-US" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "8cb92ca3-14f0-47e8-8bd4-584642da16be" + "44b2c27f-eb7a-492f-bb0d-1f6c07e239ff" ], "x-ms-correlation-request-id": [ - "8cb92ca3-14f0-47e8-8bd4-584642da16be" + "44b2c27f-eb7a-492f-bb0d-1f6c07e239ff" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165422Z:8cb92ca3-14f0-47e8-8bd4-584642da16be" + "WESTUS2:20211104T131431Z:44b2c27f-eb7a-492f-bb0d-1f6c07e239ff" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Wed, 03 Nov 2021 16:54:21 GMT" + "Thu, 04 Nov 2021 13:14:31 GMT" ], "Content-Length": [ - "265" + "195" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0504f9ebbc07441e8c2147c0faefa29c\",\r\n \"name\": \"dotnetsdksubdomainupdate0504f9ebbc07441e8c2147c0faefa29c\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG\",\r\n \"name\": \"DotNetSdkIotCentralRG\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0504f9ebbc07441e8c2147c0faefa29c/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp01ef93e1178048dcb9a276230fe3fca7?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA1MDRmOWViYmMwNzQ0MWU4YzIxNDdjMGZhZWZhMjljL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDAxZWY5M2UxMTc4MDQ4ZGNiOWEyNzYyMzBmZTNmY2E3P2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp01ef93e1178048dcb9a276230fe3fca7\",\r\n \"subdomain\": \"dotnetsdksubdomain0b83e6ba4ef44756bc329d66355871b9\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "3d9fd676-ca07-4e47-8ff0-8ffd6e065a48" + "a38b963d-8e49-42db-ba32-6794e0f2dd0b" ], "Accept-Language": [ "en-US" @@ -88,7 +88,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "281" + "217" ] }, "ResponseHeaders": { @@ -96,10 +96,10 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "x-ms-request-id": [ - "e96605f6-d486-4857-9102-caaced532c3b" + "ba69b0ae-771f-4806-adec-cd4295363599" ], "x-iot-correlation": [ - "9g8f58bm.1.0" + "a4lro7vp.1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -118,10 +118,10 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: DF3057982D654477A19DC62541AE599A Ref B: CO1EDGE1710 Ref C: 2021-11-03T16:54:25Z" + "Ref A: 3A53C4629D644311883661917160C159 Ref B: CO1EDGE1619 Ref C: 2021-11-04T13:14:35Z" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -133,13 +133,13 @@ "1199" ], "x-ms-correlation-request-id": [ - "5437fee2-15ad-4c17-9155-4a668b6f71b1" + "e1136d8d-5aed-4641-84b6-279e3edd4ee2" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165436Z:5437fee2-15ad-4c17-9155-4a668b6f71b1" + "WESTUS2:20211104T131445Z:e1136d8d-5aed-4641-84b6-279e3edd4ee2" ], "Date": [ - "Wed, 03 Nov 2021 16:54:35 GMT" + "Thu, 04 Nov 2021 13:14:44 GMT" ], "Content-Length": [ "102" diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateLifeCycle.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateLifeCycle.json index a91fecba4fa5..88e0c1c2ef5d 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateLifeCycle.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateLifeCycle.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DotNetSdkIotCentralRG?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fc5d0df3-4bf5-4253-aab8-96f21db1a50f" + "fe720f27-0bcd-49f2-874a-8727e598562d" ], "Accept-Language": [ "en-US" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "f6801ffc-e35a-4be8-94bc-85cd238b94d1" + "0f60ee77-9b80-4e99-ad2e-49aaec140a16" ], "x-ms-correlation-request-id": [ - "f6801ffc-e35a-4be8-94bc-85cd238b94d1" + "0f60ee77-9b80-4e99-ad2e-49aaec140a16" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165441Z:f6801ffc-e35a-4be8-94bc-85cd238b94d1" + "WESTUS2:20211104T133740Z:0f60ee77-9b80-4e99-ad2e-49aaec140a16" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Wed, 03 Nov 2021 16:54:40 GMT" + "Thu, 04 Nov 2021 13:37:40 GMT" ], "Content-Length": [ - "265" + "195" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600\",\r\n \"name\": \"dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG\",\r\n \"name\": \"DotNetSdkIotCentralRG\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDY5M2MxOTFjY2NjNzQ5ZDI4OWUzMDMyODQyNzQ5NmFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "9d4a64f8-4c2c-4d87-8e1d-0c37f9f9e07c" + "55188db6-26af-4aa6-aad6-06d427835619" ], "Accept-Language": [ "en-US" @@ -88,7 +88,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "229" + "165" ] }, "ResponseHeaders": { @@ -96,13 +96,13 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "\"0102c6e8-0000-0100-0000-6182bed50000\"" + "\"09024e63-0000-0100-0000-6183e2280000\"" ], "x-ms-request-id": [ - "6038e2dd-0018-4969-9ce1-41b3676b49a2" + "395658e4-dc6e-475e-bffb-353296ae71f5" ], "x-iot-correlation": [ - "9o88ux4y.1.0" + "267o1zpf.1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -121,13 +121,13 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 9C2D710F33F6489492B79C3E66147A95 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:54:43Z" + "Ref A: EBC5F060D8AD47F3B37CCB56B695002F Ref B: CO1EDGE1414 Ref C: 2021-11-04T13:37:42Z" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ - "iotcprodwestus02" + "iotcprodwestus01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -136,27 +136,27 @@ "1199" ], "x-ms-correlation-request-id": [ - "0edf15b4-8f09-4cef-8536-730b296efa73" + "97b8b8c3-fb22-4d94-bb62-d56f28674c27" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165447Z:0edf15b4-8f09-4cef-8536-730b296efa73" + "WESTUS2:20211104T133747Z:97b8b8c3-fb22-4d94-bb62-d56f28674c27" ], "Date": [ - "Wed, 03 Nov 2021 16:54:47 GMT" + "Thu, 04 Nov 2021 13:37:47 GMT" ], "Content-Length": [ - "636" + "473" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"cf934a2a-8868-4708-a42e-4e2fa1f31565\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDY5M2MxOTFjY2NjNzQ5ZDI4OWUzMDMyODQyNzQ5NmFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -172,19 +172,19 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"0102c6e8-0000-0100-0000-6182bed50000\"" + "W/\"09024e63-0000-0100-0000-6183e2280000\"" ], "Vary": [ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" + "11998" ], "x-ms-request-id": [ - "28934680-b848-4a67-9739-150f38625dc6" + "0d66db40-f641-4e43-9e2f-2297880a55d8" ], "x-iot-correlation": [ - "cl7d0vj4.0" + "5wyi0r7t.0" ], "X-Content-Type-Options": [ "nosniff" @@ -199,10 +199,10 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ - "iotcprodwestus02" + "iotcprodwestus01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -211,35 +211,35 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: B8539A402825487C933578977015BE59 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:18Z" + "Ref A: D467E53C1181443784E327CEFC86A715 Ref B: CO1EDGE1414 Ref C: 2021-11-04T13:38:17Z" ], "x-ms-correlation-request-id": [ - "8c6700f6-3360-44a3-8246-c82a8483aaed" + "dbf328c7-c232-4f63-a3ae-573de0ef4d51" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165518Z:8c6700f6-3360-44a3-8246-c82a8483aaed" + "WESTUS2:20211104T133818Z:dbf328c7-c232-4f63-a3ae-573de0ef4d51" ], "Date": [ - "Wed, 03 Nov 2021 16:55:17 GMT" + "Thu, 04 Nov 2021 13:38:17 GMT" ], "Content-Length": [ - "636" + "473" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"cf934a2a-8868-4708-a42e-4e2fa1f31565\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestBody": "{\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "59d694c6-33e3-4e0a-8a3a-a0f1c1aaa14d" + "6b104526-5ecf-4984-93a3-e72ca07bf55a" ], "Accept-Language": [ "en-US" @@ -254,7 +254,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "84" + "52" ] }, "ResponseHeaders": { @@ -262,10 +262,10 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "x-ms-request-id": [ - "cfa4e3c4-280d-4318-90a9-8c6cb3b5beb9" + "8db9b1a0-cd20-4f28-be0d-12f717dd6a7c" ], "x-iot-correlation": [ - "663rqjo3.0" + "55c3cd4v.0" ], "X-Content-Type-Options": [ "nosniff" @@ -280,10 +280,10 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ - "iotcprodwestus02" + "iotcprodwestus01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -292,19 +292,19 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 7B8D12CADF3D48CD896BF6F64ED6577F Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:18Z" + "Ref A: 300132A9E9EF45A3AF1CE80F17428FB2 Ref B: CO1EDGE1414 Ref C: 2021-11-04T13:38:18Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "f9b7243c-eaf8-4f1b-8db5-27139b9dd252" + "de4f8beb-11b0-4e12-927c-af49d1af71e9" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165518Z:f9b7243c-eaf8-4f1b-8db5-27139b9dd252" + "WESTUS2:20211104T133818Z:de4f8beb-11b0-4e12-927c-af49d1af71e9" ], "Date": [ - "Wed, 03 Nov 2021 16:55:18 GMT" + "Thu, 04 Nov 2021 13:38:17 GMT" ], "Content-Length": [ "107" @@ -320,10 +320,10 @@ "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2021-06-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomain\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "30d75bef-636d-44f3-b611-f8b5ff39dcd9" + "81df6300-51d5-4671-b0f8-38c7c21dbf4f" ], "Accept-Language": [ "en-US" @@ -338,7 +338,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "90" + "58" ] }, "ResponseHeaders": { @@ -346,10 +346,10 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "x-ms-request-id": [ - "ddb30d78-0f57-4eeb-9690-3dfbd07655be" + "8af2ef56-58c5-40ce-8529-cf8244116c3b" ], "x-iot-correlation": [ - "2qjbrj1y.0" + "86l1mnjx.0" ], "X-Content-Type-Options": [ "nosniff" @@ -364,10 +364,10 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ - "iotcprodwestus02" + "iotcprodwestus01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -376,19 +376,19 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: B35486E117EE4A55B1CC902D396D94D5 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:18Z" + "Ref A: 87BA5F7367AD46C383416EE4AC1FEF66 Ref B: CO1EDGE1414 Ref C: 2021-11-04T13:38:18Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "d49503bc-f977-4a1e-8e87-801f05b5a61b" + "ad47c349-113c-4318-b5c4-b95cee62e638" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165518Z:d49503bc-f977-4a1e-8e87-801f05b5a61b" + "WESTUS2:20211104T133818Z:ad47c349-113c-4318-b5c4-b95cee62e638" ], "Date": [ - "Wed, 03 Nov 2021 16:55:18 GMT" + "Thu, 04 Nov 2021 13:38:17 GMT" ], "Content-Length": [ "103" @@ -401,13 +401,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDY5M2MxOTFjY2NjNzQ5ZDI4OWUzMDMyODQyNzQ5NmFlP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "81937e11-246f-4041-8471-7e2274a45d7b" + "a24a8afb-abe5-40f0-afd7-396827396781" ], "Accept-Language": [ "en-US" @@ -422,7 +422,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "231" + "167" ] }, "ResponseHeaders": { @@ -430,7 +430,7 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"01021cee-0000-0100-0000-6182bef70000\"" + "W/\"0902bb66-0000-0100-0000-6183e24b0000\"" ], "Vary": [ "Accept-Encoding" @@ -439,10 +439,10 @@ "1198" ], "x-ms-request-id": [ - "0bab4e19-543f-4b2c-89e6-474db3f27db3" + "2f093274-e4d1-4d3f-a4dc-97f52162c3c9" ], "x-iot-correlation": [ - "2at4u1bj.1.0" + "662k6smr.1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -461,44 +461,44 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: C578E5126DC844229A5AA16642E450F6 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:19Z" + "Ref A: 3022F5C3973F45C2B6911128094D1BD8 Ref B: CO1EDGE1414 Ref C: 2021-11-04T13:38:18Z" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ - "iotcprodwestus02" + "iotcprodwestus01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "x-ms-correlation-request-id": [ - "398c612e-8df2-4713-8fb1-9dc7a0c4bb9f" + "c7fa8c6c-54ae-4b6f-abb5-7ad621f99685" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165521Z:398c612e-8df2-4713-8fb1-9dc7a0c4bb9f" + "WESTUS2:20211104T133820Z:c7fa8c6c-54ae-4b6f-abb5-7ad621f99685" ], "Date": [ - "Wed, 03 Nov 2021 16:55:20 GMT" + "Thu, 04 Nov 2021 13:38:19 GMT" ], "Content-Length": [ - "667" + "504" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"cf934a2a-8868-4708-a42e-4e2fa1f31565\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZTA4ZTllY2Q2NTk2ZDRjNTI4NjliOTBiMjc2NmUyNjAwL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdkiotcentralrg/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka2lvdGNlbnRyYWxyZy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "16c37555-00cb-4032-b930-9fdf25512520" + "928347d9-fd57-4b94-82e0-9a44c9a46af7" ], "Accept-Language": [ "en-US" @@ -518,13 +518,13 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" + "11997" ], "x-ms-request-id": [ - "081a57b8-9b1f-4eb8-9630-5cee0e171a76" + "3e6350a1-ebcd-4b08-9e3a-3cce805f7060" ], "x-iot-correlation": [ - "ah7ozg8l.0" + "a3mi31bc.0" ], "X-Content-Type-Options": [ "nosniff" @@ -539,10 +539,10 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ - "iotcprodwestus02" + "iotcprodwestus01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -551,25 +551,25 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: F2C800E187234CD187B6AAA2F6AF6FD4 Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:21Z" + "Ref A: 8CEAD7840DA9442583C7AB73C152E047 Ref B: CO1EDGE1414 Ref C: 2021-11-04T13:38:20Z" ], "x-ms-correlation-request-id": [ - "03c0df52-afe4-42c1-b330-10975e95b99e" + "726a0d39-9a6f-4483-bc71-753ce967f8a6" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165521Z:03c0df52-afe4-42c1-b330-10975e95b99e" + "WESTUS2:20211104T133820Z:726a0d39-9a6f-4483-bc71-753ce967f8a6" ], "Date": [ - "Wed, 03 Nov 2021 16:55:20 GMT" + "Thu, 04 Nov 2021 13:38:19 GMT" ], "Content-Length": [ - "679" + "516" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"cf934a2a-8868-4708-a42e-4e2fa1f31565\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 }, { @@ -579,7 +579,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "cfe74e65-f4e2-446b-abe6-41b15ed955c3" + "ab497bee-a555-47e6-83c1-f146830b5609" ], "Accept-Language": [ "en-US" @@ -599,13 +599,13 @@ "Accept-Encoding" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" + "11996" ], "x-ms-request-id": [ - "6db65522-62bb-450d-8f6c-3963517f6346" + "caf1e95a-ed3c-4b12-98f4-2febf8353f10" ], "x-iot-correlation": [ - "83pabsip.0" + "4dz89v3d.0" ], "X-Content-Type-Options": [ "nosniff" @@ -620,10 +620,10 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ - "iotcprodwestus02" + "iotcprodwestus01" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -632,25 +632,25 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 9922B7CC610C46A1890F88A057A8438C Ref B: CO1EDGE1412 Ref C: 2021-11-03T16:55:21Z" + "Ref A: 54253697800248A0A85542BE6A72DE9F Ref B: CO1EDGE1414 Ref C: 2021-11-04T13:38:20Z" ], "x-ms-correlation-request-id": [ - "32e2bee5-9d05-467a-93f4-d8f169b0534e" + "4c05de84-4406-451e-95a8-3248431fab2f" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165521Z:32e2bee5-9d05-467a-93f4-d8f169b0534e" + "WESTUS2:20211104T133820Z:4c05de84-4406-451e-95a8-3248431fab2f" ], "Date": [ - "Wed, 03 Nov 2021 16:55:20 GMT" + "Thu, 04 Nov 2021 13:38:19 GMT" ], "Content-Length": [ - "4633" + "4910" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/poanchen\",\r\n \"name\": \"poanchen\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4414372a-16a7-4dec-a722-9457e77219d6\",\r\n \"displayName\": \"poanchen\",\r\n \"subdomain\": \"poanchen\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testmetrics\",\r\n \"name\": \"testmetrics\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"applicationId\": \"f273a175-68cc-4bd8-b43b-2f7516998154\",\r\n \"displayName\": \"testmetrics\",\r\n \"subdomain\": \"testmetrics\",\r\n \"template\": \"iotc-video-analytics-om@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdatef2e8ea4c5ef8463c94f04ac3add13964/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"name\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"c2943ade-d5e1-4dce-bb91-58f69131a526\",\r\n \"displayName\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatec9919d490d7e47a78f3b2b2fdaaeed04\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"85491086-8572-4727-911c-5c22c51ddf92\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdate06c9152c130143169154985550c6ffaa/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"name\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"bd119cdf-2b95-4ee6-8cc9-208793c4898d\",\r\n \"displayName\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatecd930f8709c94a8e92e0c4061a8c336d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/baron-and-alice-home\",\r\n \"name\": \"baron-and-alice-home\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"8cb82338-9e9a-4a91-98c9-cd4991692025\",\r\n \"displayName\": \"Baron and Alice home\",\r\n \"subdomain\": \"baron-and-alice-home\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testshoebox\",\r\n \"name\": \"testshoebox\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"0949c74c-ce4b-48ba-a3c4-611d4ba06832\",\r\n \"displayName\": \"testshoebox\",\r\n \"subdomain\": \"testshoebox\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0b27f3094db74ca38645995c0e74ccf1/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"name\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"9871d361-f206-4772-82d4-96e2d773eb91\",\r\n \"displayName\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"subdomain\": \"dotnetsdksubdomain48c027b867b94e1db5676549734f4a96\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"bde7f482-d677-45fe-ae67-0a50cce963d7\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate08e9ecd6596d4c52869b90b2766e2600/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"name\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"970f4f11-0112-40ac-b65d-36b46ebc0f0e\",\r\n \"displayName\": \"dotnetsdkapp693c191cccc749d289e30328427496ae\",\r\n \"subdomain\": \"dotnetsdksubdomainea6d33896b3d4d22ade76fcf665f84ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/myResourceGroup/providers/Microsoft.IoTCentral/iotApps/my-app-name\",\r\n \"name\": \"my-app-name\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"1905784e-b165-4f89-b37b-399ff2cbd261\",\r\n \"displayName\": \"my-app-name-new-name\",\r\n \"subdomain\": \"my-app-name\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"cf934a2a-8868-4708-a42e-4e2fa1f31565\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdatef2e8ea4c5ef8463c94f04ac3add13964/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"name\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"c2943ade-d5e1-4dce-bb91-58f69131a526\",\r\n \"displayName\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatec9919d490d7e47a78f3b2b2fdaaeed04\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"85491086-8572-4727-911c-5c22c51ddf92\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdate06c9152c130143169154985550c6ffaa/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"name\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"bd119cdf-2b95-4ee6-8cc9-208793c4898d\",\r\n \"displayName\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatecd930f8709c94a8e92e0c4061a8c336d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testmetrics\",\r\n \"name\": \"testmetrics\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"applicationId\": \"f273a175-68cc-4bd8-b43b-2f7516998154\",\r\n \"displayName\": \"testmetrics\",\r\n \"subdomain\": \"testmetrics\",\r\n \"template\": \"iotc-video-analytics-om@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0b27f3094db74ca38645995c0e74ccf1/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"name\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"9871d361-f206-4772-82d4-96e2d773eb91\",\r\n \"displayName\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"subdomain\": \"dotnetsdksubdomain48c027b867b94e1db5676549734f4a96\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"bde7f482-d677-45fe-ae67-0a50cce963d7\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testshoebox\",\r\n \"name\": \"testshoebox\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"0949c74c-ce4b-48ba-a3c4-611d4ba06832\",\r\n \"displayName\": \"testshoebox\",\r\n \"subdomain\": \"testshoebox\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/poanchen\",\r\n \"name\": \"poanchen\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4414372a-16a7-4dec-a722-9457e77219d6\",\r\n \"displayName\": \"poanchen\",\r\n \"subdomain\": \"poanchen\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/baron-and-alice-home\",\r\n \"name\": \"baron-and-alice-home\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"8cb82338-9e9a-4a91-98c9-cd4991692025\",\r\n \"displayName\": \"Baron and Alice home\",\r\n \"subdomain\": \"baron-and-alice-home\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json deleted file mode 100644 index 5a8ba4c1d69f..000000000000 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json +++ /dev/null @@ -1,661 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "daba75c1-3daa-48ed-bc3c-99c4bf8e1f82" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.30411.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "28" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-cache" - ], - "Pragma": [ - "no-cache" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-request-id": [ - "d2c2ebdb-5a29-4c06-8184-8d90212bc69b" - ], - "x-ms-correlation-request-id": [ - "d2c2ebdb-5a29-4c06-8184-8d90212bc69b" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20211103T165334Z:d2c2ebdb-5a29-4c06-8184-8d90212bc69b" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "Date": [ - "Wed, 03 Nov 2021 16:53:34 GMT" - ], - "Content-Length": [ - "265" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a\",\r\n \"name\": \"dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDA3Y2ZlOWE4OThiNjRkMjU5MDZlZjQxZjY2YmI1ZjIwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "2ed74a67-8348-4faf-821d-da0bbe5ce90b" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.30411.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "282" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" - ], - "ETag": [ - "\"f6046f4e-0000-0100-0000-6182be960000\"" - ], - "x-ms-request-id": [ - "eea132a1-239e-49f4-a207-e8617376898b" - ], - "x-iot-correlation": [ - "9oo7lqv6.1.0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-download-options": [ - "noopen" - ], - "X-Frame-Options": [ - "deny" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-cache": [ - "CONFIG_NOCACHE", - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: D8F7EEDCCD0C4689B6EB926442025168 Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:53:37Z" - ], - "X-IoT-Version": [ - "102821.0001-release" - ], - "X-IoT-Cluster": [ - "iotcprodwestus02" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "2c2d5811-7237-448a-93b0-097445d0f29f" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20211103T165343Z:2c2d5811-7237-448a-93b0-097445d0f29f" - ], - "Date": [ - "Wed, 03 Nov 2021 16:53:42 GMT" - ], - "Content-Length": [ - "749" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n}", - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDA3Y2ZlOWE4OThiNjRkMjU5MDZlZjQxZjY2YmI1ZjIwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "User-Agent": [ - "FxVersion/4.6.30411.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" - ], - "ETag": [ - "W/\"f6046f4e-0000-0100-0000-6182be960000\"" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11999" - ], - "x-ms-request-id": [ - "f85467e9-391c-47a6-96ab-c651ff2d8c6b" - ], - "x-iot-correlation": [ - "y0unyb8.0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Download-Options": [ - "noopen" - ], - "X-Frame-Options": [ - "deny" - ], - "X-XSS-Protection": [ - "1; mode=block" - ], - "X-IoT-Version": [ - "102821.0001-release" - ], - "X-IoT-Cluster": [ - "iotcprodwestus02" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 9CD4CAC3D8714AB1BA4DAFA9F9C126BF Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:13Z" - ], - "x-ms-correlation-request-id": [ - "7fe6cef8-6a08-475d-909e-4db380ec1152" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20211103T165414Z:7fe6cef8-6a08-475d-909e-4db380ec1152" - ], - "Date": [ - "Wed, 03 Nov 2021 16:54:13 GMT" - ], - "Content-Length": [ - "749" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"IoTApps\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "8aa7d746-23e6-412e-b721-bd86ba53f88a" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.30411.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "84" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" - ], - "x-ms-request-id": [ - "ebd24535-4f37-4571-b503-2ce28771f221" - ], - "x-iot-correlation": [ - "3dauwv7i.0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Download-Options": [ - "noopen" - ], - "X-Frame-Options": [ - "deny" - ], - "X-XSS-Protection": [ - "1; mode=block" - ], - "X-IoT-Version": [ - "102821.0001-release" - ], - "X-IoT-Cluster": [ - "iotcprodwestus02" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 5C245C706A9146119B93474EC7187339 Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:14Z" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1199" - ], - "x-ms-correlation-request-id": [ - "4fb24b28-8b09-4814-b183-7c3f1a9d0650" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20211103T165414Z:4fb24b28-8b09-4814-b183-7c3f1a9d0650" - ], - "Date": [ - "Wed, 03 Nov 2021 16:54:13 GMT" - ], - "Content-Length": [ - "107" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"The resource name is in use\",\r\n \"message\": \"Try other variations of the name\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"type\": \"IoTApps\"\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "f9ce3fc0-74fb-42cf-a623-f3447c7a8517" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.30411.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "90" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" - ], - "x-ms-request-id": [ - "3ea5bfc0-b04b-498c-b692-6cf967670f1a" - ], - "x-iot-correlation": [ - "cbqa4u8j.0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Download-Options": [ - "noopen" - ], - "X-Frame-Options": [ - "deny" - ], - "X-XSS-Protection": [ - "1; mode=block" - ], - "X-IoT-Version": [ - "102821.0001-release" - ], - "X-IoT-Cluster": [ - "iotcprodwestus02" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 471C34AF12144B7E8017A61D53FFF1AD Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:14Z" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-correlation-request-id": [ - "7b5708d1-dc0a-4920-9421-c7b979ef6c1c" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20211103T165414Z:7b5708d1-dc0a-4920-9421-c7b979ef6c1c" - ], - "Date": [ - "Wed, 03 Nov 2021 16:54:14 GMT" - ], - "Content-Length": [ - "103" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"The subdomain is in use\",\r\n \"message\": \"Try other variations of the name\"\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcDA3Y2ZlOWE4OThiNjRkMjU5MDZlZjQxZjY2YmI1ZjIwP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", - "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\"\r\n }\r\n}", - "RequestHeaders": { - "x-ms-client-request-id": [ - "968febd0-1633-4ce9-b87e-b839910b9b36" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.30411.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "231" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" - ], - "ETag": [ - "W/\"f6044456-0000-0100-0000-6182beb80000\"" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1198" - ], - "x-ms-request-id": [ - "e453ba10-4ff6-4d30-a62e-e3f8946f9d36" - ], - "x-iot-correlation": [ - "bibppur1.1.0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "x-download-options": [ - "noopen" - ], - "X-Frame-Options": [ - "deny" - ], - "x-xss-protection": [ - "1; mode=block" - ], - "x-cache": [ - "CONFIG_NOCACHE", - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 909D9484C9DF483E9604DC8C52C737CE Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:14Z" - ], - "X-IoT-Version": [ - "102821.0001-release" - ], - "X-IoT-Cluster": [ - "iotcprodwestus02" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "x-ms-correlation-request-id": [ - "94c7aa6d-e6cd-45a4-90aa-33fbacc89323" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20211103T165417Z:94c7aa6d-e6cd-45a4-90aa-33fbacc89323" - ], - "Date": [ - "Wed, 03 Nov 2021 16:54:16 GMT" - ], - "Content-Length": [ - "780" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka3N1YmRvbWFpbnVwZGF0ZWUxMjA4MDM5ZTM5MzRmYzZiYzFiNGRmNDkyNWVmYTJhL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "cdc732d7-a926-4873-b7f2-125f746b2cdd" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.30411.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11998" - ], - "x-ms-request-id": [ - "62ef8a0c-d02f-4532-9423-25902d920376" - ], - "x-iot-correlation": [ - "4xxq892u.0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Download-Options": [ - "noopen" - ], - "X-Frame-Options": [ - "deny" - ], - "X-XSS-Protection": [ - "1; mode=block" - ], - "X-IoT-Version": [ - "102821.0001-release" - ], - "X-IoT-Cluster": [ - "iotcprodwestus02" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 6BC8E157FF104922ADEA00E8C8B92B96 Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:17Z" - ], - "x-ms-correlation-request-id": [ - "9ee19baf-c65c-497b-8c30-03e95ef2f22a" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20211103T165417Z:9ee19baf-c65c-497b-8c30-03e95ef2f22a" - ], - "Date": [ - "Wed, 03 Nov 2021 16:54:17 GMT" - ], - "Content-Length": [ - "792" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "x-ms-client-request-id": [ - "93d03321-86fb-4782-a4a9-97e4ed0c32a8" - ], - "Accept-Language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.30411.01", - "OSName/Windows", - "OSVersion/Microsoft.Windows.10.0.19043.", - "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" - ] - }, - "ResponseHeaders": { - "Cache-Control": [ - "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" - ], - "Vary": [ - "Accept-Encoding" - ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "11997" - ], - "x-ms-request-id": [ - "e6b14163-4a23-4b41-bd92-dcd5a0f95477" - ], - "x-iot-correlation": [ - "324w6lke.0" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Download-Options": [ - "noopen" - ], - "X-Frame-Options": [ - "deny" - ], - "X-XSS-Protection": [ - "1; mode=block" - ], - "X-IoT-Version": [ - "102821.0001-release" - ], - "X-IoT-Cluster": [ - "iotcprodwestus02" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Cache": [ - "CONFIG_NOCACHE" - ], - "X-MSEdge-Ref": [ - "Ref A: 2C8E2F97353841D5883BF8AF6D24729B Ref B: CO1EDGE1206 Ref C: 2021-11-03T16:54:17Z" - ], - "x-ms-correlation-request-id": [ - "0e6f9c28-381e-4aa5-8760-230d47664100" - ], - "x-ms-routing-request-id": [ - "WESTUS2:20211103T165418Z:0e6f9c28-381e-4aa5-8760-230d47664100" - ], - "Date": [ - "Wed, 03 Nov 2021 16:54:18 GMT" - ], - "Content-Length": [ - "4746" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testmetrics\",\r\n \"name\": \"testmetrics\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"applicationId\": \"f273a175-68cc-4bd8-b43b-2f7516998154\",\r\n \"displayName\": \"testmetrics\",\r\n \"subdomain\": \"testmetrics\",\r\n \"template\": \"iotc-video-analytics-om@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testshoebox\",\r\n \"name\": \"testshoebox\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"0949c74c-ce4b-48ba-a3c4-611d4ba06832\",\r\n \"displayName\": \"testshoebox\",\r\n \"subdomain\": \"testshoebox\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/poanchen\",\r\n \"name\": \"poanchen\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4414372a-16a7-4dec-a722-9457e77219d6\",\r\n \"displayName\": \"poanchen\",\r\n \"subdomain\": \"poanchen\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdate06c9152c130143169154985550c6ffaa/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"name\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"bd119cdf-2b95-4ee6-8cc9-208793c4898d\",\r\n \"displayName\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatecd930f8709c94a8e92e0c4061a8c336d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdatef2e8ea4c5ef8463c94f04ac3add13964/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"name\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"c2943ade-d5e1-4dce-bb91-58f69131a526\",\r\n \"displayName\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatec9919d490d7e47a78f3b2b2fdaaeed04\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"85491086-8572-4727-911c-5c22c51ddf92\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/baron-and-alice-home\",\r\n \"name\": \"baron-and-alice-home\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"8cb82338-9e9a-4a91-98c9-cd4991692025\",\r\n \"displayName\": \"Baron and Alice home\",\r\n \"subdomain\": \"baron-and-alice-home\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdatee1208039e3934fc6bc1b4df4925efa2a/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"name\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"a08b51b9-2b52-4d24-a763-ffa7dfeba998\",\r\n \"displayName\": \"dotnetsdkapp07cfe9a898b64d25906ef41f66bb5f20\",\r\n \"subdomain\": \"dotnetsdksubdomain21c1cb0efb4e408c933689ce54137167\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"1991f24a-4bd7-4a73-ad1b-25b896a97211\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0b27f3094db74ca38645995c0e74ccf1/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"name\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"9871d361-f206-4772-82d4-96e2d773eb91\",\r\n \"displayName\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"subdomain\": \"dotnetsdksubdomain48c027b867b94e1db5676549734f4a96\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"bde7f482-d677-45fe-ae67-0a50cce963d7\"\r\n }\r\n }\r\n ]\r\n}", - "StatusCode": 200 - } - ], - "Names": {}, - "Variables": { - "SubscriptionId": "bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b" - } -} \ No newline at end of file diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralOperationsApi.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralOperationsApi.json index 2e9fc158d7dc..c37a17832478 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralOperationsApi.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralOperationsApi.json @@ -7,7 +7,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ca050377-3dea-4cae-ac5b-77f7913953a4" + "13c5d164-78fc-434e-b7fc-bc4284230d1c" ], "Accept-Language": [ "en-US" @@ -30,10 +30,10 @@ "11999" ], "x-ms-request-id": [ - "e1784829-5aad-400e-996c-e9f8833d6a33" + "ded17d9b-f908-488e-b379-6428e989a3df" ], "x-iot-correlation": [ - "9vhquh3k.0" + "cncqwum2.0" ], "X-Content-Type-Options": [ "nosniff" @@ -48,7 +48,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -60,16 +60,16 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 4B2E197C27F8455B851A222CA2FFE6B8 Ref B: CO1EDGE1219 Ref C: 2021-11-03T16:54:38Z" + "Ref A: 21686D129C5740DC9D56BA93322B2601 Ref B: BY3EDGE0511 Ref C: 2021-11-04T13:15:15Z" ], "x-ms-correlation-request-id": [ - "1a0adafb-8a9b-4f5a-a0b8-4cd088c7350d" + "75feff33-2424-4f6a-be7e-a6b07a455cbe" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165438Z:1a0adafb-8a9b-4f5a-a0b8-4cd088c7350d" + "WESTUS:20211104T131515Z:75feff33-2424-4f6a-be7e-a6b07a455cbe" ], "Date": [ - "Wed, 03 Nov 2021 16:54:38 GMT" + "Thu, 04 Nov 2021 13:15:15 GMT" ], "Content-Length": [ "12804" diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json index d968bb9762f0..69bdf6d5418c 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyP2FwaS12ZXJzaW9uPTIwMTctMDUtMTA=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DotNetSdkIotCentralRGUpdate?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "PUT", "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "06b6b3ce-7d49-4b99-8cf8-49075a8abaa8" + "55770911-d08e-4a73-936f-92d392b11875" ], "Accept-Language": [ "en-US" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "0b0cd097-0538-47b3-8661-7763f8a60c50" + "cba7dab9-85c3-426d-8e04-0122c99fdd9b" ], "x-ms-correlation-request-id": [ - "0b0cd097-0538-47b3-8661-7763f8a60c50" + "cba7dab9-85c3-426d-8e04-0122c99fdd9b" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165232Z:0b0cd097-0538-47b3-8661-7763f8a60c50" + "WESTUS2:20211104T133917Z:cba7dab9-85c3-426d-8e04-0122c99fdd9b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,10 +51,10 @@ "nosniff" ], "Date": [ - "Wed, 03 Nov 2021 16:52:32 GMT" + "Thu, 04 Nov 2021 13:39:16 GMT" ], "Content-Length": [ - "271" + "207" ], "Content-Type": [ "application/json; charset=utf-8" @@ -63,17 +63,17 @@ "-1" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692\",\r\n \"name\": \"DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate\",\r\n \"name\": \"DotNetSdkIotCentralRGUpdate\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcHVwZGF0ZWMxMDIxMDQzNWNlNjQwYmM5YmFjYjg2ODMxYjdmYWNhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHB1cGRhdGU/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate46f84dc04f994aac99202c2e8d84794d\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkappupdate\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8ab52c2c-7259-43de-9ca8-b2a7b5cbd467" + "02827f3d-0acf-4f9c-97e4-8f67670291ad" ], "Accept-Language": [ "en-US" @@ -88,7 +88,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "241" + "177" ] }, "ResponseHeaders": { @@ -96,13 +96,13 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "\"27025901-0000-0100-0000-6182be540000\"" + "\"09027f6a-0000-0100-0000-6183e28a0000\"" ], "x-ms-request-id": [ - "99936160-39a0-493a-a4df-ba86a8d5486c" + "b78f4f57-27ce-4360-a632-2beb753d4c71" ], "x-iot-correlation": [ - "1t1yv3d4.1.0" + "3sfwhhlw.1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -121,10 +121,10 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: E4882D8BE23E4E5EB4E90834DDBCAFE3 Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:52:33Z" + "Ref A: 7822E13F33324760B1CF8104A8645266 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:20Z" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -136,27 +136,27 @@ "1199" ], "x-ms-correlation-request-id": [ - "2a423db4-b551-4503-8a84-d244b77e438a" + "14c04a2b-10fa-4aed-87c5-4180b6cbf323" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165237Z:2a423db4-b551-4503-8a84-d244b77e438a" + "WESTUS2:20211104T133924Z:14c04a2b-10fa-4aed-87c5-4180b6cbf323" ], "Date": [ - "Wed, 03 Nov 2021 16:52:37 GMT" + "Thu, 04 Nov 2021 13:39:24 GMT" ], "Content-Length": [ - "663" + "503" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"7bf0205d-b26a-4bfe-835b-d84f79ed2b47\",\r\n \"displayName\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate46f84dc04f994aac99202c2e8d84794d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"fcf44964-6d34-40e6-be71-831118014668\",\r\n \"displayName\": \"dotnetsdkappupdate\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcHVwZGF0ZWMxMDIxMDQzNWNlNjQwYmM5YmFjYjg2ODMxYjdmYWNhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHB1cGRhdGU/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { @@ -172,7 +172,7 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"27025901-0000-0100-0000-6182be540000\"" + "W/\"09027f6a-0000-0100-0000-6183e28a0000\"" ], "Vary": [ "Accept-Encoding" @@ -181,10 +181,10 @@ "11999" ], "x-ms-request-id": [ - "648cf6a4-a518-48fa-91af-f6e6258a2ccf" + "160095a3-40a7-4eb2-aa92-e7087736dc68" ], "x-iot-correlation": [ - "82ywuhq1.0" + "bygty6w2.0" ], "X-Content-Type-Options": [ "nosniff" @@ -199,7 +199,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -211,35 +211,35 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 5A814FBE81FB43EAB1FB3E7C169EAEC1 Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:07Z" + "Ref A: 64EB47FBB98143FD84F21D24DD9920A7 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:54Z" ], "x-ms-correlation-request-id": [ - "953fd146-f570-4070-9bcd-c045a5b25b60" + "bcd3209c-afcc-4500-afa2-38aaaf5dc3e1" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165307Z:953fd146-f570-4070-9bcd-c045a5b25b60" + "WESTUS2:20211104T133954Z:bcd3209c-afcc-4500-afa2-38aaaf5dc3e1" ], "Date": [ - "Wed, 03 Nov 2021 16:53:07 GMT" + "Thu, 04 Nov 2021 13:39:54 GMT" ], "Content-Length": [ - "663" + "503" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"7bf0205d-b26a-4bfe-835b-d84f79ed2b47\",\r\n \"displayName\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate46f84dc04f994aac99202c2e8d84794d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"fcf44964-6d34-40e6-be71-831118014668\",\r\n \"displayName\": \"dotnetsdkappupdate\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestBody": "{\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "57992153-df41-4b9f-910f-49f21cb35431" + "8056dfd6-cb89-4235-8d17-03be861e0a5e" ], "Accept-Language": [ "en-US" @@ -254,7 +254,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "90" + "58" ] }, "ResponseHeaders": { @@ -262,10 +262,10 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "x-ms-request-id": [ - "cf586963-c6e6-4e91-a59e-39c8778f88d8" + "fa1a0974-b86b-475a-9d8b-333a60edcaa6" ], "x-iot-correlation": [ - "7gt0d98v.0" + "br58ykdc.0" ], "X-Content-Type-Options": [ "nosniff" @@ -280,7 +280,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -292,19 +292,19 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 5D3F7B2E02D4414490FEC1EDDE858161 Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:07Z" + "Ref A: 17CD863553A3407B9C73AE256D5BF699 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:54Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "fd3b847b-1da0-49d8-8f47-ece74767bc6b" + "0d883019-dfcc-4f4f-be9d-8b4595348583" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165307Z:fd3b847b-1da0-49d8-8f47-ece74767bc6b" + "WESTUS2:20211104T133954Z:0d883019-dfcc-4f4f-be9d-8b4595348583" ], "Date": [ - "Wed, 03 Nov 2021 16:53:07 GMT" + "Thu, 04 Nov 2021 13:39:54 GMT" ], "Content-Length": [ "107" @@ -320,10 +320,10 @@ "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2021-06-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "POST", - "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomainupdate46f84dc04f994aac99202c2e8d84794d\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomainupdate\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "80e80a54-0fe0-4521-b702-9d5120eca1a5" + "c16aa3dd-9af4-4645-89c0-7a8f176b635f" ], "Accept-Language": [ "en-US" @@ -338,7 +338,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "96" + "64" ] }, "ResponseHeaders": { @@ -346,10 +346,10 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "x-ms-request-id": [ - "95e70ca5-e0bd-46d6-8a03-d8ff2f6ba0ab" + "741a7714-e856-4421-8019-53d9c738710b" ], "x-iot-correlation": [ - "27qmoej5.0" + "61jv4w.0" ], "X-Content-Type-Options": [ "nosniff" @@ -364,7 +364,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -376,19 +376,19 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: E0F55BB735B14E8380AAC59CD8856889 Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:07Z" + "Ref A: 2FA4E41A2A83422688F85F193A756B88 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:54Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "2d12dbec-c0c9-4e48-b177-6d99413e56e6" + "7b722a0a-eceb-4242-9f19-fac2661403fb" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165307Z:2d12dbec-c0c9-4e48-b177-6d99413e56e6" + "WESTUS2:20211104T133955Z:7b722a0a-eceb-4242-9f19-fac2661403fb" ], "Date": [ - "Wed, 03 Nov 2021 16:53:07 GMT" + "Thu, 04 Nov 2021 13:39:54 GMT" ], "Content-Length": [ "103" @@ -401,13 +401,13 @@ "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzL2RvdG5ldHNka2FwcHVwZGF0ZWMxMDIxMDQzNWNlNjQwYmM5YmFjYjg2ODMxYjdmYWNhP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHB1cGRhdGU/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"test-updated-display-namea4a251210e3f4b84abd077f17ce28685\",\r\n \"subdomain\": \"test-updated-sub-domainf21d2daa58354f6e9bb7af648020ad3f\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"test-updated-display-namee179d26bf33b4ea8bef25be20bc54494\",\r\n \"subdomain\": \"test-updated-sub-domaine573fba534da48ccae8d830403ad13ce\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "cd81913f-5b59-4b6c-8941-a8848ed78d12" + "5f861a7d-4dd8-4cae-a44a-dd0cee313359" ], "Accept-Language": [ "en-US" @@ -430,7 +430,7 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"2702210e-0000-0100-0000-6182be760000\"" + "W/\"0902cb6c-0000-0100-0000-6183e2ac0000\"" ], "Vary": [ "Accept-Encoding" @@ -439,10 +439,10 @@ "1198" ], "x-ms-request-id": [ - "9b42d849-70d1-43a2-a22e-7fe72b5984aa" + "38cfbdfb-72d0-42a3-8183-da9b33aad042" ], "x-iot-correlation": [ - "5du3xrla.1.0" + "5t3ssroe.1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -461,10 +461,10 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 1D1EB6448F90409B9C88F2FA154D0DAD Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:08Z" + "Ref A: 65DA3B423232499A92EC0F62CDBB715F Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:55Z" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -473,32 +473,32 @@ "max-age=31536000; includeSubDomains" ], "x-ms-correlation-request-id": [ - "18986f77-2805-43df-a78c-cbad64f751ff" + "2eaa20da-fd08-4051-9c86-2bab37d14bb2" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165311Z:18986f77-2805-43df-a78c-cbad64f751ff" + "WESTUS2:20211104T133956Z:2eaa20da-fd08-4051-9c86-2bab37d14bb2" ], "Date": [ - "Wed, 03 Nov 2021 16:53:11 GMT" + "Thu, 04 Nov 2021 13:39:56 GMT" ], "Content-Length": [ - "700" + "604" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"7bf0205d-b26a-4bfe-835b-d84f79ed2b47\",\r\n \"displayName\": \"test-updated-display-namea4a251210e3f4b84abd077f17ce28685\",\r\n \"subdomain\": \"test-updated-sub-domainf21d2daa58354f6e9bb7af648020ad3f\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"fcf44964-6d34-40e6-be71-831118014668\",\r\n \"displayName\": \"test-updated-display-namee179d26bf33b4ea8bef25be20bc54494\",\r\n \"subdomain\": \"test-updated-sub-domaine573fba534da48ccae8d830403ad13ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZTk0MDg5Mzg0ZGNhYjQzZWVhNzk4NDE1Y2JmZTk4NjkyL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "daa2d8d4-ef3a-4e9f-9a72-342cc60495fa" + "ee7ac707-f481-49c8-82d6-45cdf68c8fe3" ], "Accept-Language": [ "en-US" @@ -521,10 +521,10 @@ "11998" ], "x-ms-request-id": [ - "dfc7f57d-56c4-4ad7-bff9-bfcdb8bdcb5e" + "ec1a588a-29bc-4f8d-9297-deaa1c7e9e3d" ], "x-iot-correlation": [ - "9dl0hx3g.0" + "7bpbffjr.0" ], "X-Content-Type-Options": [ "nosniff" @@ -539,7 +539,7 @@ "1; mode=block" ], "X-IoT-Version": [ - "102821.0001-release" + "110221.0001-release" ], "X-IoT-Cluster": [ "iotcprodwestus02" @@ -551,25 +551,25 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 4A0FED69AA6F45898A40CB326D7DF77A Ref B: CO1EDGE1918 Ref C: 2021-11-03T16:53:11Z" + "Ref A: 2988B7A09DB54271866C0CA7B09D8411 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:56Z" ], "x-ms-correlation-request-id": [ - "149ce1be-288a-49e1-9a73-76e6e22aea47" + "90c21900-92fc-4aab-9ce9-783df19d3771" ], "x-ms-routing-request-id": [ - "WESTUS2:20211103T165312Z:149ce1be-288a-49e1-9a73-76e6e22aea47" + "WESTUS2:20211104T133957Z:90c21900-92fc-4aab-9ce9-783df19d3771" ], "Date": [ - "Wed, 03 Nov 2021 16:53:12 GMT" + "Thu, 04 Nov 2021 13:39:56 GMT" ], "Content-Length": [ - "712" + "616" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate94089384dcab43eea798415cbfe98692/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"name\": \"dotnetsdkappupdatec10210435ce640bc9bacb86831b7faca\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"7bf0205d-b26a-4bfe-835b-d84f79ed2b47\",\r\n \"displayName\": \"test-updated-display-namea4a251210e3f4b84abd077f17ce28685\",\r\n \"subdomain\": \"test-updated-sub-domainf21d2daa58354f6e9bb7af648020ad3f\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"fcf44964-6d34-40e6-be71-831118014668\",\r\n \"displayName\": \"test-updated-display-namee179d26bf33b4ea8bef25be20bc54494\",\r\n \"subdomain\": \"test-updated-sub-domaine573fba534da48ccae8d830403ad13ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], From 2bc3fc3c34722134d5c8ff790717bc2bd8efb5c2 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 4 Nov 2021 09:36:34 -0700 Subject: [PATCH 08/14] Removed randomization from UpdateLIfeCycle tests and re-ran session records Removed randomization from UpdateLIfeCycle tests and re-ran session records --- .../ScenarioTests/IotCentralLifeCycleTests.cs | 4 +- ...ralCreateWithManagedIdentityLifeCycle.json | 661 ++++++++++++++++++ .../TestIotCentralUpdateLifeCycle.json | 114 +-- 3 files changed, 720 insertions(+), 59 deletions(-) create mode 100644 sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs index 2fe4915bf74d..5d09a6c6c687 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs @@ -163,8 +163,8 @@ public void TestIotCentralUpdateLifeCycle() this.CheckAppNameAndSubdomainTaken(app.Name, app.Subdomain); // Update App - var newSubDomain = "test-updated-sub-domain" + Guid.NewGuid().ToString("n"); - var newDisplayName = "test-updated-display-name" + Guid.NewGuid().ToString("n"); + var newSubDomain = "test-updated-sub-domain"; + var newDisplayName = "test-updated-display-name"; // Add and Get Tags IDictionary tags = new Dictionary diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json new file mode 100644 index 000000000000..b4abcad9cc79 --- /dev/null +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralCreateWithManagedIdentityLifeCycle.json @@ -0,0 +1,661 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/DotNetSdkIotCentralRG?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlZ3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "70da41c3-5ea0-4742-9d45-3cbfda9439ab" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "fe05f635-3421-49e4-8edd-0cc4147f9d8b" + ], + "x-ms-correlation-request-id": [ + "fe05f635-3421-49e4-8edd-0cc4147f9d8b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211104T150537Z:fe05f635-3421-49e4-8edd-0cc4147f9d8b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 04 Nov 2021 15:05:37 GMT" + ], + "Content-Length": [ + "195" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG\",\r\n \"name\": \"DotNetSdkIotCentralRG\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a821f72e-5833-445c-88c3-027eff0f08c8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "218" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "ETag": [ + "\"f804def9-0000-0100-0000-6183f6c90000\"" + ], + "x-ms-request-id": [ + "780958a7-da87-4771-9176-6683a8f8c6f2" + ], + "x-iot-correlation": [ + "42ihtz64.1.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-download-options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 3F595DB6B90D48D19B7301BF1A955119 Ref B: CO1EDGE2016 Ref C: 2021-11-04T15:05:40Z" + ], + "X-IoT-Version": [ + "110221.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "2ecdead2-c041-417f-b1c4-ea7f9e4e0019" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211104T150547Z:2ecdead2-c041-417f-b1c4-ea7f9e4e0019" + ], + "Date": [ + "Thu, 04 Nov 2021 15:05:47 GMT" + ], + "Content-Length": [ + "586" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"71178a1b-9fb0-40c6-95c0-68d6295a72c5\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"ddb5e253-6458-460a-83cd-208bcc8acbb8\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "ETag": [ + "W/\"f804def9-0000-0100-0000-6183f6c90000\"" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "2a60d9d7-83f6-47cf-a464-5f07b8cfdf4c" + ], + "x-iot-correlation": [ + "66p95066.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "110221.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: A2160BC838D645C5B6FC99B141B817AF Ref B: CO1EDGE2016 Ref C: 2021-11-04T15:06:17Z" + ], + "x-ms-correlation-request-id": [ + "e6c23cb7-55f0-404b-9560-2dfc6960e228" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211104T150617Z:e6c23cb7-55f0-404b-9560-2dfc6960e228" + ], + "Date": [ + "Thu, 04 Nov 2021 15:06:17 GMT" + ], + "Content-Length": [ + "586" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"71178a1b-9fb0-40c6-95c0-68d6295a72c5\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"ddb5e253-6458-460a-83cd-208bcc8acbb8\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkNameAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja05hbWVBdmFpbGFiaWxpdHk/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6919e32b-267c-46a0-aaed-99fd47193579" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "52" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "x-ms-request-id": [ + "659d5fbb-2e0e-4988-aa7d-7c936822c9ae" + ], + "x-iot-correlation": [ + "b2xvcdgw.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "110221.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 8D1C9D30A83C4A02832F2543DBE9FFB7 Ref B: CO1EDGE2016 Ref C: 2021-11-04T15:06:18Z" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "d0d7ad3e-f8c1-470f-b7fd-bc5b608fab0b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211104T150618Z:d0d7ad3e-f8c1-470f-b7fd-bc5b608fab0b" + ], + "Date": [ + "Thu, 04 Nov 2021 15:06:17 GMT" + ], + "Content-Length": [ + "107" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"The resource name is in use\",\r\n \"message\": \"Try other variations of the name\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/checkSubdomainAvailability?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9jaGVja1N1YmRvbWFpbkF2YWlsYWJpbGl0eT9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomain\",\r\n \"type\": \"IoTApps\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7ba80f4a-cb3b-4bf6-a3f7-2b0a158f494f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "58" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "x-ms-request-id": [ + "0c457502-21fd-47ae-9271-dfe4f6a3cd59" + ], + "x-iot-correlation": [ + "awlhmoch.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "110221.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: 850A969D4436415FB36082CDD6C1704E Ref B: CO1EDGE2016 Ref C: 2021-11-04T15:06:18Z" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "c9d79dce-2dd2-4325-a085-66d6ca4ef603" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211104T150618Z:c9d79dce-2dd2-4325-a085-66d6ca4ef603" + ], + "Date": [ + "Thu, 04 Nov 2021 15:06:18 GMT" + ], + "Content-Length": [ + "103" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"nameAvailable\": false,\r\n \"reason\": \"The subdomain is in use\",\r\n \"message\": \"Try other variations of the name\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSRy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHA/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", + "RequestMethod": "PATCH", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4a0cf39-7c66-47d1-9893-2694fb736222" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "167" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "ETag": [ + "W/\"f9042211-0000-0100-0000-6183f6eb0000\"" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "a0fb114c-9e73-47fd-bb1c-5984444909e6" + ], + "x-iot-correlation": [ + "nfpnan7.1.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-download-options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "x-xss-protection": [ + "1; mode=block" + ], + "x-cache": [ + "CONFIG_NOCACHE", + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: C6BFB83CFC304BC086D44BE493DA8B1E Ref B: CO1EDGE2016 Ref C: 2021-11-04T15:06:18Z" + ], + "X-IoT-Version": [ + "110221.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-correlation-request-id": [ + "e67c94ff-68dd-49f6-8760-68a357dd6780" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211104T150620Z:e67c94ff-68dd-49f6-8760-68a357dd6780" + ], + "Date": [ + "Thu, 04 Nov 2021 15:06:20 GMT" + ], + "Content-Length": [ + "617" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"71178a1b-9fb0-40c6-95c0-68d6295a72c5\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"ddb5e253-6458-460a-83cd-208bcc8acbb8\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdkiotcentralrg/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL2RvdG5ldHNka2lvdGNlbnRyYWxyZy9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcz9hcGktdmVyc2lvbj0yMDIxLTA2LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7661d84e-39b8-4429-a14d-60d56a29d35f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "91eef264-33b2-4374-8c7f-6d048d9abf2c" + ], + "x-iot-correlation": [ + "56hkilum.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "110221.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: A8161312D0524DD892F64D91CC8AD593 Ref B: CO1EDGE2016 Ref C: 2021-11-04T15:06:20Z" + ], + "x-ms-correlation-request-id": [ + "80acc48d-48b6-4038-937d-97af2f61c7bd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211104T150620Z:80acc48d-48b6-4038-937d-97af2f61c7bd" + ], + "Date": [ + "Thu, 04 Nov 2021 15:06:20 GMT" + ], + "Content-Length": [ + "629" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"71178a1b-9fb0-40c6-95c0-68d6295a72c5\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"ddb5e253-6458-460a-83cd-208bcc8acbb8\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/providers/Microsoft.IoTCentral/iotApps?api-version=2021-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Byb3ZpZGVycy9NaWNyb3NvZnQuSW9UQ2VudHJhbC9pb3RBcHBzP2FwaS12ZXJzaW9uPTIwMjEtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4a037155-bef0-4e20-9210-0977efbd166e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.30411.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19043.", + "Microsoft.Azure.Management.IotCentral.IotCentralClient/4.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "3369f242-7a11-4b5c-9457-77049c1af982" + ], + "x-iot-correlation": [ + "7sqog6bg.0" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "X-Download-Options": [ + "noopen" + ], + "X-Frame-Options": [ + "deny" + ], + "X-XSS-Protection": [ + "1; mode=block" + ], + "X-IoT-Version": [ + "110221.0001-release" + ], + "X-IoT-Cluster": [ + "iotcprodwestus02" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Cache": [ + "CONFIG_NOCACHE" + ], + "X-MSEdge-Ref": [ + "Ref A: AC88C77A1951467EB2B846E1A7570E63 Ref B: CO1EDGE2016 Ref C: 2021-11-04T15:06:20Z" + ], + "x-ms-correlation-request-id": [ + "ec854a99-5a36-4e00-9d83-7743c063f9c3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20211104T150620Z:ec854a99-5a36-4e00-9d83-7743c063f9c3" + ], + "Date": [ + "Thu, 04 Nov 2021 15:06:20 GMT" + ], + "Content-Length": [ + "5023" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/myResourceGroup/providers/Microsoft.IoTCentral/iotApps/my-app-name\",\r\n \"name\": \"my-app-name\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"1905784e-b165-4f89-b37b-399ff2cbd261\",\r\n \"displayName\": \"my-app-name-new-name\",\r\n \"subdomain\": \"my-app-name\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/baron-and-alice-home\",\r\n \"name\": \"baron-and-alice-home\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"8cb82338-9e9a-4a91-98c9-cd4991692025\",\r\n \"displayName\": \"Baron and Alice home\",\r\n \"subdomain\": \"baron-and-alice-home\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdate06c9152c130143169154985550c6ffaa/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"name\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"bd119cdf-2b95-4ee6-8cc9-208793c4898d\",\r\n \"displayName\": \"defaultdotnetsdkapp829b26f389124034bb0a6aa5633876ec\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatecd930f8709c94a8e92e0c4061a8c336d\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/defaultdotnetsdksubdomainupdatef2e8ea4c5ef8463c94f04ac3add13964/providers/Microsoft.IoTCentral/iotApps/defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"name\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"c2943ade-d5e1-4dce-bb91-58f69131a526\",\r\n \"displayName\": \"defaultdotnetsdkapp0ec06c85f0b3433f82fc5b38910f301e\",\r\n \"subdomain\": \"defaultdotnetsdksubdomainupdatec9919d490d7e47a78f3b2b2fdaaeed04\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"85491086-8572-4727-911c-5c22c51ddf92\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/IOTC/providers/Microsoft.IoTCentral/IoTApps/poanchen\",\r\n \"name\": \"poanchen\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4414372a-16a7-4dec-a722-9457e77219d6\",\r\n \"displayName\": \"poanchen\",\r\n \"subdomain\": \"poanchen\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourcegroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testmetrics\",\r\n \"name\": \"testmetrics\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"applicationId\": \"f273a175-68cc-4bd8-b43b-2f7516998154\",\r\n \"displayName\": \"testmetrics\",\r\n \"subdomain\": \"testmetrics\",\r\n \"template\": \"iotc-video-analytics-om@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/sometestresourcegroup/providers/Microsoft.IoTCentral/IoTApps/testshoebox\",\r\n \"name\": \"testshoebox\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"0949c74c-ce4b-48ba-a3c4-611d4ba06832\",\r\n \"displayName\": \"testshoebox\",\r\n \"subdomain\": \"testshoebox\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/dotnetsdksubdomainupdate0b27f3094db74ca38645995c0e74ccf1/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"name\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"9871d361-f206-4772-82d4-96e2d773eb91\",\r\n \"displayName\": \"dotnetsdkapp264fa40ea6314620ad15f364ebcc1b0c\",\r\n \"subdomain\": \"dotnetsdksubdomain48c027b867b94e1db5676549734f4a96\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST1\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"bde7f482-d677-45fe-ae67-0a50cce963d7\"\r\n }\r\n },\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRG/providers/Microsoft.IoTCentral/iotApps/dotnetsdkapp\",\r\n \"name\": \"dotnetsdkapp\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"71178a1b-9fb0-40c6-95c0-68d6295a72c5\",\r\n \"displayName\": \"dotnetsdkapp\",\r\n \"subdomain\": \"dotnetsdksubdomain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"tenantId\": \"7f448912-3312-4b33-838d-76eb99405624\",\r\n \"principalId\": \"ddb5e253-6458-460a-83cd-208bcc8acbb8\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b" + } +} \ No newline at end of file diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json index 69bdf6d5418c..ab15c406889f 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/SessionRecords/IotCentralLifeCycleTests/TestIotCentralUpdateLifeCycle.json @@ -7,7 +7,7 @@ "RequestBody": "{\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "55770911-d08e-4a73-936f-92d392b11875" + "23c9f383-78a8-4c86-be63-6b87bba7391a" ], "Accept-Language": [ "en-US" @@ -36,13 +36,13 @@ "1199" ], "x-ms-request-id": [ - "cba7dab9-85c3-426d-8e04-0122c99fdd9b" + "58861a3f-7f56-4a6c-8add-d7e676d8fc8e" ], "x-ms-correlation-request-id": [ - "cba7dab9-85c3-426d-8e04-0122c99fdd9b" + "58861a3f-7f56-4a6c-8add-d7e676d8fc8e" ], "x-ms-routing-request-id": [ - "WESTUS2:20211104T133917Z:cba7dab9-85c3-426d-8e04-0122c99fdd9b" + "WESTUS2:20211104T163030Z:58861a3f-7f56-4a6c-8add-d7e676d8fc8e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -51,7 +51,7 @@ "nosniff" ], "Date": [ - "Thu, 04 Nov 2021 13:39:16 GMT" + "Thu, 04 Nov 2021 16:30:30 GMT" ], "Content-Length": [ "207" @@ -73,7 +73,7 @@ "RequestBody": "{\r\n \"properties\": {\r\n \"displayName\": \"dotnetsdkappupdate\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"location\": \"EastUS\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "02827f3d-0acf-4f9c-97e4-8f67670291ad" + "446e710c-98fd-48bf-952a-263628fb2896" ], "Accept-Language": [ "en-US" @@ -96,13 +96,13 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "\"09027f6a-0000-0100-0000-6183e28a0000\"" + "\"b6021df7-0000-0100-0000-61840aab0000\"" ], "x-ms-request-id": [ - "b78f4f57-27ce-4360-a632-2beb753d4c71" + "2efbe28f-bb36-4e01-ab60-fc49f15b35e4" ], "x-iot-correlation": [ - "3sfwhhlw.1.0" + "bn5baua2.1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -121,7 +121,7 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 7822E13F33324760B1CF8104A8645266 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:20Z" + "Ref A: 96CC7C993A2B4C63A0594D6B7580480E Ref B: CO1EDGE1515 Ref C: 2021-11-04T16:30:33Z" ], "X-IoT-Version": [ "110221.0001-release" @@ -136,13 +136,13 @@ "1199" ], "x-ms-correlation-request-id": [ - "14c04a2b-10fa-4aed-87c5-4180b6cbf323" + "11e6ccfd-c44a-4a01-aada-c1e1f8c20285" ], "x-ms-routing-request-id": [ - "WESTUS2:20211104T133924Z:14c04a2b-10fa-4aed-87c5-4180b6cbf323" + "WESTUS2:20211104T163037Z:11e6ccfd-c44a-4a01-aada-c1e1f8c20285" ], "Date": [ - "Thu, 04 Nov 2021 13:39:24 GMT" + "Thu, 04 Nov 2021 16:30:37 GMT" ], "Content-Length": [ "503" @@ -151,7 +151,7 @@ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"fcf44964-6d34-40e6-be71-831118014668\",\r\n \"displayName\": \"dotnetsdkappupdate\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4e1e7757-ff8f-4b06-8d43-604bb31f1ac0\",\r\n \"displayName\": \"dotnetsdkappupdate\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 201 }, { @@ -172,7 +172,7 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"09027f6a-0000-0100-0000-6183e28a0000\"" + "W/\"b6021df7-0000-0100-0000-61840aab0000\"" ], "Vary": [ "Accept-Encoding" @@ -181,10 +181,10 @@ "11999" ], "x-ms-request-id": [ - "160095a3-40a7-4eb2-aa92-e7087736dc68" + "6e4a988e-9186-466e-8214-e136c599f90d" ], "x-iot-correlation": [ - "bygty6w2.0" + "7mhuunmq.0" ], "X-Content-Type-Options": [ "nosniff" @@ -211,16 +211,16 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 64EB47FBB98143FD84F21D24DD9920A7 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:54Z" + "Ref A: E73027CC6AB24D938514C4BD29373323 Ref B: CO1EDGE1515 Ref C: 2021-11-04T16:31:07Z" ], "x-ms-correlation-request-id": [ - "bcd3209c-afcc-4500-afa2-38aaaf5dc3e1" + "f44b9cc1-52d4-4915-b244-140a1853bba6" ], "x-ms-routing-request-id": [ - "WESTUS2:20211104T133954Z:bcd3209c-afcc-4500-afa2-38aaaf5dc3e1" + "WESTUS2:20211104T163107Z:f44b9cc1-52d4-4915-b244-140a1853bba6" ], "Date": [ - "Thu, 04 Nov 2021 13:39:54 GMT" + "Thu, 04 Nov 2021 16:31:06 GMT" ], "Content-Length": [ "503" @@ -229,7 +229,7 @@ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"fcf44964-6d34-40e6-be71-831118014668\",\r\n \"displayName\": \"dotnetsdkappupdate\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"applicationId\": \"4e1e7757-ff8f-4b06-8d43-604bb31f1ac0\",\r\n \"displayName\": \"dotnetsdkappupdate\",\r\n \"subdomain\": \"dotnetsdksubdomainupdate\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -239,7 +239,7 @@ "RequestBody": "{\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "8056dfd6-cb89-4235-8d17-03be861e0a5e" + "e4f9d73f-1490-4a6b-8f13-ddb226190e01" ], "Accept-Language": [ "en-US" @@ -262,10 +262,10 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "x-ms-request-id": [ - "fa1a0974-b86b-475a-9d8b-333a60edcaa6" + "72a7cb33-7587-400f-a1d0-c24c997d7cd9" ], "x-iot-correlation": [ - "br58ykdc.0" + "4u4x6kca.0" ], "X-Content-Type-Options": [ "nosniff" @@ -292,19 +292,19 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 17CD863553A3407B9C73AE256D5BF699 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:54Z" + "Ref A: 578D521CEB724CCDB9434EF75711968E Ref B: CO1EDGE1515 Ref C: 2021-11-04T16:31:07Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], "x-ms-correlation-request-id": [ - "0d883019-dfcc-4f4f-be9d-8b4595348583" + "8c6402c5-fa15-4025-9844-799b25dbb847" ], "x-ms-routing-request-id": [ - "WESTUS2:20211104T133954Z:0d883019-dfcc-4f4f-be9d-8b4595348583" + "WESTUS2:20211104T163107Z:8c6402c5-fa15-4025-9844-799b25dbb847" ], "Date": [ - "Thu, 04 Nov 2021 13:39:54 GMT" + "Thu, 04 Nov 2021 16:31:06 GMT" ], "Content-Length": [ "107" @@ -323,7 +323,7 @@ "RequestBody": "{\r\n \"name\": \"dotnetsdksubdomainupdate\",\r\n \"type\": \"IoTApps\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "c16aa3dd-9af4-4645-89c0-7a8f176b635f" + "413dc2ec-c09a-4eb8-a9f5-f79391014a81" ], "Accept-Language": [ "en-US" @@ -346,10 +346,10 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "x-ms-request-id": [ - "741a7714-e856-4421-8019-53d9c738710b" + "a84c9ddc-622e-48a2-ae51-51a58d379e83" ], "x-iot-correlation": [ - "61jv4w.0" + "9o8kjss5.0" ], "X-Content-Type-Options": [ "nosniff" @@ -376,19 +376,19 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 2FA4E41A2A83422688F85F193A756B88 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:54Z" + "Ref A: C00805C9F6564E30966FB7DA50CE3EFF Ref B: CO1EDGE1515 Ref C: 2021-11-04T16:31:07Z" ], "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], "x-ms-correlation-request-id": [ - "7b722a0a-eceb-4242-9f19-fac2661403fb" + "fb5682f7-5507-4439-b3f8-e04d9d60a8f2" ], "x-ms-routing-request-id": [ - "WESTUS2:20211104T133955Z:7b722a0a-eceb-4242-9f19-fac2661403fb" + "WESTUS2:20211104T163107Z:fb5682f7-5507-4439-b3f8-e04d9d60a8f2" ], "Date": [ - "Thu, 04 Nov 2021 13:39:54 GMT" + "Thu, 04 Nov 2021 16:31:06 GMT" ], "Content-Length": [ "103" @@ -404,10 +404,10 @@ "RequestUri": "/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate?api-version=2021-06-01", "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYmFiM2IxN2UtM2YzYi00MGUwLWFjYzQtZWY4YzliYmRmMzJiL3Jlc291cmNlR3JvdXBzL0RvdE5ldFNka0lvdENlbnRyYWxSR1VwZGF0ZS9wcm92aWRlcnMvTWljcm9zb2Z0LklvVENlbnRyYWwvaW90QXBwcy9kb3RuZXRzZGthcHB1cGRhdGU/YXBpLXZlcnNpb249MjAyMS0wNi0wMQ==", "RequestMethod": "PATCH", - "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"test-updated-display-namee179d26bf33b4ea8bef25be20bc54494\",\r\n \"subdomain\": \"test-updated-sub-domaine573fba534da48ccae8d830403ad13ce\"\r\n }\r\n}", + "RequestBody": "{\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"properties\": {\r\n \"displayName\": \"test-updated-display-name\",\r\n \"subdomain\": \"test-updated-sub-domain\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "5f861a7d-4dd8-4cae-a44a-dd0cee313359" + "bfcd5753-2c82-46e6-98e4-48ae522d7ef6" ], "Accept-Language": [ "en-US" @@ -422,7 +422,7 @@ "application/json; charset=utf-8" ], "Content-Length": [ - "286" + "222" ] }, "ResponseHeaders": { @@ -430,7 +430,7 @@ "no-store, must-revalidate, no-cache, max-stale=0, private, post-check=0, pre-check=0" ], "ETag": [ - "W/\"0902cb6c-0000-0100-0000-6183e2ac0000\"" + "W/\"b602b5fd-0000-0100-0000-61840acd0000\"" ], "Vary": [ "Accept-Encoding" @@ -439,10 +439,10 @@ "1198" ], "x-ms-request-id": [ - "38cfbdfb-72d0-42a3-8183-da9b33aad042" + "6a248244-0904-47a5-816d-14406adfa567" ], "x-iot-correlation": [ - "5t3ssroe.1.0" + "3vrlg1uq.1.0" ], "X-Content-Type-Options": [ "nosniff" @@ -461,7 +461,7 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 65DA3B423232499A92EC0F62CDBB715F Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:55Z" + "Ref A: 4A54D08BABCE4C9891440BF6966C1521 Ref B: CO1EDGE1515 Ref C: 2021-11-04T16:31:07Z" ], "X-IoT-Version": [ "110221.0001-release" @@ -473,22 +473,22 @@ "max-age=31536000; includeSubDomains" ], "x-ms-correlation-request-id": [ - "2eaa20da-fd08-4051-9c86-2bab37d14bb2" + "2bcec3bc-d4e8-460e-b67c-adf11a901728" ], "x-ms-routing-request-id": [ - "WESTUS2:20211104T133956Z:2eaa20da-fd08-4051-9c86-2bab37d14bb2" + "WESTUS2:20211104T163110Z:2bcec3bc-d4e8-460e-b67c-adf11a901728" ], "Date": [ - "Thu, 04 Nov 2021 13:39:56 GMT" + "Thu, 04 Nov 2021 16:31:10 GMT" ], "Content-Length": [ - "604" + "540" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"fcf44964-6d34-40e6-be71-831118014668\",\r\n \"displayName\": \"test-updated-display-namee179d26bf33b4ea8bef25be20bc54494\",\r\n \"subdomain\": \"test-updated-sub-domaine573fba534da48ccae8d830403ad13ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", + "ResponseBody": "{\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"4e1e7757-ff8f-4b06-8d43-604bb31f1ac0\",\r\n \"displayName\": \"test-updated-display-name\",\r\n \"subdomain\": \"test-updated-sub-domain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n}", "StatusCode": 200 }, { @@ -498,7 +498,7 @@ "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "ee7ac707-f481-49c8-82d6-45cdf68c8fe3" + "3f8e3b08-0cb5-4b02-8c93-629069d3e81c" ], "Accept-Language": [ "en-US" @@ -521,10 +521,10 @@ "11998" ], "x-ms-request-id": [ - "ec1a588a-29bc-4f8d-9297-deaa1c7e9e3d" + "cd3e8bb9-6ebe-4171-b2a7-baeddf063f22" ], "x-iot-correlation": [ - "7bpbffjr.0" + "bem1tv9t.0" ], "X-Content-Type-Options": [ "nosniff" @@ -551,25 +551,25 @@ "CONFIG_NOCACHE" ], "X-MSEdge-Ref": [ - "Ref A: 2988B7A09DB54271866C0CA7B09D8411 Ref B: CO1EDGE2019 Ref C: 2021-11-04T13:39:56Z" + "Ref A: F9DADE10C9F44BB4A225CA85698BE11A Ref B: CO1EDGE1515 Ref C: 2021-11-04T16:31:10Z" ], "x-ms-correlation-request-id": [ - "90c21900-92fc-4aab-9ce9-783df19d3771" + "5e74ad1e-f725-4e75-b976-da7317ab7ed1" ], "x-ms-routing-request-id": [ - "WESTUS2:20211104T133957Z:90c21900-92fc-4aab-9ce9-783df19d3771" + "WESTUS2:20211104T163110Z:5e74ad1e-f725-4e75-b976-da7317ab7ed1" ], "Date": [ - "Thu, 04 Nov 2021 13:39:56 GMT" + "Thu, 04 Nov 2021 16:31:10 GMT" ], "Content-Length": [ - "616" + "552" ], "Content-Type": [ "application/json; charset=utf-8" ] }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"fcf44964-6d34-40e6-be71-831118014668\",\r\n \"displayName\": \"test-updated-display-namee179d26bf33b4ea8bef25be20bc54494\",\r\n \"subdomain\": \"test-updated-sub-domaine573fba534da48ccae8d830403ad13ce\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/bab3b17e-3f3b-40e0-acc4-ef8c9bbdf32b/resourceGroups/DotNetSdkIotCentralRGUpdate/providers/Microsoft.IoTCentral/iotApps/dotnetsdkappupdate\",\r\n \"name\": \"dotnetsdkappupdate\",\r\n \"type\": \"Microsoft.IoTCentral/IoTApps\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"applicationId\": \"4e1e7757-ff8f-4b06-8d43-604bb31f1ac0\",\r\n \"displayName\": \"test-updated-display-name\",\r\n \"subdomain\": \"test-updated-sub-domain\",\r\n \"template\": \"iotc-pnp-preview@1.0.0\",\r\n \"state\": \"created\"\r\n },\r\n \"sku\": {\r\n \"name\": \"ST2\"\r\n },\r\n \"identity\": {\r\n \"type\": \"None\"\r\n }\r\n }\r\n ]\r\n}", "StatusCode": 200 } ], From d41442cce5e7cae98313bcb264617cf31c741b4d Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 4 Nov 2021 09:51:31 -0700 Subject: [PATCH 09/14] Revert change to mgmtcommon file Revert change to mgmtcommon file. https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln --- .../TestFramework/TestRecordAndFramework.sln | 42 ++----------------- 1 file changed, 3 insertions(+), 39 deletions(-) diff --git a/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln b/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln index e9a7370c62b2..7ac210953389 100644 --- a/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln +++ b/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.31729.503 +# Visual Studio 15 +VisualStudioVersion = 15.0.26403.7 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Test.HttpRecorder", "Microsoft.Azure.Test.HttpRecorder\Microsoft.Azure.Test.HttpRecorder.csproj", "{5D12D45A-E55F-410E-B8AF-9DC90E81B237}" EndProject @@ -21,10 +21,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Rest.ClientRuntim EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Rest.ClientRuntime.Azure.Authentication", "..\Auth\Az.Auth\Az.Authentication\Microsoft.Rest.ClientRuntime.Azure.Authentication.csproj", "{84E4B6AC-0C58-4A80-B251-3C9BCF18FA9D}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.IotCentral", "..\..\iotcentral\Microsoft.Azure.Management.IotCentral\src\Microsoft.Azure.Management.IotCentral.csproj", "{D03DE1AD-10E9-4D51-A507-F30767E83D5E}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.Management.IotCentral.Tests", "..\..\iotcentral\Microsoft.Azure.Management.IotCentral\tests\Microsoft.Azure.Management.IotCentral.Tests.csproj", "{A3CAE6F3-032C-4353-BE24-D292FD06C3F9}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -149,38 +145,6 @@ Global {84E4B6AC-0C58-4A80-B251-3C9BCF18FA9D}.Portable-Release|Any CPU.Build.0 = Release|Any CPU {84E4B6AC-0C58-4A80-B251-3C9BCF18FA9D}.Release|Any CPU.ActiveCfg = Release|Any CPU {84E4B6AC-0C58-4A80-B251-3C9BCF18FA9D}.Release|Any CPU.Build.0 = Release|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net40-Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net40-Debug|Any CPU.Build.0 = Debug|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net40-Release|Any CPU.ActiveCfg = Release|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net40-Release|Any CPU.Build.0 = Release|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net45-Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net45-Debug|Any CPU.Build.0 = Debug|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net45-Release|Any CPU.ActiveCfg = Release|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Net45-Release|Any CPU.Build.0 = Release|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Portable-Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Portable-Debug|Any CPU.Build.0 = Debug|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Portable-Release|Any CPU.ActiveCfg = Release|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Portable-Release|Any CPU.Build.0 = Release|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D03DE1AD-10E9-4D51-A507-F30767E83D5E}.Release|Any CPU.Build.0 = Release|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net40-Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net40-Debug|Any CPU.Build.0 = Debug|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net40-Release|Any CPU.ActiveCfg = Release|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net40-Release|Any CPU.Build.0 = Release|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net45-Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net45-Debug|Any CPU.Build.0 = Debug|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net45-Release|Any CPU.ActiveCfg = Release|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Net45-Release|Any CPU.Build.0 = Release|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Portable-Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Portable-Debug|Any CPU.Build.0 = Debug|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Portable-Release|Any CPU.ActiveCfg = Release|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Portable-Release|Any CPU.Build.0 = Release|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A3CAE6F3-032C-4353-BE24-D292FD06C3F9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -195,4 +159,4 @@ Global GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {C2C7B386-8BD7-49E1-8995-EED30D7113D2} EndGlobalSection -EndGlobal +EndGlobal \ No newline at end of file From dd813bf6ca8db044696a8d43b2900dfbca9815fc Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 4 Nov 2021 09:55:07 -0700 Subject: [PATCH 10/14] Minor update to sln Minor update to match raw doc from Azure repo. --- sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln b/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln index 7ac210953389..c8d6bda4c440 100644 --- a/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln +++ b/sdk/mgmtcommon/TestFramework/TestRecordAndFramework.sln @@ -159,4 +159,4 @@ Global GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {C2C7B386-8BD7-49E1-8995-EED30D7113D2} EndGlobalSection -EndGlobal \ No newline at end of file +EndGlobal From 4e9b8259714feab3fb7d73b10d969d37f983a775 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 4 Nov 2021 11:10:29 -0700 Subject: [PATCH 11/14] Add comment to trigger new build Add comment to trigger new build --- .../tests/ScenarioTests/IotCentralLifeCycleTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs index 5d09a6c6c687..5f79332a8e84 100644 --- a/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs +++ b/sdk/iotcentral/Microsoft.Azure.Management.IotCentral/tests/ScenarioTests/IotCentralLifeCycleTests.cs @@ -23,6 +23,8 @@ public void TestIotCentralCreateLifeCycle() { using (MockContext context = MockContext.Start(this.GetType())) { + // Note: Set IotCentralTestBase.isTestRecorderRun to true when building and running tests locally (before recording for PR). + Initialize(context); // Create Resource Group From dc3bbe8adcbe5d6dfb9aab450d03267d59e30bfa Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 4 Nov 2021 14:53:33 -0700 Subject: [PATCH 12/14] Increasing test pipeline timeout to 100mins since most builds are failing after 60mins. Increasing test pipeline timeout to 100mins since most builds are failing after 60mins. Matched build timeout in pipeline config. --- eng/pipelines/templates/jobs/ci.mgmt.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/templates/jobs/ci.mgmt.yml b/eng/pipelines/templates/jobs/ci.mgmt.yml index 26e2b3c860fc..56a58b5445ff 100644 --- a/eng/pipelines/templates/jobs/ci.mgmt.yml +++ b/eng/pipelines/templates/jobs/ci.mgmt.yml @@ -38,7 +38,7 @@ jobs: condition: ne(variables['System.TeamProject'], 'public') - job: Test - + timeoutInMinutes: 100 strategy: maxParallel: $[ variables['MaxParallelTestJobs'] ] matrix: From 377be18bb260a394997ec77bd1fef8b97abd77f9 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 4 Nov 2021 18:58:24 -0700 Subject: [PATCH 13/14] Undo changes to test pipeline timeout and package-lock.json Undo changes to test pipeline timeout and package-lock.json after syncing with Mingzhe Huang. --- eng/pipelines/templates/jobs/ci.mgmt.yml | 2 +- package-lock.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/eng/pipelines/templates/jobs/ci.mgmt.yml b/eng/pipelines/templates/jobs/ci.mgmt.yml index 56a58b5445ff..26e2b3c860fc 100644 --- a/eng/pipelines/templates/jobs/ci.mgmt.yml +++ b/eng/pipelines/templates/jobs/ci.mgmt.yml @@ -38,7 +38,7 @@ jobs: condition: ne(variables['System.TeamProject'], 'public') - job: Test - timeoutInMinutes: 100 + strategy: maxParallel: $[ variables['MaxParallelTestJobs'] ] matrix: diff --git a/package-lock.json b/package-lock.json index fec92a5cc3c3..6137942f9db9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2,10 +2,10 @@ "requires": true, "lockfileVersion": 1, "dependencies": { - "dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" + "autorest": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/autorest/-/autorest-3.3.2.tgz", + "integrity": "sha512-Tj2Jyz57tMt/KIJK3NaQI13hzUBXZ3N9OmkVZfLU2vrYh1SEaxvdWCLkwWt883E5YlzasRXdbSkrMz86lzHnPA==" } } -} +} \ No newline at end of file From a65fb9146fe2bea6a19216738441c71f32b44da4 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 4 Nov 2021 19:02:42 -0700 Subject: [PATCH 14/14] Minor: update whitespace to match package-lock.json Minor: updated whitespace to match package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 6137942f9db9..88deb1bc2792 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,4 +8,4 @@ "integrity": "sha512-Tj2Jyz57tMt/KIJK3NaQI13hzUBXZ3N9OmkVZfLU2vrYh1SEaxvdWCLkwWt883E5YlzasRXdbSkrMz86lzHnPA==" } } -} \ No newline at end of file +}