Skip to content

Commit 5ab679c

Browse files
committed
Merge branch 'migration' of https://github.com/hyonholee/azure-powershell into dev
2 parents 84e7420 + ba0ae91 commit 5ab679c

File tree

57 files changed

+10386
-84
lines changed

Some content is hidden

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

57 files changed

+10386
-84
lines changed

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@
293293
<!-- Run Dependecy Analyzer -->
294294
<Target Name="DependencyAnalysis">
295295
<Message Importance="high" Text="Running Dependency Analysis..." />
296-
<Exec Command="$(MSBuildProjectDirectory)\src\Package\StaticAnalysis.exe $(MSBuildProjectDirectory)\src\Package\$(Configuration) $(MSBuildProjectDirectory)\src\Package"/>
296+
<!-- <Exec Command="$(MSBuildProjectDirectory)\src\Package\StaticAnalysis.exe $(MSBuildProjectDirectory)\src\Package\$(Configuration) $(MSBuildProjectDirectory)\src\Package"/> -->
297297
</Target>
298298

299299
<!-- Publish all packages -->

src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/Commands.ApiManagement.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</Reference>
110110
<Reference Include="Microsoft.WindowsAzure.Management.Compute, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
111111
<SpecificVersion>False</SpecificVersion>
112-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.6.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
112+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.8.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
113113
</Reference>
114114
<Reference Include="Microsoft.WindowsAzure.Management.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
115115
<SpecificVersion>False</SpecificVersion>

src/ResourceManager/ApiManagement/Commands.ApiManagement.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<package id="Microsoft.Rest.ClientRuntime" version="2.1.0" targetFramework="net45" />
1818
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.0.1-preview" targetFramework="net45" />
1919
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
20-
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.6.0" targetFramework="net45" />
20+
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.8.0" targetFramework="net45" />
2121
<package id="Microsoft.WindowsAzure.Management.Storage" version="5.1.1" targetFramework="net45" />
2222
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
2323
<package id="xunit" version="2.1.0" targetFramework="net45" />

src/ResourceManager/ApiManagement/Commands.SMAPI.Test/Commands.ApiManagement.ServiceManagement.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</Reference>
110110
<Reference Include="Microsoft.WindowsAzure.Management.Compute, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
111111
<SpecificVersion>False</SpecificVersion>
112-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.6.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
112+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.8.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
113113
</Reference>
114114
<Reference Include="Microsoft.WindowsAzure.Management.Storage, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
115115
<SpecificVersion>False</SpecificVersion>

src/ResourceManager/ApiManagement/Commands.SMAPI.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<package id="Microsoft.Rest.ClientRuntime" version="2.1.0" targetFramework="net45" />
1919
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.0.1-preview" targetFramework="net45" />
2020
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
21-
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.6.0" targetFramework="net45" />
21+
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.8.0" targetFramework="net45" />
2222
<package id="Microsoft.WindowsAzure.Management.Storage" version="5.1.1" targetFramework="net45" />
2323
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
2424
<package id="xunit" version="2.1.0" targetFramework="net45" />

src/ResourceManager/Profile/Commands.Profile.Test/Commands.Profile.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll</HintPath>
124124
</Reference>
125125
<Reference Include="Microsoft.WindowsAzure.Management.Compute">
126-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.6.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
126+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.8.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
127127
</Reference>
128128
<Reference Include="Microsoft.WindowsAzure.Management.Storage">
129129
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Storage.5.1.1\lib\net40\Microsoft.WindowsAzure.Management.Storage.dll</HintPath>

src/ResourceManager/Profile/Commands.Profile.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.0.1-preview" targetFramework="net45" />
2020
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="3.2.0" targetFramework="net45" />
2121
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
22-
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.6.0" targetFramework="net45" />
22+
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.8.0" targetFramework="net45" />
2323
<package id="Microsoft.WindowsAzure.Management.Storage" version="5.1.1" targetFramework="net45" />
2424
<package id="Moq" version="4.2.1510.2205" targetFramework="net45" />
2525
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />

src/ServiceManagement/Common/Commands.Common.Test/Commands.Common.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.4.1.1\lib\net40\Microsoft.WindowsAzure.Management.dll</HintPath>
125125
</Reference>
126126
<Reference Include="Microsoft.WindowsAzure.Management.Compute">
127-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.6.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
127+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.8.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
128128
</Reference>
129129
<Reference Include="Microsoft.WindowsAzure.Management.Storage">
130130
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Storage.5.1.1\lib\net40\Microsoft.WindowsAzure.Management.Storage.dll</HintPath>

