-
Notifications
You must be signed in to change notification settings - Fork 5k
Open
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageProvisioningcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Library name and version
Azure.Provisioning.Sql 1.0.0
Describe the bug
Azure.Provisioning.Sql.SqlDatabase
uses version "2021-11-01"
by default, and doesn't expose "2023-08-01"
(which is the latest stable?) in the list supported ones (c.f. ResourceVersions
in the SqlDatabase
class).
However, some properties like useFreeLimit
or freeLimitExhaustionBehavior
are only available with this version. Using them without setting the correct version manually will results in a warning during deployment.
When setting the API version manually the deployment works but the following message is returned:
Warning BCP081: Resource type "Microsoft.Sql/servers/databases@2023-08-01" does not have types available. Bicep is unable to validate resource properties prior to deployment, but this will not block the resource from being deployed. [https://aka.ms/bicep/core-diagnostics#BCP081]
Expected behavior
The newer api version should be used, or supported.
Actual behavior
Warning when using exposed properties without manually setting the resource version.
Reproduction Steps
var sqlDatabase = new SqlDatabase(bicepIdentifier, "2023-08-01")
{
UseFreeLimit = true,
FreeLimitExhaustionBehavior = FreeLimitExhaustionBehavior.AutoPause,
};
Environment
No response
Metadata
Metadata
Assignees
Labels
ClientThis issue is related to a non-management packageThis issue is related to a non-management packageProvisioningcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: 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 thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that