File tree Expand file tree Collapse file tree 3 files changed +1
-25
lines changed
src/IotCentral/IotCentral Expand file tree Collapse file tree 3 files changed +1
-25
lines changed Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Upcoming Release
21
+ * Remove subdomain and resource name checks for create new IotCentral application, it will be handled by resource provider for idempotent
21
22
22
23
## Version 0.7.1
23
24
* Added subdomain parameter to Set-AzureRmIoTCentralApp for updating subdomain
Original file line number Diff line number Diff line change @@ -43,13 +43,5 @@ public static AppPatch CreateAppPatch(App iotCentralApp)
43
43
} ;
44
44
return copiedIotCenralApp ;
45
45
}
46
-
47
- public static void EnsureAvailabilityOrThrow ( AppAvailabilityInfo availabilityInfo )
48
- {
49
- if ( availabilityInfo . NameAvailable != true )
50
- {
51
- throw new PSArgumentException ( availabilityInfo . Message ) ;
52
- }
53
- }
54
46
}
55
47
}
Original file line number Diff line number Diff line change @@ -84,9 +84,6 @@ public override void ExecuteCmdlet()
84
84
{
85
85
if ( ShouldProcess ( Name , ResourceProperties . Resources . NewIotCentralApp ) )
86
86
{
87
- this . EnsureNameAvailabilityOrThrow ( ) ;
88
- this . EnsureSubdomainAvailabilityOrThrow ( ) ;
89
-
90
87
var iotCentralApp = new App ( )
91
88
{
92
89
DisplayName = this . GetDisplayName ( ) ,
@@ -104,20 +101,6 @@ public override void ExecuteCmdlet()
104
101
105
102
}
106
103
107
- private void EnsureNameAvailabilityOrThrow ( )
108
- {
109
- var checkNameInputs = new OperationInputs ( this . Name , resourceType ) ;
110
- var nameAvailabilityInfo = this . IotCentralClient . Apps . CheckNameAvailability ( checkNameInputs ) ;
111
- IotCentralUtils . EnsureAvailabilityOrThrow ( nameAvailabilityInfo ) ;
112
- }
113
-
114
- private void EnsureSubdomainAvailabilityOrThrow ( )
115
- {
116
- var checkSubdomainInputs = new OperationInputs ( this . Subdomain , resourceType ) ;
117
- var subdomainAvailabilityInfo = this . IotCentralClient . Apps . CheckSubdomainAvailability ( checkSubdomainInputs ) ;
118
- IotCentralUtils . EnsureAvailabilityOrThrow ( subdomainAvailabilityInfo ) ;
119
- }
120
-
121
104
private IDictionary < string , string > GetTags ( )
122
105
{
123
106
if ( this . Tag != null )
You can’t perform that action at this time.
0 commit comments