Skip to content

Commit 9ede12c

Browse files
hareeshghkHareesh Kumar Gajulapalli
andauthored
Datasync UAMI support API in 2025-02-01-preview (#35876)
* Datasync UAMI support API in 2025-02-01-preview * Updated json to fix validation failure * Spell, lint fix * Fix error message * Updating error codes --------- Co-authored-by: Hareesh Kumar Gajulapalli <[email protected]>
1 parent dab6566 commit 9ede12c

21 files changed

+732
-27
lines changed

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/SyncAgents.json

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/SyncGroups.json

Lines changed: 84 additions & 12 deletions
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/SyncMembers.json

Lines changed: 80 additions & 8 deletions
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/examples/SyncGroupCreate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,25 @@
77
"syncGroupName": "syncgroupcrud-3187",
88
"api-version": "2025-02-01-preview",
99
"parameters": {
10+
"identity": {
11+
"type": "None"
12+
},
1013
"properties": {
1114
"interval": -1,
1215
"conflictResolutionPolicy": "HubWin",
1316
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
1417
"hubDatabaseUserName": "hubUser",
18+
"hubDatabasePassword": "password",
1519
"usePrivateLinkConnection": true
1620
}
1721
}
1822
},
1923
"responses": {
2024
"200": {
2125
"body": {
26+
"identity": {
27+
"type": "None"
28+
},
2229
"properties": {
2330
"interval": -1,
2431
"lastSyncTime": "0001-01-01T08:00:00Z",
@@ -36,6 +43,9 @@
3643
},
3744
"201": {
3845
"body": {
46+
"identity": {
47+
"type": "None"
48+
},
3949
"properties": {
4050
"interval": -1,
4151
"lastSyncTime": "0001-01-01T08:00:00Z",
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "syncgroupcrud-65440",
5+
"serverName": "syncgroupcrud-8475",
6+
"databaseName": "syncgroupcrud-4328",
7+
"syncGroupName": "syncgroupcrud-3187",
8+
"api-version": "2025-02-01-preview",
9+
"parameters": {
10+
"identity": {
11+
"type": "UserAssigned",
12+
"userAssignedIdentities": {
13+
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi": {}
14+
}
15+
},
16+
"properties": {
17+
"interval": -1,
18+
"conflictResolutionPolicy": "HubWin",
19+
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
20+
"usePrivateLinkConnection": false
21+
}
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"identity": {
28+
"type": "UserAssigned",
29+
"userAssignedIdentities": {
30+
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi": {
31+
"clientId": "0c29d9b7-0ae2-4014-96ea-faf8e0cf2bc7",
32+
"principalId": "0c29d9b7-0ae2-4014-96ea-faf8e0cf2bc7"
33+
}
34+
}
35+
},
36+
"properties": {
37+
"interval": -1,
38+
"lastSyncTime": "0001-01-01T08:00:00Z",
39+
"conflictResolutionPolicy": "HubWin",
40+
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
41+
"syncState": "NotReady",
42+
"usePrivateLinkConnection": false
43+
},
44+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
45+
"name": "syncgroupcrud-3187",
46+
"type": "Microsoft.Sql/servers/databases/syncGroups"
47+
}
48+
},
49+
"201": {
50+
"body": {
51+
"identity": {
52+
"type": "UserAssigned",
53+
"userAssignedIdentities": {
54+
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi": {
55+
"clientId": "0c29d9b7-0ae2-4014-96ea-faf8e0cf2bc7",
56+
"principalId": "0c29d9b7-0ae2-4014-96ea-faf8e0cf2bc7"
57+
}
58+
}
59+
},
60+
"properties": {
61+
"interval": -1,
62+
"lastSyncTime": "0001-01-01T08:00:00Z",
63+
"conflictResolutionPolicy": "HubWin",
64+
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
65+
"syncState": "NotReady",
66+
"usePrivateLinkConnection": false
67+
},
68+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
69+
"name": "syncgroupcrud-3187",
70+
"type": "Microsoft.Sql/servers/databases/syncGroups"
71+
}
72+
},
73+
"202": {}
74+
}
75+
}

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/examples/SyncGroupGet.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"responses": {
1111
"200": {
1212
"body": {
13+
"identity": {
14+
"type": "None"
15+
},
1316
"properties": {
1417
"interval": -1,
1518
"lastSyncTime": "0001-01-01T08:00:00Z",
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "syncgroupcrud-65440",
5+
"serverName": "syncgroupcrud-8475",
6+
"databaseName": "syncgroupcrud-4328",
7+
"syncGroupName": "syncgroupcrud-3187",
8+
"api-version": "2025-02-01-preview"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"identity": {
14+
"type": "UserAssigned",
15+
"userAssignedIdentities": {
16+
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi": {
17+
"clientId": "0c29d9b7-0ae2-4014-96ea-faf8e0cf2bc7",
18+
"principalId": "0c29d9b7-0ae2-4014-96ea-faf8e0cf2bc7"
19+
}
20+
}
21+
},
22+
"properties": {
23+
"interval": -1,
24+
"lastSyncTime": "0001-01-01T08:00:00Z",
25+
"conflictResolutionPolicy": "HubWin",
26+
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
27+
"syncState": "NotReady",
28+
"usePrivateLinkConnection": true,
29+
"privateEndpointName": "PE_67FDBBD6-B2D8-4014-9CC6-C68ABBCFD481_syncgroupcrud-3187"
30+
},
31+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
32+
"name": "syncgroupcrud-3187",
33+
"type": "Microsoft.Sql/servers/databases/syncGroups"
34+
}
35+
}
36+
}
37+
}

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/examples/SyncGroupListByDatabase.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
"body": {
1212
"value": [
1313
{
14+
"identity": {
15+
"type": "None"
16+
},
1417
"properties": {
1518
"interval": -1,
1619
"lastSyncTime": "0001-01-01T08:00:00Z",
@@ -26,12 +29,20 @@
2629
"type": "Microsoft.Sql/servers/databases/syncGroups"
2730
},
2831
{
32+
"identity": {
33+
"type": "UserAssigned",
34+
"userAssignedIdentities": {
35+
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi": {
36+
"clientId": "0c29d9b7-0ae2-4014-96ea-faf8e0cf2bc7",
37+
"principalId": "0c29d9b7-0ae2-4014-96ea-faf8e0cf2bc7"
38+
}
39+
}
40+
},
2941
"properties": {
3042
"interval": -1,
3143
"lastSyncTime": "0001-01-01T08:00:00Z",
3244
"conflictResolutionPolicy": "HubWin",
3345
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
34-
"hubDatabaseUserName": "hubUser",
3546
"syncState": "NotReady",
3647
"usePrivateLinkConnection": true,
3748
"privateEndpointName": "PE_67FDBBD6-B2D8-4014-9CC6-C68ABBCFD481_syncgroupcrud-5374"

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/examples/SyncGroupPatch.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"syncGroupName": "syncgroupcrud-3187",
88
"api-version": "2025-02-01-preview",
99
"parameters": {
10+
"identity": {
11+
"type": "None"
12+
},
1013
"properties": {
1114
"interval": -1,
1215
"conflictResolutionPolicy": "HubWin",
@@ -20,6 +23,9 @@
2023
"responses": {
2124
"200": {
2225
"body": {
26+
"identity": {
27+
"type": "None"
28+
},
2329
"properties": {
2430
"interval": -1,
2531
"lastSyncTime": "0001-01-01T08:00:00Z",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "syncgroupcrud-65440",
5+
"serverName": "syncgroupcrud-8475",
6+
"databaseName": "syncgroupcrud-4328",
7+
"syncGroupName": "syncgroupcrud-3187",
8+
"api-version": "2025-02-01-preview",
9+
"parameters": {
10+
"identity": {
11+
"type": "UserAssigned",
12+
"userAssignedIdentities": {
13+
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi": null,
14+
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi-2": {}
15+
}
16+
},
17+
"properties": {
18+
"interval": -1,
19+
"conflictResolutionPolicy": "HubWin",
20+
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
21+
"usePrivateLinkConnection": false
22+
}
23+
}
24+
},
25+
"responses": {
26+
"200": {
27+
"body": {
28+
"identity": {
29+
"type": "UserAssigned",
30+
"userAssignedIdentities": {
31+
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/test-umi-2": {
32+
"clientId": "e09c8507-0000-0000-97e2-18c5beec59dc",
33+
"principalId": "e09c8507-0000-0000-97e2-18c5beec59dc"
34+
}
35+
}
36+
},
37+
"properties": {
38+
"interval": -1,
39+
"lastSyncTime": "0001-01-01T08:00:00Z",
40+
"conflictResolutionPolicy": "HubWin",
41+
"syncDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328",
42+
"syncState": "NotReady",
43+
"usePrivateLinkConnection": false
44+
},
45+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/syncgroupcrud-3521/providers/Microsoft.Sql/servers/syncgroupcrud-8475/databases/syncgroupcrud-4328/syncGroups/syncgroupcrud-3187",
46+
"name": "syncgroup",
47+
"type": "Microsoft.Sql/servers/databases/syncGroups"
48+
}
49+
},
50+
"202": {
51+
"headers": {
52+
"Location": "https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/westus/operation/00000000-1111-2222-3333-444444444444?api-version=2022-11-01-preview"
53+
}
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)