PerconaServerMongoDBRestore - configuration for Azure storage

What is a right configuration for restore from azure storage account?

I tried…

apiVersion: psmdb.percona.com/v1
kind: PerconaServerMongoDBRestore
metadata:
name: restore-from-dev
namespace: namespace
spec:
clusterName: mongodb
backupName: 2024-02-06T08:41:21Z
backupSource:
type: physical
azure:
storageAccount: farmongodbbackups
container: farmongodbbackups
folder: test
~
Also tried

kind: PerconaServerMongoDBRestore
metadata:
name: restore-from-dev
namespace: ns
spec:
clusterName: mongodb
backupName: 2024-02-06T08:41:21Z
backupSource:
type: physical
destination:
azure:
storageAccount: farmongodbbackups
container: farmongodbbackups
folder: dev

But always received errors

Error from server (BadRequest): error when creating “restore.yaml”: PerconaServerMongoDBRestore in version “v1” cannot be handled as a PerconaServerMongoDBRestore: strict decoding error: unknown field “spec.backupSource.azure.folder”, unknown field “spec.backupSource.azure.storageAccount”

I need to restore ASAP the db…

Hi @Luca_Brambilla,

Welcome to Percona Community!!
Kindly follow this blog post on how to restore using azure storage account.

Regards,
Parag

Hey @Luca_Brambilla! You should use prefix instead of folder.

azure:
   container: 
   credentialsSecret:
   prefix:

But good catch, we should document Azure restoration better.