From defa916fc2160772b69ddb245a0ee2b0783b4cc1 Mon Sep 17 00:00:00 2001 From: Matthew Christopher Date: Tue, 14 Mar 2023 23:29:05 -0700 Subject: [PATCH] Update Microsoft.Sql ARM API with "format: arm-id" where appropriate and x-ms-secret where appropriate (#22677) * SQL ARM IDs * Secrets * Examples fix * Fix examples --- .../DatabaseExtensions.json | 2 + .../DatabaseSecurityAlertPolicies.json | 1 + .../DatabaseVulnerabilityAssessments.json | 2 + .../preview/2022-08-01-preview/Databases.json | 46 ++++++++++++++++++- .../2022-08-01-preview/FailoverGroups.json | 13 +++++- .../preview/2022-08-01-preview/JobAgents.json | 1 + .../2022-08-01-preview/ManagedDatabases.json | 12 ++++- .../2022-08-01-preview/ManagedInstances.json | 22 ++++++++- .../ServerSecurityAlertPolicies.json | 1 + .../ServerVulnerabilityAssessments.json | 2 + .../preview/2022-08-01-preview/Servers.json | 12 ++++- .../2022-08-01-preview/SyncAgents.json | 3 +- .../2022-08-01-preview/SyncGroups.json | 3 +- .../2022-08-01-preview/SyncMembers.json | 13 +++++- .../VirtualNetworkRules.json | 10 +++- .../DatabaseSecurityAlertCreateMax.json | 2 - .../DatabaseSecurityAlertCreateMin.json | 2 - .../examples/DatabaseSecurityAlertGet.json | 1 - .../DatabaseSecurityAlertListByDatabase.json | 1 - .../examples/ManagedDatabaseCancelMove.json | 2 +- .../examples/ManagedDatabaseCompleteMove.json | 2 +- .../examples/ManagedDatabaseStartMoveMax.json | 2 +- .../examples/ManagedDatabaseStartMoveMin.json | 2 +- .../ServerSecurityAlertsCreateMax.json | 1 - .../ServerSecurityAlertsCreateMin.json | 1 - .../examples/ServerSecurityAlertsGet.json | 1 - .../ServerSecurityAlertsListByServer.json | 1 - 27 files changed, 133 insertions(+), 28 deletions(-) diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseExtensions.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseExtensions.json index 77a4b480a03f..e30f820687cc 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseExtensions.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-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-08-01-preview/DatabaseSecurityAlertPolicies.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseSecurityAlertPolicies.json index 6ec084853ac1..1b08187f6a57 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseSecurityAlertPolicies.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseSecurityAlertPolicies.json @@ -298,6 +298,7 @@ }, "storageAccountAccessKey": { "description": "Specifies the identifier key of the Threat Detection audit storage account.", + "x-ms-secret": true, "type": "string" }, "retentionDays": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseVulnerabilityAssessments.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseVulnerabilityAssessments.json index 847b1252c07b..709bb4e90021 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseVulnerabilityAssessments.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/DatabaseVulnerabilityAssessments.json @@ -311,6 +311,7 @@ "storageContainerSasKey": { "description": "A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall", "type": "string", + "x-ms-secret": true, "x-ms-mutability": [ "create", "update" @@ -319,6 +320,7 @@ "storageAccountAccessKey": { "description": "Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall", "type": "string", + "x-ms-secret": true, "x-ms-mutability": [ "create", "update" diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/Databases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/Databases.json index 6d7e7bb0f53e..41ba0717c69e 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/Databases.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/Databases.json @@ -1029,11 +1029,20 @@ }, "elasticPoolId": { "description": "The resource identifier of the elastic pool containing this database.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Sql/servers/elasticPools" + } + ] + } }, "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" ] @@ -1124,6 +1133,7 @@ "recoveryServicesRecoveryPointId": { "description": "The resource identifier of the recovery point associated with create operation of this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -1131,6 +1141,14 @@ "longTermRetentionBackupResourceId": { "description": "The resource identifier of the long term retention backup associated with create operation of this database.", "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Sql/locations/longTermRetentionBackups" + } + ] + }, "x-ms-mutability": [ "create" ] @@ -1138,6 +1156,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" ] @@ -1145,6 +1164,7 @@ "restorableDroppedDatabaseId": { "description": "The resource identifier of the restorable dropped database associated with create operation of this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -1327,6 +1347,7 @@ "sourceResourceId": { "description": "The resource identifier of the source associated with the create operation of this database.\r\n\r\nThis property is only supported for DataWarehouse edition and allows to restore across subscriptions.\r\n\r\nWhen sourceResourceId is specified, sourceDatabaseId, recoverableDatabaseId, restorableDroppedDatabaseId and sourceDatabaseDeletionDate must not be specified and CreateMode must be PointInTimeRestore, Restore or Recover.\r\n\r\nWhen createMode is PointInTimeRestore, sourceResourceId must be the resource ID of the existing database or existing sql pool, and restorePointInTime must be specified.\r\n\r\nWhen createMode is Restore, sourceResourceId must be the resource ID of restorable dropped database or restorable dropped sql pool.\r\n\r\nWhen createMode is Recover, sourceResourceId must be the resource ID of recoverable database or recoverable sql pool.\r\n\r\nWhen source subscription belongs to a different tenant than target subscription, “x-ms-authorization-auxiliary” header must contain authentication token for the source tenant. For more details about “x-ms-authorization-auxiliary” header see https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/authenticate-multi-tenant ", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -1439,11 +1460,20 @@ }, "elasticPoolId": { "description": "The resource identifier of the elastic pool containing this database.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Sql/servers/elasticPools" + } + ] + } }, "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" ] @@ -1534,6 +1564,7 @@ "recoveryServicesRecoveryPointId": { "description": "The resource identifier of the recovery point associated with create operation of this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -1541,6 +1572,14 @@ "longTermRetentionBackupResourceId": { "description": "The resource identifier of the long term retention backup associated with create operation of this database.", "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Sql/locations/longTermRetentionBackups" + } + ] + }, "x-ms-mutability": [ "create" ] @@ -1555,6 +1594,7 @@ "restorableDroppedDatabaseId": { "description": "The resource identifier of the restorable dropped database associated with create operation of this database.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -1987,6 +2027,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" ] @@ -1994,6 +2035,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-08-01-preview/FailoverGroups.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/FailoverGroups.json index 0d5022bf1599..b880f6cdd096 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/FailoverGroups.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/FailoverGroups.json @@ -498,7 +498,15 @@ "description": "List of databases in the failover group.", "type": "array", "items": { - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Sql/servers/databases" + } + ] + } } } } @@ -595,7 +603,8 @@ "properties": { "id": { "description": "Resource identifier of the partner server.", - "type": "string" + "type": "string", + "format": "arm-id" }, "location": { "description": "Geo location of the partner server.", diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/JobAgents.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/JobAgents.json index eac2fdbbedb9..ece4ed71e0b4 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/JobAgents.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/JobAgents.json @@ -326,6 +326,7 @@ "databaseId": { "description": "Resource ID of the database to store job metadata in.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "read", "create" diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ManagedDatabases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ManagedDatabases.json index bee520150f57..2d85148982b1 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ManagedDatabases.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-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-08-01-preview/ManagedInstances.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ManagedInstances.json index e6984285edea..7c4f4e3ea1d9 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ManagedInstances.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ManagedInstances.json @@ -943,7 +943,15 @@ }, "subnetId": { "description": "Subnet resource ID for the managed instance.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + } }, "state": { "description": "The state of the managed instance.", @@ -988,6 +996,7 @@ "dnsZonePartner": { "description": "The resource id of another managed instance whose DNS zone this managed instance will share after creation.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -999,6 +1008,7 @@ "sourceManagedInstanceId": { "description": "The resource identifier of the source managed instance associated with create operation of this instance.", "type": "string", + "format": "arm-id", "x-ms-mutability": [ "create" ] @@ -1091,7 +1101,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" + } + ] + } }, "keyId": { "description": "A CMK URI of the key to use for encryption.", diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ServerSecurityAlertPolicies.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ServerSecurityAlertPolicies.json index ec8466cc119e..ef3928f00ffa 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ServerSecurityAlertPolicies.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ServerSecurityAlertPolicies.json @@ -242,6 +242,7 @@ }, "storageAccountAccessKey": { "description": "Specifies the identifier key of the Threat Detection audit storage account.", + "x-ms-secret": true, "type": "string" }, "retentionDays": { diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ServerVulnerabilityAssessments.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ServerVulnerabilityAssessments.json index 2e3bdc8838b3..f1b563e485e3 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ServerVulnerabilityAssessments.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/ServerVulnerabilityAssessments.json @@ -298,6 +298,7 @@ "storageContainerSasKey": { "description": "A shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't specified, StorageContainerSasKey is required. Applies only if the storage account is not behind a Vnet or a firewall", "type": "string", + "x-ms-secret": true, "x-ms-mutability": [ "create", "update" @@ -306,6 +307,7 @@ "storageAccountAccessKey": { "description": "Specifies the identifier key of the storage account for vulnerability assessment scan results. If 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is required. Applies only if the storage account is not behind a Vnet or a firewall", "type": "string", + "x-ms-secret": true, "x-ms-mutability": [ "create", "update" diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/Servers.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/Servers.json index 39f62d9849c2..c8457af7f456 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/Servers.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-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" ] @@ -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-08-01-preview/SyncAgents.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/SyncAgents.json index cf0d2904347f..b32bc792e281 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/SyncAgents.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-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-08-01-preview/SyncGroups.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/SyncGroups.json index 31e03351e632..c9b47f30c582 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/SyncGroups.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-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-08-01-preview/SyncMembers.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/SyncMembers.json index 3f4278204d4a..71e1470dbe5e 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/SyncMembers.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-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-08-01-preview/VirtualNetworkRules.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/VirtualNetworkRules.json index 8afe6f1aecf2..20e71013b1d7 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/VirtualNetworkRules.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/VirtualNetworkRules.json @@ -261,7 +261,15 @@ "properties": { "virtualNetworkSubnetId": { "description": "The ARM resource id of the virtual network subnet.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Network/virtualNetworks/subnets" + } + ] + } }, "ignoreMissingVnetServiceEndpoint": { "description": "Create firewall rule before the virtual network has vnet service endpoint enabled.", diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertCreateMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertCreateMax.json index a1a77f5e232b..4659dcfc727d 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertCreateMax.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertCreateMax.json @@ -50,7 +50,6 @@ "Usage_Anomaly" ], "retentionDays": 6, - "storageAccountAccessKey": "", "storageEndpoint": "https://mystorage.blob.core.windows.net" } } @@ -80,7 +79,6 @@ "Usage_Anomaly" ], "retentionDays": 6, - "storageAccountAccessKey": "sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD==", "storageEndpoint": "https://mystorage.blob.core.windows.net" } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertCreateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertCreateMin.json index 4de54f21c116..c2e62c5c1e6b 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertCreateMin.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertCreateMin.json @@ -32,7 +32,6 @@ "emailAddresses": [], "disabledAlerts": [], "retentionDays": 0, - "storageAccountAccessKey": "", "storageEndpoint": "" } } @@ -56,7 +55,6 @@ "emailAddresses": [], "disabledAlerts": [], "retentionDays": 0, - "storageAccountAccessKey": "", "storageEndpoint": "" } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertGet.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertGet.json index 99598cfe7ff7..39211c44ed73 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertGet.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertGet.json @@ -32,7 +32,6 @@ "Usage_Anomaly" ], "retentionDays": 0, - "storageAccountAccessKey": "", "creationTime": "2020-04-03T04:41:33.937Z" } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertListByDatabase.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertListByDatabase.json index 4512f39cd9cb..abd290061173 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertListByDatabase.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/DatabaseSecurityAlertListByDatabase.json @@ -33,7 +33,6 @@ "Usage_Anomaly" ], "retentionDays": 0, - "storageAccountAccessKey": "", "storageEndpoint": "", "creationTime": "2020-04-03T04:41:33.937Z" } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCancelMove.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCancelMove.json index bf5465f8f602..9b062c419ba8 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCancelMove.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCancelMove.json @@ -6,7 +6,7 @@ "databaseName": "testDatabase", "api-version": "2022-08-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-08-01-preview/examples/ManagedDatabaseCompleteMove.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCompleteMove.json index bf5465f8f602..9b062c419ba8 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCompleteMove.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseCompleteMove.json @@ -6,7 +6,7 @@ "databaseName": "testDatabase", "api-version": "2022-08-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-08-01-preview/examples/ManagedDatabaseStartMoveMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseStartMoveMax.json index 781a50001478..a4497f59eaac 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseStartMoveMax.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseStartMoveMax.json @@ -6,7 +6,7 @@ "databaseName": "testDatabase", "api-version": "2022-08-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-08-01-preview/examples/ManagedDatabaseStartMoveMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseStartMoveMin.json index bf5465f8f602..9b062c419ba8 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseStartMoveMin.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ManagedDatabaseStartMoveMin.json @@ -6,7 +6,7 @@ "databaseName": "testDatabase", "api-version": "2022-08-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-08-01-preview/examples/ServerSecurityAlertsCreateMax.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsCreateMax.json index cae7f23e9373..39d6de8ca728 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsCreateMax.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsCreateMax.json @@ -47,7 +47,6 @@ "Usage_Anomaly" ], "retentionDays": 5, - "storageAccountAccessKey": "", "storageEndpoint": "https://mystorage.blob.core.windows.net" } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsCreateMin.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsCreateMin.json index 716c62d617ed..0ae1aaec3d7a 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsCreateMin.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsCreateMin.json @@ -35,7 +35,6 @@ "" ], "retentionDays": 0, - "storageAccountAccessKey": "", "storageEndpoint": "https://mystorage.blob.core.windows.net" } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsGet.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsGet.json index 1ea88e3edad3..d0fb60cbe341 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsGet.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsGet.json @@ -31,7 +31,6 @@ "Access_Anomaly" ], "retentionDays": 0, - "storageAccountAccessKey": "", "storageEndpoint": "https://mystorage.blob.core.windows.net" } } diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsListByServer.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsListByServer.json index 04720d61322c..b278a6f6fcad 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsListByServer.json +++ b/specification/sql/resource-manager/Microsoft.Sql/preview/2022-08-01-preview/examples/ServerSecurityAlertsListByServer.json @@ -32,7 +32,6 @@ "Access_Anomaly" ], "retentionDays": 0, - "storageAccountAccessKey": "", "storageEndpoint": "https://mystorage.blob.core.windows.net" } }