Skip to content

Commit aea4da6

Browse files
committed
Merge branch 'clu' of github.com:Azure/azure-powershell into clu
2 parents e80bcfd + 61e9901 commit aea4da6

File tree

5 files changed

+12
-21
lines changed

5 files changed

+12
-21
lines changed

clu-getstart.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
### Prerequsites
44

5-
Visual Studio 2015 RTM with ASP.NET. For details, check out the [installation doc](http://docs.asp.net/en/latest/getting-started/installing-on-windows.html).
5+
* Visual Studio 2015 RTM with ASP.NET. For details, check out the [installation doc](http://docs.asp.net/en/latest/getting-started/installing-on-windows.html).
66

77
Note, after done, run `dnvm list` command to check the 'coreclr' runtime is installed with right version of `1.0.0-rc1-final`. If not, run `dnvm install 1.0.0-rc1-final -r coreclr -a x64 -p`. Remember always use `-p` flag, so the selection can persist.
88

9+
* Get the latest dotnet from "https://azureclu.blob.core.windows.net/tools/dotnet-win-x64.latest.zip", unzip, then add its bin folder to the PATH
10+
911
### Project Artifacts
1012

1113
CLUPackages require some additional files to direct generation of indexing, and to provide shortcuts when files are installed. These files can be copied from the Profile project and updated for each package.

examples/resource-management/03-Deployments.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ printf "\n1. Creating a new resource group: %s and location: %s.\n" "$groupName"
66
azure group create --name "$groupName" --location "$location"
77

88
printf "\n2. Test template with dynamic parameters\n"
9-
azure group deployment test -g "$groupName" --templatefile $BASEDIR/sampleTemplate.json --siteName "$resourceName" --hostingPlanName "$resourceName" --siteLocation "$location" --sku "Standard" --workerSize "0"
9+
azure group deployment test -g "$groupName" --templatefile $BASEDIR/sampleTemplate.json --siteName "$resourceName" --hostingPlanName "$resourceName" --siteLocation "$location" --workerSize "0"
1010

1111
printf "\n3. Test template with JSON parameter object\n"
12-
azure group deployment test -g "$groupName" --templatefile $BASEDIR/sampleTemplate.json --templateparameterobject "{\"siteName\":\"$resourceName\",\"hostingPlanName\":\"$resourceName\",\"siteLocation\":\"$location\",\"sku\":\"Standard\",\"workerSize\": 0 }"
12+
azure group deployment test -g "$groupName" --templatefile $BASEDIR/sampleTemplate.json --templateparameterobject "{\"siteName\":\"$resourceName\",\"hostingPlanName\":\"$resourceName\",\"siteLocation\":\"$location\",\"workerSize\": 0 }"
1313

1414
printf "\n4. Provisioning Deployment\n"
1515
deploymentInfo=`azure group deployment create --Name "$resourceName" --ResourceGroupName "$groupName" --TemplateFile $BASEDIR/sampleTemplate.json --TemplateParameterFile $BASEDIR/sampleTemplateParams.json`

examples/resource-management/sampleTemplate.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
2+
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
33
"contentVersion": "1.0.0.0",
44
"parameters": {
55
"siteName": {
@@ -11,16 +11,6 @@
1111
"siteLocation": {
1212
"type": "string"
1313
},
14-
"sku": {
15-
"type": "string",
16-
"allowedValues": [
17-
"Free",
18-
"Shared",
19-
"Basic",
20-
"Standard"
21-
],
22-
"defaultValue": "Free"
23-
},
2414
"workerSize": {
2515
"type": "int",
2616
"allowedValues": [
@@ -33,13 +23,17 @@
3323
},
3424
"resources": [
3525
{
36-
"apiVersion": "2014-04-01",
26+
"apiVersion": "2015-08-01",
3727
"name": "[parameters('hostingPlanName')]",
3828
"type": "Microsoft.Web/serverfarms",
3929
"location": "[parameters('siteLocation')]",
30+
"sku": {
31+
"name": "S1",
32+
"tier": "Standard",
33+
"capacity": 1
34+
},
4035
"properties": {
4136
"name": "[parameters('hostingPlanName')]",
42-
"sku": "[parameters('sku')]",
4337
"workerSize": "[parameters('workerSize')]",
4438
"numberOfWorkers": 1
4539
}

examples/resource-management/sampleTemplateParams.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
"siteLocation": {
99
"value": "West US"
1010
},
11-
"sku": {
12-
"value": "Standard"
13-
},
1411
"workerSize": {
1512
"value": 0
1613
}

tools/CLU/BuildPackage.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@ $fileContent = Get-Content $nuSpecTemplate
2828
$renameFileExists = Test-Path -Path ([System.IO.Path]::Combine($packageSource, "content", "rename.cfg"))
2929
$files = (Get-ChildItem $packageSource | Where -FilterScript {!$_.Name.Contains("nuspec")} | Select-Object -Property Name)
3030
$refFiles = $files | Where -FilterScript { $_.Name.EndsWith(".dll")}
31-
$contentFiles = $files | Where -FilterScript { $_.Name.EndsWith("xml")}
3231
$refFileText = ""
3332
$refFiles | %{$refFileText += (" <reference file=""" + $_.Name + """/>`r`n")}
3433
$contentFileText = ""
35-
$contentFiles | %{ $contentFileText += (" <file src=""" + $_.Name + """ target=""content""/>`r`n")}
3634
if ($packageId -ne "Microsoft.CLU.Commands")
3735
{
3836
$contentFileText += " <file src=""content\*.lx"" target=""content""/>`r`n"

0 commit comments

Comments
 (0)