我很努力地使用PowerShell創建的Drupal Webapp與GalleryTemplate Json文件。它創建Serverfarm,數據庫服務器,但無法創建網站。由於網站創建需要使用創建的hostingplan serverfarm,因此我無法弄清楚如何繼續前進。在下面獲得專業知識幫助將非常有幫助。提前致謝。網站創建失敗,serverfarm未找到Azure Powershell
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}
感謝&問候,
哈里什
期待獲得一些專家的幫助,因爲我不知道爲什麼標準JSON模板中的網站創建資源定義沒有找到創建的hostingplan。 :(希望有人會遇到這個問題之前.. –