From 3d4f28a53c595c49baa1f8e8a0e3071997f31897 Mon Sep 17 00:00:00 2001 From: Teng Lu Date: Mon, 25 Nov 2019 09:37:18 -0800 Subject: [PATCH] remove subdomain check for idempotent --- .../IotCentral/IotCentral/NewAzureRmIotCentralApp.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/IotCentral/IotCentral/IotCentral/NewAzureRmIotCentralApp.cs b/src/IotCentral/IotCentral/IotCentral/NewAzureRmIotCentralApp.cs index 991b0222b0..52cbe0260b 100644 --- a/src/IotCentral/IotCentral/IotCentral/NewAzureRmIotCentralApp.cs +++ b/src/IotCentral/IotCentral/IotCentral/NewAzureRmIotCentralApp.cs @@ -84,8 +84,6 @@ namespace Microsoft.Azure.Commands.Management.IotCentral { if (ShouldProcess(Name, ResourceProperties.Resources.NewIotCentralApp)) { - this.EnsureNameAvailabilityOrThrow(); - var iotCentralApp = new App() { DisplayName = this.GetDisplayName(), @@ -103,13 +101,6 @@ namespace Microsoft.Azure.Commands.Management.IotCentral } - private void EnsureNameAvailabilityOrThrow() - { - var checkNameInputs = new OperationInputs(this.Name, resourceType); - var nameAvailabilityInfo = this.IotCentralClient.Apps.CheckNameAvailability(checkNameInputs); - IotCentralUtils.EnsureAvailabilityOrThrow(nameAvailabilityInfo); - } - private IDictionary GetTags() { if (this.Tag != null)