Share via


WebSiteOperationsExtensions.GeneratePasswordAsync Method (IWebSiteOperations, String, String)

 

You can generate a new random password for publishing a site by issuing an HTTP POST request. Tip: If you want to verify that the publish password has changed, issue an HTTP GET on /publishxml before calling /newpassword. In the publish XML, note the hash value in the userPWD attribute. After calling /newpassword, call /publishxml again. You can then compare the new value of userPWD in the Publish XML with the one you noted earlier. (see https://msdn.microsoft.com/en-us/library/windowsazure/dn236428.aspx for more information)

Namespace:   Microsoft.WindowsAzure
Assembly:  Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)

Syntax

public static Task<OperationResponse> GeneratePasswordAsync(
    this IWebSiteOperations operations,
    string webSpaceName,
    string webSiteName
)
public:
[ExtensionAttribute]
static Task<OperationResponse^>^ GeneratePasswordAsync(
    IWebSiteOperations^ operations,
    String^ webSpaceName,
    String^ webSiteName
)
static member GeneratePasswordAsync : 
        operations:IWebSiteOperations *
        webSpaceName:string *
        webSiteName:string -> Task<OperationResponse>
<ExtensionAttribute>
Public Shared Function GeneratePasswordAsync (
    operations As IWebSiteOperations,
    webSpaceName As String,
    webSiteName As String
) As Task(Of OperationResponse)

Parameters

  • webSpaceName
    Type: System.String

    Required. The name of the web space.

  • webSiteName
    Type: System.String

    Required. The name of the web site.

Return Value

Type: System.Threading.Tasks.Task<OperationResponse>

A standard service response including an HTTP status code and request ID.

See Also

WebSiteOperationsExtensions Class
Microsoft.WindowsAzure Namespace

Return to top