remove subdomain check for idempotent

This commit is contained in:
Teng Lu 2019-11-25 09:37:18 -08:00
Родитель 5422bbf496
Коммит 3d4f28a53c
1 изменённых файлов: 0 добавлений и 9 удалений

Просмотреть файл

@ -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<string, string> GetTags()
{
if (this.Tag != null)