diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/DatabaseExtensions.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/DatabaseExtensions.json index a9ba2a8c6b90..dad7d292cf13 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/DatabaseExtensions.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/DatabaseExtensions.json @@ -399,6 +399,7 @@ "storageAccountResourceId": { "description": "The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -406,6 +407,7 @@ "sqlServerResourceId": { "description": "The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/ManagedDatabases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/ManagedDatabases.json index bf26d2983c88..c476a5eb552e 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/ManagedDatabases.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/ManagedDatabases.json @@ -598,7 +598,8 @@ "properties": { "destinationManagedDatabaseId": { "description": "The destination managed database ID", - "type": "string" + "type": "string", + "format": "arm-id" } } }, @@ -706,6 +707,7 @@ "sourceDatabaseId": { "description": "The resource identifier of the source database associated with create operation of this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -713,6 +715,7 @@ "crossSubscriptionSourceDatabaseId": { "description": "The resource identifier of the cross-subscription source database associated with create operation of this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -720,6 +723,7 @@ "restorableDroppedDatabaseId": { "description": "The restorable dropped database resource id to restore when creating this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -727,6 +731,7 @@ "crossSubscriptionRestorableDroppedDatabaseId": { "description": "The restorable cross-subscription dropped database resource id to restore when creating this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -753,6 +758,7 @@ "recoverableDatabaseId": { "description": "The resource identifier of the recoverable database associated with create operation of this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -760,6 +766,7 @@ "longTermRetentionBackupResourceId": { "description": "The name of the Long Term Retention backup to be used for restore of this managed database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -804,7 +811,8 @@ "properties": { "destinationManagedDatabaseId": { "description": "The destination managed database ID", - "type": "string" + "type": "string", + "format": "arm-id" }, "operationMode": { "description": "The move operation mode.", diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/Servers.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/Servers.json index b21d9c3de914..8cf5e1a246f1 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/Servers.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/Servers.json @@ -697,6 +697,7 @@ "storageAccountResourceId": { "description": "The resource id for the storage account used to store BACPAC file. If set, private endpoint connection will be created for the storage account. Must match storage account used for StorageUri parameter.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -704,6 +705,7 @@ "sqlServerResourceId": { "description": "The resource id for the SQL server which is the target of this request. If set, private endpoint connection will be created for the SQL server. Must match server which is target of the operation.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -1026,7 +1028,7 @@ "readOnly": true }, "minimalTlsVersion": { - "description": "Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'", + "description": "Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'", "type": "string" }, "publicNetworkAccess": { @@ -1057,7 +1059,15 @@ }, "primaryUserAssignedIdentityId": { "description": "The resource id of a user assigned identity to be used by default.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ManagedIdentity/userAssignedIdentities" + } + ] + } }, "federatedClientId": { "format": "uuid", diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncAgents.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncAgents.json index fb238f105224..5c0468c3f547 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncAgents.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncAgents.json @@ -475,7 +475,8 @@ }, "syncDatabaseId": { "description": "ARM resource id of the sync database in the sync agent.", - "type": "string" + "type": "string", + "format": "arm-id" }, "lastAliveTime": { "format": "date-time", diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncGroups.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncGroups.json index 9aba6b989e46..52fff5bf9e75 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncGroups.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncGroups.json @@ -938,7 +938,8 @@ }, "syncDatabaseId": { "description": "ARM resource id of the sync database in the sync group.", - "type": "string" + "type": "string", + "format": "arm-id" }, "hubDatabaseUserName": { "description": "User name for the sync group hub database credential.", diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncMembers.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncMembers.json index 21b313cfccf4..643aea8c2c3f 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncMembers.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/SyncMembers.json @@ -638,7 +638,15 @@ }, "syncAgentId": { "description": "ARM resource id of the sync agent in the sync member.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Sql/servers/syncAgents" + } + ] + } }, "sqlServerDatabaseId": { "format": "uuid", @@ -647,7 +655,8 @@ }, "syncMemberAzureDatabaseResourceId": { "description": "ARM resource id of the sync member logical database, for sync members in Azure.", - "type": "string" + "type": "string", + "format": "arm-id" }, "usePrivateLinkConnection": { "description": "Whether to use private link connection.", diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseCancelMove.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseCancelMove.json index 3ac856aed06e..67eb968e255d 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseCancelMove.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseCancelMove.json @@ -6,7 +6,7 @@ "databaseName": "testDatabase", "api-version": "2022-11-01-preview", "parameters": { - "destinationManagedDatabaseId": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase" + "destinationManagedDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase" } }, "responses": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseCompleteMove.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseCompleteMove.json index 3ac856aed06e..67eb968e255d 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseCompleteMove.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseCompleteMove.json @@ -6,7 +6,7 @@ "databaseName": "testDatabase", "api-version": "2022-11-01-preview", "parameters": { - "destinationManagedDatabaseId": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase" + "destinationManagedDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase" } }, "responses": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseStartMoveMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseStartMoveMax.json index 3abfb0bc9e0c..7139bd21f6a9 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseStartMoveMax.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseStartMoveMax.json @@ -6,7 +6,7 @@ "databaseName": "testDatabase", "api-version": "2022-11-01-preview", "parameters": { - "destinationManagedDatabaseId": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase", + "destinationManagedDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase", "operationMode": "Copy" } }, diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseStartMoveMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseStartMoveMin.json index 3ac856aed06e..67eb968e255d 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseStartMoveMin.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/ManagedDatabaseStartMoveMin.json @@ -6,7 +6,7 @@ "databaseName": "testDatabase", "api-version": "2022-11-01-preview", "parameters": { - "destinationManagedDatabaseId": "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase" + "destinationManagedDatabaseId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/managedInstances/testInstanceTgt/databases/testDatabase" } }, "responses": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncAgentDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncAgentDelete.json index 4250eb88f1b2..11e0256bb204 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncAgentDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncAgentDelete.json @@ -8,7 +8,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "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" + } + }, "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupDelete.json index 59f6e2ce7155..e3211f05c031 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupDelete.json @@ -9,7 +9,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "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" + } + }, "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupPatch.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupPatch.json index 0e0f00daf10c..097af972cf52 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupPatch.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupPatch.json @@ -35,6 +35,10 @@ "type": "Microsoft.Sql/servers/databases/syncGroups" } }, - "202": {} + "202": { + "headers": { + "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" + } + } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupRefreshHubSchema.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupRefreshHubSchema.json index 83618f5220ba..d9de8274a651 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupRefreshHubSchema.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncGroupRefreshHubSchema.json @@ -9,6 +9,10 @@ }, "responses": { "200": {}, - "202": {} + "202": { + "headers": { + "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" + } + } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberDelete.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberDelete.json index b99bf2bcb935..3b663461d2b0 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberDelete.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberDelete.json @@ -10,7 +10,11 @@ }, "responses": { "200": {}, - "202": {}, + "202": { + "headers": { + "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" + } + }, "204": {} } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberPatch.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberPatch.json index cd46e5a65967..34bec5c8e0a2 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberPatch.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberPatch.json @@ -38,6 +38,10 @@ "type": "Microsoft.Sql/servers/databases/syncGroups/syncMembers" } }, - "202": {} + "202": { + "headers": { + "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" + } + } } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberRefreshSchema.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberRefreshSchema.json index 4ad1975b3fb2..51e44f216578 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberRefreshSchema.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-11-01-preview/examples/SyncMemberRefreshSchema.json @@ -10,6 +10,10 @@ }, "responses": { "200": {}, - "202": {} + "202": { + "headers": { + "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" + } + } } }