Skip to content

Commit 97729df

Browse files
committed
Merge pull request Azure#20 from huangpf/crp2
Crp2
2 parents 88b9f23 + 4bd21fd commit 97729df

File tree

38 files changed

+698
-806
lines changed

38 files changed

+698
-806
lines changed

AzurePowershell.Test.targets

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<SqlDatabaseTestDebug>.\src\ServiceManagement\Sql\Commands.SqlDatabase.Test\bin\Debug\Microsoft.WindowsAzure.Commands.SqlDatabase.Test.dll</SqlDatabaseTestDebug>
2323
<HDInsightTestDebug>.\src\ServiceManagement\HDInsight\Commands.HDInsight.Test\bin\Debug\Microsoft.WindowsAzure.Commands.HDInsight.Test.dll</HDInsightTestDebug>
2424
<StorageTestDebug>.\src\ServiceManagement\Storage\Commands.Storage.Test\bin\Debug\Microsoft.WindowsAzure.Commands.Storage.Test.dll</StorageTestDebug>
25+
<TestFilter>"!Functional&#x26;!Scenario&#x26;!AzureRTScenario&#x26;!Sequential&#x26;!PIRTest&#x26;!Preview&#x26;!ADDomain&#x26;!Network&#x26;!AzureRTUpload"</TestFilter>
2526
<KeyVaultTestDebug>.\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll</KeyVaultTestDebug>
26-
<TestFilter>"!Functional&#x26;!Scenario&#x26;!AzureRTScenario&#x26;!Sequential&#x26;!PIRTest&#x26;!Preview&#x26;!ADDomain"</TestFilter>
2727
<ScenarioTestFilter>All</ScenarioTestFilter>
2828
<OneSDKCITFilter>"OneSDK&#x26;CIT"</OneSDKCITFilter>
2929
<AzureRTAllTestFilter>"Functional|AzureRTScenario"</AzureRTAllTestFilter>
@@ -240,6 +240,24 @@
240240
ContinueOnError="true" />
241241
</Target>
242242

243+
<Target Name="AzureRTNetwork" DependsOnTargets="Clean;BuildDebug;BeforeRunTests">
244+
<Message Importance="high" Text="Running AzureRT all tests..." />
245+
246+
<Delete Files="$(TestOutputDirectory)\RTSequentialDebug.trx" />
247+
<Exec
248+
Command="MSTest.exe /testcontainer:$(AzureRTTestContainer) /testsettings:$(TestSettings) /category:Network /resultsfile:$(TestOutputDirectory)\RTSequentialDebug.trx"
249+
ContinueOnError="false" />
250+
</Target>
251+
252+
<Target Name="AzureRTUploadSeq" DependsOnTargets="Clean;BuildDebug;BeforeRunTests">
253+
<Message Importance="high" Text="Running AzureRT all tests..." />
254+
255+
<Delete Files="$(TestOutputDirectory)\RTSequentialDebug.trx" />
256+
<Exec
257+
Command="MSTest.exe /testcontainer:$(AzureRTTestContainer) /testsettings:$(TestSettings) /category:AzureRTUpload|Sequential /resultsfile:$(TestOutputDirectory)\RTSequentialDebug.trx"
258+
ContinueOnError="false" />
259+
</Target>
260+
243261
<Target Name="AzureRTPar" DependsOnTargets="Clean;BuildDebug;BeforeRunTests">
244262
<Message Importance="high" Text="Running AzureRT all tests..." />
245263

@@ -249,6 +267,24 @@
249267
ContinueOnError="false" />
250268
</Target>
251269

270+
<Target Name="AzureRTFuntional" DependsOnTargets="Clean;BuildDebug;BeforeRunTests">
271+
<Message Importance="high" Text="Running AzureRT Funtional tests..." />
272+
273+
<Delete Files="$(TestOutputDirectory)\RTFuntionalDebug.trx" />
274+
<Exec
275+
Command="MSTest.exe /testcontainer:$(AzureRTTestContainer) /testsettings:$(AzureRTTestSettings) /category:Functional /resultsfile:$(TestOutputDirectory)\RTFuntionalDebug.trx"
276+
ContinueOnError="false" />
277+
</Target>
278+
279+
<Target Name="AzureRTScenario" DependsOnTargets="Clean;BuildDebug;BeforeRunTests">
280+
<Message Importance="high" Text="Running AzureRT Scenario tests..." />
281+
282+
<Delete Files="$(TestOutputDirectory)\RTScenarioDebug.trx" />
283+
<Exec
284+
Command="MSTest.exe /testcontainer:$(AzureRTTestContainer) /testsettings:$(AzureRTTestSettings) /category:AzureRTScenario /resultsfile:$(TestOutputDirectory)\RTScenarioDebug.trx"
285+
ContinueOnError="false" />
286+
</Target>
287+
252288
<Target Name="AzureRTAllPreview" DependsOnTargets="Clean;BuildDebug;BeforeRunTests">
253289
<Message Importance="high" Text="Running AzureRT all tests..." />
254290
<Delete Files="$(TestOutputDirectory)\RTAddVhdDebug.trx" />

