Skip to content

HPF PR: dev <- Azure:dev #440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 50 commits into from
Feb 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
22b3c0e
initial implementation of geobackup
hchungmsft Feb 6, 2016
45c4265
implement backup cmdlets
hchungmsft Feb 9, 2016
50892e9
initial implementation of restore cmdlet
hchungmsft Feb 10, 2016
2548e08
remove PIT from deleted database restore
hchungmsft Feb 11, 2016
25adb20
edit cmdlets
hchungmsft Feb 12, 2016
2f32944
more work on cmdlets
hchungmsft Feb 13, 2016
87dd176
use ResourceId for restore
hchungmsft Feb 20, 2016
7e888de
fix geobackup test
hchungmsft Feb 22, 2016
13a2cd6
#4911154 Update all commands to use ExpressRouteCircuit for consisten…
dihan0604 Feb 23, 2016
1792c88
Enable test for create peering
dihan0604 Feb 23, 2016
ed5cbe5
regenerate test mocks for powershell, use get methods
hchungmsft Feb 23, 2016
28a8add
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
dihan0604 Feb 23, 2016
7938863
comments from adamkr and jamestao
hchungmsft Feb 23, 2016
a62c098
Merge branch 'master' of https://github.com/Azure/azure-powershell in…
hchungmsft Feb 24, 2016
3cb737f
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
hchungmsft Feb 24, 2016
72d8024
add help and changelog
hchungmsft Feb 24, 2016
49cd334
Add missing test: create ER gateway and create ER connection
dihan0604 Feb 24, 2016
edc7bc6
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
dihan0604 Feb 24, 2016
b0d989d
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
dihan0604 Feb 24, 2016
45904d3
sync authentication model change
hchungmsft Feb 24, 2016
772e29f
Add missing scenarios and bug fix for ER
dihan0604 Feb 24, 2016
52af88d
remove stats APIs
dihan0604 Feb 24, 2016
a9b5073
Initial commit for DisasterRecoveryConfiguration support
franktsa Feb 12, 2016
0f71511
Merge branch 'dev' of https://github.com/Azure/azure-powershell into dev
dihan0604 Feb 24, 2016
c23a66b
Feedback response:
franktsa Feb 25, 2016
513bf29
bump nuget version number
hchungmsft Feb 25, 2016
5988d4b
Feedback response:
franktsa Feb 25, 2016
7a1b20c
Removing Common.Authentication referece in Commands.Sql.csproj
franktsa Feb 25, 2016
b18cd86
update package version numbers
hchungmsft Feb 25, 2016
79425aa
add session records to csproj
hchungmsft Feb 25, 2016
896f9c8
Add help for invoke azure action
vivsriaus Feb 25, 2016
7a33b15
Add help for mode
vivsriaus Feb 25, 2016
62a8bbf
Add force to deployment help
vivsriaus Feb 25, 2016
f8ac76e
Format help description for template deployment
vivsriaus Feb 25, 2016
c41daf6
Add reference uri to template deployment help
vivsriaus Feb 25, 2016
455d4b1
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
vivsriaus Feb 25, 2016
7f88ae5
Fix Tab with 4 space
dihan0604 Feb 25, 2016
0edc79e
change format
dihan0604 Feb 25, 2016
6ca1bef
Merge pull request #1862 from franktsa/dev
markcowl Feb 25, 2016
9837ca7
Add extra space to make it look better
dihan0604 Feb 25, 2016
be77b40
resolve upstream conflicts
hchungmsft Feb 25, 2016
7d028cf
Add help for remove deployment, update test deployment help
vivsriaus Feb 25, 2016
89d5cf3
Merge branch 'dev' of https://github.com/Azure/azure-powershell into …
vivsriaus Feb 25, 2016
83ab72d
Remove references to gallery
vivsriaus Feb 25, 2016
b07b765
Fix find bug
vivsriaus Feb 25, 2016
7e9041c
No sub ids for tenant level ops
vivsriaus Feb 26, 2016
97d1738
Merge pull request #1849 from hchungmsft/dev
markcowl Feb 26, 2016
9926594
Merge pull request #1869 from vivsriaus/DocUpdate
Feb 26, 2016
7e3a53f
Merge pull request #1861 from dihan0604/dev
Feb 26, 2016
227a836
Merge pull request #1873 from vivsriaus/FixFindBug
Feb 26, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
##2016.03.08 version 1.3.0
##2016.03.08 version 1.3.0
* Azure LogicApp: New cmdlets for managing LogicApps
* Get-AzureLogicAppAccessKey
* Get-AzureLogicApp
Expand All @@ -22,6 +22,11 @@
- New-AzureStorageShareSASToken
- New-AzureStorageQueueSASToken
- New-AzureStorageTableSASToken
* Azure SQL DB Backup/restore
* Get-AzureRmSqlDatabaseGeoBackup
* Get-AzureRmSqlDeletedDatabaseBackup
* Restore-AzureRmSqlDatabase
* This cmdlet accepts as pipelined input the result of one of the first two cmdlets (or Get-AzureRmSqlDatabase if restoring a live DB to a point-in-time)

