I am able to get the username and password, but I cannot get the HostName, which is the FTP endpoint visible on the Azure Portal.
var ftpPublishingData = await _webSite.GetPublishingCredentialsAsync(WaitUntil.Completed);
var username = ftpPublishingData.Value.Data.PublishingUserName;var password = ftpPublishingData?.Value.Data.PublishingPassword;
I need to get the FTP endpoint because I need it to upload files to Azure App Service using WinSCP. I am doing all of this in Blazor because I want to automate everything, so I need to obtain the FTP endpoint programmatically.