是否可以使用 Powershell 从 Azure 市场创建 Umbraco 站点? [英] Is it possible to create an Umbraco site from the Azure Marketplace using powershell?
问题描述
我不断收到为开发者设置 Umbraco 网站的请求.
我进行了一些搜索,我想知道是否可以使用 powershell 从 Azure 市场使用 powershell 创建一个 Umbraco 站点..>
例如,我使用以下命令创建 VM:
- 获取-AzureVMImage
- New-AzureQuickVM
但我可以从市场上找到任何网站(网络应用程序).
我会在门户中使用它:
注意:必须使用市场来完成.
问题更新:感谢@theadriangreen,我在这方面做得更进一步.
现在我运行命令后有以下内容:
siteName:网站名称
hostingPlanName:基本
serverFarmResourceGroup:我不知道
siteLocation:澳大利亚东南部
serverName:这是数据库服务器名称吗?
服务器位置:澳大利亚东南部
administratorLogin:这是数据库管理员登录名吗?
databaseName:这是数据库管理员登录密码吗?
webDeploy_DatabaseUsername:不知道
webDeploy_DatabasePassword:不知道
@theadriangreen 我希望你能为我澄清其中的一些内容吗?
是的,这是可能的.从命令 Get-AzureResourceGroupGalleryTemplate
我们能够定位模板标识为 umbracoorg.UmbracoCMS.0.4.6-preview
,因此 powershell 命令是:
Switch-AzureMode -Name AzureResourceManager添加-AzureAccountSelect-AzureSubscription -SubscriptionId ''New-AzureResourceGroup -Name testrg -Location westus -DeploymentName testrg -GalleryTemplateIdentity umbracoorg.UmbracoCMS.0.4.6-preview
看模板(https://gallerystoreprodch.blob.core.windows.net/prod-microsoft-windowsazure-gallery/umbracoorg.UmbracoCMS.0.4.6-preview/DeploymentTemplates/Website_NewHostingPlan_SQL_NewDB-Default.json) 我们从 Get-AzureResourceGroupGalleryTemplate -Identity umbracoorg.UmbracoCMS.0.4.6-preview
中获得,我们可以推断出以下参数:
- siteName:网站名称
- hostingPlanName:要使用的应用服务器计划的名称.
- serverFarmResourceGroup:必须与资源组名称相同
- siteLocation:位置
- serverName:MSSQL 服务器名称
- serverLocation:位置,应该和上面一样
- administratorLogin:MSSQL 管理员登录
- 数据库名称:MSSQL 管理员登录密码
- webDeploy_DatabaseUsername:提供给应用程序的 MSSQL 管理员登录名,应与上述相同
- webDeploy_DatabasePassword:提供给应用的 MSSQL 管理员登录密码,应与上述相同
I keep getting requests to set up Umbraco sites for developers.
I have done a bit of searching and, I am wondering if it is possible to use powershell to create an Umbraco site from the Azure Marketplace using powershell.
I create VMs, for example, using the following commands:
- Get-AzureVMImage
- New-AzureQuickVM
But I cand find any for websites (web apps) from the market place.
There is what I would use to do in in the portal:
Note: it must be done using the market place.
Update to question: I have got further with this thanks to @theadriangreen.
Now I have the following after I run the command:
siteName: the website name
hostingPlanName: Basic
serverFarmResourceGroup: I have no idea
siteLocation: Australia Southeast
serverName: is this the database server name?
serverLocation: Australia Southeast
administratorLogin: is this the database admin login name?
databaseName: is this the database admin login password?
webDeploy_DatabaseUsername: no idea
webDeploy_DatabasePassword: no idea
@theadriangreen I hope you can clarify some of these for me?
Yes it is possible. From the command Get-AzureResourceGroupGalleryTemplate
we are able to locate the template identity as umbracoorg.UmbracoCMS.0.4.6-preview
, hence the powershell command is:
Switch-AzureMode -Name AzureResourceManager
Add-AzureAccount
Select-AzureSubscription -SubscriptionId '<subscription-id>'
New-AzureResourceGroup -Name testrg -Location westus -DeploymentName testrg -GalleryTemplateIdentity umbracoorg.UmbracoCMS.0.4.6-preview
Looking at the template (https://gallerystoreprodch.blob.core.windows.net/prod-microsoft-windowsazure-gallery/umbracoorg.UmbracoCMS.0.4.6-preview/DeploymentTemplates/Website_NewHostingPlan_SQL_NewDB-Default.json) which we get from Get-AzureResourceGroupGalleryTemplate -Identity umbracoorg.UmbracoCMS.0.4.6-preview
we can infer the following about the parameters:
- siteName: the website name
- hostingPlanName: Name of the app server plan to use.
- serverFarmResourceGroup: Must be the same as the resource group name
- siteLocation: location
- serverName: MSSQL Server name
- serverLocation: location, should be the same as above
- administratorLogin: MSSQL admin login
- databaseName: MSSQL admin login password
- webDeploy_DatabaseUsername: MSSQL admin login provided to the app, should be the same as above
- webDeploy_DatabasePassword: MSSQL admin login password provided to the app, should be the same as above
这篇关于是否可以使用 Powershell 从 Azure 市场创建 Umbraco 站点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!