IIS

时间:2018-03-23 14:11:02

标签: iis azure-files

我已经关注了this文章,除了我不需要的共享配置之外,我没有错过任何步骤。就像文章所说的那样,我创建了一个具有相同名称和密码的本地用户。在“测试设置”选项中,“身份验证”已通过(忽略了提及的“授权”错误)

我能够在虚拟目录的内容视图中看到azure文件。但是,当我浏览时,它说

HTTP Error 500.19 
"The requested page cannot be accessed because the related configuration data for the page is invalid."
Config Error       Cannot read configuration file

它实际上是在UNC路径\\staticcontent.file.core.windows.net\repo中查找配置文件。

1 个答案:

答案 0 :(得分:0)

以下是我遵循的步骤。如果您有疑问,可以通过microsofyt dot com的renash与我联系。

http://fabriccontroller.net/deploying-a-load-balanced-high-available-ftp-server-with-azure-files/

第1步 在经典部署模型中为Windows虚拟机配置可用性集 https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/configure-availability

第2步

$vm1name =  'cltkdemovm1'
$vm2name =  'cltkdemovm2'
$servicename= 'cltkdemodomain'
Login-AzureRmAccount
Select-AzureSubscription -SubscriptionName "Windows Azure Internal Consumption"
$vm = Get-AzureVM -Name $vm1name -ServiceName $servicename
.\Add-AzureFtpEndpoints.ps1 $vm 21 10000 10050
$vm = Get-AzureVM -Name $vm2name  -ServiceName $servicename
.\Add-AzureFtpEndpoints.ps1 $vm 21 20000 20050

第三步 在vm1:

Install-FTP.bat cltkdemoftp <storageaccountname> <storageaccountkey>  <sharename> 21 10000 10050 <VMIPAddress>

示例:

Install-FTP.bat cltkdemoftp cltkdemosa  <storage account key>==  ftp 21 10000 10050 40.76.29.172

在vm2上:

Install-FTP.bat ctdemoftp cltkdemosa <storage account key>==  ftp 21 20000 20050 <VMIPAddress>

示例:

Install-FTP.bat cltkdemoftp cltkdemosa  <storage account key>==  ftp 21 20000 20050 40.76.29.172

第四步 向IISUser Group添加了sa 将sa添加到应用程序池 - &gt; Poolname-&gt; advancedsetting-&gt; identiy

在VM2上 向IISUser Group添加了sa 将sa添加到应用程序池 - &gt; Poolname-&gt; advancedsetting-&gt; identiy