gpt4 book ai didi

json - 网站创建失败,找不到服务器场 Azure Powershell

转载 作者:行者123 更新时间:2023-12-02 23:27:25 25 4
gpt4 key购买 nike

我正在努力使用 powershell 和 GalleryTemplate Json 文件创建 Drupal Web 应用程序。它创建 Serverfarm、数据库服务器,但网站创建失败。我无法弄清楚如何继续进行,因为网站创建需要使用创建的托管计划服务器场。获得以下专业知识帮助将有很大帮助。提前致谢。

GalleryTemplateIdentity :: Acquiacom.AcquiaDrupal7SQL.0.3.16-preview

PS C:\scripts> New-AzureResourceGroup -Name azurepowershellush -TemplateFile F:\DeployerScript\Acquiacom.AcquiaDrupal7SQL.0.3.16-preview.json -StorageAccountName pilot -Location "East US"

提示用户输入

WARNING: The Switch-AzureMode cmdlet is deprecated and will be removed in a future release.
cmdlet New-AzureResourceGroup at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
siteName: azureappush
hostingPlanName: DefaultServerFarm
serverFarmResourceGroup: DefaultServerFarm
siteLocation: East US
serverName: azureappush
serverLocation: East US
administratorLogin: adminXprt_1
databaseName: adminXprt_1
webDeploy_DatabaseUsername: adminXprt_1
webDeploy_DatabasePassword: Sample_1987

输出

New-AzureResourceGroup : 10:11:41 AM - Resource Microsoft.Web/Sites 'azureappush' failed with message 'Cannot find ServerFarm with 
name DefaultServerFarm.'

ResourceGroupName : azurepowershellush
Location : eastus
Resources : {azureappush, adminXprt_1, azurepowerush, azurepowerush1...}
ResourcesTable :
Name Type Location
================= =============================== ========
azureappush Microsoft.Sql/servers eastus
adminXprt_1 Microsoft.Sql/servers/databases eastus
azurepowerush Microsoft.Sql/servers eastus
azurepowerush1 Microsoft.Sql/servers eastus
adminxprt_1 Microsoft.Sql/servers/databases eastus
adminxprt_1 Microsoft.Sql/servers/databases eastus
Default1 Microsoft.Web/serverFarms eastus
DefaultServerFarm Microsoft.Web/serverFarms eastus

ProvisioningState : Succeeded
Permissions : {Microsoft.Azure.Commands.Resources.Models.Authorization.PSPermission}

感谢和问候,

哈里什

最佳答案

网络应用程序似乎无法找到服务器场(也称为应用程序服务计划),因为它位于不同的资源组中。要解决此问题,请尝试在同一资源组中创建 ServerFarm 和 Web 应用。

即使用此命令:

PS C:\scripts> New-AzureResourceGroup -Name "azurepowershellush" -TemplateFile F:\DeployerScript\Acquiacom.AcquiaDrupal7SQL.0.3.16-preview.json -StorageAccountName pilot -Location "East US" -siteName "azureappush"
-hostingPlanName "DefaultServerFarm" -serverFarmResourceGroup "azurepowershellush" -siteLocation "East US" -serverName "azureappush" -serverLocation "East US" -administratorLogin "adminXprt_1" -databaseName "adminXprt_1" -webDeploy_DatabaseUsername "adminXprt_1" -webDeploy_DatabasePassword "Sample_1987"

请注意,-Name 和 -serverFarmResourceGroup 都是“azurepowershellush”。

关于json - 网站创建失败,找不到服务器场 Azure Powershell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30961425/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com