## 2016.02.04 version 1.2.1
* Fix installer issue - remove PSGallery modules on install
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.ExpressRouteCircuitTests\TestExpressRouteCircuitCRUD.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.ExpressRouteCircuitTests\TestExpressRouteCircuitPeeringCRUD.json">
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.ExpressRouteCircuitTests\TestExpressRouteCircuitMicrosoftPeeringCRUD.json" >
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.ExpressRouteCircuitTests\TestExpressRouteCircuitPrivatePublicPeeringCRUD.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.ExpressRouteServiceProviderTests\TestExpressRouteServiceProviderList.json">
Expand Down Expand Up @@ -314,6 +317,12 @@
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.TestDnsAvailabilityTest\TestDnsAvailability.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayConnectionTests\TestVirtualNetworkeExpressRouteGatewayConnectionCRUD.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkGatewayTests\TestVirtualNetworkExpressRouteGatewayCRUD.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="SessionRecords\Commands.Network.Test.ScenarioTests.VirtualNetworkTests\TestVirtualNetworkCRUD.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,18 @@ public void TestExpressRouteCircuitCRUD()
NetworkResourcesController.NewInstance.RunPsTest("Test-ExpressRouteCircuitCRUD");
}

[Fact(Skip = "Rerecord tests")]
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestExpressRouteCircuitPrivatePublicPeeringCRUD()
{
NetworkResourcesController.NewInstance.RunPsTest("Test-ExpressRouteCircuitPrivatePublicPeeringCRUD");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestExpressRouteCircuitPeeringCRUD()
public void TestExpressRouteCircuitMicrosoftPeeringCRUD()
{
NetworkResourcesController.NewInstance.RunPsTest("Test-ExpressRouteCircuitPeeringCRUD");
NetworkResourcesController.NewInstance.RunPsTest("Test-ExpressRouteCircuitMicrosoftPeeringCRUD");
}

[Fact]
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,12 @@ public void TestVirtualNetworkGatewayConnectionSharedKeyCRUD()
{
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkGatewayConnectionSharedKeyCRUD");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualNetworkeExpressRouteGatewayConnectionCRUD()
{
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkeExpressRouteGatewayConnectionCRUD");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,52 @@
# limitations under the License.
# ----------------------------------------------------------------------------------

<#
.SYNOPSIS
Virtual network express route gateway connection tests
This is a special case which need a provisioned circuit
If you need to re-record this case, please contact express route team
#>
function Test-VirtualNetworkeExpressRouteGatewayConnectionCRUD
{
# Setup
$rgname = "onesdkTestConnection"
$vnetConnectionName = Get-ResourceName
$location = "westus"
try
{
# Get the resource group
$resourceGroup = Get-AzureRmResourceGroup -Name $rgname
Assert-NotNull $resourceGroup
# Get Gateway
$gw = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname
Assert-AreEqual 1 @($gw).Count
# Get Circuit
$circuit = Get-AzureRmExpressRouteCircuit -ResourceGroupName $rgname
Assert-AreEqual 1 @($circuit).Count

# Create & Get VirtualNetworkGatewayConnection
$actual = New-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName $rgname -name $vnetConnectionName -location $location -VirtualNetworkGateway1 $gw -ConnectionType ExpressRoute -RoutingWeight 3 -PeerId $circuit.Id
$expected = Get-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName $rgname -name $vnetConnectionName
Assert-AreEqual $expected.ResourceGroupName $actual.ResourceGroupName
Assert-AreEqual $expected.Name $actual.Name
Assert-AreEqual "ExpressRoute" $expected.ConnectionType
Assert-AreEqual "3" $expected.RoutingWeight


# Delete VirtualNetworkGatewayConnection
$delete = Remove-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName $actual.ResourceGroupName -name $vnetConnectionName -PassThru -Force
Assert-AreEqual true $delete
$list = Get-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName $actual.ResourceGroupName
Assert-AreEqual 0 @($list).Count
}
finally
{
# Cleanup

}
}

<#
.SYNOPSIS
Virtual network gateway connection tests
Expand All @@ -35,7 +81,7 @@ function Test-VirtualNetworkGatewayConnectionCRUD
{
# Create the resource group
$resourceGroup = New-AzureRmResourceGroup -Name $rgname -Location $rglocation -Tags @{Name = "testtag"; Value = "testval"}

# Create the Virtual Network
$subnet = New-AzureRmVirtualNetworkSubnetConfig -Name "GatewaySubnet" -AddressPrefix 10.0.0.0/24
$vnet = New-AzureRmvirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $subnet
Expand All @@ -54,8 +100,8 @@ function Test-VirtualNetworkGatewayConnectionCRUD
Assert-AreEqual $vnetGateway.Name $actual.Name
#Assert-AreEqual "Vpn" $expected.GatewayType
#Assert-AreEqual "RouteBased" $expected.VpnType
# Create LocalNetworkGateway

# Create LocalNetworkGateway
$actual = New-AzureRmLocalNetworkGateway -ResourceGroupName $rgname -name $localnetName -location $location -AddressPrefix 192.168.0.0/16 -GatewayIpAddress 192.168.3.10
$localnetGateway = Get-AzureRmLocalNetworkGateway -ResourceGroupName $rgname -name $localnetName
Assert-AreEqual $localnetGateway.ResourceGroupName $actual.ResourceGroupName
Expand Down Expand Up @@ -92,19 +138,19 @@ function Test-VirtualNetworkGatewayConnectionCRUD

$actual = Set-AzureRmVirtualNetworkGatewayConnection -VirtualNetworkGatewayConnection $expected -Force
$expected = Get-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName $rgname -name $vnetConnectionName
Assert-AreEqual "4" $expected.RoutingWeight
Assert-AreEqual "4" $expected.RoutingWeight
#Assert-AreEqual "xyz" $expected.SharedKey

# Delete VirtualNetworkGatewayConnection
$delete = Remove-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName $actual.ResourceGroupName -name $vnetConnectionName -PassThru -Force
Assert-AreEqual true $delete

$list = Get-AzureRmVirtualNetworkGatewayConnection -ResourceGroupName $actual.ResourceGroupName
Assert-AreEqual 0 @($list).Count
}
finally
{
# Cleanup
# Cleanup
Clean-ResourceGroup $rgname
}
}
Expand Down Expand Up @@ -132,7 +178,7 @@ function Test-VirtualNetworkGatewayConnectionSharedKeyCRUD
{
# Create the resource group
$resourceGroup = New-AzureRmResourceGroup -Name $rgname -Location $rglocation -Tags @{Name = "testtag"; Value = "testval"}

# Create the Virtual Network
$subnet = New-AzureRmVirtualNetworkSubnetConfig -Name "GatewaySubnet" -AddressPrefix 10.0.0.0/24
$vnet = New-AzureRmvirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $subnet
Expand All @@ -151,7 +197,7 @@ function Test-VirtualNetworkGatewayConnectionSharedKeyCRUD
Assert-AreEqual $vnetGateway.Name $actual.Name
#Assert-AreEqual "Vpn" $expected.GatewayType
#Assert-AreEqual "RouteBased" $expected.VpnType

# Create LocalNetworkGateway
$actual = New-AzureRmLocalNetworkGateway -ResourceGroupName $rgname -name $localnetName -location $location -AddressPrefix 192.168.0.0/16 -GatewayIpAddress 192.168.3.11
$localnetGateway = Get-AzureRmLocalNetworkGateway -ResourceGroupName $rgname -name $localnetName
Expand Down Expand Up @@ -188,7 +234,7 @@ function Test-VirtualNetworkGatewayConnectionSharedKeyCRUD
}
finally
{
# Cleanup
Clean-ResourceGroup $rgname
# Cleanup
Clean-ResourceGroup $rgname
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ namespace Commands.Network.Test.ScenarioTests
{
public class VirtualNetworkGatewayTests : Microsoft.WindowsAzure.Commands.Test.Utilities.Common.RMTestBase
{
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualNetworkExpressRouteGatewayCRUD()
{
NetworkResourcesController.NewInstance.RunPsTest("Test-VirtualNetworkExpressRouteGatewayCRUD");
}


[Fact(Skip = "Rerecord tests")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestVirtualNetworkGatewayCRUD()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,69 @@
# limitations under the License.
# ----------------------------------------------------------------------------------

<#
.SYNOPSIS
Virtual network express route gateway tests
#>
function Test-VirtualNetworkExpressRouteGatewayCRUD
{
# Setup
$rgname = Get-ResourceGroupName
$rname = Get-ResourceName
$domainNameLabel = Get-ResourceName
$vnetName = Get-ResourceName
$publicIpName = Get-ResourceName
$vnetGatewayConfigName = Get-ResourceName
$rglocation = Get-ProviderLocation ResourceManagement
$resourceTypeParent = "Microsoft.Network/virtualNetworkGateways"
$location = Get-ProviderLocation $resourceTypeParent

try
{
# Create the resource group
$resourceGroup = New-AzureRmResourceGroup -Name $rgname -Location $rglocation -Tags @{Name = "testtag"; Value = "testval"}


# Create the Virtual Network
$subnet = New-AzureRmVirtualNetworkSubnetConfig -Name "GatewaySubnet" -AddressPrefix 10.0.0.0/24
$vnet = New-AzureRmvirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $subnet
$vnet = Get-AzureRmvirtualNetwork -Name $vnetName -ResourceGroupName $rgname
$subnet = Get-AzureRmVirtualNetworkSubnetConfig -Name "GatewaySubnet" -VirtualNetwork $vnet

# Create the publicip
$publicip = New-AzureRmPublicIpAddress -ResourceGroupName $rgname -name $publicIpName -location $location -AllocationMethod Dynamic -DomainNameLabel $domainNameLabel

# Create & Get virtualnetworkgateway
$vnetIpConfig = New-AzureRmVirtualNetworkGatewayIpConfig -Name $vnetGatewayConfigName -PublicIpAddress $publicip -Subnet $subnet

$actual = New-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname -location $location -IpConfigurations $vnetIpConfig -GatewayType ExpressRoute
$expected = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname -name $rname
Assert-AreEqual $expected.ResourceGroupName $actual.ResourceGroupName
Assert-AreEqual $expected.Name $actual.Name
#Assert-AreEqual "ExpressRoute" $expected.GatewayType

# List virtualNetworkGateways
$list = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $rgname
Assert-AreEqual 1 @($list).Count
Assert-AreEqual $list[0].ResourceGroupName $actual.ResourceGroupName
Assert-AreEqual $list[0].Name $actual.Name
Assert-AreEqual $list[0].Location $actual.Location

# Delete virtualNetworkGateway
$delete = Remove-AzureRmVirtualNetworkGateway -ResourceGroupName $actual.ResourceGroupName -name $rname -PassThru -Force
Assert-AreEqual true $delete

$list = Get-AzureRmVirtualNetworkGateway -ResourceGroupName $actual.ResourceGroupName
Assert-AreEqual 0 @($list).Count

}
finally
{
# Cleanup
Clean-ResourceGroup $rgname
}
}

<#
.SYNOPSIS
Virtual network gateway tests
Expand Down
Loading