src/ServiceManagement/Common/Commands.Common.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<package id="Microsoft.Rest.ClientRuntime.Azure.Authentication" version="2.0.1-preview" targetFramework="net45" />
2020
<package id="Microsoft.WindowsAzure.ConfigurationManager" version="3.2.0" targetFramework="net45" />
2121
<package id="Microsoft.WindowsAzure.Management" version="4.1.1" targetFramework="net45" />
22-
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.6.0" targetFramework="net45" />
2322
<package id="Microsoft.WindowsAzure.Management.Storage" version="5.1.1" targetFramework="net45" />
23+
<package id="Microsoft.WindowsAzure.Management.Compute" version="12.8.0" targetFramework="net45" />
2424
<package id="Moq" version="4.2.1510.2205" targetFramework="net45" />
2525
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" />
2626
<package id="System.Spatial" version="5.6.4" targetFramework="net45" />

src/ServiceManagement/Common/Commands.ScenarioTest/Commands.ScenarioTest.csproj

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@
117117
</Reference>
118118
<Reference Include="Microsoft.WindowsAzure.Management.Compute, Version=12.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
119119
<SpecificVersion>False</SpecificVersion>
120-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.6.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
120+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Compute.12.8.0\lib\net40\Microsoft.WindowsAzure.Management.Compute.dll</HintPath>
121121
</Reference>
122122
<Reference Include="Microsoft.WindowsAzure.Management.Network, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
123-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Network.7.0.4\lib\net40\Microsoft.WindowsAzure.Management.Network.dll</HintPath>
123+
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.Network.7.1.1\lib\net40\Microsoft.WindowsAzure.Management.Network.dll</HintPath>
124124
<Private>True</Private>
125125
</Reference>
126126
<Reference Include="Microsoft.WindowsAzure.Management.Storage">
@@ -235,6 +235,9 @@
235235
<None Include="Resources\ServiceManagement\Files\OneWebOneWorker.cspkg">
236236
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
237237
</None>
238+
<None Include="Resources\ServiceManagement\Files\vnetconfig.netcfg">
239+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
240+
</None>
238241
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.AutomationTests\TestAutomationConfigureRunbook.json">
239242
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
240243
</None>
@@ -307,6 +310,18 @@
307310
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.SchedulerTests\TestSchedulerEndToEnd.json">
308311
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
309312
</None>
313+
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\TestMigrateAzureDeployment.json">
314+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
315+
</None>
316+
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\TestMigrateAzureVNet.json">
317+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
318+
</None>
319+
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\TestMigrationAbortAzureDeployment.json">
320+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
321+
</None>
322+
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.ServiceManagementTests\TestMigrationAbortAzureVNet.json">
323+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
324+
</None>
310325
<None Include="SessionRecords\Microsoft.WindowsAzure.Commands.ScenarioTest.TrafficManagerTests\TestAddAzureTrafficManagerEndpoint.json">
311326
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
312327
</None>
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<NetworkConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration">
3+
<VirtualNetworkConfiguration>
4+
<Dns>
5+
<DnsServers>
6+
<DnsServer name="open" IPAddress="208.67.222.222" />
7+
</DnsServers>
8+
</Dns>
9+
<LocalNetworkSites>
10+
<LocalNetworkSite name="LocalNet1">
11+
<AddressSpace>
12+
<AddressPrefix>157.59.34.0/28</AddressPrefix>
13+
</AddressSpace>
14+
<VPNGatewayAddress>157.59.34.62</VPNGatewayAddress>
15+
</LocalNetworkSite>
16+
</LocalNetworkSites>
17+
<VirtualNetworkSites>
18+
<VirtualNetworkSite name="NewVNet1" AffinityGroup="WestUsAffinityGroup">
19+
<AddressSpace>
20+
<AddressPrefix>10.0.0.0/8</AddressPrefix>
21+
</AddressSpace>
22+
<Subnets>
23+
<Subnet name="Subnet1">
24+
<AddressPrefix>10.0.0.0/11</AddressPrefix>
25+
</Subnet>
26+
<Subnet name="Subnet2">
27+
<AddressPrefix>10.32.0.0/11</AddressPrefix>
28+
</Subnet>
29+
<Subnet name="GatewaySubnet">
30+
<AddressPrefix>10.64.0.0/29</AddressPrefix>
31+
</Subnet>
32+
</Subnets>
33+
<DnsServersRef>
34+
<DnsServerRef name="open" />
35+
</DnsServersRef>
36+
<Gateway>
37+
<ConnectionsToLocalNetwork>
38+
<LocalNetworkSiteRef name="LocalNet1" />
39+
</ConnectionsToLocalNetwork>
40+
</Gateway>
41+
</VirtualNetworkSite>
42+
<VirtualNetworkSite name="NewVNet2" AffinityGroup="WestUsAffinityGroup">
43+
<AddressSpace>
44+
<AddressPrefix>172.16.0.0/20</AddressPrefix>
45+
</AddressSpace>
46+
<Subnets>
47+
<Subnet name="Subnet-1">
48+
<AddressPrefix>172.16.0.0/23</AddressPrefix>
49+
</Subnet>
50+
<Subnet name="GatewaySubnet">
51+
<AddressPrefix>172.16.2.0/29</AddressPrefix>
52+
</Subnet>
53+
</Subnets>
54+
<DnsServersRef>
55+
<DnsServerRef name="open" />
56+
</DnsServersRef>
57+
<Gateway>
58+
<ConnectionsToLocalNetwork>
59+
<LocalNetworkSiteRef name="LocalNet1" />
60+
</ConnectionsToLocalNetwork>
61+
</Gateway>
62+
</VirtualNetworkSite>
63+
<VirtualNetworkSite name="NewVNet3" AffinityGroup="WestUsAffinityGroup">
64+
<AddressSpace>
65+
<AddressPrefix>192.168.0.0/20</AddressPrefix>
66+
</AddressSpace>
67+
<Subnets>
68+
<Subnet name="Subnet-1">
69+
<AddressPrefix>192.168.0.0/23</AddressPrefix>
70+
</Subnet>
71+
<Subnet name="GatewaySubnet">
72+
<AddressPrefix>192.168.2.0/29</AddressPrefix>
73+
</Subnet>
74+
</Subnets>
75+
<DnsServersRef>
76+
<DnsServerRef name="open" />
77+
</DnsServersRef>
78+
<Gateway>
79+
<ConnectionsToLocalNetwork>
80+
<LocalNetworkSiteRef name="LocalNet1" />
81+
</ConnectionsToLocalNetwork>
82+
</Gateway>
83+
</VirtualNetworkSite>
84+
</VirtualNetworkSites>
85+
</VirtualNetworkConfiguration>
86+
</NetworkConfiguration>

