@@ -7,6 +7,8 @@ import { postProcessor as storageProcessor } from './processors/Microsoft.Storag
77import { postProcessor as computeProcessor } from './processors/Microsoft.Compute' ;
88import { postProcessor as policyProcessor } from './processors/Microsoft.Authorization' ;
99import { 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' ;
1012import { lowerCaseEquals } from './utils' ;
1113
1214// New providers are onboarded by default. The providers listed here are the only ones **not** onboarded.
@@ -16,26 +18,11 @@ const disabledProviders: AutoGenConfig[] = [
1618 namespace : 'Microsoft.Advisor' ,
1719 disabledForAutogen : true ,
1820 } ,
19- {
20- basePath : 'agrifood/resource-manager' ,
21- namespace : 'Microsoft.AgFoodPlatform' ,
22- disabledForAutogen : true ,
23- } ,
2421 {
2522 basePath : 'azure-kusto/resource-manager' ,
2623 namespace : 'Microsoft.Kusto' ,
2724 disabledForAutogen : true ,
2825 } ,
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- } ,
3926 {
4027 basePath : 'cloudshell/resource-manager' ,
4128 namespace : 'Microsoft.Portal' ,
@@ -46,92 +33,33 @@ const disabledProviders: AutoGenConfig[] = [
4633 namespace : 'Microsoft.ContainerService' ,
4734 disabledForAutogen : true ,
4835 } ,
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- } ,
6936 {
7037 // Disabled as the swagger spec contains a type ("DateTimeRfc1123") which autorest is unable to parse: https://github.com/Azure/autorest.azureresourceschema/issues/71
7138 basePath : 'domainservices/resource-manager' ,
7239 namespace : 'Microsoft.AAD' ,
7340 disabledForAutogen : true ,
7441 } ,
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- } ,
8542 {
8643 basePath : 'dns/resource-manager' ,
8744 namespace : 'Microsoft.Network' ,
8845 disabledForAutogen : true ,
8946 } ,
9047 {
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)
9649 basePath : 'edgeorderpartner/resource-manager' ,
9750 namespace : 'Microsoft.EdgeOrderPartner' ,
9851 disabledForAutogen : true ,
9952 } ,
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- } ,
11053 {
11154 basePath : 'logic/resource-manager' ,
11255 namespace : 'Microsoft.Logic' ,
11356 disabledForAutogen : true ,
11457 } ,
115- {
116- basePath : 'm365securityandcompliance/resource-manager' ,
117- namespace : 'Microsoft.M365SecurityAndCompliance' ,
118- disabledForAutogen : true ,
119- } ,
12058 {
12159 basePath : 'managedservices/resource-manager' ,
12260 namespace : 'Microsoft.ManagedServices' ,
12361 disabledForAutogen : true ,
12462 } ,
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- } ,
13563 {
13664 basePath : 'mediaservices/resource-manager' ,
13765 namespace : 'Microsoft.Media' ,
@@ -157,46 +85,11 @@ const disabledProviders: AutoGenConfig[] = [
15785 namespace : 'Microsoft.Network' ,
15886 disabledForAutogen : true ,
15987 } ,
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- } ,
18588 {
18689 basePath : 'service-map/resource-manager' ,
18790 namespace : 'Microsoft.OperationalInsights' ,
18891 disabledForAutogen : true ,
18992 } ,
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- } ,
20093 {
20194 basePath : 'trafficmanager/resource-manager' ,
20295 namespace : 'Microsoft.Network' ,
@@ -362,6 +255,25 @@ const autoGenList: AutoGenConfig[] = [
362255 } ,
363256 ] ,
364257 } ,
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+ } ,
365277 {
366278 basePath : 'customerlockbox/resource-manager' ,
367279 namespace : 'Microsoft.CustomerLockbox' ,
@@ -511,6 +423,20 @@ const autoGenList: AutoGenConfig[] = [
511423 basePath : 'iotspaces/resource-manager' ,
512424 namespace : 'Microsoft.IoTSpaces' ,
513425 } ,
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+ } ,
514440 {
515441 basePath : 'intune/resource-manager' ,
516442 namespace : 'Microsoft.Intune' ,
@@ -650,6 +576,25 @@ const autoGenList: AutoGenConfig[] = [
650576 basePath : 'powerbiembedded/resource-manager' ,
651577 namespace : 'Microsoft.PowerBI' ,
652578 } ,
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+ } ,
653598 {
654599 basePath : 'redhatopenshift/resource-manager' ,
655600 namespace : 'Microsoft.RedHatOpenShift' ,
@@ -689,6 +634,10 @@ const autoGenList: AutoGenConfig[] = [
689634 type : 'policyExemptions' ,
690635 scopes : ScopeType . ManagementGroup | ScopeType . Subcription | ScopeType . ResourceGroup | ScopeType . Extension ,
691636 } ,
637+ {
638+ type : 'policyPricings' ,
639+ scopes : ScopeType . ManagementGroup | ScopeType . Subcription ,
640+ } ,
692641 {
693642 type : 'locks' ,
694643 scopes : ScopeType . Subcription | ScopeType . ResourceGroup | ScopeType . Extension ,
0 commit comments