IWebSiteOperations.GeneratePasswordAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> GeneratePasswordAsync (string webSpaceName, string webSiteName, System.Threading.CancellationToken cancellationToken);
abstract member GeneratePasswordAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function GeneratePasswordAsync (webSpaceName As String, webSiteName As String, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)
Parameters
- webSpaceName
- String
The name of the web space.
- webSiteName
- String
The name of the web site.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A standard service response including an HTTP status code and request ID.
Applies to
Azure SDK for .NET