From 092b6b95db8abc03f4569aec954ac2f18e9df8a4 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Fri, 12 Aug 2022 11:40:29 -0700 Subject: [PATCH 1/3] Add missing TOC entries and fix casing (#30482) --- .../samples/README.md | 20 ++++++++++--------- .../samples/Sample01_HelloWorld.md | 2 +- .../samples/Sample02_MessageSettlement.md | 2 +- .../samples/Sample03_SendReceiveSessions.md | 2 +- .../samples/Sample04_Processor.md | 2 +- .../samples/Sample05_SessionProcessor.md | 2 +- .../samples/Sample12_ManagingRules.md | 2 +- .../samples/Sample13_AdvancedConfiguration.md | 2 +- 8 files changed, 18 insertions(+), 16 deletions(-) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md index 7e546c88eacc1..1802d2376e253 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/README.md @@ -11,15 +11,17 @@ description: Samples for the Azure.Messaging.ServiceBus client library # Azure.Messaging.ServiceBus Samples -- [Sending and Receiving Messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md) -- [Settling Messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md) -- [Sending and Receiving Session Messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md) -- [Using the Processor](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md) -- [Using the Session Processor](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md) -- [Working with Transactions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample06_Transactions.md) -- [CRUD Operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md) +- [Sending and receiving messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md) +- [Settling messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md) +- [Sending and receiving session messages](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md) +- [Using the processor](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md) +- [Using the session processor](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md) +- [Working with transactions](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample06_Transactions.md) +- [CRUD operations](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md) - [Interop](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample08_Interop.md) - [Extensibility](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample09_Extensibility.md) -- [Claim Check Pattern](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample10_ClaimCheck.md) +- [Claim check pattern](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample10_ClaimCheck.md) - [Using CloudEvent](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample11_CloudEvents.md) -- [Managing Rules](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample12_ManagingRules.md) +- [Managing rules](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample12_ManagingRules.md) +- [Advanced configuration](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample13_AdvancedConfiguration.md) +- [Interact with the AMQP message](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample14_AMQPMessage.md) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md index 429c86ab14f5b..e8499ef15303a 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample01_HelloWorld.md @@ -1,4 +1,4 @@ -# Sending and Receiving Messages +# Sending and receiving messages This sample demonstrates how to send and receive messages from a Service Bus queue. Once a message is received, you will typically want to settle it. Message settlement is covered in detail in the [Settling Messages samples](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md). diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md index 22264422227d6..5cdcfde095a4e 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample02_MessageSettlement.md @@ -1,4 +1,4 @@ -# Settling Messages +# Settling messages This sample demonstrates how to [settle](https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#settling-receive-operations) received messages. Message settlement can only be used when using a receiver in [PeekLock](https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock) diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md index 900fae5eb0c6f..73eb8da76f860 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample03_SendReceiveSessions.md @@ -1,4 +1,4 @@ -# Sending and Receiving Session Messages +# Sending and receiving session messages This sample demonstrates how to send and receive session messages from a session-enabled Service Bus queue. diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md index 1694762dcb8c1..b52cd22463343 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample04_Processor.md @@ -1,4 +1,4 @@ -# Using the Processor +# Using the processor This sample demonstrates how to use the processor. The processor offers automatic completion of processed messages, automatic message lock renewal, and concurrent execution of user specified event handlers. diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md index 857bbfca43967..e5d80707e8e9a 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample05_SessionProcessor.md @@ -1,4 +1,4 @@ -# Using the Session Processor +# Using the session processor This sample demonstrates how to use the session processor. The session processor offers automatic completion of processed session messages, automatic session lock renewal, and concurrent execution of user specified event handlers. diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample12_ManagingRules.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample12_ManagingRules.md index bd380fd44e819..bd84ba1904be6 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample12_ManagingRules.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample12_ManagingRules.md @@ -1,4 +1,4 @@ -# Managing Rules +# Managing rules As shown in the [CRUD operations sample](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample07_CrudOperations.md), rules can be created, deleted, and retrieved using the `ServiceBusAdministrationClient`. In order to perform these operations, you need to have `Manage` rights to the Service Bus namespace. When using Azure Identity, this translates to requiring the [Service Bus Data Owner role](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#azure-service-bus-data-owner) be granted to your identity. It is also possible to perform these rule management operations using the `ServiceBusRuleManager` type. The major benefit to using this type is that you only need `Listen` rights for the subscription you wish to manage rules for, which corresponds to the [Service Bus Data Receiver role](https://docs.microsoft.com/azure/role-based-access-control/built-in-roles#azure-service-bus-data-receiver). The following snippet provides an example of how to use this type. diff --git a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample13_AdvancedConfiguration.md b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample13_AdvancedConfiguration.md index c10db476c9e3a..7b0fe6461c2bd 100644 --- a/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample13_AdvancedConfiguration.md +++ b/sdk/servicebus/Azure.Messaging.ServiceBus/samples/Sample13_AdvancedConfiguration.md @@ -1,4 +1,4 @@ -# Advanced Configuration +# Advanced configuration This sample demonstrates how to use some of the advanced configuration options available in the Service Bus client library. From 22a92edf9e53e324ee585c16fb332ed1aa7b6358 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Sat, 13 Aug 2022 07:36:45 -0700 Subject: [PATCH 2/3] Increment package version after release of Azure.AI.TextAnalytics (#30497) --- sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md | 10 ++++++++++ .../src/Azure.AI.TextAnalytics.csproj | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md index 3a6f2752a0306..c5969be24962b 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 5.2.0-beta.5 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 5.2.0-beta.4 (2022-08-12) ### Features Added diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Azure.AI.TextAnalytics.csproj b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Azure.AI.TextAnalytics.csproj index 65351a71fb8bc..3350cc4e630e3 100644 --- a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Azure.AI.TextAnalytics.csproj +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Azure.AI.TextAnalytics.csproj @@ -2,7 +2,7 @@ Azure Cognitive Services Text Analytics is a cloud service that provides advanced natural language processing over raw text, and features like Language Detection, Sentiment Analysis, Key Phrase Extraction, Named Entity Recognition, Personally Identifiable Information (PII) Recognition, Linked Entity Recognition, Text Analytics for Health, and more. Microsoft Azure.AI.TextAnalytics client library - 5.2.0-beta.4 + 5.2.0-beta.5 5.1.1 Microsoft Azure Text Analytics From e3fa5cd6a466ef154ae2e66b483ea311279e9c47 Mon Sep 17 00:00:00 2001 From: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com> Date: Mon, 15 Aug 2022 23:23:37 +0800 Subject: [PATCH 3/3] add tests (#30510) --- .../tests/HciManagementTestBase.cs | 78 +++ ...ent.cs => HciManagementTestEnvironment.cs} | 2 +- .../Scenario/ArcExtensionCollectionTests.cs | 48 ++ .../Scenario/ArcExtensionOperationTests.cs | 62 ++ .../Scenario/ArcSettingCollectionTests.cs | 46 ++ .../Scenario/ArcSettingOperationTests.cs | 63 ++ .../Scenario/HciClusterCollectionTests.cs | 54 ++ .../Scenario/HciClusterOperationTests.cs | 77 +++ .../CreateGetList().json | 408 ++++++++++++ .../CreateGetList()Async.json | 408 ++++++++++++ .../GetUpdateDelete().json | 450 +++++++++++++ .../GetUpdateDelete()Async.json | 450 +++++++++++++ .../CreateGetList().json | 335 ++++++++++ .../CreateGetList()Async.json | 335 ++++++++++ .../GetUpdateDelete().json | 378 +++++++++++ .../GetUpdateDelete()Async.json | 378 +++++++++++ .../CreateGetList().json | 294 +++++++++ .../CreateGetList()Async.json | 294 +++++++++ .../CreateGetList().json | 295 +++++++++ .../CreateGetList()Async.json | 294 +++++++++ .../GetUpdateDelete().json | 617 ++++++++++++++++++ .../GetUpdateDelete()Async.json | 582 +++++++++++++++++ .../HciClusterOperationTests/SetTags().json | 345 ++++++++++ .../SetTags()Async.json | 345 ++++++++++ 24 files changed, 6637 insertions(+), 1 deletion(-) create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/HciManagementTestBase.cs rename sdk/azurestackhci/Azure.ResourceManager.Hci/tests/{AzureStackHciManagementTestEnvironment.cs => HciManagementTestEnvironment.cs} (71%) create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcExtensionCollectionTests.cs create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcExtensionOperationTests.cs create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcSettingCollectionTests.cs create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcSettingOperationTests.cs create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/HciClusterCollectionTests.cs create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/HciClusterOperationTests.cs create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionCollectionTests/CreateGetList().json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionCollectionTests/CreateGetList()Async.json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionOperationTests/GetUpdateDelete().json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionOperationTests/GetUpdateDelete()Async.json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingCollectionTests/CreateGetList().json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingCollectionTests/CreateGetList()Async.json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingOperationTests/GetUpdateDelete().json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingOperationTests/GetUpdateDelete()Async.json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterCollectionTests/CreateGetList().json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterCollectionTests/CreateGetList()Async.json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/CreateGetList().json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/CreateGetList()Async.json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/GetUpdateDelete().json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/GetUpdateDelete()Async.json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags().json create mode 100644 sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags()Async.json diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/HciManagementTestBase.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/HciManagementTestBase.cs new file mode 100644 index 0000000000000..b6de8a18386b0 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/HciManagementTestBase.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Hci.Models; +using Azure.ResourceManager.Resources; +using Azure.ResourceManager.TestFramework; +using NUnit.Framework; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Azure.ResourceManager.Hci.Tests +{ + public class HciManagementTestBase : ManagementRecordedTestBase + { + protected ArmClient Client { get; private set; } + + protected SubscriptionResource Subscription { get; private set; } + + protected HciManagementTestBase(bool isAsync, RecordedTestMode mode) + : base(isAsync, mode) + { + } + + protected HciManagementTestBase(bool isAsync) + : base(isAsync) + { + } + + [SetUp] + public async Task CreateCommonClient() + { + Client = GetArmClient(); + Subscription = await Client.GetDefaultSubscriptionAsync(); + } + + protected async Task CreateResourceGroupAsync(SubscriptionResource subscription, string rgNamePrefix, AzureLocation location) + { + string rgName = Recording.GenerateAssetName(rgNamePrefix); + ResourceGroupData input = new ResourceGroupData(location); + var lro = await subscription.GetResourceGroups().CreateOrUpdateAsync(WaitUntil.Completed, rgName, input); + return lro.Value; + } + + protected async Task CreateHciClusterAsync(ResourceGroupResource resourceGroup, string clusterName, AzureLocation? location = null) + { + var clusterData = new HciClusterData(location == null ? resourceGroup.Data.Location : location.Value) + { + AadClientId = new Guid(TestEnvironment.ClientId), + AadTenantId = new Guid(TestEnvironment.TenantId) + }; + var lro = await resourceGroup.GetHciClusters().CreateOrUpdateAsync(WaitUntil.Completed, clusterName, clusterData); + return lro.Value; + } + + protected async Task CreateArcSettingAsync(HciClusterResource cluster, string arcSettingName) + { + var arcSettingData = new ArcSettingData(); + var lro = await cluster.GetArcSettings().CreateOrUpdateAsync(WaitUntil.Completed, arcSettingName, arcSettingData); + return lro.Value; + } + + protected async Task CreateArcExtensionAsync(ArcSettingResource arcSetting, string arcExtensionName) + { + var arcExtensionData = new ArcExtensionData() + { + Settings = BinaryData.FromObjectAsJson(new Dictionary() + { + { "workspaceId", "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" } + }) + }; + var lro = await arcSetting.GetArcExtensions().CreateOrUpdateAsync(WaitUntil.Completed, arcExtensionName, arcExtensionData); + return lro.Value; + } + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/AzureStackHciManagementTestEnvironment.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/HciManagementTestEnvironment.cs similarity index 71% rename from sdk/azurestackhci/Azure.ResourceManager.Hci/tests/AzureStackHciManagementTestEnvironment.cs rename to sdk/azurestackhci/Azure.ResourceManager.Hci/tests/HciManagementTestEnvironment.cs index 0c0300749a03f..4ca566e7007bf 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/AzureStackHciManagementTestEnvironment.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/HciManagementTestEnvironment.cs @@ -5,7 +5,7 @@ namespace Azure.ResourceManager.Hci.Tests { - public class AzureStackHciManagementTestEnvironment : TestEnvironment + public class HciManagementTestEnvironment : TestEnvironment { } } diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcExtensionCollectionTests.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcExtensionCollectionTests.cs new file mode 100644 index 0000000000000..f58d68116a943 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcExtensionCollectionTests.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Hci.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; +using NUnit.Framework; + +namespace Azure.ResourceManager.Hci.Tests +{ + public class ArcExtensionCollectionTests: HciManagementTestBase + { + public ArcExtensionCollectionTests(bool isAsync) + : base(isAsync) + { + } + + [TestCase] + [RecordedTest] + public async Task CreateGetList() + { + var location = AzureLocation.EastUS; + var resourceGroup = await CreateResourceGroupAsync(Subscription, "hci-cluster-rg", location); + var clusterName = Recording.GenerateAssetName("hci-cluster"); + var cluster = await CreateHciClusterAsync(resourceGroup, clusterName); + var arcSetting = await CreateArcSettingAsync(cluster, "default"); + + var arcExtensionCollection = arcSetting.GetArcExtensions(); + var arcExtensionName = "MicrosoftMonitoringAgent"; + var arcExtension = await CreateArcExtensionAsync(arcSetting, arcExtensionName); + Assert.AreEqual(arcExtension.Data.Name, arcExtensionName); + + ArcExtensionResource arcExtensionFromGet = await arcExtensionCollection.GetAsync(arcExtensionName); + Assert.AreEqual(arcExtensionFromGet.Data.Name, arcExtensionName); + + await foreach (ArcExtensionResource arcExtensionFromList in arcExtensionCollection) + { + Assert.AreEqual(arcExtensionFromList.Data.Name, arcExtensionName); + } + } + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcExtensionOperationTests.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcExtensionOperationTests.cs new file mode 100644 index 0000000000000..dc88d18c24ea9 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcExtensionOperationTests.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Hci.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; +using NUnit.Framework; + +namespace Azure.ResourceManager.Hci.Tests +{ + public class ArcExtensionOperationTests: HciManagementTestBase + { + private ResourceGroupResource _resourceGroup; + private ArcExtensionResource _arcExtension; + private ArcExtensionCollection _arcExtensionCollection; + + public ArcExtensionOperationTests(bool isAsync) + : base(isAsync) + { + } + + private async Task CreateArcExtensionAsync(string arcExtensionName) + { + var location = AzureLocation.EastUS; + _resourceGroup = await CreateResourceGroupAsync(Subscription, "hci-cluster-rg", location); + var clusterName = Recording.GenerateAssetName("hci-cluster"); + var cluster = await CreateHciClusterAsync(_resourceGroup, clusterName); + var arcSetting = await CreateArcSettingAsync(cluster, "default"); + + _arcExtension = await CreateArcExtensionAsync(arcSetting, arcExtensionName); + _arcExtensionCollection = arcSetting.GetArcExtensions(); + return _arcExtension; + } + + [TestCase] + [RecordedTest] + public async Task GetUpdateDelete() + { + var arcExtensionName = "MicrosoftMonitoringAgent"; + var arcExtension = await CreateArcExtensionAsync(arcExtensionName); + + var data = new ArcExtensionData() + { + ShouldAutoUpgradeMinorVersion = true, + }; + var lro = await arcExtension.UpdateAsync(WaitUntil.Completed, data); + var arcExtensionFromUpdate = lro.Value; + Assert.True(arcExtensionFromUpdate.Data.ShouldAutoUpgradeMinorVersion); + + ArcExtensionResource arcExtensionFromGet = await arcExtensionFromUpdate.GetAsync(); + Assert.AreEqual(arcExtensionFromGet.Data.Name, arcExtensionName); + + await arcExtensionFromGet.DeleteAsync(WaitUntil.Completed); + } + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcSettingCollectionTests.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcSettingCollectionTests.cs new file mode 100644 index 0000000000000..cd4541e260fe1 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcSettingCollectionTests.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Hci.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; +using NUnit.Framework; + +namespace Azure.ResourceManager.Hci.Tests +{ + public class ArcSettingCollectionTests: HciManagementTestBase + { + public ArcSettingCollectionTests(bool isAsync) + : base(isAsync) + { + } + + [TestCase] + [RecordedTest] + public async Task CreateGetList() + { + var location = AzureLocation.EastUS; + var resourceGroup = await CreateResourceGroupAsync(Subscription, "hci-cluster-rg", location); + var clusterName = Recording.GenerateAssetName("hci-cluster"); + var cluster = await CreateHciClusterAsync(resourceGroup, clusterName); + var arcSettingCollection = cluster.GetArcSettings(); + var arcSettingName = "default";//Recording.GenerateAssetName("hci-arc-setting"); + var arcSetting = await CreateArcSettingAsync(cluster, arcSettingName); + Assert.AreEqual(arcSetting.Data.Name, arcSettingName); + + ArcSettingResource arcSettingFromGet = await arcSettingCollection.GetAsync(arcSettingName); + Assert.AreEqual(arcSettingFromGet.Data.Name, arcSettingName); + + await foreach (ArcSettingResource arcSettingFromList in arcSettingCollection) + { + Assert.AreEqual(arcSettingFromList.Data.Name, arcSettingName); + } + } + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcSettingOperationTests.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcSettingOperationTests.cs new file mode 100644 index 0000000000000..f8ffe4f562610 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/ArcSettingOperationTests.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Hci.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; +using NUnit.Framework; + +namespace Azure.ResourceManager.Hci.Tests +{ + public class ArcSettingOperationTests: HciManagementTestBase + { + private ResourceGroupResource _resourceGroup; + private ArcSettingResource _arcSetting; + private ArcSettingCollection _arcSettingCollection; + + public ArcSettingOperationTests(bool isAsync) + : base(isAsync) + { + } + + private async Task CreateArcSettingAsync(string arcSettingName) + { + var location = AzureLocation.EastUS; + _resourceGroup = await CreateResourceGroupAsync(Subscription, "hci-cluster-rg", location); + var clusterName = Recording.GenerateAssetName("hci-cluster"); + HciClusterResource cluster = await CreateHciClusterAsync(_resourceGroup, clusterName); + _arcSettingCollection = cluster.GetArcSettings(); + _arcSetting = await CreateArcSettingAsync(cluster, arcSettingName); + return _arcSetting; + } + + [TestCase] + [RecordedTest] + public async Task GetUpdateDelete() + { + var arcSettingName = "default"; + var arcSetting = await CreateArcSettingAsync(arcSettingName); + + var patch = new ArcSettingPatch() + { + ConnectivityProperties = BinaryData.FromObjectAsJson(new Dictionary() + { + { "enabled", true } + }) + }; + ArcSettingResource arcSettingFromUpdate = await arcSetting.UpdateAsync(patch); + var properties = arcSettingFromUpdate.Data.ConnectivityProperties.ToObjectFromJson() as Dictionary; + Assert.True((bool)properties["enabled"]); + + ArcSettingResource arcSettingFromGet = await arcSettingFromUpdate.GetAsync(); + Assert.AreEqual(arcSettingFromGet.Data.Name, arcSettingName); + + await arcSettingFromGet.DeleteAsync(WaitUntil.Completed); + } + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/HciClusterCollectionTests.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/HciClusterCollectionTests.cs new file mode 100644 index 0000000000000..f51ffb604f701 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/HciClusterCollectionTests.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Hci.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; +using NUnit.Framework; + +namespace Azure.ResourceManager.Hci.Tests +{ + public class HciClusterCollectionTests: HciManagementTestBase + { + public HciClusterCollectionTests(bool isAsync) + : base(isAsync) + { + } + + [TestCase] + [RecordedTest] + public async Task CreateGetList() + { + var location = AzureLocation.EastUS; + var resourceGroup = await CreateResourceGroupAsync(Subscription, "hci-cluster-rg", location); + var clusterCollection = resourceGroup.GetHciClusters(); + var clusterName = Recording.GenerateAssetName("hci-cluster"); + var cluster = await CreateHciClusterAsync(resourceGroup, clusterName); + var clusterData = cluster.Data; + Assert.AreEqual(clusterData.Name, clusterName); + Assert.AreEqual(clusterData.Location, location); + Assert.AreEqual(clusterData.AadClientId, new Guid(TestEnvironment.ClientId)); + Assert.AreEqual(clusterData.AadTenantId, new Guid(TestEnvironment.TenantId)); + + HciClusterResource clusterFromGet = await clusterCollection.GetAsync(clusterName); + Assert.AreEqual(clusterFromGet.Data.Name, clusterName); + Assert.AreEqual(clusterFromGet.Data.Location, location); + Assert.AreEqual(clusterFromGet.Data.AadClientId, new Guid(TestEnvironment.ClientId)); + Assert.AreEqual(clusterFromGet.Data.AadTenantId, new Guid(TestEnvironment.TenantId)); + + await foreach (HciClusterResource clusterFromList in clusterCollection) + { + Assert.AreEqual(clusterFromList.Data.Name, clusterName); + Assert.AreEqual(clusterFromList.Data.Location, location); + Assert.AreEqual(clusterFromList.Data.AadClientId, new Guid(TestEnvironment.ClientId)); + Assert.AreEqual(clusterFromList.Data.AadTenantId, new Guid(TestEnvironment.TenantId)); + } + } + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/HciClusterOperationTests.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/HciClusterOperationTests.cs new file mode 100644 index 0000000000000..98baf5eb48b80 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/Scenario/HciClusterOperationTests.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Text; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.TestFramework; +using Azure.ResourceManager.Hci.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; +using NUnit.Framework; + +namespace Azure.ResourceManager.Hci.Tests +{ + public class HciClusterOperationTests: HciManagementTestBase + { + private ResourceGroupResource _resourceGroup; + private HciClusterResource _cluster; + + public HciClusterOperationTests(bool isAsync) + : base(isAsync) + { + } + + private async Task CreateHciClusterAsync(string clusterName) + { + var location = AzureLocation.EastUS; + _resourceGroup = await CreateResourceGroupAsync(Subscription, "hci-cluster-rg", location); + _cluster = await CreateHciClusterAsync(_resourceGroup, clusterName); + return _cluster; + } + + [TestCase] + [RecordedTest] + public async Task GetUpdateDelete() + { + var clusterName = Recording.GenerateAssetName("hci-cluster"); + var cluster = await CreateHciClusterAsync(clusterName); + + var patch = new HciClusterPatch() + { + DesiredProperties = new HciClusterDesiredProperties() + { + DiagnosticLevel = HciClusterDiagnosticLevel.Enhanced + } + }; + + HciClusterResource clusterFromUpdate = await cluster.UpdateAsync(patch); + Assert.AreEqual(HciClusterDiagnosticLevel.Enhanced, clusterFromUpdate.Data.DesiredProperties.DiagnosticLevel); + + HciClusterResource clusterFromGet = await clusterFromUpdate.GetAsync(); + Assert.AreEqual(clusterFromGet.Data.Name, clusterName); + Assert.AreEqual(clusterFromGet.Data.AadClientId, new Guid(TestEnvironment.ClientId)); + Assert.AreEqual(clusterFromGet.Data.AadTenantId, new Guid(TestEnvironment.TenantId)); + Assert.AreEqual(HciClusterDiagnosticLevel.Enhanced, clusterFromGet.Data.DesiredProperties.DiagnosticLevel); + + await clusterFromGet.DeleteAsync(WaitUntil.Completed); + } + + [TestCase] + [RecordedTest] + public async Task SetTags() + { + var clusterName = Recording.GenerateAssetName("hci-cluster"); + var cluster = await CreateHciClusterAsync(clusterName); + var tags = new Dictionary() + { + { "key", "value" } + }; + HciClusterResource updatedCluster= await cluster.SetTagsAsync(tags); + + Assert.AreEqual(tags, updatedCluster.Data.Tags); + } + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionCollectionTests/CreateGetList().json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionCollectionTests/CreateGetList().json new file mode 100644 index 0000000000000..d6ca9cbc1a4ce --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionCollectionTests/CreateGetList().json @@ -0,0 +1,408 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bb401a843963cc4da4eb6b7c867bde1c-89a8dbf96e60a945-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "8471aca85702845fab80910a53452774", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:20:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0c5613d5-c6a5-4e19-b010-cacdde06b8fb", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "0c5613d5-c6a5-4e19-b010-cacdde06b8fb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092011Z:0c5613d5-c6a5-4e19-b010-cacdde06b8fb" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg5732?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-39100d1ab0cad94fa69ff2667d4aef66-e4e3c96ec442844e-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "c27ebd85d11577439655fc328192be5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:20:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39171a4f-259d-4d50-842f-cebcb5b7e54f", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "39171a4f-259d-4d50-842f-cebcb5b7e54f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092015Z:39171a4f-259d-4d50-842f-cebcb5b7e54f" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732", + "name": "hci-cluster-rg5732", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-7365526777712946ba294ed39c43ac00-e9974bedf31f8445-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "94618f806d9032526f109f711f732fce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "948", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:20:21 GMT", + "ETag": "\u00221500f20c-0000-0100-0000-62fa0fd40000\u0022", + "Expires": "-1", + "mise-correlation-id": "fd44b744-02ea-4b02-8478-460324c1b455", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "571ce049-9dc8-47b4-a7c0-a0cb67db7af8", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "cb16b96f-0ecc-4784-a9c0-40211b9efca6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092021Z:571ce049-9dc8-47b4-a7c0-a0cb67db7af8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997", + "name": "hci-cluster3997", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:20:19.382932Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:20:19.382932Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "e90e66ee-c344-4a40-a9c2-6ee1ce2d25bd", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-5b73b06dbd4e4d498f3d5636bff894a1-f4dde53508be6c4d-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "776efba3925d2eda0c6c02625129edd3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "739", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:20:24 GMT", + "ETag": "\u00220700d955-0000-0100-0000-62fa0fd70000\u0022", + "Expires": "-1", + "mise-correlation-id": "4d8199e0-7e0b-4bcf-8b6b-d2d419f12bee", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f46d1664-160b-4ce0-a8a7-8db2a2ea723b", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "7f1a162e-5328-41e5-8417-fb251ee564a8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092024Z:f46d1664-160b-4ce0-a8a7-8db2a2ea723b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:20:22.0548256Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:20:22.0548256Z" + }, + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster3997-e90e66ee-c344-4a40-a9c2-6ee1ce2d25bd-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-c0061b6064793a42b92e9b5b81e66b51-4c35db3f95c38846-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "98c568acac1250f52b8fa5c1a30576e1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "extensionParameters": { + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "850", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:20:25 GMT", + "ETag": "\u00220100a5a2-0000-0100-0000-62fa0fd90000\u0022", + "Expires": "-1", + "mise-correlation-id": "6009f0d3-2de7-4541-bc80-6c64271969b0", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "227ce776-01c5-4bb5-bb16-5729c91557c2", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "db88742e-4609-46b2-9e94-6b27c0892d31", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092025Z:227ce776-01c5-4bb5-bb16-5729c91557c2", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:20:24.5235898Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:20:24.5235898Z" + }, + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-2dccca2609e4d94c85ac770b4269bf01-66bb60448399dd4a-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b7c5cc2297adf6bb061e4ccdec188a06", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "572", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:20:26 GMT", + "ETag": "\u00220100a5a2-0000-0100-0000-62fa0fd90000\u0022", + "Expires": "-1", + "mise-correlation-id": "f7588b00-a141-415f-8f81-498b9ec23e0f", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "52e1ce3b-f464-4ab2-8f38-a9f6722d5808", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "6a04a3b3-4122-43e7-a00e-44f54a301521", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092026Z:52e1ce3b-f464-4ab2-8f38-a9f6722d5808", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997/arcSettings/default/extensions?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-56b3b740a421ef40a2e0d2517a9ba837-e30e870158dbc844-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "ed9520f6564bc583dad8e3e024d0e53b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "584", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:20:27 GMT", + "Expires": "-1", + "mise-correlation-id": "5e87b28f-47a1-4650-a497-870dca27496f", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c868de3c-42a2-49c2-a330-4eace9d6d6ce", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "f0bc6091-39a1-4824-8e0e-cd591ffb2355", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092027Z:c868de3c-42a2-49c2-a330-4eace9d6d6ce", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5732/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3997/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "1294034606", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionCollectionTests/CreateGetList()Async.json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionCollectionTests/CreateGetList()Async.json new file mode 100644 index 0000000000000..f0b5bb947e376 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionCollectionTests/CreateGetList()Async.json @@ -0,0 +1,408 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b8463fac3ff526448101150263e13d11-ced56d3e3f9f4742-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "7c55200e468673ec94e2f6764b1eb6a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:24:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9693b13b-2d76-41b7-8a65-79224498cbc7", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "9693b13b-2d76-41b7-8a65-79224498cbc7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092449Z:9693b13b-2d76-41b7-8a65-79224498cbc7" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg7084?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-2b23ffc4f0dc3644b0da42ea276883ad-c66304206b03694a-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "87784190dadc792f329f57cdf4f0d6d3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:24:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "70c97598-c220-4b49-a0ff-3ece44516ba5", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "70c97598-c220-4b49-a0ff-3ece44516ba5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092453Z:70c97598-c220-4b49-a0ff-3ece44516ba5" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084", + "name": "hci-cluster-rg7084", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-4ff19966aab60f429739babdb9b9e529-1d7a43f633db3a41-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "de88356197c0fb144fa20b843df9f7e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:24:58 GMT", + "ETag": "\u002215004a17-0000-0100-0000-62fa10e90000\u0022", + "Expires": "-1", + "mise-correlation-id": "9e185c77-b4ca-4f39-81d8-97e7f2433c4b", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5b8fa62e-6fbf-4629-ac23-9d6ea48822ec", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "8e0024eb-99dc-482d-bcec-f7c31dbe5905", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092459Z:5b8fa62e-6fbf-4629-ac23-9d6ea48822ec", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492", + "name": "hci-cluster5492", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:24:56.9149899Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:24:56.9149899Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "732c981b-d1be-480e-b1e4-53161df9f011", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-85c5a1cb27791f4196e20c5b680b10bf-8a690e874d35754d-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "0b8b8393317f25460253a695a6a0f120", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "739", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:00 GMT", + "ETag": "\u00220700ea55-0000-0100-0000-62fa10ec0000\u0022", + "Expires": "-1", + "mise-correlation-id": "1ce55430-f928-49cf-8e35-0f28921515da", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ada95f06-a6d6-473b-9198-451d3b0e3134", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "c1df4a53-c38a-4605-b72d-cfdaa7644c39", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092501Z:ada95f06-a6d6-473b-9198-451d3b0e3134", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:24:59.5712521Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:24:59.5712521Z" + }, + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster5492-732c981b-d1be-480e-b1e4-53161df9f011-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-2153b12801064041b45aa3bc6bc0eaf1-3cda8e4314b36044-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "81bd38a3cd21a9cf638b8d3724f4f4a6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "extensionParameters": { + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "846", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:02 GMT", + "ETag": "\u00220100aaa5-0000-0100-0000-62fa10ee0000\u0022", + "Expires": "-1", + "mise-correlation-id": "4da87c23-8b9b-4d0e-ad54-19c5974f86a2", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b3c2cbad-1ed0-487d-a0a1-da8f94a6f5bc", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "072d992e-705d-4aac-a4d1-b076e2318787", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092502Z:b3c2cbad-1ed0-487d-a0a1-da8f94a6f5bc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:01.43064Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:01.43064Z" + }, + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f0491f4e5a8d0748b08493f3c5d4c058-67b130d5c4089948-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "04e1ebb0763bc6c3b3e1a7f3a40e000d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "572", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:03 GMT", + "ETag": "\u00220100aaa5-0000-0100-0000-62fa10ee0000\u0022", + "Expires": "-1", + "mise-correlation-id": "e089bdc3-218d-460d-8b34-6d8bd0ee99e9", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "167bdcfd-0d02-4893-9b0a-0a74b9fc027e", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "5290ca3c-7df0-40f9-b976-45d2f40b0c3b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092503Z:167bdcfd-0d02-4893-9b0a-0a74b9fc027e", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492/arcSettings/default/extensions?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-f8e28f92636a374d91fd7b1bf1301b29-8cbb58637833774b-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "bd35005e843fdbd5a58d92bef062b8e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "584", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:04 GMT", + "Expires": "-1", + "mise-correlation-id": "55695bff-a284-4164-81c1-e9083ff88d3c", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d68e9fa-c6f5-4ca8-a7de-6488210d4662", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "746a98ea-304f-45db-acf8-e44a7c5082ad", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092504Z:5d68e9fa-c6f5-4ca8-a7de-6488210d4662", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7084/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5492/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "307284881", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionOperationTests/GetUpdateDelete().json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionOperationTests/GetUpdateDelete().json new file mode 100644 index 0000000000000..b41031b9a15af --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionOperationTests/GetUpdateDelete().json @@ -0,0 +1,450 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-207b0353fab002419b6b03b2b7d899e0-bdfe24957ddfc34c-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "862ce427a5a9b5d2c6f670569f214cd9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "17941c4f-9dc6-4bd2-8819-c2cb1807b227", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "17941c4f-9dc6-4bd2-8819-c2cb1807b227", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092511Z:17941c4f-9dc6-4bd2-8819-c2cb1807b227" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg7789?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-8603778c5f26de4681136bf12eae54de-4e711111114ac349-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "97cd678db4d583222ed2051444bf7672", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "84aca5aa-e70f-447a-bc96-5ad3e2d833c9", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "84aca5aa-e70f-447a-bc96-5ad3e2d833c9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092514Z:84aca5aa-e70f-447a-bc96-5ad3e2d833c9" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789", + "name": "hci-cluster-rg7789", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-eeace5915c081740bc67864885c99449-ea2cb5f092c25c4c-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "7f2840a9aab235b5f0e5941379fa247f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:17 GMT", + "ETag": "\u00221500c217-0000-0100-0000-62fa10fc0000\u0022", + "Expires": "-1", + "mise-correlation-id": "b894fcc8-3929-46e2-b513-f067c4a568d9", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "da8b6064-1392-4dac-bbca-d4abb6c688cc", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "07d414e5-6e0f-4bb0-8ed1-ca0f57f96cf2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092517Z:da8b6064-1392-4dac-bbca-d4abb6c688cc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558", + "name": "hci-cluster5558", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:15.8838533Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:15.8838533Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "50c8ea4e-86d2-4b3c-a9ac-5d45243efb77", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-217eefa02d8acb48a5a47600ca30d2a6-b1e23d7f847ccf4f-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "0c772543510a0a30027ad3cca08236fa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "739", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:19 GMT", + "ETag": "\u00220700eb55-0000-0100-0000-62fa10ff0000\u0022", + "Expires": "-1", + "mise-correlation-id": "4afa70a7-d088-4028-9a35-7a1c3003d43a", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb42839a-c92b-46d1-951f-7bbccafe7ef7", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "a3eaa8b9-85e6-4b30-a468-ecdd5245ef58", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092519Z:bb42839a-c92b-46d1-951f-7bbccafe7ef7", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:17.8213676Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:17.8213676Z" + }, + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster5558-50c8ea4e-86d2-4b3c-a9ac-5d45243efb77-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-31998dbe77df7d42b9a1a56ff524f56a-5bf36ec88653d74f-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "0c789be3bdb1bcda1761e5ce8d70b5d7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "extensionParameters": { + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "850", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:20 GMT", + "ETag": "\u00220100caa5-0000-0100-0000-62fa11000000\u0022", + "Expires": "-1", + "mise-correlation-id": "bf5b7bd3-4fc6-4ff8-80a9-1a70c6a5b64a", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fd5f0448-1828-4ce1-8015-794787e0a003", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "073d6b4a-6303-492f-9b96-8073fa97fa0e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092520Z:fd5f0448-1828-4ce1-8015-794787e0a003", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:19.7275951Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:19.7275951Z" + }, + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "71", + "Content-Type": "application/json", + "traceparent": "00-6fd7d76963a2e94f9f1c415d48fdb0ff-78002423a7a5114c-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "de2f9aae178286ce4abaf5a86c617c91", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "extensionParameters": { + "autoUpgradeMinorVersion": true + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "849", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:21 GMT", + "ETag": "\u00220100cba5-0000-0100-0000-62fa11010000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6947aef2-298e-422a-a779-2bf680cedf87", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "16272031-54e9-48e8-b9b7-a991a45f2234", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092521Z:6947aef2-298e-422a-a779-2bf680cedf87" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:19.7275951Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:20.8525989Z" + }, + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": true, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-fc993af880a35f4eb38eb63c44200b4f-1f49bc7bc4b0e14e-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "f31f77cdd741c954c77a4f447052ebae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "571", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:22 GMT", + "ETag": "\u00220100cba5-0000-0100-0000-62fa11010000\u0022", + "Expires": "-1", + "mise-correlation-id": "3a864a69-8c27-466f-8bd6-cc80dfb7238b", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5b75bd5a-8f34-41c8-a50a-67fe9a7c39ae", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "d99c00bb-26df-4106-b90b-67c6c98eb58e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092522Z:5b75bd5a-8f34-41c8-a50a-67fe9a7c39ae", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": true, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7789/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5558/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-31ce7ed9ef9a504eb7c060a948308637-eea22dba9a93384c-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "dc74eba188fc11eb9fb03d621c3a47a8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 15 Aug 2022 09:25:23 GMT", + "Expires": "-1", + "mise-correlation-id": "49d3c4a1-7ea5-4025-8465-2ae4005087c6", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d7b45cc6-500e-4554-aaf9-64787ad6f80b", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "43807a84-4012-4a22-a0a1-30056de9261a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092523Z:d7b45cc6-500e-4554-aaf9-64787ad6f80b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "214331150", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionOperationTests/GetUpdateDelete()Async.json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionOperationTests/GetUpdateDelete()Async.json new file mode 100644 index 0000000000000..c4ad8ed58b310 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcExtensionOperationTests/GetUpdateDelete()Async.json @@ -0,0 +1,450 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d6fdb52d5bce59448f5e50e05804cf5d-92fdbdc7dc771f49-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "304c85641d0e47a37e3143a26ed67bc8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e4b2b47d-7158-43ef-a15a-5518842527dd", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "e4b2b47d-7158-43ef-a15a-5518842527dd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092528Z:e4b2b47d-7158-43ef-a15a-5518842527dd" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg9879?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-2a553acafbebe64690c02e0cb1209ff6-6198c719d36e5f4d-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "0084f44d5aa33817782ce38e37e35ca7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a6c7c2df-8f3a-4d20-8908-9f8dc12d6505", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "a6c7c2df-8f3a-4d20-8908-9f8dc12d6505", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092529Z:a6c7c2df-8f3a-4d20-8908-9f8dc12d6505" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879", + "name": "hci-cluster-rg9879", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-085182181ae2a84e9731df042012563f-329df97118853343-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "37f1c2da901cb87abe456f21250abdd1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:32 GMT", + "ETag": "\u002215000918-0000-0100-0000-62fa110b0000\u0022", + "Expires": "-1", + "mise-correlation-id": "270584d7-47b0-4b21-a7a3-c96b921255a2", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "205c207f-1ae7-446a-83eb-4d2cf35bcaeb", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "92979d03-4db8-4236-9e20-5e4d4b76558d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092532Z:205c207f-1ae7-446a-83eb-4d2cf35bcaeb", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078", + "name": "hci-cluster1078", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:31.0557763Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:31.0557763Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "fb59a91d-67f8-456e-b565-6034b7f23499", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-42f855e70b9c964b80632e192249f26f-166345800bf8274f-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "1de9d26ac1ba342bf896f1c0b9464de7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "739", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:35 GMT", + "ETag": "\u00220700ec55-0000-0100-0000-62fa110f0000\u0022", + "Expires": "-1", + "mise-correlation-id": "f0137f5a-ecb0-4b40-a887-35cce590e99e", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "755109c6-4342-4e77-bd3e-05342451f3cc", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "79d73835-eb2a-46bb-a154-65a603c653a4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092535Z:755109c6-4342-4e77-bd3e-05342451f3cc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:32.9464067Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:32.9464067Z" + }, + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster1078-fb59a91d-67f8-456e-b565-6034b7f23499-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "106", + "Content-Type": "application/json", + "traceparent": "00-89b6ec77b717bf4eac2f9011508698c5-a61f5896e19b624d-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b9fb4ffa7ad763300948e414a8165221", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "extensionParameters": { + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "850", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:36 GMT", + "ETag": "\u00220100e7a5-0000-0100-0000-62fa11100000\u0022", + "Expires": "-1", + "mise-correlation-id": "ac8fe7f1-d0ba-4a03-bea7-a64bfd197370", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "143fae94-c30b-4187-8f29-f31785294532", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "9a82c0d5-9440-4623-ae51-0180d1b96e51", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092536Z:143fae94-c30b-4187-8f29-f31785294532", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:35.6182947Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:35.6182947Z" + }, + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": false, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "71", + "Content-Type": "application/json", + "traceparent": "00-b30e9d50ca9e214187fd894678cc5911-109ae2a17127df40-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "d62688f8040ef0f9a1851371dc178be1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "extensionParameters": { + "autoUpgradeMinorVersion": true + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "849", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:37 GMT", + "ETag": "\u00220100eaa5-0000-0100-0000-62fa11110000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cae48729-4a41-4e78-a245-ff9d3036567c", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "224be867-90a8-4f92-b5a4-d14394707904", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092537Z:cae48729-4a41-4e78-a245-ff9d3036567c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:25:35.6182947Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:25:36.7589242Z" + }, + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": true, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-a39a89e4d4dbb648bfeca1deef34bdf0-7e2c1f0c55f9a34f-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "201c6c497cef2113c3dc6fec75f33c7f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "571", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:25:38 GMT", + "ETag": "\u00220100eaa5-0000-0100-0000-62fa11110000\u0022", + "Expires": "-1", + "mise-correlation-id": "c7bdfb23-c62d-460a-b44e-ba51758cf4b4", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3bb6d401-aee8-4702-ba07-3bb2832c5bb4", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "9cec606e-9a28-4d17-af38-6d4aaff1c420", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092538Z:3bb6d401-aee8-4702-ba07-3bb2832c5bb4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default/extensions/MicrosoftMonitoringAgent", + "name": "MicrosoftMonitoringAgent", + "type": "microsoft.azurestackhci/clusters/arcsettings/extensions", + "properties": { + "provisioningState": "Succeeded", + "aggregateState": "NotSpecified", + "perNodeExtensionDetails": [], + "extensionParameters": { + "type": "MicrosoftMonitoringAgent", + "autoUpgradeMinorVersion": true, + "settings": { + "workspaceId": "5dcf9bc1-c220-4ed6-84f3-6919c3a393b6" + } + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9879/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1078/arcSettings/default/extensions/MicrosoftMonitoringAgent?api-version=2022-05-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-ccc9250df0b70c44aa0f321848b15630-8c80c376ecdfea48-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "d0435d310220bbfe13b6ec2ce2dfb4f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 15 Aug 2022 09:25:38 GMT", + "Expires": "-1", + "mise-correlation-id": "43b546aa-2df3-40c6-9701-8b435fe1ce89", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "85f57d4e-fd73-4f61-a62f-58a8931ceebb", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "2c2f1bdf-10b6-4bbb-a8e3-39bf4afc01cd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T092539Z:85f57d4e-fd73-4f61-a62f-58a8931ceebb", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "2093031795", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingCollectionTests/CreateGetList().json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingCollectionTests/CreateGetList().json new file mode 100644 index 0000000000000..b47b01325e1a4 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingCollectionTests/CreateGetList().json @@ -0,0 +1,335 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "traceparent": "00-51814b469f6fd2419a621b019f4b9b27-accaccc59b69b146-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "87b235b3c17acea5c3f8fd9a10347a01", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:32:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3fc7992d-0534-4f35-98b8-84eec7596acc", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "3fc7992d-0534-4f35-98b8-84eec7596acc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T073256Z:3fc7992d-0534-4f35-98b8-84eec7596acc" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg4547?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-84473dacedde71499c15da21d45c53f8-82474d28ae21ce4d-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "2f75a1a65f45e6277650b7b1bb02d5f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:33:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "55207179-e7ed-4531-814e-63a479f166d9", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "55207179-e7ed-4531-814e-63a479f166d9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T073304Z:55207179-e7ed-4531-814e-63a479f166d9" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547", + "name": "hci-cluster-rg4547", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5440?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-e57493d9e738424da8d76971f8b0e152-2fbb172d89c14547-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "f2770a96dda3b729dd0a625dc4717b2d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:33:16 GMT", + "ETag": "\u00221400ae1f-0000-0100-0000-62f9f6ba0000\u0022", + "Expires": "-1", + "mise-correlation-id": "3b8d81ad-f431-40cb-a030-e7071f9ebd72", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "86d2ca19-1bbd-4f56-bff3-a464b4a3e2d8", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "149ebea7-8d92-4ce8-b68a-e82d032feab6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T073316Z:86d2ca19-1bbd-4f56-bff3-a464b4a3e2d8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5440", + "name": "hci-cluster5440", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:33:14.2575866Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:33:14.2575866Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "6ae2f7ce-41c7-40eb-8603-e7f25285c7a3", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5440/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-963274ec16d4c044935d78c9cd930675-5c96fe7a931c4742-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "2e11855e6df28ad5a00370ee1d08f527", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "739", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:33:21 GMT", + "ETag": "\u00220700e954-0000-0100-0000-62f9f6c10000\u0022", + "Expires": "-1", + "mise-correlation-id": "15bdd9a8-4317-4b74-b408-2513c84fb741", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6fc85dc9-aff8-40d3-a856-d0313a5af6cc", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "8b81ff24-0cd0-4e03-a517-82d7203ea33e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T073321Z:6fc85dc9-aff8-40d3-a856-d0313a5af6cc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5440/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:33:19.1325967Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:33:19.1325967Z" + }, + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster5440-6ae2f7ce-41c7-40eb-8603-e7f25285c7a3-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5440/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-ea941554ce9a4f4eaf63b77f285c87ef-e69f4e53ace7774b-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "709e2da7cf89c3034c776855c588b1de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "481", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:33:25 GMT", + "ETag": "\u00220700e954-0000-0100-0000-62f9f6c10000\u0022", + "Expires": "-1", + "mise-correlation-id": "51af59b7-2ce4-4624-b494-105fe37c6985", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6d675383-0f95-463d-b58b-81e232b73923", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "dc1291bc-0c54-4428-9d52-cf8a3cb921d3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T073325Z:6d675383-0f95-463d-b58b-81e232b73923", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5440/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster5440-6ae2f7ce-41c7-40eb-8603-e7f25285c7a3-Arc-Infra-RG", + "aggregateState": "NotSpecified", + "perNodeDetails": [] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5440/arcSettings?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-63ac7ca29aedda40b303450a335c7f34-37b249b54ae7bc41-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "7d5c833bc3c428ef34ec519f6d3a99d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "493", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:33:26 GMT", + "Expires": "-1", + "mise-correlation-id": "8dc49ded-645a-40a1-b3dd-84108a2c54c2", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c28d1bce-2a0d-4585-94a1-e9d0d831c627", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "6a4c60ea-0c83-4e35-b564-338c5a9fd9de", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T073326Z:c28d1bce-2a0d-4585-94a1-e9d0d831c627", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg4547/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5440/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster5440-6ae2f7ce-41c7-40eb-8603-e7f25285c7a3-Arc-Infra-RG", + "aggregateState": "NotSpecified", + "perNodeDetails": [] + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "206468162", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingCollectionTests/CreateGetList()Async.json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingCollectionTests/CreateGetList()Async.json new file mode 100644 index 0000000000000..c391624b18ed0 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingCollectionTests/CreateGetList()Async.json @@ -0,0 +1,335 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "traceparent": "00-23fa12345cac674189d0037ba309341b-16c4d7307196574e-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "3904ddb44a6713a56252fdc9acbd5e3d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:27:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "42cd1285-9b4f-4793-ba06-d8bf1eed5857", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "42cd1285-9b4f-4793-ba06-d8bf1eed5857", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T072708Z:42cd1285-9b4f-4793-ba06-d8bf1eed5857" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg7573?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-255c6034621e8241b626a0439719b5e0-7fc5a5c27cbf5d42-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "2a6edbc25f5a2fbc8b3a3ec982fcf2f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:27:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ab1d6c3a-546c-42be-b415-766e2695102f", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "ab1d6c3a-546c-42be-b415-766e2695102f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T072712Z:ab1d6c3a-546c-42be-b415-766e2695102f" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573", + "name": "hci-cluster-rg7573", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2661?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-0d826322c4d6354ca1c3bbf55fa62efc-31df4453b488c14c-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "44a68faf732c4159ef7d41c1940baf25", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:27:20 GMT", + "ETag": "\u002214009913-0000-0100-0000-62f9f5570000\u0022", + "Expires": "-1", + "mise-correlation-id": "3e6757d8-d6ff-4e2b-835f-18f1a615017e", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ae15fc9-2a26-4351-b389-88c1e60a4931", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "da49106e-3443-40db-9b68-8eed6027d723", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T072721Z:8ae15fc9-2a26-4351-b389-88c1e60a4931", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2661", + "name": "hci-cluster2661", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:27:18.7971713Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:27:18.7971713Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "6328b661-1569-416e-bd49-b9237ffc8ec8", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2661/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-c70dd43ebeaa5141a3759b0982f688e6-d2b2ce733766974c-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "ec4f6bda5ab0487e09db0f6749df550b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "739", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:27:23 GMT", + "ETag": "\u00220700e154-0000-0100-0000-62f9f55b0000\u0022", + "Expires": "-1", + "mise-correlation-id": "e079be56-b29a-43c0-9053-7632a2272b11", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "632c43c5-0a34-47c6-9ce0-6a98994e229b", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "0fc8769f-9cd8-4b05-9747-d87105eeae2c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T072724Z:632c43c5-0a34-47c6-9ce0-6a98994e229b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2661/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:27:21.9534264Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:27:21.9534264Z" + }, + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster2661-6328b661-1569-416e-bd49-b9237ffc8ec8-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2661/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-5a2626b1dcfcae4298a2962c1276940d-274e9471c378f345-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "ce0d07cfe296679614e96ae17a6df72e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "481", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:27:24 GMT", + "ETag": "\u00220700e154-0000-0100-0000-62f9f55b0000\u0022", + "Expires": "-1", + "mise-correlation-id": "feddfceb-0097-4c60-b029-369e99c066bc", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "346c7e28-3119-4018-a393-769b8fd66fed", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "db368b11-485f-41b5-8b7e-4753e6a8bcb5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T072725Z:346c7e28-3119-4018-a393-769b8fd66fed", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2661/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster2661-6328b661-1569-416e-bd49-b9237ffc8ec8-Arc-Infra-RG", + "aggregateState": "NotSpecified", + "perNodeDetails": [] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2661/arcSettings?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-d6fb905db54546469a1f4920ef13710a-b17c216ef162e141-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "91a8a48e0ca355f4115e3a5063f2f80f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "493", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:27:25 GMT", + "Expires": "-1", + "mise-correlation-id": "7d8120ce-5bda-4951-8e23-4e853bab1158", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "291c63aa-0ddf-453f-b16e-a3cb91062c89", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "28a3fe21-3123-4db7-acd4-84890a7cc7e0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T072725Z:291c63aa-0ddf-453f-b16e-a3cb91062c89", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg7573/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2661/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster2661-6328b661-1569-416e-bd49-b9237ffc8ec8-Arc-Infra-RG", + "aggregateState": "NotSpecified", + "perNodeDetails": [] + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "1144215032", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingOperationTests/GetUpdateDelete().json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingOperationTests/GetUpdateDelete().json new file mode 100644 index 0000000000000..7bee9fa1ec1cd --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingOperationTests/GetUpdateDelete().json @@ -0,0 +1,378 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "traceparent": "00-1da7449bf8dff84e9ba76d08ff0e997f-7917962165198b46-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b4e7f06edc9058b3dccc48b48b5281f0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:56:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2e66ebe-de32-41d0-807f-5ac72da2c241", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "a2e66ebe-de32-41d0-807f-5ac72da2c241", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075601Z:a2e66ebe-de32-41d0-807f-5ac72da2c241" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg8816?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-67782c6bae0c184c93c3b0c0578a07e4-7b4aaaa85fef214e-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "2673ef84d89ce814fb599f1b707b43fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:56:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1309de41-4fc2-4572-a81d-4c64d88dbe97", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "1309de41-4fc2-4572-a81d-4c64d88dbe97", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075607Z:1309de41-4fc2-4572-a81d-4c64d88dbe97" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816", + "name": "hci-cluster-rg8816", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-4058fd10e7772c48a544f76099612cc5-878f00d32ffbbe4e-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "3e14306d8d6f170c5f2aec90fe7ddbc6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:56:13 GMT", + "ETag": "\u002214007552-0000-0100-0000-62f9fc1c0000\u0022", + "Expires": "-1", + "mise-correlation-id": "1f4af826-2018-4a54-b822-276d29d06585", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "408847d7-d0da-4850-993e-6376090bfdc1", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "db345cea-8bc8-4ac4-b370-13f5b199ebe8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075614Z:408847d7-d0da-4850-993e-6376090bfdc1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455", + "name": "hci-cluster1455", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:56:11.9231691Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:56:11.9231691Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "a48e68bc-1249-4644-9bec-444f277beea7", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-d5f6dfd636ca9a45944b8c5ffcb94894-beb9582dfdbe9748-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "a6806268d261d317cc9483143c6c5104", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "739", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:56:15 GMT", + "ETag": "\u002207000a55-0000-0100-0000-62f9fc200000\u0022", + "Expires": "-1", + "mise-correlation-id": "2ee55372-40e3-4880-9d45-e5d28181acd0", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bbfa2416-ad77-4b93-88b8-156d2a29188a", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "45cc25cb-1485-455f-9b8b-48aae83b5061", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075616Z:bbfa2416-ad77-4b93-88b8-156d2a29188a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:56:14.6575537Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:56:14.6575537Z" + }, + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster1455-a48e68bc-1249-4644-9bec-444f277beea7-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "58", + "Content-Type": "application/json", + "traceparent": "00-d4ddd71faaf54b4c89af2cb94f1434e7-17f226069c004e4d-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "51e597b870dc6114670e3cae2858fddb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "connectivityProperties": { + "enabled": true + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "738", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:56:17 GMT", + "ETag": "\u002207000b55-0000-0100-0000-62f9fc210000\u0022", + "Expires": "-1", + "mise-correlation-id": "71102053-3fee-4517-805c-18c9c065ad96", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cf991036-b4b0-4967-bdf6-6b1ce54dc15c", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "415ef77b-19ac-4cea-89d5-8635ce3ce004", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075617Z:cf991036-b4b0-4967-bdf6-6b1ce54dc15c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:56:14.6575537Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:56:16.8294413Z" + }, + "properties": { + "connectivityProperties": { + "enabled": true + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster1455-a48e68bc-1249-4644-9bec-444f277beea7-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b2031ddcb6047c41a26b649c825fa7a6-192b03dd557bcf4e-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "190755c354c39a92184072db0af8daf3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "480", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:56:17 GMT", + "ETag": "\u002207000b55-0000-0100-0000-62f9fc210000\u0022", + "Expires": "-1", + "mise-correlation-id": "f9acb955-5eb3-42b7-a305-91cf761b93b5", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c7ab7524-9c47-47df-9d8c-0d50efc95dcf", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "3060d42d-66d5-41cc-af6d-129cf6cefd89", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075618Z:c7ab7524-9c47-47df-9d8c-0d50efc95dcf", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "properties": { + "connectivityProperties": { + "enabled": true + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster1455-a48e68bc-1249-4644-9bec-444f277beea7-Arc-Infra-RG", + "aggregateState": "NotSpecified", + "perNodeDetails": [] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg8816/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1455/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1203cad6f9ece84aba2793cdcc37ac5b-d7315e04724e214a-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "67d7e7d88a97f7ea4d1e3f529569ab74", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 15 Aug 2022 07:56:19 GMT", + "Expires": "-1", + "mise-correlation-id": "b61d9ca0-351b-4f67-8129-2eab52312edc", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cea8c6af-1645-4f9c-a8fc-1ae2188b9224", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "e121601f-b2d6-4a02-852f-450546825378", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075620Z:cea8c6af-1645-4f9c-a8fc-1ae2188b9224", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "1644815062", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingOperationTests/GetUpdateDelete()Async.json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingOperationTests/GetUpdateDelete()Async.json new file mode 100644 index 0000000000000..b1d21fa45e03a --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/ArcSettingOperationTests/GetUpdateDelete()Async.json @@ -0,0 +1,378 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "traceparent": "00-47a082e4a3382443995b0db2ced46309-f61977597485d24a-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "f4348d4699b1fd36cce9dc14aeca73b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:52:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7dac87d1-9bba-44df-85d9-7823da2fabd0", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "7dac87d1-9bba-44df-85d9-7823da2fabd0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075209Z:7dac87d1-9bba-44df-85d9-7823da2fabd0" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg9889?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-b2a6035b2921f948aaac1053b2e9e969-f62200ab6de39b48-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "664655281f1c9813cac9e3cfdef9768c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:52:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d08f79ea-6e73-4386-a407-57432d69925c", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "d08f79ea-6e73-4386-a407-57432d69925c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075214Z:d08f79ea-6e73-4386-a407-57432d69925c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889", + "name": "hci-cluster-rg9889", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-fdd41d4e41a79e42a040166fb9383291-d3df868d1ad66b4c-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "f2e51fa3c5262ced217097424799d72e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:52:22 GMT", + "ETag": "\u002214005d49-0000-0100-0000-62f9fb350000\u0022", + "Expires": "-1", + "mise-correlation-id": "5214a907-9d62-4298-a58a-5e77737dc021", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2a9d8d40-dcac-4963-81df-b05878087438", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "0f61ec5b-3de2-43db-b763-17e0241ef9a3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075222Z:2a9d8d40-dcac-4963-81df-b05878087438", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936", + "name": "hci-cluster3936", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:52:20.2418743Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:52:20.2418743Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "60e4d778-6f7b-406b-853b-2094ac82f032", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "17", + "Content-Type": "application/json", + "traceparent": "00-8d29558893423a43960f10fd6d13f462-ffe9f971060eb949-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b4b707282985216d5ce7d0522deef065", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": {} + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "739", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:52:25 GMT", + "ETag": "\u002207000455-0000-0100-0000-62f9fb390000\u0022", + "Expires": "-1", + "mise-correlation-id": "b33a663c-7e4b-4277-bf69-0638af6d631e", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e639dd51-78f3-40d9-bc0a-f1ea1122d626", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "6f16c3b5-e3fa-47a9-924b-ed88f2620afa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075225Z:e639dd51-78f3-40d9-bc0a-f1ea1122d626", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:52:23.1481309Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:52:23.1481309Z" + }, + "properties": { + "connectivityProperties": { + "enabled": false + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster3936-60e4d778-6f7b-406b-853b-2094ac82f032-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "58", + "Content-Type": "application/json", + "traceparent": "00-57fcf06b985b97488ab827721f93c0b0-32aa88b0aaa2e648-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "53273e8750cb90025939faaf7b55822f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "connectivityProperties": { + "enabled": true + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "738", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:52:26 GMT", + "ETag": "\u002207000555-0000-0100-0000-62f9fb3a0000\u0022", + "Expires": "-1", + "mise-correlation-id": "d85ee837-58a1-4220-9e5f-053c53f09c6a", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7439d974-b976-4ed6-ba34-c77f037fcf4f", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "5e9c2e6a-db59-4259-867f-2bb52bf16605", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075227Z:7439d974-b976-4ed6-ba34-c77f037fcf4f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T07:52:23.1481309Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T07:52:26.1168536Z" + }, + "properties": { + "connectivityProperties": { + "enabled": true + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster3936-60e4d778-6f7b-406b-853b-2094ac82f032-Arc-Infra-RG", + "aggregateState": "NotSpecified" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-83744e843ca68540a5c0d916e2b50a74-96c9ca10f98c9f4b-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "f2b5a10cd8bf79eab2c4963ff59aff33", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "480", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 07:52:27 GMT", + "ETag": "\u002207000555-0000-0100-0000-62f9fb3a0000\u0022", + "Expires": "-1", + "mise-correlation-id": "db3ecfe8-195c-4cb7-9f66-acc0c0d39aab", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "41afc215-e084-40b2-8266-9e690737dfed", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "d19a4022-45b6-450e-b832-7c093b2b50d6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075227Z:41afc215-e084-40b2-8266-9e690737dfed", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936/arcSettings/default", + "name": "default", + "type": "microsoft.azurestackhci/clusters/arcsettings", + "properties": { + "connectivityProperties": { + "enabled": true + }, + "provisioningState": "Succeeded", + "arcInstanceResourceGroup": "hci-cluster3936-60e4d778-6f7b-406b-853b-2094ac82f032-Arc-Infra-RG", + "aggregateState": "NotSpecified", + "perNodeDetails": [] + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9889/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3936/arcSettings/default?api-version=2022-05-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-26a44648b0464247892d9c818a05bf15-7ac7879bdb9dff43-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "09bb32808472d86305275b4b2fbea606", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 15 Aug 2022 07:52:28 GMT", + "Expires": "-1", + "mise-correlation-id": "ddbb67ee-e6ee-4ccb-bcfe-e77369349d9b", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "77eacb45-ebb0-4fa7-9e49-9fb66f9ae79b", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "e353c945-2f85-4a76-b72f-42885ced2001", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T075228Z:77eacb45-ebb0-4fa7-9e49-9fb66f9ae79b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": null + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "1000581234", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterCollectionTests/CreateGetList().json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterCollectionTests/CreateGetList().json new file mode 100644 index 0000000000000..ce447c7d93e45 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterCollectionTests/CreateGetList().json @@ -0,0 +1,294 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b573f95c87837c438c37677fbce64437-f2b6e32583dd1445-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b35b83ce603cc2918df3475d36154cd9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ff6f4be3-6ee1-4eae-bbf1-8ece61b26c3c", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "ff6f4be3-6ee1-4eae-bbf1-8ece61b26c3c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091701Z:ff6f4be3-6ee1-4eae-bbf1-8ece61b26c3c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg2636?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-4d824a103525ad4888a1422e6bb9d850-faf74b514cced142-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "3310f5f0199ec7c4c9645852ea652f3d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "827dbdbb-f094-4227-9cd8-279e4f03c9b6", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-request-id": "827dbdbb-f094-4227-9cd8-279e4f03c9b6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091703Z:827dbdbb-f094-4227-9cd8-279e4f03c9b6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg2636", + "name": "hci-cluster-rg2636", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg2636/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2121?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-bd17ad130e9d4d49938b0f3bbd262d16-57fbf7eb306dbc43-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b241928adfd70979d9eea1fd2cdbe8d7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "948", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:06 GMT", + "ETag": "\u002215001e06-0000-0100-0000-62fa0f110000\u0022", + "Expires": "-1", + "mise-correlation-id": "6abdb95e-4e6d-448d-99b1-6cd2b847eafa", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e288a535-5431-4765-9755-d04ee1dc9e7d", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1180", + "x-ms-request-id": "f66a5444-b68b-4d37-9f96-78d57d0c5c25", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091706Z:e288a535-5431-4765-9755-d04ee1dc9e7d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg2636/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2121", + "name": "hci-cluster2121", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:17:05.331842Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:17:05.331842Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "6c232f5e-7bc0-46a6-80b5-10e8b1bc7e59", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg2636/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2121?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-dfdca790220f134c917e709fe0b4345c-06934bedbf495343-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "f5c3ecce2fba976aeb72fb3970a38e18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "672", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:07 GMT", + "ETag": "\u002215001e06-0000-0100-0000-62fa0f110000\u0022", + "Expires": "-1", + "mise-correlation-id": "7de4b949-8ba2-4aef-8a9d-1271a0d90223", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c78e7f0e-3ee7-4d21-ac67-9f7dee6e8fd5", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "ea7023a8-7d48-4493-9a7d-e09ecbe22b7b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091707Z:c78e7f0e-3ee7-4d21-ac67-9f7dee6e8fd5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg2636/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2121", + "name": "hci-cluster2121", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "6c232f5e-7bc0-46a6-80b5-10e8b1bc7e59", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg2636/providers/Microsoft.AzureStackHCI/clusters?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e94357c8f6110b4f9a76fac404d5a835-03bf775e3201a44a-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b98a5e1f06971618972ac42b22ca9c89", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "684", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f9df98e4-78a3-46fc-ae95-2d131d215dda", + "x-ms-original-request-ids": [ + "a1367b18-fc12-4f46-a9ab-4d536a7b000b", + "385b8163-e5fb-4d3e-bef9-c3918a3b3578", + "2949e7a0-b6ba-49e0-b320-f9bed8244b1b", + "456f5b6e-c649-4e1b-9231-8ad895f824fe", + "da45d890-4498-4c40-931c-a9c13ab672da", + "52b01db4-320d-475c-9a64-44cd5eef1f06" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "f9df98e4-78a3-46fc-ae95-2d131d215dda", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091708Z:f9df98e4-78a3-46fc-ae95-2d131d215dda" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg2636/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2121", + "name": "hci-cluster2121", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "6c232f5e-7bc0-46a6-80b5-10e8b1bc7e59", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "1794001462", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterCollectionTests/CreateGetList()Async.json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterCollectionTests/CreateGetList()Async.json new file mode 100644 index 0000000000000..75f0829d2d2ef --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterCollectionTests/CreateGetList()Async.json @@ -0,0 +1,294 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-200599011d439442a88e9886444760df-aaaf9984d5e62f48-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "8f6cea3ae92d29acf0fe6edb9b8090b3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "35315176-b583-4fac-a63a-c0b64471dc0c", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "35315176-b583-4fac-a63a-c0b64471dc0c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091712Z:35315176-b583-4fac-a63a-c0b64471dc0c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg1419?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-7125a68c3b98d542b266fbd93cce6515-becb5251bade5843-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "a0ac6b38e57b251bd9824e299576f02c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "10cfbcf6-d077-4902-a201-fea2df98cf12", + "x-ms-ratelimit-remaining-subscription-writes": "1179", + "x-ms-request-id": "10cfbcf6-d077-4902-a201-fea2df98cf12", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091713Z:10cfbcf6-d077-4902-a201-fea2df98cf12" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg1419", + "name": "hci-cluster-rg1419", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg1419/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1176?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-1fa35ec34a4ce54c87040fb09fb8a6d3-7784b53b4603a14d-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b491e487c7aad058ba4d9bcbc4409806", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:16 GMT", + "ETag": "\u002215007006-0000-0100-0000-62fa0f1c0000\u0022", + "Expires": "-1", + "mise-correlation-id": "50adc738-8f40-45ee-aa73-9240d2062f01", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "520c8a27-d0f8-496d-90ce-6de1c92f98c8", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1178", + "x-ms-request-id": "dfe41260-6fc0-4683-8f0a-ff12fdd7bbee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091717Z:520c8a27-d0f8-496d-90ce-6de1c92f98c8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg1419/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1176", + "name": "hci-cluster1176", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T09:17:15.8474948Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T09:17:15.8474948Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "b2a87d1f-b10b-49d8-86e5-55f6d32ef9f9", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg1419/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1176?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-aa4df6acd814a84e8aa8de55e121f5f0-d1abe8011cf35740-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "04c8ffb9be1751046a54665d005b887d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "672", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:17 GMT", + "ETag": "\u002215007006-0000-0100-0000-62fa0f1c0000\u0022", + "Expires": "-1", + "mise-correlation-id": "52619ac1-b0e6-46cd-bf60-cd9bbf0887cf", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "afec8914-d0ec-41ff-b186-b7a7bfac2aa6", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "fe10d475-9ef7-4f4f-8df8-7879533fca89", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091718Z:afec8914-d0ec-41ff-b186-b7a7bfac2aa6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg1419/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1176", + "name": "hci-cluster1176", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "b2a87d1f-b10b-49d8-86e5-55f6d32ef9f9", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg1419/providers/Microsoft.AzureStackHCI/clusters?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-6d8636b7c6d74049894910016c99ae48-d32768cd33e7e748-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "acf903ae7922a48d53cfc19880591442", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "684", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 09:17:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cbc1a054-e93d-4991-8265-08d28075cb7c", + "x-ms-original-request-ids": [ + "01807bfd-7d86-483d-a138-fb69a86db4e1", + "6dd0ecb5-0bc1-4251-95ce-da66f3ede242", + "8b1f9f50-32e6-4381-9efd-779c1d61456c", + "ce511d02-be8d-45e3-bd47-bdd68899ea2e", + "a5f2fed2-6a4e-4b80-b473-bc3dd29cc634", + "29df75bc-f412-4afb-a903-31a52f86a832" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "cbc1a054-e93d-4991-8265-08d28075cb7c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T091718Z:cbc1a054-e93d-4991-8265-08d28075cb7c" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg1419/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1176", + "name": "hci-cluster1176", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "b2a87d1f-b10b-49d8-86e5-55f6d32ef9f9", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "152782404", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/CreateGetList().json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/CreateGetList().json new file mode 100644 index 0000000000000..7343a493a39c8 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/CreateGetList().json @@ -0,0 +1,295 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "traceparent": "00-1066ecde5a9e1949935490c7d1a77549-434dc4ef4da62749-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "512381b8292e641ed3dea9273a2032a6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:47:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1775a70e-c604-489b-bd87-c48a83722c37", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "1775a70e-c604-489b-bd87-c48a83722c37", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084735Z:1775a70e-c604-489b-bd87-c48a83722c37" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg9565?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-8d10d78cad82ad41ab8bbfc5bdbe6ad6-04a547735352bd42-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "44bac89ba6b5b882562945408efa60b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:47:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dc5307a9-25ef-49bd-83b6-c15d4279333c", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "dc5307a9-25ef-49bd-83b6-c15d4279333c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084737Z:dc5307a9-25ef-49bd-83b6-c15d4279333c" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9565", + "name": "hci-cluster-rg9565", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9565/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4023?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-4d7a62c4c976204fb02059f3c0dfdf0e-aedf7540c8ff634f-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "1f5cece2a111f33dd8d1bd3aec997bd7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:47:44 GMT", + "ETag": "\u002214002dc4-0000-0100-0000-62fa082e0000\u0022", + "Expires": "-1", + "mise-correlation-id": "d4b8fb4d-a359-4155-ba91-a3e5063b9258", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d7f87fd-61f5-4877-ba49-95966a5b79b2", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "504223c0-2e5f-4c3f-ae0d-33774f4e9519", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084744Z:8d7f87fd-61f5-4877-ba49-95966a5b79b2", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9565/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4023", + "name": "hci-cluster4023", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T08:47:41.5675527Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T08:47:41.5675527Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "79b8c41b-b78c-42b0-afeb-ad5c7e9bec4e", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9565/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4023?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e6d158763541bf4e80873423fc914842-db51261efe0e3c48-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "7042d94d74967dcbce76d3f41e924fae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "672", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:47:44 GMT", + "ETag": "\u002214002dc4-0000-0100-0000-62fa082e0000\u0022", + "Expires": "-1", + "mise-correlation-id": "ee2374d9-8e53-41b0-b0ee-b711162b0669", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "83dbaf8b-41a2-47f1-8be8-889fb91eb003", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "9dcee7be-39da-4b74-858d-6e8cc954ce4d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084745Z:83dbaf8b-41a2-47f1-8be8-889fb91eb003", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9565/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4023", + "name": "hci-cluster4023", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "79b8c41b-b78c-42b0-afeb-ad5c7e9bec4e", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9565/providers/Microsoft.AzureStackHCI/clusters?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-e749e315aafc7f4c84cc30963268771c-c88769dd72d1704a-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "463e88c71549f9cc8ac76be4e848ccbc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "684", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:47:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ced5783a-5bd0-40a6-b3fd-79ae5748b948", + "x-ms-original-request-ids": [ + "d01b8874-0a9e-4f68-9496-434a40d3f65b", + "260554c8-63ef-49d3-8e31-0994dad76024", + "0ada188b-c5a5-41a3-b117-071059b31042", + "38a90c92-4c28-4cfe-9347-955175e4edea", + "52c32efa-9584-468d-b9cd-626fe805c330", + "cbf78de9-1145-460d-851f-e0e8bfe01bdd" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "ced5783a-5bd0-40a6-b3fd-79ae5748b948", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084746Z:ced5783a-5bd0-40a6-b3fd-79ae5748b948" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9565/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4023", + "name": "hci-cluster4023", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "79b8c41b-b78c-42b0-afeb-ad5c7e9bec4e", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "938884969", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/CreateGetList()Async.json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/CreateGetList()Async.json new file mode 100644 index 0000000000000..e3eb06f9e0404 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/CreateGetList()Async.json @@ -0,0 +1,294 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-c5bc317f79235d48817555f9ceef15c3-7e73b03d55befb4e-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "9fe2ae9fdd4af03c22a7c6468a4fee85", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2f54a54e-7ea4-481a-9cb2-ff4321fabadf", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "2f54a54e-7ea4-481a-9cb2-ff4321fabadf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084904Z:2f54a54e-7ea4-481a-9cb2-ff4321fabadf" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg5954?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-35c25fdada92cd4da77d9f205743e942-df41758fe3ce1548-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "a147a865d6e7ebea18ac0a0333c6c0d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5cb99165-a695-4f20-842f-3b82ae79a268", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "5cb99165-a695-4f20-842f-3b82ae79a268", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084906Z:5cb99165-a695-4f20-842f-3b82ae79a268" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5954", + "name": "hci-cluster-rg5954", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5954/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5142?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-470b1546929eab409bfaae3330c63a9e-bed0cd37cc0e7b49-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "070ca6bff720fd9ccab80adde15b873b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:09 GMT", + "ETag": "\u00221400c4c5-0000-0100-0000-62fa08840000\u0022", + "Expires": "-1", + "mise-correlation-id": "b7914691-1542-4080-b0ba-388693011cac", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a236efd9-d477-4fcc-a910-b653f622f7a5", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "42db8f5d-24ee-40a4-ac38-2f3c84b436f0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084909Z:a236efd9-d477-4fcc-a910-b653f622f7a5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5954/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5142", + "name": "hci-cluster5142", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T08:49:08.2544932Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T08:49:08.2544932Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "6cad369c-3045-4ee7-b4e4-9bd0f4642358", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5954/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5142?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-cfd4fc79056f1040900f877c29493890-ff271498fe31584b-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "2bdd3e13fd3f0bc6b55fc490e61e74ff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "672", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:09 GMT", + "ETag": "\u00221400c4c5-0000-0100-0000-62fa08840000\u0022", + "Expires": "-1", + "mise-correlation-id": "36c6d94d-014b-4248-a18b-7966dd95256f", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c838abb-d866-4022-a1cd-a74bf5b0212e", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "f8288208-d70e-402f-9f55-f4d91bb191a7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084910Z:6c838abb-d866-4022-a1cd-a74bf5b0212e", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5954/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5142", + "name": "hci-cluster5142", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "6cad369c-3045-4ee7-b4e4-9bd0f4642358", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5954/providers/Microsoft.AzureStackHCI/clusters?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-28ba9348ee648649951b194e9be9c525-5debf7c947c29640-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "488fb48561796d970b4ad62fcc0d09bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "684", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3e53ebc6-0a4b-4889-96e6-c2537ecd588f", + "x-ms-original-request-ids": [ + "49273239-19d8-40a1-a48d-7035e5caf8f9", + "aa5993d4-4c7a-4529-8256-147417342d07", + "ed4f38e1-76a7-4f74-8147-810e1ee9275f", + "31774839-5c8b-4dbc-a584-d4d579481c75", + "fd7b2b01-6b1b-462b-87ce-439a63348c93", + "3e163c8c-d32c-4d9f-bed6-4ec87c97717c" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "3e53ebc6-0a4b-4889-96e6-c2537ecd588f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084911Z:3e53ebc6-0a4b-4889-96e6-c2537ecd588f" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg5954/providers/Microsoft.AzureStackHCI/clusters/hci-cluster5142", + "name": "hci-cluster5142", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "6cad369c-3045-4ee7-b4e4-9bd0f4642358", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + ] + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "1791704336", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/GetUpdateDelete().json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/GetUpdateDelete().json new file mode 100644 index 0000000000000..cf14ea7c594e4 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/GetUpdateDelete().json @@ -0,0 +1,617 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-ad3c5bbf06ed8a498cf00045a142e385-25ec80fc9cda0848-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "7002ab61141a82282e6e2e41ae366a3c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:47:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2be01803-132a-4422-b24a-39d103783baf", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "2be01803-132a-4422-b24a-39d103783baf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084755Z:2be01803-132a-4422-b24a-39d103783baf" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg3121?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-d281907031c43d4f91320958057903d0-7b33e0b91ea05248-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "895d203125d1ff4acc5ac722ff3f48b7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:47:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0b739a17-bd91-428d-8078-1fd9649f35ee", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "0b739a17-bd91-428d-8078-1fd9649f35ee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084757Z:0b739a17-bd91-428d-8078-1fd9649f35ee" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121", + "name": "hci-cluster-rg3121", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-a565564c37fec34d8adde7e17f14c26a-d1d794299222bd41-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "2311e1aa6d71bad4641e34577e320f8e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:01 GMT", + "ETag": "\u0022140096c4-0000-0100-0000-62fa08400000\u0022", + "Expires": "-1", + "mise-correlation-id": "66f6a441-cf98-43c3-a700-4b785ca7e434", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c6bfa9fb-e232-4491-8adf-2b761a8c1c28", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "efd752bc-3941-4336-ab4d-18629cd00003", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084802Z:c6bfa9fb-e232-4491-8adf-2b761a8c1c28", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "name": "hci-cluster2384", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T08:48:00.0205158Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T08:48:00.0205158Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "92ac7cb2-a726-4411-9703-5d346a5aeb3b", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384?api-version=2022-05-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "67", + "Content-Type": "application/json", + "traceparent": "00-801d551e5194af4fb6507c1dc09eb22a-1b0e2d3dd0667d47-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "f362980ed747ddd9261a47cdbb0c6eef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "desiredProperties": { + "diagnosticLevel": "Enhanced" + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "953", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:01 GMT", + "ETag": "\u00221400a1c4-0000-0100-0000-62fa08420000\u0022", + "Expires": "-1", + "mise-correlation-id": "419b16a9-13ce-40bb-be6d-97dde59d1d02", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "667c7c66-3b50-4b78-98ee-44ac8b70df74", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "263ab977-2b74-45ac-b97b-bb7afd90e304", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084802Z:667c7c66-3b50-4b78-98ee-44ac8b70df74", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "name": "hci-cluster2384", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T08:48:00.0205158Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T08:48:02.2079797Z" + }, + "properties": { + "status": "NotYetRegistered", + "cloudId": "92ac7cb2-a726-4411-9703-5d346a5aeb3b", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Enhanced" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "provisioningState": "Succeeded", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-bc26f35a05d7f24f889bd0465049d4ce-2f4bf3c52266e64a-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "888bf7f9862ac3d14ca324b3f1f2809a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "675", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:02 GMT", + "ETag": "\u00221400a1c4-0000-0100-0000-62fa08420000\u0022", + "Expires": "-1", + "mise-correlation-id": "28be3a4d-38ee-40a5-b4b5-afd138da8793", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ca1fe93-19cf-41ac-8942-69d5fdb0fca5", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "6b5916d3-2b31-460f-b4a8-37222591af39", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084803Z:8ca1fe93-19cf-41ac-8942-69d5fdb0fca5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "name": "hci-cluster2384", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "92ac7cb2-a726-4411-9703-5d346a5aeb3b", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Enhanced" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384?api-version=2022-05-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-70673a5ca1ef904b-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "6613384b55dcd36f0733fc572506fe58", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:04 GMT", + "ETag": "\u00221400a7c4-0000-0100-0000-62fa08440000\u0022", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "31ba4474-3fd7-44b6-af90-0de5e3c92dc1", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "be69e3c8-c5ea-4dab-a97a-891b51bda192", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084804Z:31ba4474-3fd7-44b6-af90-0de5e3c92dc1" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-f3400ffd35e33947-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "8281ad9a08f8a31288b881f6897a9d45", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:04 GMT", + "ETag": "\u00220c00dad2-0000-0100-0000-62fa08430000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "26bfe954-f466-42b6-a633-175fa9af86dd", + "x-ms-ratelimit-remaining-tenant-reads": "11999", + "x-ms-request-id": "f4782285-fe4c-4a00-bc09-85050f9aeac5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084804Z:26bfe954-f466-42b6-a633-175fa9af86dd" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "name": "be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "status": "Deleting", + "startTime": "2022-08-15T08:48:03.9703214Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-a9af7740b910d947-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "ac03cca4f994c5f3d48c9f3eadcb1fe1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:06 GMT", + "ETag": "\u00220c00dad2-0000-0100-0000-62fa08430000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c72b4bb5-db38-4675-b7b5-f155be1a0876", + "x-ms-ratelimit-remaining-tenant-reads": "11998", + "x-ms-request-id": "ab7ef47c-2115-462c-b077-04a728873fea", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084806Z:c72b4bb5-db38-4675-b7b5-f155be1a0876" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "name": "be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "status": "Deleting", + "startTime": "2022-08-15T08:48:03.9703214Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-e5f995084a551f4f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "78bcc9477c85a75f32baffee046dfe4d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:07 GMT", + "ETag": "\u00220c00dad2-0000-0100-0000-62fa08430000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f1dc6c14-c3f4-48e2-8a5f-b7c1c6b8f79b", + "x-ms-ratelimit-remaining-tenant-reads": "11997", + "x-ms-request-id": "1c368c2f-4647-4a45-a7d3-89d1da46cfb5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084807Z:f1dc6c14-c3f4-48e2-8a5f-b7c1c6b8f79b" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "name": "be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "status": "Deleting", + "startTime": "2022-08-15T08:48:03.9703214Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-1155031d876e7f4c-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "e7ff61014023a19ebabcad6c68d4f5bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:09 GMT", + "ETag": "\u00220c00dad2-0000-0100-0000-62fa08430000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cc0a8cce-1a2d-4e8c-8669-631621f718ac", + "x-ms-ratelimit-remaining-tenant-reads": "11996", + "x-ms-request-id": "86e4d182-355d-4ea0-a4ff-1b4165cd7368", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084809Z:cc0a8cce-1a2d-4e8c-8669-631621f718ac" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "name": "be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "status": "Deleting", + "startTime": "2022-08-15T08:48:03.9703214Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-22da04385f22f34c-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "bfafa09825bd28c06c5c7ad9f905c066", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:11 GMT", + "ETag": "\u00220c00dad2-0000-0100-0000-62fa08430000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6ddb0cbf-a564-4e1b-95f0-122ff92f5f00", + "x-ms-ratelimit-remaining-tenant-reads": "11995", + "x-ms-request-id": "b45461ee-9308-4aa4-b363-5f6e1a0996c8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084811Z:6ddb0cbf-a564-4e1b-95f0-122ff92f5f00" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "name": "be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "status": "Deleting", + "startTime": "2022-08-15T08:48:03.9703214Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-31254bd4579ba541-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "4c3c528d38cb07be2a1bbec8cef33e5d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:15 GMT", + "ETag": "\u00220c00dad2-0000-0100-0000-62fa08430000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "19f29eca-90c3-46b3-a475-692e029382f0", + "x-ms-ratelimit-remaining-tenant-reads": "11994", + "x-ms-request-id": "80134bda-474c-48e7-bd0c-2f92290a74c7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084815Z:19f29eca-90c3-46b3-a475-692e029382f0" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "name": "be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "status": "Deleting", + "startTime": "2022-08-15T08:48:03.9703214Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-a705ddb792663b40-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "645541c43ebedb8fa0d77ac6c6c5a7b4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:23 GMT", + "ETag": "\u00220c00dad2-0000-0100-0000-62fa08430000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0e6c71ca-eec5-4a22-91ee-12af52de8e2e", + "x-ms-ratelimit-remaining-tenant-reads": "11993", + "x-ms-request-id": "987b1f20-f03e-485e-8358-515e26f66a48", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084824Z:0e6c71ca-eec5-4a22-91ee-12af52de8e2e" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "name": "be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "status": "Deleting", + "startTime": "2022-08-15T08:48:03.9703214Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3bce9cac97aaa54e88a238a6afcec6c9-bf0ec733450d7140-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "16df46fba99760f1e2a895a167f75978", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "533", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:40 GMT", + "ETag": "\u00220c0026d4-0000-0100-0000-62fa08580000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7b28779f-9ff8-4e62-b814-514e11ce2fd8", + "x-ms-ratelimit-remaining-tenant-reads": "11992", + "x-ms-request-id": "3502b96f-5020-46c0-851e-80ff772692f5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084841Z:7b28779f-9ff8-4e62-b814-514e11ce2fd8" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "name": "be69e3c8-c5ea-4dab-a97a-891b51bda192*F1ABB8BCF5CD0402359EB737F62BDC6AEC26E10FFC2384653BA871F074F8D617", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3121/providers/Microsoft.AzureStackHCI/clusters/hci-cluster2384", + "status": "Succeeded", + "startTime": "2022-08-15T08:48:03.9703214Z", + "properties": null + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "934820070", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/GetUpdateDelete()Async.json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/GetUpdateDelete()Async.json new file mode 100644 index 0000000000000..060c1661e7ce1 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/GetUpdateDelete()Async.json @@ -0,0 +1,582 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-86bb3e76f8276547b02f22f9cf67f055-cacf38fa72c51746-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "c0b93c5edec81cf8a249e3c8efb29f04", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6b7dedb3-6aec-4600-813a-24bb16d04a60", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "6b7dedb3-6aec-4600-813a-24bb16d04a60", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084916Z:6b7dedb3-6aec-4600-813a-24bb16d04a60" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg9575?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-9bc28488527d7d45bb34797749ba2896-2241e68391129c40-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "9dafcc43fd4aad1debf0f5faf296b921", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5db6c303-f959-4661-916f-22c04f0a00cd", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "5db6c303-f959-4661-916f-22c04f0a00cd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084917Z:5db6c303-f959-4661-916f-22c04f0a00cd" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575", + "name": "hci-cluster-rg9575", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-9a996a34bc99da43bde843399763418f-adce70586e410e42-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "3c6a30bba4b4ead33c3412e28f7fcb07", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:21 GMT", + "ETag": "\u0022140009c6-0000-0100-0000-62fa08900000\u0022", + "Expires": "-1", + "mise-correlation-id": "4424167d-dade-4774-b21b-7ecc2cc587b7", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "deb9819e-9a0a-447a-bf77-edef0d571c0a", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "484611e9-b58a-4b47-95da-28b280f7ca9f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084921Z:deb9819e-9a0a-447a-bf77-edef0d571c0a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "name": "hci-cluster3507", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T08:49:19.1762748Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T08:49:19.1762748Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "454cebaa-55e1-47cb-ae1f-e4ae916d08af", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507?api-version=2022-05-01", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "67", + "Content-Type": "application/json", + "traceparent": "00-1a216841bff11a4d91bed3b265f6b66e-ecc3d64e4384c640-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "279cd51dc0cfbcf2a31bf20726a8574c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "desiredProperties": { + "diagnosticLevel": "Enhanced" + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "953", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:22 GMT", + "ETag": "\u002214001ac6-0000-0100-0000-62fa08920000\u0022", + "Expires": "-1", + "mise-correlation-id": "05157270-9f9f-41c6-b1cd-76c5e6dcaca3", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0a639d51-f463-4fdf-8ca9-36a6207d01ef", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "b08496eb-46f8-484d-aaf4-fe46e2158dfc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084922Z:0a639d51-f463-4fdf-8ca9-36a6207d01ef", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "name": "hci-cluster3507", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T08:49:19.1762748Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T08:49:21.9106571Z" + }, + "properties": { + "status": "NotYetRegistered", + "cloudId": "454cebaa-55e1-47cb-ae1f-e4ae916d08af", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Enhanced" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "provisioningState": "Succeeded", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b2944782c560824e85375004e7428289-cc4d83dcd54b6a48-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "6ef6cd0fe89a9e48f9c56015ea3b1d6c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "675", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:23 GMT", + "ETag": "\u002214001ac6-0000-0100-0000-62fa08920000\u0022", + "Expires": "-1", + "mise-correlation-id": "30e046a1-3a5f-498e-8f32-f36bb419444b", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "263d56a3-a3b8-4ca3-9dba-e2e0fab431dc", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "e4869e0c-a206-4172-b414-6e4344f39daf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084923Z:263d56a3-a3b8-4ca3-9dba-e2e0fab431dc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "name": "hci-cluster3507", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "454cebaa-55e1-47cb-ae1f-e4ae916d08af", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Enhanced" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507?api-version=2022-05-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-46c18f8b5140204d9e7d621c4434dba1-ba8870ea01a93f49-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "1ddcee2591fafb523dad9999b1cbc494", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:24 GMT", + "ETag": "\u0022140029c6-0000-0100-0000-62fa08940000\u0022", + "Expires": "-1", + "Location": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b6667259-6e25-49fb-88af-ba8efe9d3174", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "5bb2ec43-fa7a-4a5f-8daf-250a76090e54", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084924Z:b6667259-6e25-49fb-88af-ba8efe9d3174" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-46c18f8b5140204d9e7d621c4434dba1-8d8ba59ddb678c4d-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "38e286fd39cb7d517bfb30ed4eaeed2d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:24 GMT", + "ETag": "\u00220c00b2d7-0000-0100-0000-62fa08930000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49d283e9-d557-4b1d-9253-1014a7818a87", + "x-ms-ratelimit-remaining-tenant-reads": "11991", + "x-ms-request-id": "73b23409-d0a3-46f4-b71f-53a66d2f68f3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084925Z:49d283e9-d557-4b1d-9253-1014a7818a87" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "name": "5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "status": "Deleting", + "startTime": "2022-08-15T08:49:23.7715975Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-46c18f8b5140204d9e7d621c4434dba1-e503385bca9fa542-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "2438cc005b68c8e281a790fc63479b61", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:26 GMT", + "ETag": "\u00220c00b2d7-0000-0100-0000-62fa08930000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "54e48046-8b11-4dd9-b9ca-78f2d5f616af", + "x-ms-ratelimit-remaining-tenant-reads": "11990", + "x-ms-request-id": "78c933a2-4c5b-484c-a991-2eabe3b3dafa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084926Z:54e48046-8b11-4dd9-b9ca-78f2d5f616af" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "name": "5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "status": "Deleting", + "startTime": "2022-08-15T08:49:23.7715975Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-46c18f8b5140204d9e7d621c4434dba1-b12e60b5f933194f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "2a9c31db8ce9a3c87455468e2c7fe6de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:27 GMT", + "ETag": "\u00220c00b2d7-0000-0100-0000-62fa08930000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4b5f670a-001f-4979-bc5c-582ef4e6d440", + "x-ms-ratelimit-remaining-tenant-reads": "11989", + "x-ms-request-id": "648aa4d7-fc2e-4fe8-9c41-2731d8acc963", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084927Z:4b5f670a-001f-4979-bc5c-582ef4e6d440" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "name": "5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "status": "Deleting", + "startTime": "2022-08-15T08:49:23.7715975Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-46c18f8b5140204d9e7d621c4434dba1-09b72b5d9697614f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "930a0010ada4a1ffa319b724a9551a34", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:28 GMT", + "ETag": "\u00220c00b2d7-0000-0100-0000-62fa08930000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2b1ed14-7fb2-4dfc-9e74-292ea76ce606", + "x-ms-ratelimit-remaining-tenant-reads": "11988", + "x-ms-request-id": "4e2c7b5b-d550-4a6d-90d3-ed7aa5ec0fab", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084929Z:a2b1ed14-7fb2-4dfc-9e74-292ea76ce606" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "name": "5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "status": "Deleting", + "startTime": "2022-08-15T08:49:23.7715975Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-46c18f8b5140204d9e7d621c4434dba1-f4ea2960a3ec244f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "1d11cf5fc21274430394af1315549c01", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:31 GMT", + "ETag": "\u00220c00b2d7-0000-0100-0000-62fa08930000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ea9bc7f-384b-400b-99cc-77823abc3313", + "x-ms-ratelimit-remaining-tenant-reads": "11987", + "x-ms-request-id": "2db7eb68-6008-4de6-9534-c4b84fc1fd5e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084932Z:2ea9bc7f-384b-400b-99cc-77823abc3313" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "name": "5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "status": "Deleting", + "startTime": "2022-08-15T08:49:23.7715975Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-46c18f8b5140204d9e7d621c4434dba1-7226e42f6b9fd640-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "62ebb1c0073d2dbc31fa86d0d4a4fa1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "514", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:36 GMT", + "ETag": "\u00220c00b2d7-0000-0100-0000-62fa08930000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d7adf229-0dee-41e0-af34-c98084d9fee4", + "x-ms-ratelimit-remaining-tenant-reads": "11986", + "x-ms-request-id": "bb5a76b4-d1c8-4469-b26d-ff7d12048d85", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084936Z:d7adf229-0dee-41e0-af34-c98084d9fee4" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "name": "5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "status": "Deleting", + "startTime": "2022-08-15T08:49:23.7715975Z" + } + }, + { + "RequestUri": "https://management.azure.com/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-46c18f8b5140204d9e7d621c4434dba1-e347397b4879a84e-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "5c2e113bc86d4eccbd958f0ffeec8b4e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "533", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:49:44 GMT", + "ETag": "\u0022f70681c8-0000-0300-0000-62fa08a80000\u0022", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f0732fd8-668b-474a-9aa1-8da9450dbe3f", + "x-ms-ratelimit-remaining-tenant-reads": "11985", + "x-ms-request-id": "56c759cd-9057-4cf5-81b8-fd1caf1b94bc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084944Z:f0732fd8-668b-474a-9aa1-8da9450dbe3f" + }, + "ResponseBody": { + "id": "/providers/Microsoft.AzureStackHCI/locations/EASTUS/operationStatuses/5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "name": "5bb2ec43-fa7a-4a5f-8daf-250a76090e54*FBB26E5BFA6E232F1C6DDD7DBB67C6BBE1DCEFB1E6EAF8430A3419E4FB97C659", + "resourceId": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg9575/providers/Microsoft.AzureStackHCI/clusters/hci-cluster3507", + "status": "Succeeded", + "startTime": "2022-08-15T08:49:23.7715975Z", + "properties": null + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "569641315", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags().json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags().json new file mode 100644 index 0000000000000..c688084c937ec --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags().json @@ -0,0 +1,345 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-b3539e398ab50a40b75430529086cf55-464750251ade4e46-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "29679567f53f0e88148c13eb98b27bab", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "462c22e9-025b-4124-848c-00d90cf227be", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "462c22e9-025b-4124-848c-00d90cf227be", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084847Z:462c22e9-025b-4124-848c-00d90cf227be" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg3469?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-8252db69a8ee94459e8b2d26bd03f9ea-1168ed0d59de5748-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "74e823a1737e89b599e4523404b56c37", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "432d53f2-884f-4751-9499-3bf7bbbc2d5a", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "432d53f2-884f-4751-9499-3bf7bbbc2d5a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084849Z:432d53f2-884f-4751-9499-3bf7bbbc2d5a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469", + "name": "hci-cluster-rg3469", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-6dff56a1bc478647a4350da50e90ca7c-205f2bfaeff70e4e-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b721788ecb710604461c022714193513", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:53 GMT", + "ETag": "\u002214005ac5-0000-0100-0000-62fa08740000\u0022", + "Expires": "-1", + "mise-correlation-id": "3dc59c3f-2b73-464f-8297-1eb7bdfacd41", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d5249234-1661-4212-a586-4a6ce5e3f91b", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "46cf35e5-efbe-4971-b0d9-ea9219dcba99", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084853Z:d5249234-1661-4212-a586-4a6ce5e3f91b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309", + "name": "hci-cluster4309", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T08:48:51.2389423Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T08:48:51.2389423Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "fda0a446-5ba1-4720-a175-c7eb83257059", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1618631226af724e933da8458efd0073-51f8f19049096c46-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "843f08a5f3f4f41673b65ca4bce0875e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 15 Aug 2022 08:48:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "96a8860f-b390-48fb-acd2-03bb9f60340d", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "96a8860f-b390-48fb-acd2-03bb9f60340d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084856Z:96a8860f-b390-48fb-acd2-03bb9f60340d" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1618631226af724e933da8458efd0073-390870784f634f49-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "0324607e4b89d68f1fe22d62708e7580", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "272", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b143b694-8ac2-44c4-ba2d-15d6b36aaae9", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "b143b694-8ac2-44c4-ba2d-15d6b36aaae9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084856Z:b143b694-8ac2-44c4-ba2d-15d6b36aaae9" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", + "properties": { + "tags": {} + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "39", + "Content-Type": "application/json", + "traceparent": "00-1618631226af724e933da8458efd0073-60f1a392c2edd048-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "fc8e3eafe8759a43612c43bb6f5f4966", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "tags": { + "key": "value" + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "285", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2202ecaf-e980-4fcf-9cd2-cd324c6520d6", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "2202ecaf-e980-4fcf-9cd2-cd324c6520d6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084859Z:2202ecaf-e980-4fcf-9cd2-cd324c6520d6" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", + "properties": { + "tags": { + "key": "value" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-1618631226af724e933da8458efd0073-7a9e607af04cf44b-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b3a8a39431f45a8978696511c6b483e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "685", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:48:59 GMT", + "ETag": "\u0022140082c5-0000-0100-0000-62fa08790000\u0022", + "Expires": "-1", + "mise-correlation-id": "2aebf6ce-f635-462f-b7dd-7f8a8877e526", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a5eafe93-e5a4-41b3-b778-0d8b989109a6", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "1c9a2071-3ec7-462f-b01a-3160e5c669dc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T084900Z:a5eafe93-e5a4-41b3-b778-0d8b989109a6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3469/providers/Microsoft.AzureStackHCI/clusters/hci-cluster4309", + "name": "hci-cluster4309", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "fda0a446-5ba1-4720-a175-c7eb83257059", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "803019227", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +} diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags()Async.json b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags()Async.json new file mode 100644 index 0000000000000..14f236a9acfd2 --- /dev/null +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/tests/SessionRecords/HciClusterOperationTests/SetTags()Async.json @@ -0,0 +1,345 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c?api-version=2021-01-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-7f27fd9dec8ca544836cd0412304f543-2155206ba256d74c-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "b269aa788246080638730a4e0e65b4f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "747", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:50:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c032c83d-5af8-40d4-a503-f27ed6f880f2", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "c032c83d-5af8-40d4-a503-f27ed6f880f2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T085000Z:c032c83d-5af8-40d4-a503-f27ed6f880f2" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "authorizationSource": "RoleBased", + "managedByTenants": [], + "tags": { + "TagKey-9823": "TagValue-566", + "TagKey-3481": "TagValue-320", + "TagKey-4926": "TagValue-1187", + "TagKey-751": "TagValue-3921", + "TagKey-1866": "TagValue-8559", + "TagKey-3094": "TagValue-9190", + "TagKey-2449": "TagValue-9", + "TagKey-8379": "TagValue-164", + "TagKey-7470": "TagValue-2205", + "TagKey-4236": "TagValue-3698", + "TagKey-5316": "TagValue-2725" + }, + "subscriptionId": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "displayName": ".NET Mgmt SDK Test with TTL = 1 Day", + "state": "Enabled", + "subscriptionPolicies": { + "locationPlacementId": "Internal_2014-09-01", + "quotaId": "Internal_2014-09-01", + "spendingLimit": "Off" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourcegroups/hci-cluster-rg3226?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "21", + "Content-Type": "application/json", + "traceparent": "00-c14611ed95d8df44b7586cabdd3257f8-f62af04d1224c04d-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "4f1ba7516004c28434cb611e04fd0b04", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "eastus" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "233", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:50:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "982d206e-5ed9-4be5-bb31-44bcdd316b5a", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "982d206e-5ed9-4be5-bb31-44bcdd316b5a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T085002Z:982d206e-5ed9-4be5-bb31-44bcdd316b5a" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226", + "name": "hci-cluster-rg3226", + "type": "Microsoft.Resources/resourceGroups", + "location": "eastus", + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "152", + "Content-Type": "application/json", + "traceparent": "00-7bec820ee4a3684980e489f902159ef2-3c6c778833ecf84e-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "95da3cdbc069e5907a03f8ab6c74b3a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "tags": {}, + "location": "eastus", + "properties": { + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "950", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:50:05 GMT", + "ETag": "\u002214009ac7-0000-0100-0000-62fa08bc0000\u0022", + "Expires": "-1", + "mise-correlation-id": "b44d0762-7ee2-445b-8221-93a9f4cc6ad0", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8e4e6d12-8e34-4035-8c54-f190d640c071", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "32eef511-133f-45a5-aacb-99111317f626", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T085005Z:8e4e6d12-8e34-4035-8c54-f190d640c071", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386", + "name": "hci-cluster1386", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": {}, + "systemData": { + "createdBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "createdByType": "Application", + "createdAt": "2022-08-15T08:50:03.9416582Z", + "lastModifiedBy": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "lastModifiedByType": "Application", + "lastModifiedAt": "2022-08-15T08:50:03.9416582Z" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "c720aa69-fa9d-4450-8954-e5a46036ef3e", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-435998f2bbf186478c986cafc7b398dc-23aeaeb3c974c44f-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "a8983d97281709a62e834e3ba71a6e0c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 15 Aug 2022 08:50:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bf7571a5-909b-4502-85fc-93899adfd881", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-request-id": "bf7571a5-909b-4502-85fc-93899adfd881", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T085008Z:bf7571a5-909b-4502-85fc-93899adfd881" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-435998f2bbf186478c986cafc7b398dc-f2278a24c81eb348-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "778a0a43ed1b909e1635d50168d856c0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "272", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:50:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5099b613-40b3-4235-8a84-4a83e22e704d", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "5099b613-40b3-4235-8a84-4a83e22e704d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T085009Z:5099b613-40b3-4235-8a84-4a83e22e704d" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", + "properties": { + "tags": {} + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "39", + "Content-Type": "application/json", + "traceparent": "00-435998f2bbf186478c986cafc7b398dc-7730a955cdb5d74d-00", + "User-Agent": "azsdk-net-ResourceManager/1.3.0 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "c786bf176364b2ec96d166e572553e60", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "properties": { + "tags": { + "key": "value" + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "285", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:50:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "799950c5-0127-40e2-abf6-fb36fde51f34", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "799950c5-0127-40e2-abf6-fb36fde51f34", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T085012Z:799950c5-0127-40e2-abf6-fb36fde51f34" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386/providers/Microsoft.Resources/tags/default", + "name": "default", + "type": "Microsoft.Resources/tags", + "properties": { + "tags": { + "key": "value" + } + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "traceparent": "00-435998f2bbf186478c986cafc7b398dc-86102135b1b6a747-00", + "User-Agent": "azsdk-net-ResourceManager.Hci/1.0.0-alpha.20220815.1 (.NET Framework 4.8.4510.0; Microsoft Windows 10.0.22000 )", + "x-ms-client-request-id": "6268eb953ceaa9869f0791e253a5a155", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "685", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 15 Aug 2022 08:50:12 GMT", + "ETag": "\u00221400e4c7-0000-0100-0000-62fa08c20000\u0022", + "Expires": "-1", + "mise-correlation-id": "1aa53bc1-c970-424b-a6ea-34fe3c0c94cb", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97a82be2-0b63-488a-bd62-f303fb823a3c", + "x-ms-providerhub-traffic": "True", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "0b98b920-7dfe-44cd-9fa4-b5bf17eec87c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20220815T085013Z:97a82be2-0b63-488a-bd62-f303fb823a3c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/db1ab6f0-4769-4b27-930e-01e2ef9c123c/resourceGroups/hci-cluster-rg3226/providers/Microsoft.AzureStackHCI/clusters/hci-cluster1386", + "name": "hci-cluster1386", + "type": "microsoft.azurestackhci/clusters", + "location": "eastus", + "tags": { + "key": "value" + }, + "properties": { + "provisioningState": "Succeeded", + "status": "NotYetRegistered", + "cloudId": "c720aa69-fa9d-4450-8954-e5a46036ef3e", + "aadClientId": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "aadTenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "desiredProperties": { + "windowsServerSubscription": "Disabled", + "diagnosticLevel": "Basic" + }, + "trialDaysRemaining": 60, + "billingModel": "Trial", + "serviceEndpoint": "https://dp.stackhci.azure.com/eastus/" + } + } + } + ], + "Variables": { + "AZURE_AUTHORITY_HOST": "https://login.microsoftonline.com", + "CLIENT_ID": "ea0eddd2-3d60-47f8-b3bf-7ec8ae554d10", + "RandomSeed": "1751363595", + "RESOURCE_MANAGER_URL": "https://management.azure.com", + "SUBSCRIPTION_ID": "db1ab6f0-4769-4b27-930e-01e2ef9c123c", + "TENANT_ID": "72f988bf-86f1-41af-91ab-2d7cd011db47" + } +}