remove subdomain check for idempotent
This commit is contained in:
Родитель
5422bbf496
Коммит
3d4f28a53c
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче