Replies: 1 comment 1 reply
-
Anything that can be represented with bicep can be represented by the "Azure PostgreSQL Flexible Server" integration in the apphost. I'm not sure backup and restore are part of this as those occur after provisioning and need to be automated elsewhere.
Change the connection string where?
This happens when you use a password for postgres instead of using the default (which is a managed identity). You can specify your own keyvault via
Maybe this helps https://aspire.dev/integrations/cloud/azure/overview/#use-existing-azure-resources? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I configure my Aspire project to provision an Azure PostgreSQL Flexible Server, and then I need to restore the server to a backup point, how is that supposed to work?
The backups in the built-in "Backup and restore" tab have a "Fast restore" option, but that creates a new server from the dump rather than overwrite the existing one. In a manually configured environment I would just change the connection string to the new one, but since it's managed by Aspire, that would not work. Moreover, there's a
postgreskv-...key vault created in the resource group: should something be done about it as well?We also use Azure Vault to make long-living and offline backups of the database, but in this case the restore process (probably) also boils down to the same question of pointing Aspire to another server instance.
I believe it would be very beneficial to have a page covering the backup restore topic in Aspire docs - at least for Azure-based database resources.
Beta Was this translation helpful? Give feedback.
All reactions