WebSiteOperationsExtensions.DiscoverAsync Method (IWebSiteOperations, String, String, RestoreRequest)
Scans a backup in a storage account and returns database information etc. Should be called before calling Restore to discover what parameters are needed for the restore operation.
Assembly: Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)
public static Task<WebSiteRestoreDiscoverResponse> DiscoverAsync( this IWebSiteOperations operations, string webSpaceName, string webSiteName, RestoreRequest restoreRequest )
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations
Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.
- webSpaceName
-
Type:
System.String
Required. The name of the web space.
- webSiteName
-
Type:
System.String
Required. The name of the web site.
- restoreRequest
-
Type:
Microsoft.WindowsAzure.Management.WebSites.Models.RestoreRequest
Required. A restore request.
Return Value
Type: System.Threading.Tasks.Task<WebSiteRestoreDiscoverResponse>The information gathered about a backup storaged in a storage account.
Show: