Skip to content

Commit dd9434f

Browse files
committed
Enabling Customer Initiated Log Collection
Enabling Customer Initiated Log Collection
1 parent b9aa587 commit dd9434f

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
@@ -1087,6 +1087,11 @@
10871087
"enableDiagnostics": {
10881088
"description": "Enables or Disables the diagnostic logs collection",
10891089
"type": "boolean"
1090+
},
1091+
"diagnosticStorageProperties": {
1092+
"description": "Customer initiated diagnostic log collection storage properties",
1093+
"type": "object",
1094+
"$ref": "#/definitions/DiagnosticStorageProperties"
10901095
}
10911096
}
10921097
}
@@ -1095,6 +1100,36 @@
10951100
"properties"
10961101
]
10971102
},
1103+
"DiagnosticStorageProperties": {
1104+
"description": "Customer-initiated diagnostic log collection storage properties",
1105+
"type": "object",
1106+
"properties": {
1107+
"authenticationType": {
1108+
"description": "Authentication Type",
1109+
"enum": [
1110+
"KeyBased"
1111+
],
1112+
"type": "string",
1113+
"readOnly": false,
1114+
"x-ms-enum": {
1115+
"name": "AuthenticationType",
1116+
"modelAsString": true
1117+
}
1118+
},
1119+
"connectionString": {
1120+
"description": "ConnectionString of the diagnostic storage account",
1121+
"type": "string"
1122+
},
1123+
"resourceId": {
1124+
"description": "ResourceId of the diagnostic storage account",
1125+
"type": "string"
1126+
}
1127+
},
1128+
"required": [
1129+
"authenticationType",
1130+
"resourceId"
1131+
]
1132+
},
10981133
"InstanceList": {
10991134
"description": "List of Instances.",
11001135
"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)