Skip to content

Commit a185582

Browse files
sureleoshul-msft
authored andcommitted
Changing AD structure so the secret can be created properly (Azure#18507)
* Changing AD structure so the secret can be created properly * update examples * prettier fix * Adding descriptions Co-authored-by: Shuo Li <[email protected]>
1 parent 7366db6 commit a185582

File tree

6 files changed

+59
-8
lines changed

6 files changed

+59
-8
lines changed

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2022-03-01-preview/examples/CreateOrUpdateSqlManagedInstance.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
"username": "username",
2727
"password": "********"
2828
},
29+
"activeDirectoryInformation": {
30+
"keytabInformation": {
31+
"keytab": "********"
32+
}
33+
},
2934
"licenseType": "LicenseIncluded",
3035
"clusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s",
3136
"extensionId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s/providers/Microsoft.KubernetesConfiguration/extensions/extension",
@@ -64,6 +69,9 @@
6469
"basicLoginInformation": {
6570
"username": "username"
6671
},
72+
"activeDirectoryInformation": {
73+
"keytabInformation": {}
74+
},
6775
"licenseType": "LicenseIncluded",
6876
"clusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s",
6977
"extensionId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s/providers/Microsoft.KubernetesConfiguration/extensions/extension",
@@ -125,6 +133,9 @@
125133
"basicLoginInformation": {
126134
"username": "username"
127135
},
136+
"activeDirectoryInformation": {
137+
"keytabInformation": {}
138+
},
128139
"licenseType": "LicenseIncluded",
129140
"clusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s",
130141
"extensionId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s/providers/Microsoft.KubernetesConfiguration/extensions/extension",

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2022-03-01-preview/examples/GetSqlManagedInstance.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"basicLoginInformation": {
1616
"username": "username"
1717
},
18+
"activeDirectoryInformation": {
19+
"keytabInformation": {}
20+
},
1821
"licenseType": "LicenseIncluded",
1922
"clusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s",
2023
"extensionId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s/providers/Microsoft.KubernetesConfiguration/extensions/extension",

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2022-03-01-preview/examples/ListByResourceGroupSqlManagedInstance.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
"basicLoginInformation": {
1717
"username": "username"
1818
},
19+
"activeDirectoryInformation": {
20+
"keytabInformation": {}
21+
},
1922
"licenseType": "LicenseIncluded",
2023
"k8sRaw": {
2124
"additionalProperty": 1234,
@@ -73,6 +76,9 @@
7376
"basicLoginInformation": {
7477
"username": "username"
7578
},
79+
"activeDirectoryInformation": {
80+
"keytabInformation": {}
81+
},
7682
"licenseType": "LicenseIncluded",
7783
"clusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s",
7884
"extensionId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s/providers/Microsoft.KubernetesConfiguration/extensions/extension",

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2022-03-01-preview/examples/ListSubscriptionSqlManagedInstance.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
"basicLoginInformation": {
1616
"username": "username"
1717
},
18+
"activeDirectoryInformation": {
19+
"keytabInformation": {}
20+
},
1821
"licenseType": "LicenseIncluded",
1922
"clusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s",
2023
"extensionId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s/providers/Microsoft.KubernetesConfiguration/extensions/extension",
@@ -74,6 +77,9 @@
7477
"basicLoginInformation": {
7578
"username": "username"
7679
},
80+
"activeDirectoryInformation": {
81+
"keytabInformation": {}
82+
},
7783
"licenseType": "LicenseIncluded",
7884
"clusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s",
7985
"extensionId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s/providers/Microsoft.KubernetesConfiguration/extensions/extension",

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2022-03-01-preview/examples/UpdateSqlManagedInstance.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"basicLoginInformation": {
2121
"username": "username"
2222
},
23+
"activeDirectoryInformation": {
24+
"keytabInformation": {}
25+
},
2326
"licenseType": "LicenseIncluded",
2427
"clusterId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s",
2528
"extensionId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Kubernetes/connectedClusters/connectedk8s/providers/Microsoft.KubernetesConfiguration/extensions/extension",

specification/azurearcdata/resource-manager/Microsoft.AzureArcData/preview/2022-03-01-preview/sqlManagedInstances.json

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,10 @@
123123
"readOnly": true,
124124
"description": "The provisioning state of the Arc-enabled SQL Managed Instance resource."
125125
},
126-
"keytab": {
127-
"type": "string",
128-
"description": "A base64-encoded keytab.",
129-
"x-ms-mutability": [
130-
"create",
131-
"update"
132-
],
133-
"x-ms-secret": true
126+
"activeDirectoryInformation": {
127+
"type": "object",
128+
"description": "Active Directory information related to this SQL Managed Instance.",
129+
"$ref": "#/definitions/ActiveDirectoryInformation"
134130
},
135131
"licenseType": {
136132
"type": "string",
@@ -245,6 +241,32 @@
245241
"type": "object"
246242
}
247243
},
244+
"KeytabInformation": {
245+
"type": "object",
246+
"description": "Keytab used for authenticate with Active Directory.",
247+
"properties": {
248+
"keytab": {
249+
"type": "string",
250+
"description": "A base64-encoded keytab.",
251+
"x-ms-mutability": [
252+
"create",
253+
"update"
254+
],
255+
"x-ms-secret": true
256+
}
257+
}
258+
},
259+
"ActiveDirectoryInformation": {
260+
"type": "object",
261+
"description": "Active Directory information that related to the resource.",
262+
"properties": {
263+
"keytabInformation": {
264+
"type": "object",
265+
"description": "Keytab information that is used for the Sql Managed Instance when Active Directory authentication is used.",
266+
"$ref": "#/definitions/KeytabInformation"
267+
}
268+
}
269+
},
248270
"SqlManagedInstanceListResult": {
249271
"description": "A list of SqlManagedInstance.",
250272
"type": "object",

0 commit comments

Comments
 (0)