CmdID / az / az sql / az sql midb / az sql midb log-replay
az sql midb log-replay start
Start Log Replay service on specified database. Azure CLI reference
2 examples 5 options Its page in the Azure CLI reference
Examples
Start Log Replay service with auto complete option.
az sql midb log-replay start -g mygroup --mi myinstance -n mymanageddb -a --last-bn "backup.bak" --storage-uri "https://test.blob.core.windows.net/testing" --storage-sas "sv=2019-02-02&ss=b&srt=sco&sp=rl&se=2023-12-02T00:09:14Z&st=2019-11-25T16:09:14Z&spr=https&sig=92kAe4QYmXaht%2Fgjocqwerqwer41s%3D"Identify-gName of resource group.--miName of the Azure SQL Managed Instance.-nThe name of the Azure SQL Managed Database.-aThe flag that in usage with last_backup_name automatically completes log replay servise.--last-bnThe name of the last backup to restore.--storage-uriThe URI of the storage container where backups are.--storage-sasThe authorization Sas token to access storage container where backups are.Start Log Replay service without auto complete option.
az sql midb log-replay start -g mygroup --mi myinstance -n mymanageddb --storage-uri "https://test.blob.core.windows.net/testing" --storage-sas "sv=2019-02-02&ss=b&srt=sco&sp=rl&se=2023-12-02T00:09:14Z&st=2019-11-25T16:09:14Z&spr=https&sig=92kAe4QYmXaht%2Fgjocqwerqwer41s%3D"Identify-gName of resource group.--miName of the Azure SQL Managed Instance.-nThe name of the Azure SQL Managed Database.--storage-uriThe URI of the storage container where backups are.--storage-sasThe authorization Sas token to access storage container where backups are.Options
--auto-complete, -aThe flag that in usage with last_backup_name automatically completes log replay servise.--last-backup-name, --last-bnThe name of the last backup to restore.--storage-identity, --siThe storage container identity to use.--storage-sas, --ssThe authorization Sas token to access storage container where backups are.--storage-uri, --suThe URI of the storage container where backups are.