Skip to content

Commit 5cc50a9

Browse files
committed
resolve merge conflicts
2 parents 0614630 + d1fd2f6 commit 5cc50a9

File tree

138 files changed

+34174
-3876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+34174
-3876
lines changed

ChangeLog.txt

Lines changed: 47 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@
6060
* Remove-AzureNetworkSecurityRuleConfig
6161
* Add-AzureNetworkSecurityRuleConfig
6262
* Set-AzureNetworkSecurityRuleConfig
63+
* Azure Storage
64+
* Added cmdlets in AzureResourceManager Mode
65+
* New-AzureStorageAccount
66+
* Get-AzureStorageAccount
67+
* Set-AzureStorageAccount
68+
* Remove-AzureStorageAccount
69+
* New-AzureStorageAccountKey
70+
* Get-AzureStorageAccountKey
71+
* Made Azure Storage data cmdlets work in AzureResourceManager Mode
6372

6473
2015.04.28 version 0.8.17
6574
* Azure Batch
@@ -68,6 +77,25 @@
6877
* Remove-AzureBatchVMUser
6978
* Get-AzureBatchRDPFile
7079
* Get-AzureBatchVMFileContents
80+
* StorSimple: New StorSimple commands in AzureServiceManagement mode
81+
* Added cmdlets
82+
* Confirm-AzureStorSimpleLegacyVolumeContainerStatus
83+
* Get-AzureStorSimpleLegacyVolumeContainerConfirmStatus
84+
* Get-AzureStorSimpleLegacyVolumeContainerMigrationPlan
85+
* Get-AzureStorSimpleLegacyVolumeContainerStatus
86+
* Import-AzureStorSimpleLegacyApplianceConfig
87+
* Import-AzureStorSimpleLegacyVolumeContainer
88+
* Start-AzureStorSimpleLegacyVolumeContainerMigrationPlan
89+
* New-AzureStorSimpleVirtualDeviceCommand
90+
* Get-AzureStorSimpleJob
91+
* Stop-AzureStorSimpleJob
92+
* Start-AzureStorSimpleBackupCloneJob
93+
* Get-AzureStorSimpleFailoverVolumeContainers
94+
* Start-AzureStorSimpleDeviceFailoverJob
95+
* New-AzureStorSimpleNetworkConfig
96+
* Set-AzureStorSimpleDevice
97+
* Set-AzureStorSimpleVirtualDevice
98+
7199

72100
2015.03.31 version 0.8.16
73101
* Azure Data Factory:
@@ -139,9 +167,9 @@
139167
* Set-AzureRemoteAppWorkspace
140168
* Unpublish-AzureRemoteAppProgram
141169
* Update-AzureRemoteAppCollection
142-
170+
143171
* Storage: new cmdlets
144-
* Get-AzureStorageContainerStoredAccessPolicy
172+
* Get-AzureStorageContainerStoredAccessPolicy
145173
* Get-AzureStorageQueueStoredAccessPolicy
146174
* Get-AzureStorageTableStoredAccessPolicy
147175
* New-AzureStorageContainerStoredAccessPolicy
@@ -185,7 +213,7 @@
185213
* Start-AzureSiteRecoveryCommitFailoverJob
186214
* Start-AzureSiteRecoveryPlannedFailoverJob
187215
* Start-AzureSiteRecoveryTestFailoverJob
188-
216+
189217
* Azure ExpressRoute cmdlet updates
190218
* Fixed bugs in:
191219
* New-AzureDedicatedCircuit
@@ -198,12 +226,12 @@
198226
* Update-AzureDedicatedCircuitBandwidth
199227

200228
* Azure SQL Database: new cmdlets for managing database dynamic data masking policies:
201-
* Get-AzureSqlDatabaseDataMaskingPolicy
202-
* Set-AzureSqlDatabaseDataMaskingPolicy
203-
* New-AzureSqlDatabaseDataMaskingRule
204-
* Get-AzureSqlDatabaseDataMaskingRule
205-
* Set-AzureSqlDatabaseDataMaskingRule
206-
* Remove-AzureSqlDatabaseDataMaskingRule
229+
* Get-AzureSqlDatabaseDataMaskingPolicy
230+
* Set-AzureSqlDatabaseDataMaskingPolicy
231+
* New-AzureSqlDatabaseDataMaskingRule
232+
* Get-AzureSqlDatabaseDataMaskingRule
233+
* Set-AzureSqlDatabaseDataMaskingRule
234+
* Remove-AzureSqlDatabaseDataMaskingRule
207235

