WebSiteOperationsExtensions.GeneratePassword Method

Definition

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 http://msdn.microsoft.com/en-us/library/windowsazure/dn236428.aspx for more information)

public static Microsoft.Azure.AzureOperationResponse GeneratePassword (this Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations operations, string webSpaceName, string webSiteName);
static member GeneratePassword : Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations * string * string -> Microsoft.Azure.AzureOperationResponse
<Extension()>
Public Function GeneratePassword (operations As IWebSiteOperations, webSpaceName As String, webSiteName As String) As AzureOperationResponse

Parameters

operations
IWebSiteOperations

Reference to the Microsoft.WindowsAzure.Management.WebSites.IWebSiteOperations.

webSpaceName
String

Required. The name of the web space.

webSiteName
String

Required. The name of the web site.

Returns

Microsoft.Azure.AzureOperationResponse

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

Applies to