Support for more VM sizes when adding a pool

This commit is contained in:
Christian Smith 2017-03-04 10:24:04 +11:00
Родитель cd7be1c154
Коммит 0128a3727b
4 изменённых файлов: 21 добавлений и 5 удалений

Просмотреть файл

@ -305,6 +305,7 @@
<Compile Include="Global.asax.cs"> <Compile Include="Global.asax.cs">
<DependentUpon>Global.asax</DependentUpon> <DependentUpon>Global.asax</DependentUpon>
</Compile> </Compile>
<Compile Include="Models\NewPoolModel.cs" />
<Compile Include="Models\NewSearchModel.cs" /> <Compile Include="Models\NewSearchModel.cs" />
<Compile Include="Models\PoolSpec.cs" /> <Compile Include="Models\PoolSpec.cs" />
<Compile Include="Models\RespositoryViewModel.cs" /> <Compile Include="Models\RespositoryViewModel.cs" />

Просмотреть файл

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Microsoft.Azure.Blast.Web.Models
{
public class NewPoolModel
{
public List<string> VirtualMachineSizes { get; set; }
}
}

Просмотреть файл

@ -1,4 +1,5 @@
@{ @model Microsoft.Azure.Blast.Web.Models.NewPoolModel
@{
ViewBag.Title = "New Pool"; ViewBag.Title = "New Pool";
} }
@ -35,12 +36,14 @@
<div class="col-sm-10"> <div class="col-sm-10">
<div class="dropdown"> <div class="dropdown">
<button id="vmSizeBtn" class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <button id="vmSizeBtn" class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Standard_D14_v2 @Model.VirtualMachineSizes.FirstOrDefault()
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul id="vmSizeList" class="dropdown-menu" aria-labelledby="vmSizeBtn"> <ul id="vmSizeList" class="dropdown-menu" aria-labelledby="vmSizeBtn">
<li><a href="javascript:void(0)">Standard_D14_v2</a></li> @foreach (var virtualMachineSize in Model.VirtualMachineSizes)
<li><a href="javascript:void(0)">Standard_D5_v2</a></li> {
<li><a href="javascript:void(0)">@virtualMachineSize</a></li>
}
</ul> </ul>
</div> </div>
</div> </div>

Просмотреть файл

@ -67,7 +67,7 @@ Keep note of the 'Application ID' that's output from the above command.
The portal deployment is automated using the ARM template below which will create the Azure storage, batch and web application. The portal deployment is automated using the ARM template below which will create the Azure storage, batch and web application.
Most of the parameters should be self explanatory and defaults shouldn't need to be changed. Details on Azure Web App instance sizes and pricing can be wound [here](https://azure.microsoft.com/en-au/pricing/details/app-service/). Most of the parameters should be self explanatory and defaults shouldn't need to be changed. Details on Azure Web App instance sizes and pricing can be found [here](https://azure.microsoft.com/en-au/pricing/details/app-service/).
The deployment will ask for the following information The deployment will ask for the following information