208236
* Azure Batch: new cmdlets:
209237
* Get-AzureBatchPool
@@ -221,22 +249,22 @@
221249
* Update-AzureDisk
222250
* Set-AzureOSDisk
223251
* Set-AzureDataDisk (DiskName parameter is also added along with ResizedSizeInGB)
224-
225-
* AzureProfile:
252+
253+
* AzureProfile:
226254
* New cmdlets to manage in-memory profiles
227255
* New-AzureProfile: Create a new in-memory Profile
228256
* Select-AzureProfile: Select the profile to be used in the current session
229257
* Added -Profile parameter to every cmdlet - the cmdlet will use the passed-in profile to authenticate with Azure
230-
258+
231259
2015.02.12 version 0.8.14
232260
* StorSimple: New StorSimple commands in AzureServiceManagement mode:
233261
* GetAzureStorSimpleAccessControlRecord
234262
* GetAzureStorSimpleStorageAccountCredential
235263
* RemoveAzureStorSimpleAccessControlRecord
236264
* RemoveAzureStorSimpleStorageAccountCredential
237265
* SetAzureStorSimpleAccessControlRecord
238-
* GetAzureStorSimpleDeviceVolume
239-
* RemoveAzureStorSimpleDeviceVolume
266+
* GetAzureStorSimpleDeviceVolume
267+
* RemoveAzureStorSimpleDeviceVolume
240268
* GetAzureStorSimpleDeviceVolumeContainer
241269
* RemoveAzureStorSimpleDeviceVolumeContainer
242270
* GetAzureStorSimpleDevice
@@ -268,19 +296,19 @@
268296
* ClusterType (update): New value (Spark) can be specified as cluster type
269297
* Add-AzureHDInsightConfigValues cmdlet:
270298
* Spark (new): collection of configuration properties can be passed in to customize the Spark service
271-
299+
272300
* Azure Insights cmdlets in AzureResourceManager Mode:
273301
* Get-AzureCrrelationLogId
274302
* Get-AzureResourceGroupLog
275303
* Get-AzureResourceLog
276304
* Get-AzureResourceProviderLog
277305
* Get-AzureSubscriptionIdLog
278-
306+
279307
* Azure VM cmdlets
280308
* Get-AzureVMDscExtentionStatus: Get the DSC Extension status for a cloud service or VM
281-
309+
282310
* Updates and bug fixes for AzureAutomation and AzureDataFactory cmdlets
283-
311+
284312
2015.01.08 version 0.8.13
285313
* Key Vault Service - new cmdlets in AzureResourceManager mode:
286314
* Keys:
@@ -362,7 +390,7 @@
362390
* Remove-AzureSqlDatabaseServerAuditing
363391
* Use-AzureSqlDatabaseServerAuditingPolicy
364392
* Allow users to define which storage account key (Primary or Secondary) to use when defining audit policy, using the “StorageKeyType” parameter.
365-
393+
366394
2014.10.27 Version 0.8.10
367395
* Azure Data Factory cmdlets in AzureResourceManager mode
368396
* New-AzureDataFactory

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 - March 2015" ?>
4+
<?define productName="Microsoft Azure PowerShell - April 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.16.1" ?>
8+
<?define version="0.9.0" ?>
99
<?define versionedStartMenuFolder="Microsoft Azure" ?>
1010
<?define staleStartMenuFolder="Windows Azure" ?>
1111

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.16.1";
30+
public const string AssemblyVersion = "0.9.0";
3131

32-
public const string AssemblyFileVersion = "0.8.16.1";
32+
public const string AssemblyFileVersion = "0.9.0";
3333

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