ChangeLog.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
2015.01.08 version 0.8.13
2+
* Key Vault Service - new cmdlets in AzureResourceManager mode:
3+
* Keys:
4+
* Add-AzureKeyVaultKey
5+
* Get-AzureKeyVaultKey
6+
* Set-AzureKeyVaultKey
7+
* Backup-AzureKeyVaultKey
8+
* Restore-AzureKeyVaultKey
9+
* Remove-AzureKeyVaultKey
10+
* Secrets:
11+
* Get-AzureKeyVaultSecret
12+
* Set-AzureKeyVaultSecret
13+
* Remove-AzureKeyVaultSecret
14+
115
2014.12.12 version 0.8.12
216
* StreamAnalytics
317
* New cmdlets in AzureResourceManager mode

setup/azurecmd.wxs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
33

4-
<?define productName="Microsoft Azure PowerShell - December 2014" ?>
4+
<?define productName="Microsoft Azure PowerShell - January 2015" ?>
55
<?define sourceDir="$(var.SolutionDir)..\src\Package\$(var.Configuration)" ?>
66
<?define caSourceDir="$(var.SolutionDir)setup\bin\$(var.Configuration)" ?>
77

8-
<?define version="0.8.12" ?>
8+
<?define version="0.8.13" ?>
99
<?define versionedStartMenuFolder="Microsoft Azure" ?>
1010
<?define staleStartMenuFolder="Windows Azure" ?>
1111

src/Common/Azure.Common.Extensions/Common.Extensions.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@
189189
</EmbeddedResource>
190190
</ItemGroup>
191191
<ItemGroup>
192+
<None Include="MSSharedLibKey.snk" />
192193
<None Include="packages.config">
193194
<SubType>Designer</SubType>
194195
</None>

src/Common/Commands.Common/AzurePowerShell.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public class AzurePowerShell
2727

2828
public const string AssemblyCopyright = "Copyright © Microsoft";
2929

30-
public const string AssemblyVersion = "0.8.12";
30+
public const string AssemblyVersion = "0.8.13";
3131

32-
public const string AssemblyFileVersion = "0.8.12";
32+
public const string AssemblyFileVersion = "0.8.13";
3333

3434
public const string ProfileFile = "AzureProfile.json";
3535

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/VirtualMachineTests.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ function Test-VirtualMachine
130130
Assert-AreEqual $vm2.OSProfile.AdminUsername $user;
131131
Assert-AreEqual $vm2.OSProfile.ComputerName $computerName;
132132
Assert-AreEqual $vm2.HardwareProfile.VirtualMachineSize $vmsize;
133+
Assert-NotNull $vm2.Location;
133134

134135
$vms = Get-AzureVM -ResourceGroupName $rgname;
135136
Assert-AreNotEqual $vms $null;

src/ResourceManager/Compute/Commands.Compute/Microsoft.Azure.Commands.Compute.Types.ps1xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<ReferencedProperties>
1212
<Name>ResourceGroupName</Name>
1313
<Name>Name</Name>
14+
<Name>Location</Name>
1415
<Name>VMSize</Name>
1516
<Name>Tags</Name>
1617
<Name>AvailabilitySetId</Name>

src/ResourceManager/Compute/Commands.Compute/Models/PSVirtualMachine.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public class PSVirtualMachine
2525

2626
public string Name { get; set; }
2727

28+
public string Location { get; set; }
29+
2830
public string VMSize
2931
{
3032
get
@@ -150,6 +152,7 @@ public static PSVirtualMachine ToPSVirtualMachine(this VirtualMachine virtualMac
150152
{
151153
ResourceGroupName = rgName,
152154
Name = virtualMachine == null ? null : virtualMachine.Name,
155+
Location = virtualMachine == null ? null : virtualMachine.Location,
153156
ProvisioningState = virtualMachine.VirtualMachineProperties.ProvisioningState,
154157
Tags = virtualMachine.Tags,
155158
Resources = virtualMachine.VirtualMachineSubResources,

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Config/AddAzureVMDataDiskCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class AddAzureVMDataDiskCommand : AzurePSCmdlet
6464
public string Caching { get; set; }
6565

6666
[Parameter(
67-
Mandatory = false,
67+
Mandatory = true,
6868
Position = 4,
6969
ValueFromPipelineByPropertyName = true,
7070
HelpMessage = HelpMessages.VMDataDiskSizeInGB)]
@@ -99,7 +99,7 @@ public override void ExecuteCmdlet()
9999
Caching = this.Caching,
100100
DiskSizeGB = this.DiskSizeInGB,
101101
Lun = this.Lun == null ? 0 : this.Lun.Value,
102-
VirtualHardDisk = new VirtualHardDisk
102+
VirtualHardDisk = this.VhdUri == null ? null : new VirtualHardDisk
103103
{
104104
Uri = this.VhdUri.ToString()
105105
}

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public override void ExecuteCmdlet()
8282
VirtualMachine = new VirtualMachine
8383
{
8484
VirtualMachineProperties = vmProps,
85-
Location = this.Location,
85+
Location = !string.IsNullOrEmpty(this.Location) ? this.Location : this.VM.Location,
8686
Name = !string.IsNullOrEmpty(this.Name) ? this.Name : this.VM.Name
8787
}
8888
};

0 commit comments

Comments
 (0)