Azure API Management Backup & Restore
Up to this time, Officially Azure APIM backup and restore can be performed only by “Azure ARM APIs”. Below official document is describing the backup process.
Some important note,
The process for backing up and restoring an API Management service instance for disaster recovery can also be used for replicating API Management service instances for scenarios such as staging.
Each backup expires after 30 days. If you attempt to restore a backup after the 30-day expiration period has expired, the restore will fail with a Cannot restore: backup expired
message.
The SKU of the service being restored into must match the SKU of the backed-up service being restored.
Changes made to the service configuration (for example, APIs, policies, developer portal appearance) while restore operation is in progress could be overwritten.
C# program to schedule this process,
We can use “Azure Function” to schedule the backup program once a week or once a month based on the requirement. “Azure Function” will be the more effective solution to run this program. more details about “Azure Function”, please refer below link,
Note : While backup process happen, there won’t be any downtime.
In below link you can find complete “Azure Function” program code.