An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
Hi Murat!
From the above, I understand you'd like to create a backup of your Azure database for PostgreSQL single server but the portal is displaying an error that the secret required for setup cannot be created.
Error messages displayed in the portal GUI aren't typically very verbose, so I'd suggest enabling key vault logs to verify the reason behind the error. You'll want to take note of the resultDescription in the error as it will supply the "oid" of the entity being blocked during secret creation. Sometimes this identity isn't the one the user expects while they are integrating other Azure services with Key Vault.
Typically this creation error is seen when the identity attempting to create the key vault object does not have the proper permissions to the data plane of the key vault. It will appear as an HTTPStatusCode 403 in the logging.
According to the Azure PostgreSQL database backup documentation, the identity requires the Key Vault Secrets User RBAC role or Get, List Secrets permission via an access policy on the key vault.
If the key vault is using the Access Policy access configuration, the identity will require that an access policy be assigned. (Secrets: Get, List)
If the key vault is using RBAC access configuration, the identity attempting to create the secret needs to be assigned a built-in key vault data plane role. (Key Vault Secrets User role).
I hope this helps you move forward!
Best, Jessica
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.