src/ResourceManager/Compute/Commands.Compute.Test/Commands.Compute.Test.csproj

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@
6666
<SpecificVersion>False</SpecificVersion>
6767
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.0.18.2-preview\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
6868
</Reference>
69-
<Reference Include="Microsoft.Azure.Management.Compute, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
70-
<SpecificVersion>False</SpecificVersion>
71-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.4.0.0-preview\lib\net40\Microsoft.Azure.Management.Compute.dll</HintPath>
69+
<Reference Include="Microsoft.Azure.Management.Compute, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
70+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Compute.5.0.0-preview\lib\net40\Microsoft.Azure.Management.Compute.dll</HintPath>
71+
<Private>True</Private>
7272
</Reference>
7373
<Reference Include="Microsoft.Azure.Management.Network, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
7474
<SpecificVersion>False</SpecificVersion>
7575
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Network.2.0.0-preview\lib\net40\Microsoft.Azure.Management.Network.dll</HintPath>
7676
</Reference>
7777
<Reference Include="Microsoft.Azure.Management.Storage, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
78-
<SpecificVersion>False</SpecificVersion>
79-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Storage.2.3.0-preview\lib\net40\Microsoft.Azure.Management.Storage.dll</HintPath>
78+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Storage.2.4.0-preview\lib\net40\Microsoft.Azure.Management.Storage.dll</HintPath>
79+
<Private>True</Private>
8080
</Reference>
8181
<Reference Include="Microsoft.Azure.ResourceManager">
8282
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
@@ -148,11 +148,14 @@
148148
<Compile Include="ScenarioTests\StorageAccountTests.cs" />
149149
<Compile Include="ScenarioTests\TestVirtualMachineImageList.cs" />
150150
<Compile Include="ScenarioTests\TestVirtualMachineList.cs" />
151+
<Compile Include="ScenarioTests\VirtualMachineDataDiskTests.cs" />
152+
<Compile Include="ScenarioTests\VirtualMachineCaptureTests.cs" />
151153
<Compile Include="ScenarioTests\VirtualMachineProfileTests.cs" />
152154
<Compile Include="ScenarioTests\AvailabilitySetTests.cs" />
153155
<Compile Include="ScenarioTests\VirtualMachineExtensionTests.cs" />
154156
<Compile Include="ScenarioTests\VirtualMachineNetworkInterfaceTests.cs" />
155157
<Compile Include="ScenarioTests\TestVirtualMachineSizeAndUsage.cs" />
158+
<Compile Include="ScenarioTests\VirtualMachinePIRv2Tests.cs" />
156159
<Compile Include="ScenarioTests\VirtualMachineTests.cs" />
157160
<Compile Include="Properties\Resources.Designer.cs">
158161
<AutoGen>True</AutoGen>
@@ -246,6 +249,12 @@
246249
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.StorageAccountTests\TestStorageAccount.json">
247250
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
248251
</None>
252+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineExtensionTests\TestVirtualMachineAccessExtension.json">
253+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
254+
</None>
255+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineExtensionTests\TestVirtualMachineCustomScriptExtension.json">
256+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
257+
</None>
249258
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineExtensionTests\TestVirtualMachineExtension.json">
250259
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
251260
</None>
@@ -264,12 +273,21 @@
264273
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineProfileTests\TestVirtualMachineProfile.json">
265274
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
266275
</None>
276+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests\TestVirtualMachineDataDisk.json">
277+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
278+
</None>
267279
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests\TestVirtualMachineImageList.json">
268280
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
269281
</None>
270282
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests\TestVirtualMachineList.json">
271283
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
272284
</None>
285+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests\TestVirtualMachineCapture.json">
286+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
287+
</None>
288+
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests\TestVirtualMachinePIRv2.json">
289+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
290+
</None>
273291
<None Include="SessionRecords\Microsoft.Azure.Commands.Compute.Test.ScenarioTests.VirtualMachineTests\TestVirtualMachineSizeAndUsage.json">
274292
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
275293
</None>

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

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,131 @@ function Retry-IfException
8383

