@@ -7,6 +7,8 @@ import { postProcessor as storageProcessor } from './processors/Microsoft.Storag
7
7
import { postProcessor as computeProcessor } from './processors/Microsoft.Compute' ;
8
8
import { postProcessor as policyProcessor } from './processors/Microsoft.Authorization' ;
9
9
import { postProcessor as securityInsightsPostProcessor } from './processors/Microsoft.SecurityInsights' ;
10
+ import { postProcessor as costManagementPostProcessor } from './processors/Microsoft.CostManagement' ;
11
+ import { postProcessor as providerHubPostProcessor } from './processors/Microsoft.ProviderHub' ;
10
12
import { lowerCaseEquals } from './utils' ;
11
13
12
14
// New providers are onboarded by default. The providers listed here are the only ones **not** onboarded.
@@ -16,26 +18,11 @@ const disabledProviders: AutoGenConfig[] = [
16
18
namespace : 'Microsoft.Advisor' ,
17
19
disabledForAutogen : true ,
18
20
} ,
19
- {
20
- basePath : 'agrifood/resource-manager' ,
21
- namespace : 'Microsoft.AgFoodPlatform' ,
22
- disabledForAutogen : true ,
23
- } ,
24
21
{
25
22
basePath : 'azure-kusto/resource-manager' ,
26
23
namespace : 'Microsoft.Kusto' ,
27
24
disabledForAutogen : true ,
28
25
} ,
29
- {
30
- basePath : 'azurestackhci/resource-manager' ,
31
- namespace : 'Microsoft.AzureStackHCI' ,
32
- disabledForAutogen : true ,
33
- } ,
34
- {
35
- basePath : 'baremetalinfrastructure/resource-manager' ,
36
- namespace : 'Microsoft.BareMetalInfrastructure' ,
37
- disabledForAutogen : true ,
38
- } ,
39
26
{
40
27
basePath : 'cloudshell/resource-manager' ,
41
28
namespace : 'Microsoft.Portal' ,
@@ -46,92 +33,33 @@ const disabledProviders: AutoGenConfig[] = [
46
33
namespace : 'Microsoft.ContainerService' ,
47
34
disabledForAutogen : true ,
48
35
} ,
49
- {
50
- basePath : 'confidentialledger/resource-manager' ,
51
- namespace : 'Microsoft.ConfidentialLedger' ,
52
- disabledForAutogen : true ,
53
- } ,
54
- {
55
- basePath : 'cost-management/resource-manager' ,
56
- namespace : 'Microsoft.CostManagement' ,
57
- disabledForAutogen : true ,
58
- } ,
59
- {
60
- basePath : 'cpim/resource-manager' ,
61
- namespace : 'Microsoft.AzureActiveDirectory' ,
62
- disabledForAutogen : true ,
63
- } ,
64
- {
65
- basePath : 'dataprotection/resource-manager' ,
66
- namespace : 'Microsoft.DataProtection' ,
67
- disabledForAutogen : true ,
68
- } ,
69
36
{
70
37
// Disabled as the swagger spec contains a type ("DateTimeRfc1123") which autorest is unable to parse: https://github.com/Azure/autorest.azureresourceschema/issues/71
71
38
basePath : 'domainservices/resource-manager' ,
72
39
namespace : 'Microsoft.AAD' ,
73
40
disabledForAutogen : true ,
74
41
} ,
75
- {
76
- basePath : 'dfp/resource-manager' ,
77
- namespace : 'Microsoft.Dynamics365Fraudprotection' ,
78
- disabledForAutogen : true ,
79
- } ,
80
- {
81
- basePath : 'dnc/resource-manager' ,
82
- namespace : 'Microsoft.DelegatedNetwork' ,
83
- disabledForAutogen : true ,
84
- } ,
85
42
{
86
43
basePath : 'dns/resource-manager' ,
87
44
namespace : 'Microsoft.Network' ,
88
45
disabledForAutogen : true ,
89
46
} ,
90
47
{
91
- basePath : 'edgeorder/resource-manager' ,
92
- namespace : 'Microsoft.EdgeOrder' ,
93
- disabledForAutogen : true ,
94
- } ,
95
- {
48
+ // Disabled as the swagger spec contains a bug (enum mismatch)
96
49
basePath : 'edgeorderpartner/resource-manager' ,
97
50
namespace : 'Microsoft.EdgeOrderPartner' ,
98
51
disabledForAutogen : true ,
99
52
} ,
100
- {
101
- basePath : 'fluidrelay/resource-manager' ,
102
- namespace : 'Microsoft.FluidRelay' ,
103
- disabledForAutogen : true ,
104
- } ,
105
- {
106
- basePath : 'iotsecurity/resource-manager' ,
107
- namespace : 'Microsoft.IoTSecurity' ,
108
- disabledForAutogen : true ,
109
- } ,
110
53
{
111
54
basePath : 'logic/resource-manager' ,
112
55
namespace : 'Microsoft.Logic' ,
113
56
disabledForAutogen : true ,
114
57
} ,
115
- {
116
- basePath : 'm365securityandcompliance/resource-manager' ,
117
- namespace : 'Microsoft.M365SecurityAndCompliance' ,
118
- disabledForAutogen : true ,
119
- } ,
120
58
{
121
59
basePath : 'managedservices/resource-manager' ,
122
60
namespace : 'Microsoft.ManagedServices' ,
123
61
disabledForAutogen : true ,
124
62
} ,
125
- {
126
- basePath : 'marketplacenotifications/resource-manager' ,
127
- namespace : 'Microsoft.MarketplaceNotifications' ,
128
- disabledForAutogen : true ,
129
- } ,
130
- {
131
- basePath : 'marketplaceordering/resource-manager' ,
132
- namespace : 'Microsoft.MarketplaceOrdering' ,
133
- disabledForAutogen : true ,
134
- } ,
135
63
{
136
64
basePath : 'mediaservices/resource-manager' ,
137
65
namespace : 'Microsoft.Media' ,
@@ -157,46 +85,11 @@ const disabledProviders: AutoGenConfig[] = [
157
85
namespace : 'Microsoft.Network' ,
158
86
disabledForAutogen : true ,
159
87
} ,
160
- {
161
- basePath : 'providerhub/resource-manager' ,
162
- namespace : 'Microsoft.ProviderHub' ,
163
- disabledForAutogen : true ,
164
- } ,
165
- {
166
- basePath : 'quota/resource-manager' ,
167
- namespace : 'Microsoft.Quota' ,
168
- disabledForAutogen : true ,
169
- } ,
170
- {
171
- basePath : 'resources/resource-manager' ,
172
- namespace : 'Microsoft.Features' ,
173
- disabledForAutogen : true ,
174
- } ,
175
- {
176
- basePath : 'resources/resource-manager' ,
177
- namespace : 'Microsoft.Solutions' ,
178
- disabledForAutogen : true ,
179
- } ,
180
- {
181
- basePath : 'securityandcompliance/resource-manager' ,
182
- namespace : 'Microsoft.SecurityAndCompliance' ,
183
- disabledForAutogen : true ,
184
- } ,
185
88
{
186
89
basePath : 'service-map/resource-manager' ,
187
90
namespace : 'Microsoft.OperationalInsights' ,
188
91
disabledForAutogen : true ,
189
92
} ,
190
- {
191
- basePath : 'servicefabricmanagedclusters/resource-manager' ,
192
- namespace : 'Microsoft.ServiceFabricManagedClusters' ,
193
- disabledForAutogen : true ,
194
- } ,
195
- {
196
- basePath : 'testbase/resource-manager' ,
197
- namespace : 'Microsoft.TestBase' ,
198
- disabledForAutogen : true ,
199
- } ,
200
93
{
201
94
basePath : 'trafficmanager/resource-manager' ,
202
95
namespace : 'Microsoft.Network' ,
@@ -362,6 +255,25 @@ const autoGenList: AutoGenConfig[] = [
362
255
} ,
363
256
] ,
364
257
} ,
258
+ {
259
+ basePath : 'cost-management/resource-manager' ,
260
+ namespace : 'Microsoft.CostManagement' ,
261
+ resourceConfig : [
262
+ {
263
+ type : 'exports' ,
264
+ scopes : ScopeType . ManagementGroup | ScopeType . Subcription | ScopeType . ResourceGroup ,
265
+ } ,
266
+ {
267
+ type : 'budgets' ,
268
+ scopes : ScopeType . ManagementGroup | ScopeType . Subcription | ScopeType . ResourceGroup | ScopeType . Extension ,
269
+ } ,
270
+ {
271
+ type : 'views' ,
272
+ scopes : ScopeType . Tenant | ScopeType . ManagementGroup | ScopeType . Subcription | ScopeType . ResourceGroup | ScopeType . Extension ,
273
+ } ,
274
+ ] ,
275
+ postProcessor : costManagementPostProcessor ,
276
+ } ,
365
277
{
366
278
basePath : 'customerlockbox/resource-manager' ,
367
279
namespace : 'Microsoft.CustomerLockbox' ,
@@ -511,6 +423,20 @@ const autoGenList: AutoGenConfig[] = [
511
423
basePath : 'iotspaces/resource-manager' ,
512
424
namespace : 'Microsoft.IoTSpaces' ,
513
425
} ,
426
+ {
427
+ basePath : 'iotsecurity/resource-manager' ,
428
+ namespace : 'Microsoft.IoTSecurity' ,
429
+ resourceConfig : [
430
+ {
431
+ type : 'sensors' ,
432
+ scopes : ScopeType . Extension ,
433
+ } ,
434
+ {
435
+ type : 'sites' ,
436
+ scopes : ScopeType . Extension ,
437
+ }
438
+ ]
439
+ } ,
514
440
{
515
441
basePath : 'intune/resource-manager' ,
516
442
namespace : 'Microsoft.Intune' ,
@@ -650,6 +576,25 @@ const autoGenList: AutoGenConfig[] = [
650
576
basePath : 'powerbiembedded/resource-manager' ,
651
577
namespace : 'Microsoft.PowerBI' ,
652
578
} ,
579
+ {
580
+ basePath : 'providerhub/resource-manager' ,
581
+ namespace : 'Microsoft.ProviderHub' ,
582
+ postProcessor : providerHubPostProcessor
583
+ } ,
584
+ {
585
+ basePath : 'quota/resource-manager' ,
586
+ namespace : 'Microsoft.Quota' ,
587
+ resourceConfig : [
588
+ {
589
+ type : 'quotaLimits' ,
590
+ scopes : ScopeType . Extension ,
591
+ } ,
592
+ {
593
+ type : 'quotas' ,
594
+ scopes : ScopeType . Extension ,
595
+ } ,
596
+ ] ,
597
+ } ,
653
598
{
654
599
basePath : 'redhatopenshift/resource-manager' ,
655
600
namespace : 'Microsoft.RedHatOpenShift' ,
@@ -689,6 +634,10 @@ const autoGenList: AutoGenConfig[] = [
689
634
type : 'policyExemptions' ,
690
635
scopes : ScopeType . ManagementGroup | ScopeType . Subcription | ScopeType . ResourceGroup | ScopeType . Extension ,
691
636
} ,
637
+ {
638
+ type : 'policyPricings' ,
639
+ scopes : ScopeType . ManagementGroup | ScopeType . Subcription ,
640
+ } ,
692
641
{
693
642
type : 'locks' ,
694
643
scopes : ScopeType . Subcription | ScopeType . ResourceGroup | ScopeType . Extension ,
0 commit comments