Open hundredacres opened 1 month ago
Simplified the test
resource flexibleServer 'Microsoft.DBforMySQL/flexibleServers@2023-06-30' = {
name: 'ksbz20240723'
location: 'northeurope'
sku: {
name: 'Standard_D2ds_v4'
tier: 'GeneralPurpose'
}
properties: {
administratorLogin: 'adminUserName'
administratorLoginPassword: 'adminPassword'
maintenanceWindow: {
customWindow: 'Enabled'
dayOfWeek: 0
startHour: 0
startMinute: 0
}
}
}
Errors
# az deployment group create --resource-group 20240723 --template-file avm/res/db-for-my-sql/flexible-server/matt.bicep
A new Bicep release is available: v0.29.45. Upgrade now by running "az bicep upgrade".
{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/9cbdb3e9-6a72-4952-abc7-ab5d2f9a29bf/resourceGroups/20240723/providers/Microsoft.Resources/deployments/matt","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ServerNotExist","message":"The server 'ksbz20240723' does not exist or in unexpected status."}]}}
Related to: https://github.com/Azure/bicep/discussions/10996
Bicep version
Describe the bug When passing a maintenanceWindow configuration to Microsoft.DBforMySQL/flexibleServers@2023-12-30, receive an error:
Status Message: The server '*****' does not exist or in unexpected status. (Code:ServerNotExist)
To Reproduce Using the default tests case code below against the AVM module: https://github.com/Azure/bicep-registry-modules/tree/main/avm/res/db-for-my-sql/flexible-server
Expected behavior is that a Flexible server is created.