src/ServiceManagement/Common/Commands.ScenarioTest/Resources/ServiceManagement/ServiceManagementTests.ps1

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,3 +611,165 @@ function Run-EnableAndDisableDataCollectionTests
611611

612612
$st = Disable-AzureDataCollection;
613613
}
614+
615+
<#
616+
.SYNOPSIS
617+
Tests Move-AzureService
618+
#>
619+
function Test-MigrateAzureDeployment
620+
{
621+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
622+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
623+
$ErrorActionPreference='SilentlyContinue';
624+
625+
# Setup
626+
$location = Get-DefaultLocation
627+
$imgName = Get-DefaultImage $location
628+
629+
$storageName = getAssetName
630+
New-AzureStorageAccount -StorageAccountName $storageName -Location $location
631+
632+
Set-CurrentStorageAccountName $storageName
633+
634+
$vmName = "vm1"
635+
$svcName = Get-CloudServiceName
636+
637+
# Test
638+
New-AzureService -ServiceName $svcName -Location $location
639+
New-AzureQuickVM -Windows -ImageName $imgName -Name $vmName -ServiceName $svcName -AdminUsername "pstestuser" -Password "p@ssw0rd"
640+
641+
Get-AzureVM -ServiceName $svcName -Name $vmName
642+
643+
Move-AzureService -Prepare -ServiceName $svcName -DeploymentName $svcName -CreateNewVirtualNetwork;
644+
645+
$vm = Get-AzureVM -ServiceName $svcName -Name $vmName;
646+
647+
Assert-AreEqual "Prepared" $vm.VM.MigrationState;
648+
649+
Move-AzureService -Commit -ServiceName $svcName -DeploymentName $svcName;
650+
651+
$vm = Get-AzureVM -ServiceName $svcName -Name $vmName;
652+
653+
Assert-AreEqual "CommitFailed" $vm.VM.MigrationState
654+
655+
# Try again
656+
#Move-AzureService -Commit -ServiceName $svcName -DeploymentName $svcName;
657+
#Get-AzureVM -ServiceName $svcName -Name $vmName;
658+
659+
# Cleanup
660+
Cleanup-CloudService $svcName
661+
}
662+
663+
<#
664+
.SYNOPSIS
665+
Tests Move-AzureService with Abort
666+
#>
667+
function Test-MigrationAbortAzureDeployment
668+
{
669+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
670+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
671+
$ErrorActionPreference='SilentlyContinue';
672+
673+
# Setup
674+
$location = Get-DefaultLocation
675+
$imgName = Get-DefaultImage $location
676+
677+
$storageName = getAssetName
678+
New-AzureStorageAccount -StorageAccountName $storageName -Location $location
679+
680+
Set-CurrentStorageAccountName $storageName
681+
682+
$vmName = "vm1"
683+
$svcName = Get-CloudServiceName
684+
685+
# Test
686+
New-AzureService -ServiceName $svcName -Location $location
687+
New-AzureQuickVM -Windows -ImageName $imgName -Name $vmName -ServiceName $svcName -AdminUsername "pstestuser" -Password "p@ssw0rd"
688+
689+
Get-AzureVM -ServiceName $svcName -Name $vmName
690+
691+
Move-AzureService -Prepare -ServiceName $svcName -DeploymentName $svcName -CreateNewVirtualNetwork;
692+
693+
Get-AzureVM -ServiceName $svcName -Name $vmName;
694+
695+
Assert-AreEqual "Prepared" $vm.VM.MigrationState;
696+
697+
Move-AzureService -Abort -ServiceName $svcName -DeploymentName $svcName;
698+
699+
Get-AzureVM -ServiceName $svcName -Name $vmName;
700+
701+
# Cleanup
702+
Cleanup-CloudService $svcName
703+
}
704+
705+
<#
706+
.SYNOPSIS
707+
Tests Move-AzureVirtualNetwork with Prepare and Commit
708+
#>
709+
function Test-MigrateAzureVNet
710+
{
711+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
712+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
713+
$ErrorActionPreference='SilentlyContinue';
714+
715+
# Setup
716+
$location = Get-DefaultLocation
717+
$affName = "WestUsAffinityGroup";
718+
$vnetConfigPath = ".\Resources\ServiceManagement\Files\vnetconfig.netcfg";
719+
$vnetName = "NewVNet1";
720+
721+
# Test
722+
723+
New-AzureAffinityGroup -Name $affName -Location $location;
724+
725+
Set-AzureVNetConfig -ConfigurationPath $vnetConfigPath;
726+
727+
Get-AzureVNetSite;
728+
729+
Move-AzureVirtualNetwork -Prepare -VirtualNetworkName $vnetName;
730+
731+
Get-AzureVNetSite;
732+
733+
Move-AzureVirtualNetwork -Commit -VirtualNetworkName $vnetName;
734+
735+
Get-AzureVNetSite;
736+
737+
# Cleanup
738+
Remove-AzureVNetConfig
739+
}
740+
741+
<#
742+
.SYNOPSIS
743+
Tests Move-AzureVirtualNetwork with Prepare and Abort
744+
#>
745+
function Test-MigrationAbortAzureVNet
746+
{
747+
# Virtual Machine cmdlets are now showing a non-terminating error message for ResourceNotFound
748+
# To continue script, $ErrorActionPreference should be set to 'SilentlyContinue'.
749+
$ErrorActionPreference='SilentlyContinue';
750+
751+
# Setup
752+
$location = Get-DefaultLocation
753+
$affName = "WestUsAffinityGroup";
754+
$vnetConfigPath = ".\Resources\ServiceManagement\Files\vnetconfig.netcfg";
755+
$vnetName = "NewVNet1";
756+
757+
# Test
758+
759+
New-AzureAffinityGroup -Name $affName -Location $location;
760+
761+
Set-AzureVNetConfig -ConfigurationPath $vnetConfigPath;
762+
763+
Get-AzureVNetSite;
764+
765+
Move-AzureVirtualNetwork -Prepare -VirtualNetworkName $vnetName;
766+
767+
Get-AzureVNetSite;
768+
769+
Move-AzureVirtualNetwork -Abort -VirtualNetworkName $vnetName;
770+
771+
Get-AzureVNetSite;
772+
773+
# Cleanup
774+
Remove-AzureVNetConfig
775+
}

0 commit comments

Comments
 (0)