public static CloudException CreateFormattedException(this CloudException cloudException)
{
return new CloudException(
string.Format(
CultureInfo.InvariantCulture,
Resources.FormattedCloudExceptionMessageTemplate,
cloudException.Response.StatusCode,
cloudException.Error.Code,
cloudException.Error.Message,
cloudException.GetRequestId(),
DateTime.UtcNow));
}