Skip to content

Error: retrieving Database (PostgresSQL) Status=400 #311

@dermoritz

Description

@dermoritz

I am just installed the current (0.9.0) aztfy on my windows machine.
I tried to terrafy a resource group of my subscription.

After starting it with resource-group command. While most resources ("245 items") went fine i got an error for 3 of them (the last 3 items for DB resource):

  │ ❗️/subscriptions/xyz/resourceGroups/cc-resource-group/providers/Microsoft.DBforPos
  │ azurerm_postgresql_flexible_server_database.res-234

    ❗️/subscriptions/xyz/resourceGroups/cc-resource-group/providers/Microsoft.DBforPos
    azurerm_postgresql_flexible_server_database.res-235

    ❗️/subscriptions/xyz/resourceGroups/cc-resource-group/providers/Microsoft.DBforPos
    azurerm_postgresql_flexible_server_database.res-236

The error is:

  /subscriptions/xyz/resourceGroups/cc-resource-group/providers/Microsoft.DBforPostgreS

  exit status 1

  Error: retrieving Database (Subscription: "xyz"
  Resource Group Name: "cc-resource-group"
  Server Name: "cc-db"
  Database Name: "azure_maintenance"): databases.DatabasesClient#Get: Failure responding to request: StatusCode=400 --
  Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidParameterValue" Message="Invalid
  value given for parameter databaseName. Specify a valid parameter value.

other items for this resource went fine:

  │ ✅/subscriptions/1e8a445d-7e71-4de6-a8d9-a554e9e99007/resourceGroups/cc-resource-group/providers/Microsoft.DBforPost
  │ azurerm_postgresql_flexible_server_configuration.res-233

side note, one vnet was skiped:

 /subscriptions/1e8a445d-7e71-4de6-a8d9-a554e9e99007/resourceGroups/cc-resource-group/providers/Microsoft.Network/pri
    (Skip)

Any ideas what is the cause of the error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions