sparse-pilot-48357
03/29/2022, 9:47 PMPulumi.AzureNative.DBforPostgreSQL.V20200214Preview
but I'm getting this error on the database (using Pulumi.AzureNative.DBforPostgreSQL.V20210601
)
var pgDb = new PGSQLDB.Database($"foo", new PGSQLDB.DatabaseArgs()
{
Charset = "UTF8",
Collation = "English_United States.1252",
ResourceGroupName = resourceGroup.Name,
ServerName = pgsqlServer.Name,
DatabaseName = "foo"
});
azure-native:dbforpostgresql/v20210601:Database (foo):
error: resource partially created but read failed autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The requested resource of type 'Microsoft.DBforPostgreSQL/flexibleServers/databases' with name 'foo' was not found.": Code="InternalServerError" Message="An unexpected error occured while processing the request. Tracking ID: '**redacted**'"
A few questions 🙂 - am I using the right namespaces? Is there any way of getting more info than that InternalServerError
(I tried --verbose=9
to no avail).
I found https://github.com/pulumi/pulumi-azure-native/issues/1126, but I don't think it's quite it...great-queen-39697
03/30/2022, 10:35 PM--logflow
flag to get the diagnostics data from the provider itself. Here's the basic command I'll use for a native provider:
pulumi up -v=9 --logflow
That will dump logs into wherever your logs go for Pulumi (find that from the last line in the output of pulumi about
). If you'd rather get it all at once on the terminal:
pulumi up -v=9 --logflow --logtostderr 2>&1 | tee -a pulumi_log.txt
That extra bit at the end tells Pulumi to share logs both to stdout/stderr and append them to a file called pulumi_log.txt
.sparse-pilot-48357
03/31/2022, 2:05 AMCREATE DATABASE 'foo'
as the pg admin user, and it works fine. No need to deploy it as a resource there. But yeah, it's a little weird because DB seems architecture relatedgreat-queen-39697
03/31/2022, 9:11 PM