Please see details
SELECT @@VERSION
Microsoft SQL Server 2014 (SP2-GDR) (KB3194714) - 12.0.5203.0 (X64)
Sep 23 2016 18:13:56
Copyright (c) Microsoft Corporation
Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
User’s databases placed in Azure Blob storage.
Step 1
USE [master]
GO
CREATE DATABASE [MyDB]
ON PRIMARY
( NAME = N'MyDB', FILENAME = N'https://***/MyDB.mdf')
LOG ON
( NAME = N'MyDB_log', FILENAME = N'https://***/MyDB_log.ldf')
GO
All is OK
Step 2
CREATE DATABASE [Snapshot_MyDB] ON (NAME = [MyDB], FILENAME = 'https://***/MyDB_Snapshot.ss') AS SNAPSHOT OF [MyDB]
GO
All is OK
Step 3
ALTER DATABASE [MyDB] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
GO
All is OK
Step 4
RESTORE DATABASE [MyDB] FROM DATABASE_SNAPSHOT = 'Snapshot_MyDB';
GO
Msg 5120, Level 16, State 145, Line 17
Unable to open the physical file "https://***/MyDB_log.ldf". Operating system error 183: "183(Cannot create a file when that file already exists.)".
Msg 3013, Level 16, State 1, Line 17
RESTORE DATABASE is terminating abnormally.
Is there any possibility to restore database from snapshot?
Is it a bug?
SELECT @@VERSION
Microsoft SQL Server 2014 (SP2-GDR) (KB3194714) - 12.0.5203.0 (X64)
Sep 23 2016 18:13:56
Copyright (c) Microsoft Corporation
Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
User’s databases placed in Azure Blob storage.
Step 1
USE [master]
GO
CREATE DATABASE [MyDB]
ON PRIMARY
( NAME = N'MyDB', FILENAME = N'https://***/MyDB.mdf')
LOG ON
( NAME = N'MyDB_log', FILENAME = N'https://***/MyDB_log.ldf')
GO
All is OK
Step 2
CREATE DATABASE [Snapshot_MyDB] ON (NAME = [MyDB], FILENAME = 'https://***/MyDB_Snapshot.ss') AS SNAPSHOT OF [MyDB]
GO
All is OK
Step 3
ALTER DATABASE [MyDB] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;
GO
All is OK
Step 4
RESTORE DATABASE [MyDB] FROM DATABASE_SNAPSHOT = 'Snapshot_MyDB';
GO
Msg 5120, Level 16, State 145, Line 17
Unable to open the physical file "https://***/MyDB_log.ldf". Operating system error 183: "183(Cannot create a file when that file already exists.)".
Msg 3013, Level 16, State 1, Line 17
RESTORE DATABASE is terminating abnormally.
Is there any possibility to restore database from snapshot?
Is it a bug?