Skip to content

Commit 77650ab

Browse files
Merge pull request #1466 from Azure/onboard_insights
Onboard Microsoft.Insights for autogeneration
2 parents 7355904 + c550896 commit 77650ab

File tree

53 files changed

+7247
-3700
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+7247
-3700
lines changed

generator/autogenlist.ts

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,30 @@ const autogenlist: AutogenlistConfig[] = [
658658
{
659659
basePath: 'powerplatform/resource-manager',
660660
namespace: 'Microsoft.PowerPlatform',
661-
}
661+
},
662+
{
663+
basePath: 'monitor/resource-manager',
664+
namespace: 'Microsoft.Insights',
665+
resourceConfig: [
666+
{
667+
type: 'diagnosticSettings',
668+
scopes: ScopeType.Subcription | ScopeType.Extension,
669+
},
670+
{
671+
type: 'guestDiagnosticSettingsAssociation',
672+
scopes: ScopeType.Extension,
673+
},
674+
{
675+
type: 'dataCollectionRuleAssociations',
676+
scopes: ScopeType.Extension,
677+
},
678+
],
679+
},
680+
{
681+
basePath: 'applicationinsights/resource-manager',
682+
namespace: 'Microsoft.Insights',
683+
suffix: 'Application',
684+
},
662685
];
663686

664687
export function getAutogenlist(): AutogenlistConfig[] {

generator/cmd/listresources.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async function getResourceInfo(schemaRef: string) {
7272
schema = schema[pathElement];
7373
}
7474

75-
if (!schema['properties'] || !schema['properties']['type'] || !schema['properties']['type']['enum'] || !schema['properties']['apiVersion'] || !schema['properties']['apiVersion']['enum']) {
75+
if (!schema?.properties?.type?.enum || !schema?.properties?.apiVersion?.enum) {
7676
throw new Error(`Unable to find expected properties for ${schemaRef}`)
7777
}
7878

generator/resources.json

Lines changed: 65 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,36 +2293,35 @@
22932293
"2016-11-01",
22942294
"2020-08-01"
22952295
],
2296-
"Microsoft.Insights/ProactiveDetectionConfigs": [
2297-
"2018-05-01-preview"
2298-
],
2299-
"Microsoft.Insights/actionGroups": [
2300-
"2017-03-01-preview",
2301-
"2017-04-01",
2302-
"2018-03-01",
2303-
"2019-03-01"
2304-
],
2305-
"Microsoft.Insights/activityLogAlerts": [
2306-
"2017-03-01-preview",
2307-
"2017-04-01"
2308-
],
23092296
"Microsoft.Insights/alertrules": [
23102297
"2014-04-01",
23112298
"2016-03-01"
23122299
],
23132300
"Microsoft.Insights/autoscalesettings": [
2314-
"2014-04-01"
2301+
"2014-04-01",
2302+
"2015-04-01"
23152303
],
23162304
"Microsoft.Insights/components": [
23172305
"2014-04-01",
2306+
"2015-05-01",
2307+
"2018-05-01-preview",
2308+
"2020-02-02-preview"
2309+
],
2310+
"Microsoft.Insights/components/Annotations": [
2311+
"2015-05-01"
2312+
],
2313+
"Microsoft.Insights/components/ProactiveDetectionConfigs": [
23182314
"2015-05-01",
23192315
"2018-05-01-preview"
23202316
],
2321-
"Microsoft.Insights/components/pricingPlans": [
2322-
"2017-10-01"
2317+
"Microsoft.Insights/components/currentbillingfeatures": [
2318+
"2015-05-01"
23232319
],
2324-
"Microsoft.Insights/dataCollectionRuleAssociations": [
2325-
"2019-11-01-preview"
2320+
"Microsoft.Insights/components/exportconfiguration": [
2321+
"2015-05-01"
2322+
],
2323+
"Microsoft.Insights/components/favorites": [
2324+
"2015-05-01"
23262325
],
23272326
"Microsoft.Insights/dataCollectionRules": [
23282327
"2019-11-01-preview"
@@ -2339,9 +2338,6 @@
23392338
"Microsoft.Insights/privateLinkScopes/scopedResources": [
23402339
"2019-10-17-preview"
23412340
],
2342-
"Microsoft.Insights/scheduledQueryRules": [
2343-
"2018-04-16"
2344-
],
23452341
"Microsoft.Insights/webtests": [
23462342
"2014-04-01",
23472343
"2015-05-01"
@@ -2719,6 +2715,15 @@
27192715
"Microsoft.Migrate/projects/groups/assessments": [
27202716
"2018-02-02"
27212717
],
2718+
"Microsoft.MixedReality/remoteRenderingAccounts": [
2719+
"2019-12-02-preview",
2720+
"2020-04-06-preview"
2721+
],
2722+
"Microsoft.MixedReality/spatialAnchorsAccounts": [
2723+
"2019-02-28-preview",
2724+
"2019-12-02-preview",
2725+
"2020-05-01"
2726+
],
27222727
"Microsoft.NetApp/netAppAccounts": [
27232728
"2017-08-15",
27242729
"2019-05-01",
@@ -5535,9 +5540,48 @@
55355540
"2019-03-01",
55365541
"2019-06-01"
55375542
],
5543+
"microsoft.insights/actionGroups": [
5544+
"2017-04-01",
5545+
"2018-03-01",
5546+
"2018-09-01",
5547+
"2019-03-01",
5548+
"2019-06-01"
5549+
],
5550+
"microsoft.insights/activityLogAlerts": [
5551+
"2017-03-01-preview",
5552+
"2017-04-01"
5553+
],
5554+
"microsoft.insights/components/analyticsItems": [
5555+
"2015-05-01"
5556+
],
5557+
"microsoft.insights/components/linkedStorageAccounts": [
5558+
"2020-03-01-preview"
5559+
],
5560+
"microsoft.insights/components/myanalyticsItems": [
5561+
"2015-05-01"
5562+
],
5563+
"microsoft.insights/components/pricingPlans": [
5564+
"2017-10-01"
5565+
],
5566+
"microsoft.insights/diagnosticSettings": [
5567+
"2015-07-01",
5568+
"2016-09-01",
5569+
"2017-05-01-preview",
5570+
"2020-01-01-preview"
5571+
],
5572+
"microsoft.insights/guestDiagnosticSettings": [
5573+
"2018-06-01-preview"
5574+
],
5575+
"microsoft.insights/logprofiles": [
5576+
"2016-03-01"
5577+
],
55385578
"microsoft.insights/privateLinkScopes": [
55395579
"2019-10-17-preview"
55405580
],
5581+
"microsoft.insights/scheduledQueryRules": [
5582+
"2018-04-16",
5583+
"2020-05-01-preview"
5584+
],
55415585
"microsoft.insights/workbooks": [
55425586
"2015-05-01",
55435587
"2018-06-17-preview"

0 commit comments

Comments
 (0)