8484
$ErrorActionPreference = $oldErrorActionPreferenceValue;
8585
}
86+
87+
<#
88+
.SYNOPSIS
89+
Gets random resource name
90+
#>
91+
function Get-RandomItemName
92+
{
93+
param([string] $prefix = "pslibtest")
94+
95+
if ($prefix -eq $null -or $prefix -eq '')
96+
{
97+
$prefix = "pslibtest";
98+
}
99+
100+
$str = $prefix + ((Get-Random) % 10000);
101+
return $str;
102+
}
103+
104+
<#
105+
.SYNOPSIS
106+
Gets default VM size string
107+
#>
108+
function Get-DefaultVMSize
109+
{
110+
param([string] $location = "eastasia")
111+
112+
$vmSizes = Get-AzureVMSize -Location $location | where { $_.NumberOfCores -ge 4 -and $_.MaxDataDiskCount -ge 8 };
113+
114+
foreach ($sz in $vmSizes)
115+
{
116+
if ($sz.Name -eq 'Standard_A3')
117+
{
118+
return $sz.Name;
119+
}
120+
}
121+
122+
return $vmSizes[0].Name;
123+
}
124+
125+
<#
126+
.SYNOPSIS
127+
Gets default RDFE Image
128+
#>
129+
function Get-DefaultRDFEImage
130+
{
131+
param([string] $loca = "East Asia", [string] $query = '*Windows*Data*Center*')
132+
133+
$d = (Azure\Get-AzureVMImage | where {$_.ImageName -like $query -and ($_.Location -like "*;$loca;*" -or $_.Location -like "$loca;*" -or $_.Location -like "*;$loca" -or $_.Location -eq "$loca")});
134+
135+
if ($d -eq $null)
136+
{
137+
return $null;
138+
}
139+
else
140+
{
141+
return $d[-1].ImageName;
142+
}
143+
}
144+
145+
<#
146+
.SYNOPSIS
147+
Gets default RDFE Image
148+
#>
149+
function Get-DefaultCRPImage
150+
{
151+
param([string] $loc = "eastasia", [string] $query = '*Microsoft*Windows*Server')
152+
153+
$result = (Get-AzureVMImagePublisher -Location $loc) | select -ExpandProperty PublisherName | where { $_ -like $query };
154+
if ($result.Count -eq 1)
155+
{
156+
$defaultPublisher = $result;
157+
}
158+
else
159+
{
160+
$defaultPublisher = $result[0];
161+
}
162+
163+
$result = (Get-AzureVMImageOffer -Location $loc -PublisherName $defaultPublisher) | select -ExpandProperty Offer | where { $_ -like '*Windows*' };
164+
if ($result.Count -eq 1)
165+
{
166+
$defaultOffer = $result;
167+
}
168+
else
169+
{
170+
$defaultOffer = $result[0];
171+
}
172+
173+
$result = (Get-AzureVMImageSku -Location $loc -PublisherName $defaultPublisher -Offer $defaultOffer) | select -ExpandProperty Skus;
174+
if ($result.Count -eq 1)
175+
{
176+
$defaultSku = $result;
177+
}
178+
else
179+
{
180+
$defaultSku = $result[0];
181+
}
182+
183+
$result = (Get-AzureVMImageVersion -Location $loc -Offer $defaultOffer -PublisherName $defaultPublisher -Skus $defaultSku) | select -ExpandProperty Version;
184+
if ($result.Count -eq 1)
185+
{
186+
$defaultVersion = $result;
187+
}
188+
else
189+
{
190+
$defaultVersion = $result[0];
191+
}
192+
193+
$vmimg = Get-AzureVMImage -Location $loc -Offer $defaultOffer -PublisherName $defaultPublisher -Skus $defaultSku -Version $defaultVersion;
194+
195+
return $vmimg;
196+
}
197+
198+
<#
199+
.SYNOPSIS
200+
Gets default VM config object
201+
#>
202+
function Get-DefaultVMConfig
203+
{
204+
param([string] $location = "eastasia")
205+
206+
# VM Profile & Hardware
207+
$vmsize = Get-DefaultVMSize $location;
208+
$vmname = Get-RandomItemName 'pstestvm';
209+
210+
$vm = New-AzureVMConfig -VMName $vmname -VMSize $vmsize;
211+
212+
return $vm;
213+
}

0 commit comments

Comments
 (0)