Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sql database - incorrect property type for minCapacity #9593

Closed
dazinator opened this issue Jan 20, 2023 · 2 comments
Closed

sql database - incorrect property type for minCapacity #9593

dazinator opened this issue Jan 20, 2023 · 2 comments

Comments

@dazinator
Copy link

dazinator commented Jan 20, 2023

Bicep version
Bicep CLI version 0.13.1 (e3ac80d)

Describe the bug
Trying to define an Azure Sql database that uses the serveless model, so has properties corresponding to min number of vCores. Looking at the properties in the ARM json definition (and in the azure portal) there is a `minCapacity`` property which is a deimal e.g '0.5':

      
        "minCapacity": 0.5,     
        "maintenanceConfigurationId": "/subscriptions/****/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default",     
    },
    "location": "westeurope",
    "tags": {},
    "id": "/subscriptions/***/resourceGroups/Production/providers/Microsoft.Sql/servers/uniun/databases/uniun",
    "name": "uniun",
    "type": "Microsoft.Sql/servers/databases"
}

Yet in my bicep template, this property is typed as an int

image

How am I meant to set this?

To Reproduce
As above

Additional context
Trying to deploy a sql database that has min vCores specified.

@ghost ghost added the Needs: Triage 🔍 label Jan 20, 2023
@dazinator
Copy link
Author

dazinator commented Jan 20, 2023

Ah I notice the proper route for this type of thing was to comment on the following issue instead - and found that someone had already raised this issue as a comment: #784 (comment)

Feel free to close as long as you have it tracked!

@alex-frankel
Copy link
Collaborator

FWIW, you should be able to do json('0.5').

Bicep does not have a "Number" types, so that is why the type is int.

Closing and tracking with #1386

@ghost ghost locked as resolved and limited conversation to collaborators May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants