Skip to content

[sql database] When creating a database with sku set to HS_Gen5_8 and maxSizeBytes set to 8796093022208, the API returns a value of -1 for maxSizeBytes. #23922

Open
@sinbai

Description

@sinbai

Swagger: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/sql/resource-manager/Microsoft.Sql/stable/2021-11-01/Databases.json

Put https://management.azure.com/subscriptions/xxx/resourceGroups/test/providers/Microsoft.Sql/servers/testserver/databases/testsql?api-version=2021-11-01

{
   "location":"eastus",
   "properties":{
      "autoPauseDelay":-1,
      "collation":"SQL_Latin1_General_CP1_CI_AS",
      "createMode":"Default",
      "elasticPoolId":"",
      "highAvailabilityReplicaCount":4,
      "isLedgerOn":false,
      "licenseType":"LicenseIncluded",
      "maintenanceConfigurationId":"/subscriptions/xxx/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default",
      "maxSizeBytes":8796093022208,
      "minCapacity":0,
      "readScale":"Enabled",
      "requestedBackupStorageRedundancy":"Geo",
      "zoneRedundant":false
   },
   "sku":{
      "name":"HS_Gen5_8"
   },
   "tags":{
      
   }
}

Get https://management.azure.com/subscriptions/xxx/resourceGroups/test/providers/Microsoft.Sql/servers/testserver/databases/testsql?api-version=2021-11-01

{
    "sku": {
        "name": "HS_Gen5",
        "tier": "Hyperscale",
        "family": "Gen5",
        "capacity": 8
    },
    "kind": "v12.0,user,vcore,hyperscale",
    "properties": {
        "collation": "SQL_Latin1_General_CP1_CI_AS",
        "maxSizeBytes": -1,
        "status": "Online",
        "databaseId": "46e99415-f271-4f99-9823-cd0021cf7a9f",
        "creationDate": "2023-05-11T03:07:38.467Z",
        "currentServiceObjectiveName": "HS_Gen5_8",
        "requestedServiceObjectiveName": "HS_Gen5_8",
        "defaultSecondaryLocation": "westus",
        "catalogCollation": "SQL_Latin1_General_CP1_CI_AS",
        "zoneRedundant": false,
        "licenseType": "LicenseIncluded",
        "earliestRestoreDate": "2023-05-11T03:07:38.467Z",
        "readScale": "Enabled",
        "highAvailabilityReplicaCount": 4,
        "currentSku": {
            "name": "HS_Gen5",
            "tier": "Hyperscale",
            "family": "Gen5",
            "capacity": 8
        },
        "autoPauseDelay": -1,
        "currentBackupStorageRedundancy": "Geo",
        "requestedBackupStorageRedundancy": "Geo",
        "maintenanceConfigurationId": "/subscriptions/xxxproviders/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default",
        "isLedgerOn": false,
        "isInfraEncryptionEnabled": false
    },
    "location": "eastus",
    "tags": {},
    "id": "/subscriptions/xxx/resourceGroups/test/providers/Microsoft.Sql/servers/testserver/databases/testsql",
    "name": "test2",
    "type": "Microsoft.Sql/servers/databases"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    SQLService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions