diff --git a/src/MixedReality/MixedReality.Test/MixedReality.Test.csproj b/src/MixedReality/MixedReality.Test/MixedReality.Test.csproj new file mode 100644 index 000000000000..471b879c1332 --- /dev/null +++ b/src/MixedReality/MixedReality.Test/MixedReality.Test.csproj @@ -0,0 +1,23 @@ + + + + MixedReality + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/MixedReality/MixedReality.Test/Properties/AssemblyInfo.cs b/src/MixedReality/MixedReality.Test/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..96f21e9f374b --- /dev/null +++ b/src/MixedReality/MixedReality.Test/Properties/AssemblyInfo.cs @@ -0,0 +1,50 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Reflection; +using System.Runtime.InteropServices; +using Xunit; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Microsoft.Azure.Commands.MixedRealty.Test")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Microsoft.Azure.Commands.MixedRealty.Test")] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("822d5889-438f-4c18-9c06-f5db728d417d")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("4.0.0")] +[assembly: AssemblyFileVersion("4.0.0")] +[assembly: CollectionBehavior(DisableTestParallelization = true)] diff --git a/src/MixedReality/MixedReality.Test/ScenarioTests/Common.ps1 b/src/MixedReality/MixedReality.Test/ScenarioTests/Common.ps1 new file mode 100644 index 000000000000..92f5c827c3ce --- /dev/null +++ b/src/MixedReality/MixedReality.Test/ScenarioTests/Common.ps1 @@ -0,0 +1,121 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Gets valid resource group name +#> +function Get-ResourceGroupName +{ + return getAssetName +} + +<# +.SYNOPSIS +Gets valid resource name +#> +function Get-ResourceName +{ + return getAssetName +} + +<# +.SYNOPSIS +Gets the default location for a provider +#> +function Get-ProviderLocation($provider) +{ + if ([Microsoft.Azure.Test.HttpRecorder.HttpMockServer]::Mode -ne [Microsoft.Azure.Test.HttpRecorder.HttpRecorderMode]::Playback) + { + $namespace = $provider.Split("/")[0] + if($provider.Contains("/")) + { + $type = $provider.Substring($namespace.Length + 1) + $location = Get-AzureRmResourceProvider -ProviderNamespace $namespace | where {$_.ResourceTypes[0].ResourceTypeName -eq $type} + + if ($location -eq $null) + { + return "West US" + } else + { + return $location.Locations[0] + } + } + + return "West US" + } + + return "WestUS" +} + +<# +.SYNOPSIS +Creates a resource group to use in tests +#> +function TestSetup-CreateResourceGroup +{ + $resourceGroupName = getAssetName + $rglocation = Get-ProviderLocation "East US" + $resourceGroup = New-AzureRmResourceGroup -Name $resourceGroupName -location $rglocation -Force + return $resourceGroup +} + +<# +.SYNOPSIS +Asserts if two tags are equal +#> +function Assert-Tags($tags1, $tags2) +{ + if($tags1.count -ne $tags2.count) + { + throw "Tag size not equal. Tag1: $tags1.count Tag2: $tags2.count" + } + + foreach($key in $tags1.Keys) + { + if($tags1[$key] -ne $tags2[$key]) + { + throw "Tag content not equal. Key:$key Tags1:" + $tags1[$key] + "Tags2:" + $tags2[$key] + } + } +} + +<# +.SYNOPSIS +Asserts if two compression types are equal +#> +function Assert-CompressionTypes($types1, $types2) +{ + if($types1.Count -ne $types1.Count) + { + throw "Array size not equal. Types1: $types1.count Types2: $types2.count" + } + + foreach($value1 in $types1) + { + $found = $false + foreach($value2 in $types2) + { + if($value1.CompareTo($value2) -eq 0) + { + $found = $true + break + } + } + if(-Not($found)) + { + throw "Compression content not equal. " + $value1 + " cannot be found in second array" + } + } +} \ No newline at end of file diff --git a/src/MixedReality/MixedReality.Test/ScenarioTests/SpatialAnchorsAccountTests.cs b/src/MixedReality/MixedReality.Test/ScenarioTests/SpatialAnchorsAccountTests.cs new file mode 100644 index 000000000000..4817d1463f55 --- /dev/null +++ b/src/MixedReality/MixedReality.Test/ScenarioTests/SpatialAnchorsAccountTests.cs @@ -0,0 +1,51 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using Microsoft.WindowsAzure.Commands.ScenarioTest; +using Xunit; + +namespace Microsoft.Azure.Commands.MixedReality.Test +{ + public class SpatialAnchorsAccountTests + { + private ServiceManagement.Common.Models.XunitTracingInterceptor _logger; + + public SpatialAnchorsAccountTests(Xunit.Abstractions.ITestOutputHelper output) + { + _logger = new ServiceManagement.Common.Models.XunitTracingInterceptor(output); + ServiceManagement.Common.Models.XunitTracingInterceptor.AddToContext(_logger); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSpatialAnchorsAccountOperations() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-SpatialAnchorsAccountOperations"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestSpatialAnchorsAccountOperationsWithPiping() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-SpatialAnchorsAccountOperationsWithPiping"); + } + + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestListSpatialAnchorsAccounts() + { + TestController.NewInstance.RunPowerShellTest(_logger, "Test-ListSpatialAnchorsAccounts"); + } + } +} diff --git a/src/MixedReality/MixedReality.Test/ScenarioTests/SpatialAnchorsAccountTests.ps1 b/src/MixedReality/MixedReality.Test/ScenarioTests/SpatialAnchorsAccountTests.ps1 new file mode 100644 index 000000000000..3fd23b7f980a --- /dev/null +++ b/src/MixedReality/MixedReality.Test/ScenarioTests/SpatialAnchorsAccountTests.ps1 @@ -0,0 +1,122 @@ +# ---------------------------------------------------------------------------------- +# +# Copyright Microsoft Corporation +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# http://www.apache.org/licenses/LICENSE-2.0 +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ---------------------------------------------------------------------------------- + +<# +.SYNOPSIS +Create Get and Delete Spatial Anchors Account +#> +function Test-SpatialAnchorsAccountOperations +{ + $resourceGroup = TestSetup-CreateResourceGroup + $resourceLocation = "EastUS2" + $accountName = getAssetName + + $createdAccount = New-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -Location $resourceLocation + Assert-AreEqual $accountName $createdAccount.Name + Assert-AreEqual $resourceGroup.ResourceGroupName $createdAccount.ResourceGroupName + Assert-AreEqual $resourceLocation $createdAccount.Location + + $account = Get-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName + Assert-AreEqual $accountName $account.Name + Assert-AreEqual $resourceGroup.ResourceGroupName $account.ResourceGroupName + Assert-AreEqual $resourceLocation $account.Location + + Assert-ThrowsContains { New-AzSpatialAnchorsAccountKey -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -Force } "Parameter set cannot be resolved using the specified named parameters." + + $old = Get-AzSpatialAnchorsAccountKey -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName + $new = New-AzSpatialAnchorsAccountKey -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -Primary -Force + Assert-AreNotEqual $old.PrimaryKey $new.PrimaryKey + + $old = $new + $new = New-AzSpatialAnchorsAccountKey -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -Secondary -Force + Assert-AreNotEqual $old.SecondaryKey $new.SecondaryKey + + $accountRemoved = Remove-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -PassThru + Assert-True{$accountRemoved} + + Assert-ThrowsContains { Get-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName } "NotFound" + + Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force +} + +<# +.SYNOPSIS +Create Get and Delete Spatial Anchors Account +#> +function Test-SpatialAnchorsAccountOperationsWithPiping +{ + $resourceGroup = TestSetup-CreateResourceGroup + $resourceLocation = "EastUS2" + $accountName = getAssetName + + $createdAccount = New-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -Location $resourceLocation + Assert-AreEqual $accountName $createdAccount.Name + Assert-AreEqual $resourceGroup.ResourceGroupName $createdAccount.ResourceGroupName + Assert-AreEqual $resourceLocation $createdAccount.Location + + Assert-ThrowsContains { $createdAccount | New-AzSpatialAnchorsAccountKey -Force } "Parameter set cannot be resolved using the specified named parameters." + + $old = $createdAccount | Get-AzSpatialAnchorsAccountKey + $new = $createdAccount | New-AzSpatialAnchorsAccountKey -Primary -Force + Assert-AreNotEqual $old.PrimaryKey $new.PrimaryKey + + $old = $new + $new = $createdAccount | New-AzSpatialAnchorsAccountKey -Secondary -Force + Assert-AreNotEqual $old.SecondaryKey $new.SecondaryKey + + $accountRemoved = $createdAccount | Remove-AzSpatialAnchorsAccount -PassThru + Assert-True{$accountRemoved} + + Assert-ThrowsContains { Get-AzSpatialAnchorsAccount -Id $createdAccount.Id } "NotFound" + + Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force +} + +<# +.SYNOPSIS +Endpoint pipeline exercise +#> +function Test-ListSpatialAnchorsAccounts +{ + $resourceGroup = TestSetup-CreateResourceGroup + $resourceLocation = "EastUS2" + $accountName = getAssetName + + $accounts = Get-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName + $originalCount = $accounts.Count + + $createdAccount = New-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -Location $resourceLocation + Assert-AreEqual $accountName $createdAccount.Name + Assert-AreEqual $resourceGroup.ResourceGroupName $createdAccount.ResourceGroupName + Assert-AreEqual $resourceLocation $createdAccount.Location + + $accounts = Get-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName + Assert-AreEqual $accounts.Count ($originalCount + 1) + + $old = Get-AzSpatialAnchorsAccountKey -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName + $new = New-AzSpatialAnchorsAccountKey -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -Primary -Force + Assert-AreNotEqual $old.PrimaryKey $new.PrimaryKey + + $old = $new + $new = New-AzSpatialAnchorsAccountKey -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -Secondary -Force + Assert-AreNotEqual $old.SecondaryKey $new.SecondaryKey + + $accountRemoved = Remove-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName -Name $accountName -PassThru + Assert-True{$accountRemoved} + + $accounts = Get-AzSpatialAnchorsAccount -ResourceGroupName $resourceGroup.ResourceGroupName + Assert-AreEqual $accounts.Count $originalCount + + Remove-AzureRmResourceGroup -Name $resourceGroup.ResourceGroupName -Force +} diff --git a/src/MixedReality/MixedReality.Test/ScenarioTests/TestController.cs b/src/MixedReality/MixedReality.Test/ScenarioTests/TestController.cs new file mode 100644 index 000000000000..c7d1c56f9bee --- /dev/null +++ b/src/MixedReality/MixedReality.Test/ScenarioTests/TestController.cs @@ -0,0 +1,133 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; + +namespace Microsoft.Azure.Commands.MixedReality.Test +{ + using Common.Authentication; + using Management.Internal.Resources; + using Management.MixedReality; + using Microsoft.Azure.Test.HttpRecorder; + using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using Microsoft.WindowsAzure.Commands.ScenarioTest; + using Microsoft.WindowsAzure.Commands.Test.Utilities.Common; + + public class TestController : RMTestBase + { + private readonly EnvironmentSetupHelper _helper; + + public ResourceManagementClient ResourceManagementClient { get; private set; } + + public MixedRealityClient MixedRealityClient { get; private set; } + + public static TestController NewInstance => new TestController(); + + protected TestController() + { + _helper = new EnvironmentSetupHelper(); + } + + protected void SetupManagementClients(MockContext context) + { + ResourceManagementClient = GetResourceManagementClient(context); + MixedRealityClient = GetMixedRealityClient(context); + + _helper.SetupManagementClients( + ResourceManagementClient, + MixedRealityClient); + } + + public void RunPowerShellTest(ServiceManagement.Common.Models.XunitTracingInterceptor logger, params string[] scripts) + { + var sf = new StackTrace().GetFrame(1); + var callingClassType = sf.GetMethod().ReflectedType?.ToString(); + var mockName = sf.GetMethod().Name; + + _helper.TracingInterceptor = logger; + RunPsTestWorkflow( + () => scripts, + // no custom cleanup + null, + callingClassType, + mockName); + } + + public void RunPsTestWorkflow( + Func scriptBuilder, + Action cleanup, + string callingClassType, + string mockName) + { + + var d = new Dictionary + { + {"Microsoft.Resources", null}, + {"Microsoft.Features", null}, + {"Microsoft.Authorization", null}, + {"Microsoft.Compute", null} + }; + var providersToIgnore = new Dictionary + { + {"Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01"} + }; + HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore); + + HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords"); + + using (var context = MockContext.Start(callingClassType, mockName)) + { + SetupManagementClients(context); + + _helper.SetupEnvironment(AzureModule.AzureResourceManager); + + var callingClassName = callingClassType.Split(new[] { "." }, StringSplitOptions.RemoveEmptyEntries).Last(); + + _helper.SetupModules(AzureModule.AzureResourceManager, + "ScenarioTests\\Common.ps1", + "ScenarioTests\\" + callingClassName + ".ps1", + _helper.RMProfileModule, + _helper.GetRMModulePath("Az.Accounts.psd1"), + _helper.GetRMModulePath("Az.MixedReality.psd1"), + "AzureRM.Resources.ps1"); + try + { + var psScripts = scriptBuilder?.Invoke(); + if (psScripts != null) + { + _helper.RunPowerShellTest(psScripts); + } + } + finally + { + cleanup?.Invoke(); + } + } + } + + protected ResourceManagementClient GetResourceManagementClient(MockContext context) + { + return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); + } + + private static MixedRealityClient GetMixedRealityClient(MockContext context) + { + return context.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); + } + } +} diff --git a/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestListSpatialAnchorsAccounts.json b/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestListSpatialAnchorsAccounts.json new file mode 100644 index 000000000000..f27f1cb15d20 --- /dev/null +++ b/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestListSpatialAnchorsAccounts.json @@ -0,0 +1,856 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourcegroups/ps431?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlZ3JvdXBzL3BzNDMxP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7706bb30-980f-491f-957a-1a20d33da8de" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "52a9bdfa-3008-4dc6-80c9-43109e3ade95" + ], + "x-ms-correlation-request-id": [ + "52a9bdfa-3008-4dc6-80c9-43109e3ade95" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074212Z:52a9bdfa-3008-4dc6-80c9-43109e3ade95" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:11 GMT" + ], + "Content-Length": [ + "163" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431\",\r\n \"name\": \"ps431\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/spatialAnchorsAccounts?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWl4ZWRSZWFsaXR5L3NwYXRpYWxBbmNob3JzQWNjb3VudHM/YXBpLXZlcnNpb249MjAxOS0wMi0yOC1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4c219306-6a53-453c-8097-e3f2ef892522" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "ee95e569-c5bb-47a2-a527-59afe5bc0566" + ], + "x-ms-correlation-request-id": [ + "ee95e569-c5bb-47a2-a527-59afe5bc0566" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074212Z:ee95e569-c5bb-47a2-a527-59afe5bc0566" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:12 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "12" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/spatialAnchorsAccounts?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWl4ZWRSZWFsaXR5L3NwYXRpYWxBbmNob3JzQWNjb3VudHM/YXBpLXZlcnNpb249MjAxOS0wMi0yOC1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "24d64798-1f7c-4f8f-9a13-ba1e014440f9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "frBuGfoKi0m2poLT2SoH9A.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "c619ac10-d130-4fad-9239-88518a392797" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074214Z:c619ac10-d130-4fad-9239-88518a392797" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:13 GMT" + ], + "Content-Length": [ + "526" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"nextLink\": null,\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/ps5811\",\r\n \"name\": \"ps5811\",\r\n \"type\": \"Microsoft.MixedReality/SpatialAnchorsAccounts\",\r\n \"location\": \"EastUS2\",\r\n \"plan\": null,\r\n \"sku\": null,\r\n \"kind\": null,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"accountDomain\": \"mixedreality.azure.com\",\r\n \"accountEndpoint\": \"https://mrc-anchor-prod.trafficmanager.net/Accounts/482358eb-4a70-4a85-8ff6-d584a1e50db3/\",\r\n \"accountId\": \"482358eb-4a70-4a85-8ff6-d584a1e50db3\"\r\n }\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/spatialAnchorsAccounts?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWl4ZWRSZWFsaXR5L3NwYXRpYWxBbmNob3JzQWNjb3VudHM/YXBpLXZlcnNpb249MjAxOS0wMi0yOC1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "23025720-2638-4d01-a8b2-bc2551a430e6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "429ad460-dba9-480c-86e4-4787a07ad722" + ], + "x-ms-correlation-request-id": [ + "429ad460-dba9-480c-86e4-4787a07ad722" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074215Z:429ad460-dba9-480c-86e4-4787a07ad722" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:15 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "12" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5811?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWl4ZWRSZWFsaXR5L3NwYXRpYWxBbmNob3JzQWNjb3VudHMvcHM1ODExP2FwaS12ZXJzaW9uPTIwMTktMDItMjgtcHJldmlldw==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"EastUS2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e166b9d3-9718-42d4-9de5-c00148df4ddc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/ps5811" + ], + "x-ms-request-id": [ + "ycM0DpRbdkejL3bt2NqoSQ.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "a8c25f9f-5de4-4f1f-9806-f41f8623e169" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074214Z:a8c25f9f-5de4-4f1f-9806-f41f8623e169" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:13 GMT" + ], + "Content-Length": [ + "498" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/ps5811\",\r\n \"name\": \"ps5811\",\r\n \"type\": \"Microsoft.MixedReality/SpatialAnchorsAccounts\",\r\n \"location\": \"EastUS2\",\r\n \"plan\": null,\r\n \"sku\": null,\r\n \"kind\": null,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"accountDomain\": \"mixedreality.azure.com\",\r\n \"accountEndpoint\": \"https://mrc-anchor-prod.trafficmanager.net/Accounts/482358eb-4a70-4a85-8ff6-d584a1e50db3/\",\r\n \"accountId\": \"482358eb-4a70-4a85-8ff6-d584a1e50db3\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5811/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWl4ZWRSZWFsaXR5L3NwYXRpYWxBbmNob3JzQWNjb3VudHMvcHM1ODExL2tleXM/YXBpLXZlcnNpb249MjAxOS0wMi0yOC1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "df49e751-9aff-4352-8238-09b35cc3b6ce" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ft+UFLQiyUyXCRmYCITbLw.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "415701dc-bea0-4a5c-8ba2-53884ca3e777" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074214Z:415701dc-bea0-4a5c-8ba2-53884ca3e777" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:14 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"K7qke4iRebTaOCiGmiX2T6OBTu/w7f++7oO/ilXG6z4=\",\r\n \"secondaryKey\": \"YCVkrPQcOu4B91adbm35ZOAsM4IIZMXzjVvRPlG0HqE=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5811/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWl4ZWRSZWFsaXR5L3NwYXRpYWxBbmNob3JzQWNjb3VudHMvcHM1ODExL2tleXM/YXBpLXZlcnNpb249MjAxOS0wMi0yOC1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"serial\": 1\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2bec5174-0441-41d6-a583-cea6ea6473d5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "19" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "rYSpR2WpDEeNLg1ZsM/iZA.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "5edbb203-3095-4dc5-be6d-dd0e469d98ef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074214Z:5edbb203-3095-4dc5-be6d-dd0e469d98ef" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:14 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"bJcdWWkcWxmWXt2alW4MRIJ3G2sZQ39GDLFp7ioImfs=\",\r\n \"secondaryKey\": \"YCVkrPQcOu4B91adbm35ZOAsM4IIZMXzjVvRPlG0HqE=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5811/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWl4ZWRSZWFsaXR5L3NwYXRpYWxBbmNob3JzQWNjb3VudHMvcHM1ODExL2tleXM/YXBpLXZlcnNpb249MjAxOS0wMi0yOC1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"serial\": 2\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b5627e8b-f57a-430c-a208-f3ef4380f9c3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "19" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "Rp3r8IRsJUu6+nG4xMY9rw.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "06770cde-4b58-4498-90cc-7ab571347f73" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074215Z:06770cde-4b58-4498-90cc-7ab571347f73" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:14 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"bJcdWWkcWxmWXt2alW4MRIJ3G2sZQ39GDLFp7ioImfs=\",\r\n \"secondaryKey\": \"7nHB1qMyi+SRuTJVlXSP1KNGfqA7vpiGipKKknLF31w=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps431/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5811?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDMxL3Byb3ZpZGVycy9NaWNyb3NvZnQuTWl4ZWRSZWFsaXR5L3NwYXRpYWxBbmNob3JzQWNjb3VudHMvcHM1ODExP2FwaS12ZXJzaW9uPTIwMTktMDItMjgtcHJldmlldw==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b8a90003-e927-4229-a88e-26ce76eaa1e5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "F6T7xNSQlEqrqQyFsRpMZA.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "c3e78655-1862-4026-a821-70ab5e92e254" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074215Z:c3e78655-1862-4026-a821-70ab5e92e254" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:15 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourcegroups/ps431?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlZ3JvdXBzL3BzNDMxP2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "41f437a7-2e2c-4148-b32f-074e386eed9b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQzMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "444681ac-540d-4f29-9473-3d6dbb7dc5cd" + ], + "x-ms-correlation-request-id": [ + "444681ac-540d-4f29-9473-3d6dbb7dc5cd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074216Z:444681ac-540d-4f29-9473-3d6dbb7dc5cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:15 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQzMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpRek1TMVhSVk5VVlZNaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW5kbGMzUjFjeUo5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQzMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "79800057-947f-4de5-a33c-75fedd80ee7f" + ], + "x-ms-correlation-request-id": [ + "79800057-947f-4de5-a33c-75fedd80ee7f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074231Z:79800057-947f-4de5-a33c-75fedd80ee7f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:31 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQzMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpRek1TMVhSVk5VVlZNaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW5kbGMzUjFjeUo5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQzMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "9b970b87-6833-4e8e-814a-4a06dee5d995" + ], + "x-ms-correlation-request-id": [ + "9b970b87-6833-4e8e-814a-4a06dee5d995" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074246Z:9b970b87-6833-4e8e-814a-4a06dee5d995" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:45 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQzMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpRek1TMVhSVk5VVlZNaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW5kbGMzUjFjeUo5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "8717c4d5-97f8-43c4-873f-d06fa72ae6bf" + ], + "x-ms-correlation-request-id": [ + "8717c4d5-97f8-43c4-873f-d06fa72ae6bf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074301Z:8717c4d5-97f8-43c4-873f-d06fa72ae6bf" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:00 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQzMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpRek1TMVhSVk5VVlZNaUxDSnFiMkpNYjJOaGRHbHZiaUk2SW5kbGMzUjFjeUo5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "e9d8608a-4992-4b30-a151-8218d9313bdd" + ], + "x-ms-correlation-request-id": [ + "e9d8608a-4992-4b30-a151-8218d9313bdd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074301Z:e9d8608a-4992-4b30-a151-8218d9313bdd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:00 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-ListSpatialAnchorsAccounts": [ + "ps431", + "ps5811" + ] + }, + "Variables": { + "SubscriptionId": "10438cf7-a794-4c7b-ad4c-5ddc1313ba7d" + } +} \ No newline at end of file diff --git a/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestSpatialAnchorsAccountOperations.json b/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestSpatialAnchorsAccountOperations.json new file mode 100644 index 000000000000..d3a0e5e84f7b --- /dev/null +++ b/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestSpatialAnchorsAccountOperations.json @@ -0,0 +1,796 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourcegroups/ps4190?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlZ3JvdXBzL3BzNDE5MD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "987c3a93-0f77-4cbc-b4ff-e1e5fb07177c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "4d6a1909-c723-49ac-bb8f-03fa5534bbc7" + ], + "x-ms-correlation-request-id": [ + "4d6a1909-c723-49ac-bb8f-03fa5534bbc7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074121Z:4d6a1909-c723-49ac-bb8f-03fa5534bbc7" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:21 GMT" + ], + "Content-Length": [ + "165" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190\",\r\n \"name\": \"ps4190\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5285?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDE5MC9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzNTI4NT9hcGktdmVyc2lvbj0yMDE5LTAyLTI4LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"EastUS2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7dbb752a-c580-4605-949d-4ec56b8abe43" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/ps5285" + ], + "x-ms-request-id": [ + "OCcpbJvbxkieEfO2pYmb0Q.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "8766892c-7e17-48dd-aa01-e75bec1a3c3b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074122Z:8766892c-7e17-48dd-aa01-e75bec1a3c3b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:22 GMT" + ], + "Content-Length": [ + "499" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/ps5285\",\r\n \"name\": \"ps5285\",\r\n \"type\": \"Microsoft.MixedReality/SpatialAnchorsAccounts\",\r\n \"location\": \"EastUS2\",\r\n \"plan\": null,\r\n \"sku\": null,\r\n \"kind\": null,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"accountDomain\": \"mixedreality.azure.com\",\r\n \"accountEndpoint\": \"https://mrc-anchor-prod.trafficmanager.net/Accounts/97257e0f-3ece-4df1-bd00-50f8b5afd1b0/\",\r\n \"accountId\": \"97257e0f-3ece-4df1-bd00-50f8b5afd1b0\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5285?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDE5MC9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzNTI4NT9hcGktdmVyc2lvbj0yMDE5LTAyLTI4LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "9c58d6d8-2ce3-482d-bbc7-a1677f9e39c6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9PXLmGDdykiIiD+8AD+zjA.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "d38bbe29-fb73-4be1-8f50-7ba64fc79120" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074122Z:d38bbe29-fb73-4be1-8f50-7ba64fc79120" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:22 GMT" + ], + "Content-Length": [ + "499" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/ps5285\",\r\n \"name\": \"ps5285\",\r\n \"type\": \"Microsoft.MixedReality/SpatialAnchorsAccounts\",\r\n \"location\": \"EastUS2\",\r\n \"plan\": null,\r\n \"sku\": null,\r\n \"kind\": null,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"accountDomain\": \"mixedreality.azure.com\",\r\n \"accountEndpoint\": \"https://mrc-anchor-prod.trafficmanager.net/Accounts/97257e0f-3ece-4df1-bd00-50f8b5afd1b0/\",\r\n \"accountId\": \"97257e0f-3ece-4df1-bd00-50f8b5afd1b0\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5285?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDE5MC9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzNTI4NT9hcGktdmVyc2lvbj0yMDE5LTAyLTI4LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "346e1393-09b9-47a8-b96d-437bcaca0fc4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "fbdd710a-653e-445c-9ae9-8ef12f89bab2" + ], + "x-ms-correlation-request-id": [ + "fbdd710a-653e-445c-9ae9-8ef12f89bab2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074124Z:fbdd710a-653e-445c-9ae9-8ef12f89bab2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:24 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "162" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.MixedReality/spatialAnchorsAccounts/ps5285' under resource group 'ps4190' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5285/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDE5MC9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzNTI4NS9rZXlzP2FwaS12ZXJzaW9uPTIwMTktMDItMjgtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b0f20318-ca8f-4bf1-a974-3af104c10a77" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "eWyZWgdC+UuDNnqf8pLv1g.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "ae837cfa-8f87-40a8-831f-15a3c3cb6c51" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074123Z:ae837cfa-8f87-40a8-831f-15a3c3cb6c51" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:22 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"rYH7ImmQk5Oh2gYdGv+sx+X2/1m5ysZLn3o2E5pLNtg=\",\r\n \"secondaryKey\": \"MC4cFcuWmXfN6RjiahcOaTXu1YuC4mSJ2ZRLJ+oiSGg=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5285/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDE5MC9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzNTI4NS9rZXlzP2FwaS12ZXJzaW9uPTIwMTktMDItMjgtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"serial\": 1\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6efbce8b-330b-4b35-8154-718e489d5b5d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "19" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "Z5ou8sbtRESw/Ku2DelcQQ.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "b0ac3175-3aca-4e8e-ba95-c47f55a467d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074123Z:b0ac3175-3aca-4e8e-ba95-c47f55a467d4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:23 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"xHh1CQ3uv/UNIb1l9jUs6MgDEnuB7wWPdaLOs4k9tMQ=\",\r\n \"secondaryKey\": \"MC4cFcuWmXfN6RjiahcOaTXu1YuC4mSJ2ZRLJ+oiSGg=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5285/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDE5MC9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzNTI4NS9rZXlzP2FwaS12ZXJzaW9uPTIwMTktMDItMjgtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"serial\": 2\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3b5af57f-cd64-4bc9-9a87-0d9b5e4d69d1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "19" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "gPX60z6fdki0MYM81XxN7w.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "c641e407-9189-4c6c-aa13-f32388e86d0a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074123Z:c641e407-9189-4c6c-aa13-f32388e86d0a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:23 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"xHh1CQ3uv/UNIb1l9jUs6MgDEnuB7wWPdaLOs4k9tMQ=\",\r\n \"secondaryKey\": \"o8gs42xIPSZN/VVOnpZ0ZpjQjSkoHiIMU/3tVCrLpBY=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps4190/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps5285?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzNDE5MC9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzNTI4NT9hcGktdmVyc2lvbj0yMDE5LTAyLTI4LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "322c2f03-191b-4a82-8c38-fa9c28559883" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "npRSapkB8UKgBwtzZWlsRw.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "5e1b7d6a-a2e1-4f48-a786-7c4c5f3ba5f4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074124Z:5e1b7d6a-a2e1-4f48-a786-7c4c5f3ba5f4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourcegroups/ps4190?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlZ3JvdXBzL3BzNDE5MD9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "0f84e0cb-5bbb-452d-9942-6f85b11c3b16" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQxOTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "cd6693dc-4b5c-4f64-b1a8-053c8c1b0efe" + ], + "x-ms-correlation-request-id": [ + "cd6693dc-4b5c-4f64-b1a8-053c8c1b0efe" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074125Z:cd6693dc-4b5c-4f64-b1a8-053c8c1b0efe" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:24 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQxOTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpReE9UQXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQxOTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "9923ac84-f6d0-4c98-b41a-9c3f1ea55aa4" + ], + "x-ms-correlation-request-id": [ + "9923ac84-f6d0-4c98-b41a-9c3f1ea55aa4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074140Z:9923ac84-f6d0-4c98-b41a-9c3f1ea55aa4" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:39 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQxOTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpReE9UQXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQxOTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "e130b40e-61b5-4192-8742-ff74497f4062" + ], + "x-ms-correlation-request-id": [ + "e130b40e-61b5-4192-8742-ff74497f4062" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074155Z:e130b40e-61b5-4192-8742-ff74497f4062" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:41:54 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQxOTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpReE9UQXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-request-id": [ + "65ad0300-f1b8-4229-882d-e5145cf2992e" + ], + "x-ms-correlation-request-id": [ + "65ad0300-f1b8-4229-882d-e5145cf2992e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074210Z:65ad0300-f1b8-4229-882d-e5145cf2992e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzQxOTAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpReE9UQXRWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-request-id": [ + "98bd091e-5064-4665-b2ae-c580715b5b82" + ], + "x-ms-correlation-request-id": [ + "98bd091e-5064-4665-b2ae-c580715b5b82" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074210Z:98bd091e-5064-4665-b2ae-c580715b5b82" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:42:10 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-SpatialAnchorsAccountOperations": [ + "ps4190", + "ps5285" + ] + }, + "Variables": { + "SubscriptionId": "10438cf7-a794-4c7b-ad4c-5ddc1313ba7d" + } +} \ No newline at end of file diff --git a/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestSpatialAnchorsAccountOperationsWithPiping.json b/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestSpatialAnchorsAccountOperationsWithPiping.json new file mode 100644 index 000000000000..9d66f46b4a56 --- /dev/null +++ b/src/MixedReality/MixedReality.Test/SessionRecords/Microsoft.Azure.Commands.MixedReality.Test.SpatialAnchorsAccountTests/TestSpatialAnchorsAccountOperationsWithPiping.json @@ -0,0 +1,736 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourcegroups/ps3119?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlZ3JvdXBzL3BzMzExOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c6669efa-dee5-4fbb-94db-75222b08a1e9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "00afa482-0e9a-4e55-b56f-912aec810517" + ], + "x-ms-correlation-request-id": [ + "00afa482-0e9a-4e55-b56f-912aec810517" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074303Z:00afa482-0e9a-4e55-b56f-912aec810517" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:02 GMT" + ], + "Content-Length": [ + "165" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119\",\r\n \"name\": \"ps3119\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps8675?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzMzExOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzODY3NT9hcGktdmVyc2lvbj0yMDE5LTAyLTI4LXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"EastUS2\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1ba4d0c1-ce93-49f6-9bbc-348e5337d3ff" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/ps8675" + ], + "x-ms-request-id": [ + "GTqL6Q6YYkeQ/C/HnfrUmA.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "bfbd1139-82bc-4c1c-ad47-9e0dd71e41d2" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074304Z:bfbd1139-82bc-4c1c-ad47-9e0dd71e41d2" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:03 GMT" + ], + "Content-Length": [ + "499" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/ps8675\",\r\n \"name\": \"ps8675\",\r\n \"type\": \"Microsoft.MixedReality/SpatialAnchorsAccounts\",\r\n \"location\": \"EastUS2\",\r\n \"plan\": null,\r\n \"sku\": null,\r\n \"kind\": null,\r\n \"tags\": {},\r\n \"properties\": {\r\n \"accountDomain\": \"mixedreality.azure.com\",\r\n \"accountEndpoint\": \"https://mrc-anchor-prod.trafficmanager.net/Accounts/9da18881-e2b9-47fa-8ef1-38313a99de70/\",\r\n \"accountId\": \"9da18881-e2b9-47fa-8ef1-38313a99de70\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps8675/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzMzExOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzODY3NS9rZXlzP2FwaS12ZXJzaW9uPTIwMTktMDItMjgtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8c53aac2-5865-4eb4-933a-cfcc0d3dc6bf" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6VmXnCMSx0WzkCCMoWfbDA.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "5467e9ca-f972-4fbc-a3c8-e14f0fab31bd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074304Z:5467e9ca-f972-4fbc-a3c8-e14f0fab31bd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:04 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"RaGTIDfKqeAfmLg0mZfvSihyYO+nDNJuWvOSzLTB/xw=\",\r\n \"secondaryKey\": \"H3FsMae12UFXHJimha7u6O3QIAIzsd2F8hp7VaM7DF8=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps8675/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzMzExOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzODY3NS9rZXlzP2FwaS12ZXJzaW9uPTIwMTktMDItMjgtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"serial\": 1\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c974ac4e-df84-405a-9df5-63cf6d15b263" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "19" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "EKis6E8I80yX8EF9wh7gtA.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "59d31ab2-ec90-4202-8571-bf06e0340446" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074305Z:59d31ab2-ec90-4202-8571-bf06e0340446" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:04 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"WnElNCW00+SpP/vQV8S7XxG3ZLzRIdXu6ONz6fi9tlg=\",\r\n \"secondaryKey\": \"H3FsMae12UFXHJimha7u6O3QIAIzsd2F8hp7VaM7DF8=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps8675/keys?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzMzExOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzODY3NS9rZXlzP2FwaS12ZXJzaW9uPTIwMTktMDItMjgtcHJldmlldw==", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"serial\": 2\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d09bfd96-913c-4090-81e7-c510f97fd7d8" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "19" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "iHvESWiACEuekGTo4537ww.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "78fab738-ff2b-406b-b0c7-3417f6caca55" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074305Z:78fab738-ff2b-406b-b0c7-3417f6caca55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:05 GMT" + ], + "Content-Length": [ + "231" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"primaryKey\": \"WnElNCW00+SpP/vQV8S7XxG3ZLzRIdXu6ONz6fi9tlg=\",\r\n \"secondaryKey\": \"FQLQOOw5G0cO0N6I75LYqAs9bsbwsF1Rgx6zVHZDnRs=\",\r\n}", // [SuppressMessage("Microsoft.Security", "CS001:SecretInline", Justification="...")] + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps8675?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzMzExOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzODY3NT9hcGktdmVyc2lvbj0yMDE5LTAyLTI4LXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "bd096fce-8eba-41c5-a84c-7c7a4061cf9b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "hP7crNoiDkuKM8GoQ4YCaw.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-correlation-request-id": [ + "aa3a7444-de3a-4c86-8897-e8ac16f0965e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074306Z:aa3a7444-de3a-4c86-8897-e8ac16f0965e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/ps3119/providers/Microsoft.MixedReality/spatialAnchorsAccounts/ps8675?api-version=2019-02-28-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlR3JvdXBzL3BzMzExOS9wcm92aWRlcnMvTWljcm9zb2Z0Lk1peGVkUmVhbGl0eS9zcGF0aWFsQW5jaG9yc0FjY291bnRzL3BzODY3NT9hcGktdmVyc2lvbj0yMDE5LTAyLTI4LXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b777654c-2d87-48b9-bf3a-278d3fe12e03" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.MixedReality.MixedRealityClient/0.9.0.preview" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "a888b5f8-e6bc-45af-a666-ca8656d182d6" + ], + "x-ms-correlation-request-id": [ + "a888b5f8-e6bc-45af-a666-ca8656d182d6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074306Z:a888b5f8-e6bc-45af-a666-ca8656d182d6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:05 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "162" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.MixedReality/spatialAnchorsAccounts/ps8675' under resource group 'ps3119' was not found.\"\r\n }\r\n}", + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourcegroups/ps3119?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL3Jlc291cmNlZ3JvdXBzL3BzMzExOT9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9eb9e12-de52-41a9-a486-b7c664f090d1" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzMxMTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "28cea14a-ab42-47c3-a266-4ce3c93bbcc8" + ], + "x-ms-correlation-request-id": [ + "28cea14a-ab42-47c3-a266-4ce3c93bbcc8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074306Z:28cea14a-ab42-47c3-a266-4ce3c93bbcc8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:06 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzMxMTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpNeE1Ua3RWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzMxMTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "1638803d-9ae1-4748-9d7e-050531320d55" + ], + "x-ms-correlation-request-id": [ + "1638803d-9ae1-4748-9d7e-050531320d55" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074321Z:1638803d-9ae1-4748-9d7e-050531320d55" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:21 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzMxMTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpNeE1Ua3RWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzMxMTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "4b8e04aa-2adf-4626-a186-3b3ce94a4e06" + ], + "x-ms-correlation-request-id": [ + "4b8e04aa-2adf-4626-a186-3b3ce94a4e06" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074336Z:4b8e04aa-2adf-4626-a186-3b3ce94a4e06" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:36 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzMxMTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpNeE1Ua3RWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "31240d65-1731-46de-a308-49deb824d6ff" + ], + "x-ms-correlation-request-id": [ + "31240d65-1731-46de-a308-49deb824d6ff" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074351Z:31240d65-1731-46de-a308-49deb824d6ff" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:51 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzMxMTktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMTA0MzhjZjctYTc5NC00YzdiLWFkNGMtNWRkYzEzMTNiYTdkL29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpNeE1Ua3RWMFZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKM1pYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNi0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.27129.04", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.17763.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.1.14" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "7d05eb66-007e-4b07-bc6c-9d65cfacc243" + ], + "x-ms-correlation-request-id": [ + "7d05eb66-007e-4b07-bc6c-9d65cfacc243" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20190212T074352Z:7d05eb66-007e-4b07-bc6c-9d65cfacc243" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 12 Feb 2019 07:43:51 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-SpatialAnchorsAccountOperationsWithPiping": [ + "ps3119", + "ps8675" + ] + }, + "Variables": { + "SubscriptionId": "10438cf7-a794-4c7b-ad4c-5ddc1313ba7d" + } +} \ No newline at end of file diff --git a/src/MixedReality/MixedReality.sln b/src/MixedReality/MixedReality.sln new file mode 100644 index 000000000000..050f1686e5db --- /dev/null +++ b/src/MixedReality/MixedReality.sln @@ -0,0 +1,76 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.27703.2042 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MixedReality", "MixedReality\MixedReality.csproj", "{42656543-77AD-4968-BA4B-BE0778705625}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MixedReality.Test", "MixedReality.Test\MixedReality.Test.csproj", "{5E5BBB82-2D69-4A12-93AA-E5753F87AF03}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{3E016018-D65D-4336-9F64-17DA97783AD0}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ScenarioTest.ResourceManager", "..\..\tools\ScenarioTest.ResourceManager\ScenarioTest.ResourceManager.csproj", "{F83FBA8D-732D-437C-A0E2-02E45B01E123}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestFx", "..\..\tools\TestFx\TestFx.csproj", "{BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Accounts", "Accounts", "{E67B6881-11B6-4624-BFA4-D5892FD432A4}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{DA712250-2474-4A20-8245-54F54244614A}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{6A3D9F7E-9B55-487E-89C3-51DA17A086A0}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {42656543-77AD-4968-BA4B-BE0778705625}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {42656543-77AD-4968-BA4B-BE0778705625}.Debug|Any CPU.Build.0 = Debug|Any CPU + {42656543-77AD-4968-BA4B-BE0778705625}.Release|Any CPU.ActiveCfg = Release|Any CPU + {42656543-77AD-4968-BA4B-BE0778705625}.Release|Any CPU.Build.0 = Release|Any CPU + {5E5BBB82-2D69-4A12-93AA-E5753F87AF03}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5E5BBB82-2D69-4A12-93AA-E5753F87AF03}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5E5BBB82-2D69-4A12-93AA-E5753F87AF03}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5E5BBB82-2D69-4A12-93AA-E5753F87AF03}.Release|Any CPU.Build.0 = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU + {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Release|Any CPU.Build.0 = Release|Any CPU + {3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3E016018-D65D-4336-9F64-17DA97783AD0}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3E016018-D65D-4336-9F64-17DA97783AD0}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3E016018-D65D-4336-9F64-17DA97783AD0}.Release|Any CPU.Build.0 = Release|Any CPU + {F83FBA8D-732D-437C-A0E2-02E45B01E123}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F83FBA8D-732D-437C-A0E2-02E45B01E123}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F83FBA8D-732D-437C-A0E2-02E45B01E123}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F83FBA8D-732D-437C-A0E2-02E45B01E123}.Release|Any CPU.Build.0 = Release|Any CPU + {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {42656543-77AD-4968-BA4B-BE0778705625} = {DA712250-2474-4A20-8245-54F54244614A} + {5E5BBB82-2D69-4A12-93AA-E5753F87AF03} = {DA712250-2474-4A20-8245-54F54244614A} + {142D7B0B-388A-4CEB-A228-7F6D423C5C2E} = {E67B6881-11B6-4624-BFA4-D5892FD432A4} + {FF81DC73-B8EC-4082-8841-4FBF2B16E7CE} = {E67B6881-11B6-4624-BFA4-D5892FD432A4} + {3E016018-D65D-4336-9F64-17DA97783AD0} = {E67B6881-11B6-4624-BFA4-D5892FD432A4} + {F83FBA8D-732D-437C-A0E2-02E45B01E123} = {6A3D9F7E-9B55-487E-89C3-51DA17A086A0} + {BC80A1D0-FFA4-43D9-AA74-799F5CB54B58} = {6A3D9F7E-9B55-487E-89C3-51DA17A086A0} + {E67B6881-11B6-4624-BFA4-D5892FD432A4} = {DA712250-2474-4A20-8245-54F54244614A} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030} + EndGlobalSection +EndGlobal diff --git a/src/MixedReality/MixedReality/Az.MixedReality.psd1 b/src/MixedReality/MixedReality/Az.MixedReality.psd1 new file mode 100644 index 000000000000..ae4de5f45ca4 --- /dev/null +++ b/src/MixedReality/MixedReality/Az.MixedReality.psd1 @@ -0,0 +1,134 @@ +# +# Module manifest for module 'Az.MixedReality' +# +# Generated by: Microsoft Corporation +# +# Generated on: 12/12/2018 +# + +@{ + +# Script module or binary module file associated with this manifest. +# RootModule = '' + +# Version number of this module. +ModuleVersion = '0.1.1' + +# Supported PSEditions +CompatiblePSEditions = 'Core', 'Desktop' + +# ID used to uniquely identify this module +GUID = '91832aaa-dc11-4583-8239-bce5fd531604' + +# Author of this module +Author = 'Microsoft Corporation' + +# Company or vendor of this module +CompanyName = 'Microsoft Corporation' + +# Copyright statement for this module +Copyright = 'Microsoft Corporation. All rights reserved.' + +# Description of the functionality provided by this module +Description = 'Microsoft Azure PowerShell - Mixed Reality services cmdlets for Azure Resource Manager in Windows PowerShell and PowerShell Core. + +For more information on Mixed Reality, please visit the following: https://docs.microsoft.com/azure/mixedreality/' + +# Minimum version of the PowerShell engine required by this module +PowerShellVersion = '5.1' + +# Name of the PowerShell host required by this module +# PowerShellHostName = '' + +# Minimum version of the PowerShell host required by this module +# PowerShellHostVersion = '' + +# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +DotNetFrameworkVersion = '4.7.2' + +# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only. +# CLRVersion = '' + +# Processor architecture (None, X86, Amd64) required by this module +# ProcessorArchitecture = '' + +# Modules that must be imported into the global environment prior to importing this module +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.3.0'; }) + +# Assemblies that must be loaded prior to importing this module +RequiredAssemblies = '.\Microsoft.Azure.Management.MixedReality.dll' + +# Script files (.ps1) that are run in the caller's environment prior to importing this module. +# ScriptsToProcess = @() + +# Type files (.ps1xml) to be loaded when importing this module +# TypesToProcess = @() + +# Format files (.ps1xml) to be loaded when importing this module +# FormatsToProcess = @() + +# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess +NestedModules = @('.\Microsoft.Azure.PowerShell.Cmdlets.MixedReality.dll') + +# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. +FunctionsToExport = @() + +# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. +CmdletsToExport = 'Get-AzSpatialAnchorsAccount', 'Get-AzSpatialAnchorsAccountKey', 'New-AzSpatialAnchorsAccount', 'New-AzSpatialAnchorsAccountKey', 'Remove-AzSpatialAnchorsAccount' + +# Variables to export from this module +# VariablesToExport = @() + +# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export. +AliasesToExport = @() + +# DSC resources to export from this module +# DscResourcesToExport = @() + +# List of all modules packaged with this module +# ModuleList = @() + +# List of all files packaged with this module +# FileList = @() + +# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell. +PrivateData = @{ + + PSData = @{ + + # Tags applied to this module. These help with module discovery in online galleries. + Tags = 'Azure','ResourceManager','ARM','MixedReality' + + # A URL to the license for this module. + LicenseUri = 'https://aka.ms/azps-license' + + # A URL to the main website for this project. + ProjectUri = 'https://github.com/Azure/azure-powershell' + + # A URL to an icon representing this module. + # IconUri = '' + + # ReleaseNotes of this module + ReleaseNotes = 'General availability for Az.MixedReality module.' + + # Prerelease string of this module + # Prerelease = '' + + # Flag to indicate whether the module requires explicit user acceptance for install/update + # RequireLicenseAcceptance = $false + + # External dependent modules of this module + # ExternalModuleDependencies = @() + + } # End of PSData hashtable + + } # End of PrivateData hashtable + +# HelpInfo URI of this module +# HelpInfoURI = '' + +# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix. +# DefaultCommandPrefix = '' + +} + diff --git a/src/MixedReality/MixedReality/ChangeLog.md b/src/MixedReality/MixedReality/ChangeLog.md new file mode 100644 index 000000000000..eacee20e40f5 --- /dev/null +++ b/src/MixedReality/MixedReality/ChangeLog.md @@ -0,0 +1,22 @@ + +## Upcoming Release + +* General availability of `Az.MixedReality` module \ No newline at end of file diff --git a/src/MixedReality/MixedReality/Common/MixedRealityManagementCmdletBase.cs b/src/MixedReality/MixedReality/Common/MixedRealityManagementCmdletBase.cs new file mode 100644 index 000000000000..409c9d58be2a --- /dev/null +++ b/src/MixedReality/MixedReality/Common/MixedRealityManagementCmdletBase.cs @@ -0,0 +1,67 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.MixedReality +{ + using Common.Authentication; + using Common.Authentication.Abstractions; + using Management.MixedReality; + using ResourceManager.Common; + + /// + /// Base class of Azure Mixed Reality Management Cmdlet. + /// + public abstract class MixedRealityManagementCmdletBase : AzureRMCmdlet + { + private IMixedRealityClient client; + + private Dictionary> _defaultRequestHeaders; + + public const string DefaultParameterSet = "DefaultParameterSet"; + public const string ResourceIdParameterSet = "ResourceIdParameterSet"; + public const string PipelineParameterSet = "PipelineParameterSet"; + + /// + /// Gets or sets the Mixed Reality management client. + /// + internal protected IMixedRealityClient Client + { + get + { + return client ?? + (client = + AzureSession.Instance.ClientFactory.CreateArmClient(DefaultProfile.DefaultContext, + AzureEnvironment.Endpoint.ResourceManager)); + } + set { client = value; } + } + + /// + /// Gets or sets the default headers send with rest requests. + /// + public Dictionary> DefaultRequestHeaders + { + get + { + return _defaultRequestHeaders ?? + (_defaultRequestHeaders = + new Dictionary> { { "UserAgent", new List { "PowerShell" } } }); + } + set { _defaultRequestHeaders = value; } + } + } +} diff --git a/src/MixedReality/MixedReality/MixedReality.csproj b/src/MixedReality/MixedReality/MixedReality.csproj new file mode 100644 index 000000000000..a6ad3c2209ee --- /dev/null +++ b/src/MixedReality/MixedReality/MixedReality.csproj @@ -0,0 +1,13 @@ + + + + MixedReality + + + + + + + + + \ No newline at end of file diff --git a/src/MixedReality/MixedReality/Properties/AssemblyInfo.cs b/src/MixedReality/MixedReality/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..4018a42499bb --- /dev/null +++ b/src/MixedReality/MixedReality/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Powershell - MixedReality")] +[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] +[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] +[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] + +[assembly: ComVisible(false)] +[assembly: CLSCompliant(false)] +[assembly: Guid("A7F112ED-6202-4B4E-AD1D-FBCEE18F6F85")] +[assembly: AssemblyVersion("0.1.1")] +[assembly: AssemblyFileVersion("0.1.1")] diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/Extensions.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/Extensions.cs new file mode 100644 index 000000000000..724a7bdd7536 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/Extensions.cs @@ -0,0 +1,52 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + using Microsoft.Azure.Management.MixedReality; + using Microsoft.Azure.Management.MixedReality.Models; + using Microsoft.Rest.Azure; + + internal static class Extensions + { + internal static SpatialAnchorsAccount Find(this ISpatialAnchorsAccountsOperations operations, string resourceGroupName, string spatialAnchorsAccountName) + { + return operations.EnumerateByResourceGroup(resourceGroupName).FirstOrDefault(account => string.Equals(account.Name, spatialAnchorsAccountName, StringComparison.InvariantCultureIgnoreCase)); + } + + internal static IEnumerable EnumerateBySubscription(this ISpatialAnchorsAccountsOperations operations) + { + return Enumerate(() => operations.ListBySubscription(), link => operations.ListBySubscriptionNext(link)).ToList(); + } + + internal static IEnumerable EnumerateByResourceGroup(this ISpatialAnchorsAccountsOperations operations, string resourceGroupName) + { + return Enumerate(() => operations.ListByResourceGroup(resourceGroupName), link => operations.ListByResourceGroupNext(link)).ToList(); + } + + private static IEnumerable Enumerate(Func> getFirstPage, Func> getNextPage) + { + for (var page = getFirstPage(); page != null; page = !string.IsNullOrWhiteSpace(page.NextPageLink) ? getNextPage(page.NextPageLink) : null) + { + foreach (var item in page) + { + yield return item; + } + } + } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/GetSpatialAnchorsAccount.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/GetSpatialAnchorsAccount.cs new file mode 100644 index 000000000000..bb77332f7766 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/GetSpatialAnchorsAccount.cs @@ -0,0 +1,80 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Linq; +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + using Management.MixedReality; + using ResourceManager.Common; + using ResourceManager.Common.ArgumentCompleters; + + [Cmdlet("Get", AzureRMConstants.AzureRMPrefix + ResourceType, DefaultParameterSetName = ListParameterSet)] + [OutputType(typeof(PSSpatialAnchorsAccount))] + public sealed class GetSpatialAnchorsAccount : SpatialAnchorsAccountCmdletBase + { + public const string GetParameterSet = "GetParameterSet"; + public const string ListParameterSet = "ListParameterSet"; + + [Parameter(Mandatory = true, ParameterSetName = GetParameterSet, HelpMessage = "Resource Group Name.")] + [Parameter(Mandatory = false, ParameterSetName = ListParameterSet, HelpMessage = "Resource Group Name.")] + [ResourceGroupCompleter()] + [Alias("ResourceGroup")] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = GetParameterSet, HelpMessage = "Spatial Anchors Account Name.")] + [ResourceNameCompleter(FullQualifiedResourceType, nameof(ResourceGroupName))] + [Alias("SpatialAnchorsAccountName", "AccountName")] + public string Name { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource ID of Spatial Anchors Account.")] + [ResourceIdCompleter(FullQualifiedResourceType)] + [Alias("Id")] + public string ResourceId { get; set; } + + public override void ExecuteCmdlet() + { + var result = default(object); + var enumeration = default(bool); + + if (ParameterSetName == ListParameterSet) + { + var accounts = string.IsNullOrEmpty(this.ResourceGroupName) + ? Client.SpatialAnchorsAccounts.EnumerateBySubscription() + : Client.SpatialAnchorsAccounts.EnumerateByResourceGroup(this.ResourceGroupName); + + result = accounts.Select(_ => new PSSpatialAnchorsAccount(_)); + enumeration = true; + } + else + { + if (ParameterSetName == ResourceIdParameterSet) + { + var resourceId = new ResourceId(ResourceId); + + ResourceGroupName = resourceId.ResourceGroupName; + Name = resourceId.SpatialAnchorsAccountName; + } + + var account = Client.SpatialAnchorsAccounts.Get(this.ResourceGroupName, this.Name); + + result = new PSSpatialAnchorsAccount(account); + enumeration = false; + } + + WriteObject(result, enumeration); + } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/GetSpatialAnchorsAccountKey.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/GetSpatialAnchorsAccountKey.cs new file mode 100644 index 000000000000..6f1acda16268 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/GetSpatialAnchorsAccountKey.cs @@ -0,0 +1,68 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + using Management.MixedReality; + using ResourceManager.Common; + using ResourceManager.Common.ArgumentCompleters; + + [Cmdlet("Get", AzureRMConstants.AzureRMPrefix + ResourceType + "Key", DefaultParameterSetName = DefaultParameterSet)] + [OutputType(typeof(PSSpatialAnchorsAccountKeys))] + public sealed class GetSpatialAnchorsAccountKeys : SpatialAnchorsAccountCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = DefaultParameterSet, HelpMessage = "Resource Group Name.")] + [ResourceGroupCompleter] + [Alias("ResourceGroup")] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = DefaultParameterSet, HelpMessage = "Spatial Anchors Account Name.")] + [ResourceNameCompleter(FullQualifiedResourceType, nameof(ResourceGroupName))] + [Alias("SpatialAnchorsAccountName", "AccountName")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource ID of Spatial Anchors Account.")] + [ResourceIdCompleter(FullQualifiedResourceType)] + [Alias("Id")] + public string ResourceId { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = PipelineParameterSet, ValueFromPipeline = true, HelpMessage = "The custom domain object.")] + [ValidateNotNull] + public PSSpatialAnchorsAccount InputObject { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName == ResourceIdParameterSet) + { + var resourceId = new ResourceId(ResourceId); + + ResourceGroupName = resourceId.ResourceGroupName; + Name = resourceId.SpatialAnchorsAccountName; + } + + if (ParameterSetName == PipelineParameterSet) + { + ResourceGroupName = InputObject.ResourceGroupName; + Name = InputObject.Name; + } + + var result = Client.SpatialAnchorsAccounts.GetKeys(ResourceGroupName, Name); + + WriteObject(result); + } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/Models/PSSpatialAnchorsAccount.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/Models/PSSpatialAnchorsAccount.cs new file mode 100644 index 000000000000..b4d397a2dc16 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/Models/PSSpatialAnchorsAccount.cs @@ -0,0 +1,46 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System.Collections.Generic; + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + using Management.MixedReality.Models; + + public sealed class PSSpatialAnchorsAccount : SpatialAnchorsAccount + { + private ResourceId resourceId; + + public PSSpatialAnchorsAccount(SpatialAnchorsAccount another) : + base( + location: another.Location, + id: another.Id, + name: another.Name, + type: another.Type, + tags: new Dictionary(another.Tags), + accountId: another.AccountId, + accountDomain: another.AccountDomain) + { + resourceId = new ResourceId(this.Id); + } + + public string ResourceGroupName + { + get + { + return resourceId.ResourceGroupName; + } + } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/Models/PSSpatialAnchorsAccountKeys.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/Models/PSSpatialAnchorsAccountKeys.cs new file mode 100644 index 000000000000..34ed45d80437 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/Models/PSSpatialAnchorsAccountKeys.cs @@ -0,0 +1,28 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + using Management.MixedReality.Models; + + public sealed class PSSpatialAnchorsAccountKeys : SpatialAnchorsAccountKeys + { + public PSSpatialAnchorsAccountKeys(SpatialAnchorsAccountKeys another) : + base( + primaryKey: another.PrimaryKey, + secondaryKey: another.SecondaryKey) + { + } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/NewSpatialAnchorsAccount.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/NewSpatialAnchorsAccount.cs new file mode 100644 index 000000000000..e60de548dbf8 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/NewSpatialAnchorsAccount.cs @@ -0,0 +1,55 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + using ResourceManager.Common; + using ResourceManager.Common.ArgumentCompleters; + using Management.MixedReality; + using Management.MixedReality.Models; + + [Cmdlet("New", AzureRMConstants.AzureRMPrefix + ResourceType, DefaultParameterSetName = DefaultParameterSet, SupportsShouldProcess = true)] + [OutputType(typeof(PSSpatialAnchorsAccount))] + public sealed class NewSpatialAnchorsAccount : SpatialAnchorsAccountCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = DefaultParameterSet, HelpMessage = "Resource Group Name.")] + [ResourceGroupCompleter] + [Alias("ResourceGroup")] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = DefaultParameterSet, HelpMessage = "Spatial Anchors Account Name.")] + [ResourceNameCompleter(FullQualifiedResourceType, nameof(ResourceGroupName))] + [Alias("SpatialAnchorsAccountName", "AccountName")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = DefaultParameterSet, HelpMessage = "Spatial Anchors Account Location.")] + [LocationCompleter(FullQualifiedResourceType)] + [ValidateNotNullOrEmpty] + public string Location { get; set; } + + public override void ExecuteCmdlet() + { + if (ShouldProcess(ResourceType, MyInvocation.InvocationName)) + { + var account = new SpatialAnchorsAccount(location: Location, name: Name, type: FullQualifiedResourceType); + account = Client.SpatialAnchorsAccounts.Create(this.ResourceGroupName, this.Name, account); + + WriteObject(new PSSpatialAnchorsAccount(account)); + } + } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/NewSpatialAnchorsAccountKey.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/NewSpatialAnchorsAccountKey.cs new file mode 100644 index 000000000000..9268b906b2bc --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/NewSpatialAnchorsAccountKey.cs @@ -0,0 +1,120 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + using Management.MixedReality; + using ResourceManager.Common; + using ResourceManager.Common.ArgumentCompleters; + + [Cmdlet("New", AzureRMConstants.AzureRMPrefix + ResourceType + "Key", SupportsShouldProcess = true)] + [OutputType(typeof(PSSpatialAnchorsAccountKeys))] + public sealed class NewSpatialAnchorsAccountKey : SpatialAnchorsAccountCmdletBase + { + public const string RegeneratePrimaryKeyParameterSetName = "RegeneratePrimaryKeyParameterSet"; + public const string RegenerateSecondaryKeyParameterSetName = "RegenerateSecondaryKeyParameterSet"; + + public const string ResourceIdParameterSetPrefix = "ResourceId"; + public const string PipelineParameterSetPrefix = "Pipeline"; + + public const string ResourceGroupNameHelpMessage = "Resource Group Name."; + public const string NameHelpMessage = "Spatial Anchors Account Name."; + public const string ResourceIdHelpMessage = "Resource ID of Spatial Anchors Account."; + public const string InputObjectHelpMessage = "The custom domain object."; + public const string PrimarySwitchHelpMessage = "Regenerate primary key of Spatial Anchors Account."; + public const string SecondarySwitchHelpMessage = "Regenerate secondary key of Spatial Anchors Account."; + + [Parameter(Mandatory = true, ParameterSetName = RegeneratePrimaryKeyParameterSetName, HelpMessage = ResourceGroupNameHelpMessage)] + [Parameter(Mandatory = true, ParameterSetName = RegenerateSecondaryKeyParameterSetName, HelpMessage = ResourceGroupNameHelpMessage)] + [ResourceGroupCompleter] + [Alias("ResourceGroup")] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = RegeneratePrimaryKeyParameterSetName, HelpMessage = NameHelpMessage)] + [Parameter(Mandatory = true, ParameterSetName = RegenerateSecondaryKeyParameterSetName, HelpMessage = NameHelpMessage)] + [ResourceNameCompleter(FullQualifiedResourceType, nameof(ResourceGroupName))] + [Alias("SpatialAnchorsAccountName", "AccountName")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSetPrefix + RegeneratePrimaryKeyParameterSetName, ValueFromPipelineByPropertyName = true, HelpMessage = ResourceIdHelpMessage)] + [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSetPrefix + RegenerateSecondaryKeyParameterSetName, ValueFromPipelineByPropertyName = true, HelpMessage = ResourceIdHelpMessage)] + [ResourceIdCompleter(FullQualifiedResourceType)] + [Alias("Id")] + public string ResourceId { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = PipelineParameterSetPrefix + RegeneratePrimaryKeyParameterSetName, ValueFromPipeline = true, HelpMessage = InputObjectHelpMessage)] + [Parameter(Mandatory = true, ParameterSetName = PipelineParameterSetPrefix + RegenerateSecondaryKeyParameterSetName, ValueFromPipeline = true, HelpMessage = InputObjectHelpMessage)] + [ValidateNotNull] + public PSSpatialAnchorsAccount InputObject { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = RegeneratePrimaryKeyParameterSetName, HelpMessage = PrimarySwitchHelpMessage)] + [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSetPrefix + RegeneratePrimaryKeyParameterSetName, HelpMessage = PrimarySwitchHelpMessage)] + [Parameter(Mandatory = true, ParameterSetName = PipelineParameterSetPrefix + RegeneratePrimaryKeyParameterSetName, HelpMessage = PrimarySwitchHelpMessage)] + public SwitchParameter Primary { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = RegenerateSecondaryKeyParameterSetName, HelpMessage = SecondarySwitchHelpMessage)] + [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSetPrefix + RegenerateSecondaryKeyParameterSetName, HelpMessage = SecondarySwitchHelpMessage)] + [Parameter(Mandatory = true, ParameterSetName = PipelineParameterSetPrefix + RegenerateSecondaryKeyParameterSetName, HelpMessage = SecondarySwitchHelpMessage)] + public SwitchParameter Secondary { get; set; } + + [Parameter()] + public SwitchParameter Force { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName.StartsWith(ResourceIdParameterSetPrefix)) + { + var resourceId = new ResourceId(ResourceId); + + ResourceGroupName = resourceId.ResourceGroupName; + Name = resourceId.SpatialAnchorsAccountName; + } + + if (ParameterSetName.StartsWith(PipelineParameterSetPrefix)) + { + ResourceGroupName = InputObject.ResourceGroupName; + Name = InputObject.Name; + } + + var serial = default(int?); + var key = default(string); + + if (Primary.IsPresent) + { + serial = 1; + key = "primary"; + } + else if (Secondary.IsPresent) + { + serial = 2; + key = "secondary"; + } + + ConfirmAction( + Force, + $"Are you sure you want to regenerate {key} key of Spatial Anchors Account '{Name}' in resource group '{ResourceGroupName}' ?", + this.MyInvocation.InvocationName, + Name, + () => + { + var result = Client.SpatialAnchorsAccounts.RegenerateKeys(ResourceGroupName, Name, serial); + + WriteObject(result); + }); + } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/RemoveSpatialAnchorsAccount.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/RemoveSpatialAnchorsAccount.cs new file mode 100644 index 000000000000..974eddfd5175 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/RemoveSpatialAnchorsAccount.cs @@ -0,0 +1,77 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- +using System.Management.Automation; + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + using Management.MixedReality; + using ResourceManager.Common; + using ResourceManager.Common.ArgumentCompleters; + + [Cmdlet("Remove", AzureRMConstants.AzureRMPrefix + ResourceType, DefaultParameterSetName = DefaultParameterSet, SupportsShouldProcess = true)] + [OutputType(typeof(bool))] + public sealed class RemoveSpatialAnchorsAccount : SpatialAnchorsAccountCmdletBase + { + [Parameter(Mandatory = true, ParameterSetName = DefaultParameterSet, HelpMessage = "Resource Group Name.")] + [ResourceGroupCompleter] + [Alias("ResourceGroup")] + [ValidateNotNullOrEmpty] + public string ResourceGroupName { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = DefaultParameterSet, HelpMessage = "Spatial Anchors Account Name.")] + [ResourceNameCompleter(FullQualifiedResourceType, nameof(ResourceGroupName))] + [Alias("SpatialAnchorsAccountName", "AccountName")] + [ValidateNotNullOrEmpty] + public string Name { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = ResourceIdParameterSet, ValueFromPipelineByPropertyName = true, HelpMessage = "Resource ID of Spatial Anchors Account.")] + [ResourceIdCompleter(FullQualifiedResourceType)] + [Alias("Id")] + public string ResourceId { get; set; } + + [Parameter(Mandatory = true, ParameterSetName = PipelineParameterSet, ValueFromPipeline = true, HelpMessage = "The custom domain object.")] + [ValidateNotNull] + public PSSpatialAnchorsAccount InputObject { get; set; } + + [Parameter(Mandatory = false, ValueFromPipelineByPropertyName = true, HelpMessage = "Return object if specified.")] + public SwitchParameter PassThru { get; set; } + + public override void ExecuteCmdlet() + { + if (ParameterSetName == ResourceIdParameterSet) + { + var resourceId = new ResourceId(ResourceId); + + ResourceGroupName = resourceId.ResourceGroupName; + Name = resourceId.SpatialAnchorsAccountName; + } + + if (ParameterSetName == PipelineParameterSet) + { + ResourceGroupName = InputObject.ResourceGroupName; + Name = InputObject.Name; + } + + if (ShouldProcess(Name, MyInvocation.InvocationName)) + { + Client.SpatialAnchorsAccounts.Delete(ResourceGroupName, Name); + } + + if (PassThru) + { + WriteObject(true); + } + } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/ResourceId.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/ResourceId.cs new file mode 100644 index 000000000000..ccc7c9e3c602 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/ResourceId.cs @@ -0,0 +1,49 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- +using System; +using System.Text.RegularExpressions; + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + internal class ResourceId + { + static class RegEx + { + internal const string Subscription = "subscription"; + internal const string ResourceGroup = "resourceGroup"; + internal const string SpatialAnchorsAccount = "spatialAnchorAccount"; + internal readonly static Regex Id = new Regex($@"\/subscriptions\/(?<{Subscription}>.*)\/resourcegroups\/(?<{ResourceGroup}>.*)\/providers\/Microsoft\.MixedReality\/SpatialAnchorsAccounts\/(?<{SpatialAnchorsAccount}>.*)", RegexOptions.IgnoreCase | RegexOptions.Singleline); + } + + internal ResourceId(string resourceId) + { + var match = RegEx.Id.Match(resourceId); + + if (match.Success) + { + SubsciptionId = new Guid(match.Groups[RegEx.Subscription].Value); + ResourceGroupName = match.Groups[RegEx.ResourceGroup].Value; + SpatialAnchorsAccountName = match.Groups[RegEx.SpatialAnchorsAccount].Value; + } + else + { + throw new ArgumentException(); + } + } + + internal Guid SubsciptionId { get; private set; } + internal string ResourceGroupName { get; private set; } + internal string SpatialAnchorsAccountName { get; private set; } + } +} diff --git a/src/MixedReality/MixedReality/SpatialAnchorsAccount/SpatialAnchorsAccountCmdletBase.cs b/src/MixedReality/MixedReality/SpatialAnchorsAccount/SpatialAnchorsAccountCmdletBase.cs new file mode 100644 index 000000000000..858ab12405d2 --- /dev/null +++ b/src/MixedReality/MixedReality/SpatialAnchorsAccount/SpatialAnchorsAccountCmdletBase.cs @@ -0,0 +1,23 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +namespace Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount +{ + public abstract class SpatialAnchorsAccountCmdletBase : MixedRealityManagementCmdletBase + { + public const string ResourceProviderNamespace = "Microsoft.MixedReality"; + public const string ResourceType = "SpatialAnchorsAccount"; + public const string FullQualifiedResourceType = ResourceProviderNamespace + "/" + ResourceType + "s"; + }; +} diff --git a/src/MixedReality/MixedReality/StartupScripts/sample.ps1 b/src/MixedReality/MixedReality/StartupScripts/sample.ps1 new file mode 100644 index 000000000000..50ac77403ab6 --- /dev/null +++ b/src/MixedReality/MixedReality/StartupScripts/sample.ps1 @@ -0,0 +1 @@ +#Placeholder for future scripts: Please delete this file and uncomment Always within the block in the .csproj file. \ No newline at end of file diff --git a/src/MixedReality/MixedReality/help/Az.MixedReality.md b/src/MixedReality/MixedReality/help/Az.MixedReality.md new file mode 100644 index 000000000000..fe5a8d691fdd --- /dev/null +++ b/src/MixedReality/MixedReality/help/Az.MixedReality.md @@ -0,0 +1,27 @@ +--- +Module Name: Az.MixedReality +Module Guid: 91832aaa-dc11-4583-8239-bce5fd531604 +Download Help Link: https://aka.ms/mixed-reality-azure-powershell-help +Help Version: 0.1.1.0 +Locale: en-US +--- + +# Az.MixedReality Module +## Description +Azure PowerShell Module of Mixed Reality Cloud Service + +## Az.MixedReality Cmdlets +### [Get-AzSpatialAnchorsAccount](Get-AzSpatialAnchorsAccount.md) +Get or list Spatial Anchors Account(s) in certain Subscription and Resource Group. + +### [New-AzSpatialAnchorsAccount](New-AzSpatialAnchorsAccount.md) +Create a new Spatial Inelligence Account in certain Subscription, Resource Group and Region. + +### [Remove-AzSpatialAnchorsAccount](Remove-AzSpatialAnchorsAccount.md) +Delete specified Spatial Anchors Account from certain Subscription and Resource Group. + +### [Get-AzSpatialAnchorsAccountKey](Get-AzSpatialAnchorsAccountKey.md) +Get developer keys of Spatial Anchors Account. + +### [New-AzSpatialAnchorsAccountKey](New-AzSpatialAnchorsAccountKey.md) +Regenerate specified developer key of Spatial Anchors Account. \ No newline at end of file diff --git a/src/MixedReality/MixedReality/help/Get-AzSpatialAnchorsAccount.md b/src/MixedReality/MixedReality/help/Get-AzSpatialAnchorsAccount.md new file mode 100644 index 000000000000..9995d0770bd2 --- /dev/null +++ b/src/MixedReality/MixedReality/help/Get-AzSpatialAnchorsAccount.md @@ -0,0 +1,180 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.dll-Help.xml +Module Name: Az.MixedReality +online version: https://docs.microsoft.com/en-us/powershell/module/az.mixedreality/get-azspatialanchorsaccount +schema: 2.0.0 +--- + +# Get-AzSpatialAnchorsAccount + +## SYNOPSIS +Get Spatial Anchors Account + +## SYNTAX + +### ListParameterSet (Default) +``` +Get-AzSpatialAnchorsAccount [-ResourceGroupName ] + [-DefaultProfile ] [] +``` + +### GetParameterSet (Default) +``` +Get-AzSpatialAnchorsAccount -ResourceGroupName -Name + [-DefaultProfile ] [] +``` + +### ResourceIdParameterSet +``` +Get-AzSpatialAnchorsAccount -ResourceId + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get or list Spatial Anchors Account(s) in certain Subscription and Resource Group. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Get-AzSpatialAnchorsAccount -ResourceGroup rg1 + +ResourceGroupName : rg1 +AccountId : 5f70bc31-a5da-4dd7-b5ec-ccdf806ff0ef +AccountEndpoint : https://mrc-anchor-prod.trafficmanager.net/Accounts/5f70bc31-a5da-4dd7-b5ec-ccdf806ff0ef/ +AccountDomain : mixedreality.azure.com +Tags : {} +Location : eastus2 +Id : /subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/rg1/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/example +Name : example +Type : Microsoft.MixedReality/SpatialAnchorsAccounts + +ResourceGroupName : rg1 +AccountId : 2f7443d0-2c2b-4514-9b29-a78072a1556f +AccountEndpoint : https://mrc-anchor-prod.trafficmanager.net/Accounts/2f7443d0-2c2b-4514-9b29-a78072a1556f/ +AccountDomain : mixedreality.azure.com +Tags : {} +Location : eastus2 +Id : /subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/rg1/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/demo +Name : demo +Type : Microsoft.MixedReality/SpatialAnchorsAccounts + +ResourceGroupName : rg1 +AccountId : ed3273ce-1eeb-42c7-b3b8-fb9896b9801c +AccountEndpoint : https://mrc-anchor-prod.trafficmanager.net/Accounts/ed3273ce-1eeb-42c7-b3b8-fb9896b9801c/ +AccountDomain : mixedreality.azure.com +Tags : {} +Location : eastus2 +Id : /subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/rg1/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/foobar +Name : foobar +Type : Microsoft.MixedReality/SpatialAnchorsAccounts +``` + +List all Spatial Anchors Account in Resource Group "rg1". + +### Example 2 +```powershell +PS C:\> Get-AzSpatialAnchorsAccount -ResourceGroup rg1 -Name example + +ResourceGroupName : rg1 +AccountId : 5f70bc31-a5da-4dd7-b5ec-ccdf806ff0ef +AccountEndpoint : https://mrc-anchor-prod.trafficmanager.net/Accounts/5f70bc31-a5da-4dd7-b5ec-ccdf806ff0ef/ +AccountDomain : mrc-anchor-prod.trafficmanager.net +Tags : {} +Location : eastus2 +Id : /subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/rg1/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/example +Name : example +Type : Microsoft.MixedReality/SpatialAnchorsAccounts +``` + +Get Spatial Anchors Account "example" in Resource Group "rg1". + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Spatial Anchors Account Name. + +```yaml +Type: String +Parameter Sets: GetParameterSet +Aliases: SpatialAnchorsAccountName, AccountName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group Name. + +```yaml +Type: String +Parameter Sets: ListParameterSet +Aliases: ResourceGroup + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +```yaml +Type: String +Parameter Sets: GetParameterSet +Aliases: ResourceGroup + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceId +Resource ID of Spatial Anchors Account. + +```yaml +Type: String +Parameter Sets: ResourceIdParameterSet +Aliases: Id + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +## OUTPUTS + +### Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.PSSpatialAnchorsAccount + +## NOTES + +## RELATED LINKS diff --git a/src/MixedReality/MixedReality/help/Get-AzSpatialAnchorsAccountKey.md b/src/MixedReality/MixedReality/help/Get-AzSpatialAnchorsAccountKey.md new file mode 100644 index 000000000000..c3d36c900f39 --- /dev/null +++ b/src/MixedReality/MixedReality/help/Get-AzSpatialAnchorsAccountKey.md @@ -0,0 +1,153 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.dll-Help.xml +Module Name: Az.MixedReality +online version: https://docs.microsoft.com/en-us/powershell/module/az.mixedreality/get-azspatialanchorsaccountkey +schema: 2.0.0 +--- + +# Get-AzSpatialAnchorsAccountKey + +## SYNOPSIS +Get keys of Spatial Anchors Account + +## SYNTAX + +### DefaultParameterSet (Default) +``` +Get-AzSpatialAnchorsAccountKey -ResourceGroupName -Name + [-DefaultProfile ] [] +``` + +### ResourceIdParameterSet +``` +Get-AzSpatialAnchorsAccountKey -ResourceId + [-DefaultProfile ] [] +``` + +### PipelineParameterSet +``` +Get-AzSpatialAnchorsAccountKey -InputObject + [-DefaultProfile ] [] +``` + +## DESCRIPTION +Get developer keys of Spatial Anchors Account. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Get-AzSpatialAnchorsAccountKey -ResourceGroup rg1 -Name example + +PrimaryKey SecondaryKey +---------- ------------ +QTwT6LpnD6NuUfgfkCKFBmf89xWJ7tDC0Yx0yxxaejs= BGOP2NZN5ThHbDFKzW+FISSgxnnBqCPKpTsixAxkvXk= +``` + +Get developer keys of Spatial Anchors Account "example" from current Subscription and Resource Group "rg1". + +### Example 2 +```powershell +PS C:\> Get-AzSpatialAnchorsAccount -ResourceGroup rg1 -Name example | Get-AzSpatialAnchorsAccountKey + +PrimaryKey SecondaryKey +---------- ------------ +QTwT6LpnD6NuUfgfkCKFBmf89xWJ7tDC0Yx0yxxaejs= BGOP2NZN5ThHbDFKzW+FISSgxnnBqCPKpTsixAxkvXk= +``` + +Get developer keys of Spatial Anchors Account "example" from current Subscription and Resource Group "rg1" with piping. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The custom domain object. + +```yaml +Type: PSSpatialAnchorsAccount +Parameter Sets: PipelineParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Spatial Anchors Account Name. + +```yaml +Type: String +Parameter Sets: DefaultParameterSet +Aliases: SpatialAnchorsAccountName, AccountName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group Name. + +```yaml +Type: String +Parameter Sets: DefaultParameterSet +Aliases: ResourceGroup + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceId +Resource ID of Spatial Anchors Account. + +```yaml +Type: String +Parameter Sets: ResourceIdParameterSet +Aliases: Id + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +### Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.PSSpatialAnchorsAccount + +## OUTPUTS + +### Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.PSSpatialAnchorsAccountKeys + +## NOTES + +## RELATED LINKS diff --git a/src/MixedReality/MixedReality/help/New-AzSpatialAnchorsAccount.md b/src/MixedReality/MixedReality/help/New-AzSpatialAnchorsAccount.md new file mode 100644 index 000000000000..8908e0f502ca --- /dev/null +++ b/src/MixedReality/MixedReality/help/New-AzSpatialAnchorsAccount.md @@ -0,0 +1,149 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.dll-Help.xml +Module Name: Az.MixedReality +online version: https://docs.microsoft.com/en-us/powershell/module/az.mixedreality/new-azspatialanchorsaccount +schema: 2.0.0 +--- + +# New-AzSpatialAnchorsAccount + +## SYNOPSIS +Create Spatial Anchors Account + +## SYNTAX + +``` +New-AzSpatialAnchorsAccount -ResourceGroupName -Name -Location + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Create a new Spatial Inelligence Account in certain Subscription, Resource Group and Region. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> New-AzureRmSpatialAnchorsAccount -ResourceGroup rg1 -Name example -Location centralus + +ResourceGroupName : rg1 +AccountId : 5f70bc31-a5da-4dd7-b5ec-ccdf806ff0ef +AccountEndpoint : https://mrc-anchor-prod.trafficmanager.net/Accounts/5f70bc31-a5da-4dd7-b5ec-ccdf806ff0ef/ +AccountDomain : mixedreality.azure.com +Tags : {} +Location : centralus +Id : /subscriptions/10438cf7-a794-4c7b-ad4c-5ddc1313ba7d/resourceGroups/rg1/providers/Microsoft.MixedReality/SpatialAnchorsAccounts/example +Name : example +Type : Microsoft.MixedReality/SpatialAnchorsAccounts +``` + +Create a new Spatial Anchors Account "example" in current Subscription, Resource Group "rg1" and Central US. + +## PARAMETERS + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Location +Spatial Anchors Account Location. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Spatial Anchors Account Name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: SpatialAnchorsAccountName, AccountName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group Name. + +```yaml +Type: String +Parameter Sets: (All) +Aliases: ResourceGroup + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### None + +## OUTPUTS + +### Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.PSSpatialAnchorsAccount + +## NOTES + +## RELATED LINKS diff --git a/src/MixedReality/MixedReality/help/New-AzSpatialAnchorsAccountKey.md b/src/MixedReality/MixedReality/help/New-AzSpatialAnchorsAccountKey.md new file mode 100644 index 000000000000..e62eb245d9c2 --- /dev/null +++ b/src/MixedReality/MixedReality/help/New-AzSpatialAnchorsAccountKey.md @@ -0,0 +1,246 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.dll-Help.xml +Module Name: Az.MixedReality +online version: https://docs.microsoft.com/en-us/powershell/module/az.mixedreality/new-azspatialanchorsaccountkey +schema: 2.0.0 +--- + +# New-AzSpatialAnchorsAccountKey + +## SYNOPSIS +Regenerate key of Spatial Anchors Account + +## SYNTAX + +### RegeneratePrimaryKeyParameterSet +``` +New-AzSpatialAnchorsAccountKey -ResourceGroupName -Name [-Primary] [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### RegenerateSecondaryKeyParameterSet +``` +New-AzSpatialAnchorsAccountKey -ResourceGroupName -Name [-Secondary] [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ResourceIdRegeneratePrimaryKeyParameterSet +``` +New-AzSpatialAnchorsAccountKey -ResourceId [-Primary] [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ResourceIdRegenerateSecondaryKeyParameterSet +``` +New-AzSpatialAnchorsAccountKey -ResourceId [-Secondary] [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### PipelineRegeneratePrimaryKeyParameterSet +``` +New-AzSpatialAnchorsAccountKey -InputObject -Primary [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### PipelineRegenerateSecondaryKeyParameterSet +``` +New-AzSpatialAnchorsAccountKey -InputObject -Secondary [-Force] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Renegrate primary key or secondary key of Spatial Anchors Account. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> New-AzSpatialAnchorsAccountKey -ResourceGroupName rg1 -Name example -Secondary + +PrimaryKey SecondaryKey +---------- ------------ +QTwT6LpnD6NuUfgfkCKFBmf89xWJ7tDC0Yx0yxxaejs= mF8lsBeEbs51H/jLe4COW4zUiEyg9lDM1XHQ03jtxZU= +``` + +Regenerate secondary key of Spatial Anchors Account "example" in Resource Group "rg1". + +### Example 2 +```powershell +PS C:\> Get-AzSpatialAnchorsAccount -ResourceGroup rg1 -Name example | New-AzSpatialAnchorsAccountKey -Secondary + +PrimaryKey SecondaryKey +---------- ------------ +QTwT6LpnD6NuUfgfkCKFBmf89xWJ7tDC0Yx0yxxaejs= BGOP2NZN5ThHbDFKzW+FISSgxnnBqCPKpTsixAxkvXk= +``` + +Regenerate secondary key of Spatial Anchors Account "example" from current Subscription and Resource Group "rg1" with piping. + +## PARAMETERS + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Force +Forces the command to run without asking for user confirmation. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The custom domain object. + +```yaml +Type: PSSpatialAnchorsAccount +Parameter Sets: PipelineRegeneratePrimaryKeyParameterSet, PipelineRegenerateSecondaryKeyParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Spatial Anchors Account Name. + +```yaml +Type: String +Parameter Sets: RegeneratePrimaryKeyParameterSet, RegenerateSecondaryKeyParameterSet +Aliases: SpatialAnchorsAccountName, AccountName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Primary +Regenerate primary key of Spatial Anchors Account. + +```yaml +Type: SwitchParameter +Parameter Sets: RegeneratePrimaryKeyParameterSet, ResourceIdRegeneratePrimaryKeyParameterSet, PipelineRegeneratePrimaryKeyParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group Name. + +```yaml +Type: String +Parameter Sets: RegeneratePrimaryKeyParameterSet, RegenerateSecondaryKeyParameterSet +Aliases: ResourceGroup + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceId +Resource ID of Spatial Anchors Account. + +```yaml +Type: String +Parameter Sets: ResourceIdRegeneratePrimaryKeyParameterSet, ResourceIdRegenerateSecondaryKeyParameterSet +Aliases: Id + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Secondary +Regenerate primary key of Spatial Anchors Account. + +```yaml +Type: SwitchParameter +Parameter Sets: RegenerateSecondaryKeyParameterSet, ResourceIdRegenerateSecondaryKeyParameterSet, PipelineRegenerateSecondaryKeyParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +### Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.PSSpatialAnchorsAccount + +## OUTPUTS + +### Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.PSSpatialAnchorsAccountKeys + +## NOTES + +## RELATED LINKS diff --git a/src/MixedReality/MixedReality/help/Remove-AzSpatialAnchorsAccount.md b/src/MixedReality/MixedReality/help/Remove-AzSpatialAnchorsAccount.md new file mode 100644 index 000000000000..f55735df2477 --- /dev/null +++ b/src/MixedReality/MixedReality/help/Remove-AzSpatialAnchorsAccount.md @@ -0,0 +1,186 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.MixedReality.dll-Help.xml +Module Name: Az.MixedReality +online version: https://docs.microsoft.com/en-us/powershell/module/az.mixedreality/remove-azspatialanchorsaccount +schema: 2.0.0 +--- + +# Remove-AzSpatialAnchorsAccount + +## SYNOPSIS +Delete Spatial Anchors Account + +## SYNTAX + +### DefaultParameterSet (Default) +``` +Remove-AzSpatialAnchorsAccount -ResourceGroupName -Name [-PassThru] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ResourceIdParameterSet +``` +Remove-AzSpatialAnchorsAccount -ResourceId [-PassThru] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### PipelineParameterSet +``` +Remove-AzSpatialAnchorsAccount -InputObject [-PassThru] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Delete specified Spatial Anchors Account from certain Subscription and Resource Group. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Remove-AzSpatialAnchorsAccount -ResourceGroup rg1 -Name example +``` + +Delete Spatial Anchors Account "example" from current Subscription and Resource Group "rg1". + +## PARAMETERS + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The custom domain object. + +```yaml +Type: PSSpatialAnchorsAccount +Parameter Sets: PipelineParameterSet +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Spatial Anchors Account Name. + +```yaml +Type: String +Parameter Sets: DefaultParameterSet +Aliases: SpatialAnchorsAccountName, AccountName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Return object if specified. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -ResourceGroupName +Resource Group Name. + +```yaml +Type: String +Parameter Sets: DefaultParameterSet +Aliases: ResourceGroup + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceId +Resource ID of Spatial Anchors Account. + +```yaml +Type: String +Parameter Sets: ResourceIdParameterSet +Aliases: Id + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. +For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### System.String + +### Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.PSSpatialAnchorsAccount + +### System.Management.Automation.SwitchParameter + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/MixedReality/documentation/current-breaking-changes.md b/src/MixedReality/documentation/current-breaking-changes.md new file mode 100644 index 000000000000..296d9c35a10a --- /dev/null +++ b/src/MixedReality/documentation/current-breaking-changes.md @@ -0,0 +1,41 @@ + + +## Current Breaking Changes diff --git a/src/MixedReality/documentation/upcoming-breaking-changes.md b/src/MixedReality/documentation/upcoming-breaking-changes.md new file mode 100644 index 000000000000..e01c405de7a3 --- /dev/null +++ b/src/MixedReality/documentation/upcoming-breaking-changes.md @@ -0,0 +1,28 @@ + + +# Upcoming Breaking Changes \ No newline at end of file diff --git a/tools/StaticAnalysis/Exceptions/Az.MixedReality/AssemblyVersionConflict.csv b/tools/StaticAnalysis/Exceptions/Az.MixedReality/AssemblyVersionConflict.csv new file mode 100644 index 000000000000..e3589fd941ae --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.MixedReality/AssemblyVersionConflict.csv @@ -0,0 +1 @@ +"Directory","AssemblyName","Expected Version","Actual Version","Parent Assembly","Severity","ProblemId","Description","Remediation" diff --git a/tools/StaticAnalysis/Exceptions/Az.MixedReality/BreakingChangeIssues.csv b/tools/StaticAnalysis/Exceptions/Az.MixedReality/BreakingChangeIssues.csv new file mode 100644 index 000000000000..e4d070d56bbd --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.MixedReality/BreakingChangeIssues.csv @@ -0,0 +1 @@ +"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation" diff --git a/tools/StaticAnalysis/Exceptions/Az.MixedReality/ExtraAssemblies.csv b/tools/StaticAnalysis/Exceptions/Az.MixedReality/ExtraAssemblies.csv new file mode 100644 index 000000000000..81ab44d75dd0 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.MixedReality/ExtraAssemblies.csv @@ -0,0 +1 @@ +"Directory","AssemblyName","Severity","ProblemId","Description","Remediation" diff --git a/tools/StaticAnalysis/Exceptions/Az.MixedReality/HelpIssues.csv b/tools/StaticAnalysis/Exceptions/Az.MixedReality/HelpIssues.csv new file mode 100644 index 000000000000..c25a47bd1338 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.MixedReality/HelpIssues.csv @@ -0,0 +1 @@ +"Assembly","HelpFile","Target","Severity","ProblemId","Description","Remediation" diff --git a/tools/StaticAnalysis/Exceptions/Az.MixedReality/MissingAssemblies.csv b/tools/StaticAnalysis/Exceptions/Az.MixedReality/MissingAssemblies.csv new file mode 100644 index 000000000000..c8f74bb14ae2 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.MixedReality/MissingAssemblies.csv @@ -0,0 +1,3 @@ +"Directory","Assembly Name","Assembly Version","Referencing Assembly","Severity","ProblemId","Description","Remediation" +"c:\workspace\ps-pr\artifacts\Debug\Az.MixedReality","Microsoft.Win32.Registry","4.1.1.0","System.Management.Automation","0","3000","Missing assembly Microsoft.Win32.Registry referenced from System.Management.Automation","Ensure that the assembly is included in the Wix file or directory" +"c:\workspace\ps-pr\artifacts\Debug\Az.MixedReality","Microsoft.PowerShell.CoreCLR.Eventing","6.1.0.0","System.Management.Automation","0","3000","Missing assembly Microsoft.PowerShell.CoreCLR.Eventing referenced from System.Management.Automation","Ensure that the assembly is included in the Wix file or directory" diff --git a/tools/StaticAnalysis/Exceptions/Az.MixedReality/SignatureIssues.csv b/tools/StaticAnalysis/Exceptions/Az.MixedReality/SignatureIssues.csv new file mode 100644 index 000000000000..dc3cd270fe94 --- /dev/null +++ b/tools/StaticAnalysis/Exceptions/Az.MixedReality/SignatureIssues.csv @@ -0,0 +1,2 @@ +"AssemblyFileName","ClassName","Target","Severity","ProblemId","Description","Remediation" +"c:\workspace\ps-pr\artifacts\Debug\Az.MixedReality\Microsoft.Azure.PowerShell.Cmdlets.MixedReality.dll","Microsoft.Azure.Commands.MixedReality.SpatialAnchorsAccount.NewSpatialAnchorsAccountKey","New-AzSpatialAnchorsAccountKey","1","8510","Cmdlet 'New-AzSpatialAnchorsAccountKey' has multiple parameter sets, but no defined default parameter set.","Define a default parameter set in the cmdlet attribute." \ No newline at end of file