Skip to content

Commit f47f73a

Browse files
committed
Enabling Customer Initiated Log Collection
Enabling Customer Initiated Log Collection
1 parent e07d790 commit f47f73a

File tree

5 files changed

+69
-9
lines changed

5 files changed

+69
-9
lines changed

specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,11 @@
796796
"enableDiagnostics": {
797797
"description": "Enables or Disables the diagnostic logs collection",
798798
"type": "boolean"
799+
},
800+
"diagnosticStorageProperties": {
801+
"description": "Customer initiated diagnostic log collection storage properties",
802+
"type": "object",
803+
"$ref": "#/definitions/DiagnosticStorageProperties"
799804
}
800805
}
801806
}
@@ -804,6 +809,36 @@
804809
"properties"
805810
]
806811
},
812+
"DiagnosticStorageProperties": {
813+
"description": "Customer-initiated diagnostic log collection storage properties",
814+
"type": "object",
815+
"properties": {
816+
"authenticationType": {
817+
"description": "Authentication Type",
818+
"enum": [
819+
"KeyBased"
820+
],
821+
"type": "string",
822+
"readOnly": false,
823+
"x-ms-enum": {
824+
"name": "AuthenticationType",
825+
"modelAsString": true
826+
}
827+
},
828+
"connectionString": {
829+
"description": "ConnectionString of the diagnostic storage account",
830+
"type": "string"
831+
},
832+
"resourceId": {
833+
"description": "ResourceId of the diagnostic storage account",
834+
"type": "string"
835+
}
836+
},
837+
"required": [
838+
"authenticationType",
839+
"resourceId"
840+
]
841+
},
807842
"InstanceList": {
808843
"description": "List of Instances.",
809844
"type": "object",

specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Create.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
"eventHubConnectionString": "string"
1616
}
1717
],
18-
"enableDiagnostics": false
18+
"enableDiagnostics": false,
19+
"diagnosticStorageProperties": {
20+
"authenticationType": "KeyBased",
21+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount",
22+
"connectionString": "string"
23+
}
1924
}
2025
}
2126
},
@@ -35,8 +40,12 @@
3540
}
3641
],
3742
"enableDiagnostics": false
43+
},
44+
"diagnosticStorageProperties": {
45+
"authenticationType": "KeyBased",
46+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount"
3847
}
3948
}
4049
}
4150
}
42-
}
51+
}

specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Get.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@
2121
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
2222
}
2323
],
24-
"enableDiagnostics": false
24+
"enableDiagnostics": false,
25+
"diagnosticStorageProperties": {
26+
"authenticationType": "KeyBased",
27+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount"
28+
}
2529
}
2630
}
2731
}
2832
}
29-
}
33+
}

specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_ListByAccount.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@
2323
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
2424
}
2525
],
26-
"enableDiagnostics": false
26+
"enableDiagnostics": false,
27+
"diagnosticStorageProperties": {
28+
"authenticationType": "KeyBased",
29+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount"
30+
}
2731
}
2832
},
2933
{
@@ -39,11 +43,15 @@
3943
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/red-contoso-hub"
4044
}
4145
],
42-
"enableDiagnostics": false
46+
"enableDiagnostics": false,
47+
"diagnosticStorageProperties": {
48+
"authenticationType": "KeyBased",
49+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount"
50+
}
4351
}
4452
}
4553
]
4654
}
4755
}
4856
}
49-
}
57+
}

specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Update.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@
2525
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
2626
}
2727
],
28-
"enableDiagnostics": false
28+
"enableDiagnostics": false,
29+
"diagnosticStorageProperties": {
30+
"authenticationType": "KeyBased",
31+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/adu-resource-group/providers/Microsoft.Storage/storageAccounts/testAccount"
32+
}
2933
},
3034
"tags": {
3135
"tagKey": "tagValue"
3236
}
3337
}
3438
}
3539
}
36-
}
40+
}

0 commit comments

Comments
 (0)