Skip to content

Update Compute for preview release #7371

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
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
b6167a3
Merge pull request #7135 from Azure/preview
Sep 5, 2018
2ae349f
Public preview of Microsoft.ResourceGraph module
Sep 7, 2018
3770bb9
Add sample output to documentation
Sep 10, 2018
7bbc533
Add ResourceId field if id is present
Sep 11, 2018
9f5e457
added initial network profile powershell commands
Sep 12, 2018
9dca68f
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
Sep 12, 2018
ad5ebd2
Search-AzureRmGraph
Sep 12, 2018
b49e9f8
Merge pull request #7226 from maddieclayton/AzureRM.Network-preview
Sep 13, 2018
9d7de4d
Merge branch 'network-september-release' into network-september-release
Flip-Liquid Sep 13, 2018
0028bc0
revert to current SDK version
Sep 13, 2018
6d33d3f
corrected casing in psd1 and changelog
Sep 13, 2018
efa5765
Merge branch 'network-september-release' of https://github.com/jcgknu…
Sep 13, 2018
5ff5704
added help md for network profile apis
Sep 13, 2018
8fc1e79
help markdowns
Sep 13, 2018
f676b37
added help markdowns and examples
Sep 13, 2018
03e0417
add missing operations to module export. test fixes
Sep 13, 2018
e5c2066
Merge branch 'network-september-release' into network-september-release
Flip-Liquid Sep 13, 2018
9050457
fix and update help markdowns
Sep 13, 2018
feafa24
added az cmdlet aliases & mappings
Sep 13, 2018
9056b37
merge issue
Sep 13, 2018
b73ba5e
test refactorings
Sep 13, 2018
691a78e
Merge branch 'network-september-release' of https://github.com/jcgknu…
Sep 13, 2018
f1c8bd4
west us for test w/aci
Sep 13, 2018
539add2
Change encoding to UTF-8 for module manifest files, change version to…
cormacpayne Sep 13, 2018
12c7dcf
test & export fixes
Sep 13, 2018
56475ea
remove unused parameter sets, add container instance project to netwo…
Sep 13, 2018
9194da0
Feedback + tests
Sep 13, 2018
0255326
Update piping-in-powershell.md
Sep 13, 2018
8c7f859
.NET Core support
Sep 14, 2018
8ae30ff
Merge from upstream
Sep 14, 2018
38ee2b2
Cleanup
Sep 14, 2018
448b319
feedback + test fixes
Sep 14, 2018
d52e6c6
Merge branch 'network-september-release' of https://github.com/Azure/…
Sep 14, 2018
4501377
network interface -> nic for network profile cmdlets in changelog and…
Sep 14, 2018
e0467a3
Merge branch 'release-2018-09-17' into network-september-release
Flip-Liquid Sep 14, 2018
0dbb39a
renamed cmdlet help files according to networkinterface->nic
Sep 14, 2018
c3e64a6
corrected test issues and cmdlet output types
Sep 14, 2018
e88afd5
fix test failures
Sep 14, 2018
ed9eb8a
Added test recordings
Sep 14, 2018
07d56da
added _command suffix
Sep 14, 2018
a419cce
Merge pull request #7258 from maddieclayton/updatenetwork
Sep 14, 2018
8aed7a3
fixup aci e2e test, remove for this pr until sub is whitelisted
Sep 14, 2018
3bc47b2
updated recordings
Sep 15, 2018
ad487d6
Fixed network watcher tests
irrogozh Sep 14, 2018
8f8e167
Fixed regions in network watcher tests
irrogozh Sep 15, 2018
ceddd2b
Changed eastus to centraluseuap for pcket capture and connection moin…
irrogozh Sep 15, 2018
6d510f9
Updated network watcher test recordings
irrogozh Sep 16, 2018
3a5dcb8
Added function to get canary location for network watcher tests
irrogozh Sep 17, 2018
614c78a
Update help
Sep 17, 2018
141411a
Allow for SPN context persistence in .NET Core
cormacpayne Sep 17, 2018
dbf2b69
Merge branch 'preview' into maddieclayton-patch-1
cormacpayne Sep 17, 2018
9add970
Merge branch 'AzureRM.Network-preview' into preview
Sep 17, 2018
478cce3
Resolve PR comments
Sep 18, 2018
cb4527a
Added Get-PilotLocation function to networkWatcher tests
irrogozh Sep 18, 2018
f889a07
Merge pull request #7264 from irrogozh/release-2018-09-17
cormacpayne Sep 18, 2018
1244941
Merge branch 'preview' into resourcegraph-ps
cormacpayne Sep 18, 2018
fcdcb5d
Fix StaticAnalysis error when no modules are provided
cormacpayne Sep 18, 2018
55c6002
Merge pull request #7242 from Azure/maddieclayton-patch-1
Sep 18, 2018
16020ad
Merge pull request #7229 from demyanenko/resourcegraph-ps
cormacpayne Sep 18, 2018
5519d3c
Place AzureRM.psm1 in .gitignore
cormacpayne Sep 18, 2018
3af3ae9
Adding dependency loading mechansim for NetCore
markcowl Sep 19, 2018
02497ce
Fixing test dependencies
markcowl Sep 19, 2018
5ffb58a
Fix sign build
markcowl Sep 19, 2018
950cca6
Correct Package Reference
markcowl Sep 19, 2018
1d32daf
Update assembly loading script for PowerShell Core
markcowl Sep 19, 2018
58e7f66
Update versions for 0.2.2
markcowl Sep 19, 2018
df595e4
[Storage] Fix copy blob/file won't overwrite metadata issue and updat…
blueww Sep 19, 2018
1059ac4
Merge pull request #7291 from wastoresh/fixmetadata
cormacpayne Sep 19, 2018
bb3a8a7
Update AzureRM.psm1
cormacpayne Sep 19, 2018
db79491
Update powershell to the latest version
chandrasekarsrinivasan Sep 5, 2018
1555e58
powershell changes
neaggarwMS Sep 11, 2018
aea281d
Test for cmdlets added for vtap
neaggarwMS Sep 11, 2018
b792f4a
Update SDK to the published; Drop localfeed entry
EvgenyAgafonchikov Sep 13, 2018
d67fbaa
Responding to review feedback
markcowl Sep 19, 2018
d253e6f
Common fixes; Updated mappings
EvgenyAgafonchikov Sep 13, 2018
6b01fda
Added default parameter set
EvgenyAgafonchikov Sep 13, 2018
237b4cf
Added help templates
EvgenyAgafonchikov Sep 13, 2018
f9c21fb
Test fix. Updated recordings
EvgenyAgafonchikov Sep 13, 2018
9cc0f9f
Merge branch 'preview' of github.com:Azure/azure-powershell into key-…
cormacpayne Sep 19, 2018
0401344
Merge pull request #7288 from Azure/ignore-psm1
MiYanni Sep 19, 2018
55e9871
Resolve review feedback.
cormacpayne Sep 19, 2018
9958028
Filter over all built modules in the case no argument is provided for…
cormacpayne Sep 19, 2018
ce3d97d
Update labels for Az
markcowl Sep 19, 2018
c38f986
Merge branch 'key-store-refactor' of github.com:cormacpayne/azure-pow…
markcowl Sep 19, 2018
a909e1b
Merge branch 'preview' of github.com:/azure/azure-powershell into az022
markcowl Sep 19, 2018
ec24766
Merge pull request #7303 from Azure/az-readme-fix
cormacpayne Sep 19, 2018
b6ce95c
Allow any string as Size parameter going forward. Add P5 in PSArgumen…
Sep 19, 2018
6d3e0fe
Created change log file
Sep 19, 2018
d72f4a6
Merge pull request #7301 from Azure/static-analysis-update
cormacpayne Sep 20, 2018
f9b4fc3
help files update
neaggarwMS Sep 20, 2018
d986fe6
removed extra add/set/get/remove commands for ipconfigprofile and con…
Sep 20, 2018
95abd8a
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
Sep 20, 2018
e671aa3
Help file fix
neaggarwMS Sep 20, 2018
6d85805
AzureRm.Security: Fixing documentation links and descriptions
Sep 20, 2018
cf9cd26
Minor help fixes
neaggarwMS Sep 20, 2018
1b92e2b
Update AzureRM.Security.psd1
cormacpayne Sep 20, 2018
2ef0a3b
Update ChangeLog file and delete the duplicate file
Sep 20, 2018
6cf077d
Merge pull request #7312 from chlahav/preview
cormacpayne Sep 20, 2018
9241c6a
Merge pull request #7306 from SiddharthChatrolaMs/preview
cormacpayne Sep 20, 2018
c9db203
Fix Az.ResourceGraph exported commands
Sep 20, 2018
dc3423e
add resource id, input object parameter sets to Get- Set- Remove- Net…
Sep 20, 2018
1159a89
removed .md files for removed cmdlets
Sep 20, 2018
051c966
changed cmdlet name to omit Network profile for ipconfig and containe…
Sep 20, 2018
e129631
updated md files
Sep 20, 2018
a77f8c1
Add missing parameter to Set-AzureRmPolicyDefinition
mentat9 Sep 21, 2018
fe8dec6
mapping fix
neaggarwMS Sep 21, 2018
1e2834a
Add changelog entry, update help file
mentat9 Sep 21, 2018
7dfe8b2
Update Network Rules documentation to use the accepted forms for prot…
Sep 21, 2018
579bd2d
new test recordings
Sep 21, 2018
9d16983
export reduced cmdlet set
Sep 21, 2018
2e7b346
parameter set fixes
Sep 21, 2018
0e70c39
update help with correct param set name
Sep 21, 2018
3490793
[Storage] Support get Usage from Location
blueww Sep 20, 2018
9737fbb
Merge pull request #7317 from demyanenko/resourcegraph-cloud-shell
cormacpayne Sep 21, 2018
e45c609
Fix static caching issue of SqlClient
adeal Sep 21, 2018
e3eff68
Add full typenames to .md file
mentat9 Sep 21, 2018
dbce6b0
Merge branch 'Az.0.2.2' into az022
markcowl Sep 21, 2018
65ea37e
updated mappings
Sep 21, 2018
49f399b
Merge pull request #7324 from mentat9/preview
cormacpayne Sep 21, 2018
43bad4c
Merge pull request #7311 from wastoresh/locationusage
cormacpayne Sep 21, 2018
11d55c6
Merge pull request #7322 from dealaus/preview
cormacpayne Sep 21, 2018
30b329b
fixed changelog
Sep 21, 2018
9104cad
add correct default parameter set
Sep 21, 2018
7731615
Merge branch 'preview' of https://github.com/Azure/azure-powershell i…
Sep 21, 2018
b810578
feedback
neaggarwMS Sep 21, 2018
7839f53
Merge pull request #7325 from fanymanea/FixAzureFirewallDocumentation
praries880 Sep 21, 2018
e13cfe5
fix in adding reference
neaggarwMS Sep 21, 2018
e932b8a
feedback to update help
neaggarwMS Sep 21, 2018
b2f3b1c
Fix default parameter value in psm1
Sep 21, 2018
2127248
feedback: add recordings json to test csproj, remove un needed cmdlet…
Sep 21, 2018
6004600
small fix to check parameter setname comparison
neaggarwMS Sep 21, 2018
60db091
feedback
Sep 21, 2018
dc6b3b6
feedback
neaggarwMS Sep 21, 2018
6855758
Switch to published version of common libraries
markcowl Sep 21, 2018
55a2d57
Merge branch 'az022' of github.com:markcowl/azure-powershell into az022
markcowl Sep 21, 2018
0b0d684
help fixes
neaggarwMS Sep 21, 2018
a33197e
Update Commands.Network.Test.csproj
Sep 21, 2018
c1eb249
Merge pull request #7193 from neaggarwMS/Vtap
Sep 21, 2018
0880b51
Merge branch 'preview' into network-september-release
Sep 21, 2018
810ae46
Merge pull request #7225 from jcgknudson/network-september-release
Sep 22, 2018
e524bd6
Merge pull request #7289 from markcowl/az022
markcowl Sep 24, 2018
f3b8a8e
Update Set-AzureRmVMADDomainExtension.md
DanManson Sep 24, 2018
08fd57a
Update Set-AzureRmVMADDomainExtension.md
cormacpayne Sep 24, 2018
ae274af
Merge pull request #7353 from DanManson/patch-1
cormacpayne Sep 24, 2018
cac6bdb
Merge pull request #7355 from Azure/Az.0.2.2
Sep 24, 2018
68500ee
Merge pull request #7363 from Azure/master
cormacpayne Sep 24, 2018
e305100
Merge pull request #7332 from maddieclayton/defaultps
Sep 24, 2018
5f17cf8
Merge branch 'preview' of github.com:Azure/azure-powershell into Comp…
cormacpayne Sep 24, 2018
ef04ffc
Update Compute to 5.6.1-preview
cormacpayne Sep 24, 2018
a692a43
Remove reference to missing cmdlet in Network
cormacpayne Sep 25, 2018
37402cc
Merge branch 'Compute-SharedImageGallery' of github.com:Azure/azure-p…
cormacpayne Sep 28, 2018
9edfcfa
Update json serialization of Compute
cormacpayne Oct 2, 2018
4cf59f3
Merge branch 'Compute-SharedImageGallery' of github.com:Azure/azure-p…
cormacpayne Oct 5, 2018
3bafc28
Add ExpandReplicationStatus parameter to Get-AzureRmGalleryImageVersion
hyonholee Oct 8, 2018
a9646e5
Fix build error
hyonholee Oct 9, 2018
5f09738
Merge pull request #7491 from hyonholee/Compute-SharedImageGallery
praries880 Oct 10, 2018
c705cb5
Merge branch 'Compute-SharedImageGallery' of https://github.com/corma…
praries880 Oct 10, 2018
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
Prev Previous commit
Next Next commit
test & export fixes
  • Loading branch information
Jack Knudson committed Sep 13, 2018
commit 12c7dcf7c3db228ea9363af4787ce4706f97d7dd
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@

namespace Commands.Network.Test.ScenarioTests
{
public class NetworkProfileTestsGenerated : RMTestBase
public class NetworkProfileTests : RMTestBase
{
public XunitTracingInterceptor _logger;

public NetworkProfileTestsGenerated(Xunit.Abstractions.ITestOutputHelper output)
public NetworkProfileTests(Xunit.Abstractions.ITestOutputHelper output)
{
_logger = new XunitTracingInterceptor(output);
XunitTracingInterceptor.AddToContext(_logger);
Expand Down Expand Up @@ -70,17 +70,33 @@ public void TestContainerNetworkInterfaceCRUDMinimalParameters()
[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, Category.sdnnrp)]
public void TestContainerNetworkInterfaceConfigurationCRUDMinimalParameters()
public void TestContainerNetworkInterfaceConfigCRUDMinimalParameters()
{
NetworkResourcesController.NewInstance.RunPsTest(_logger, string.Format("Test-ContainerNetworkInterfaceConfigurationCRUDMinimalParameters"));
NetworkResourcesController.NewInstance.RunPsTest(_logger, string.Format("Test-ContainerNetworkInterfaceConfigCRUDMinimalParameters"));
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, Category.sdnnrp)]
public void TestContainerNetworkInterfaceConfigurationCRUD()
public void TestContainerNetworkInterfaceConfigCRUD()
{
NetworkResourcesController.NewInstance.RunPsTest(_logger, string.Format("Test-ContainerNEtworkInterfaceConfigurationCRUD"));
NetworkResourcesController.NewInstance.RunPsTest(_logger, string.Format("Test-ContainerNetworkInterfaceConfigCRUD"));
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, Category.sdnnrp)]
public void TestContainerNetworkInterfaceConfigCRUDSet()
{
NetworkResourcesController.NewInstance.RunPsTest(_logger, string.Format("Test-ContainerNetworkInterfaceConfigCRUDSet"));
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
[Trait(Category.Owner, Category.sdnnrp)]
public void TestNetworkProfileEndToEndWithContainerNics()
{
NetworkResourcesController.NewInstance.RunPsTest(_logger, string.Format("Test-NetworkProfileEndToEndWithContainerNics"));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,14 @@ function Test-NetworkProfileCRUDMinimalParameters
$resourceGroup = New-AzureRmResourceGroup -Name $rgname -Location $rglocation;

# Create required dependencies
$ContainerNetworkInterface = New-AzureRmNetworkProfileContainerNetworkInterface -Name $ContainerNetworkInterfaceName;
$ContainerNetworkInterfaceConfig = New-AzureRmNetworkProfileContainerNetworkInterfaceConfig -Name $ContainerNetworkInterfaceConfigName;

# Create NetworkProfile
$vNetworkProfile = New-AzureRmNetworkProfile -ResourceGroupName $rgname -Name $npName -Location $location -ContainerNetworkInterface $ContainerNetworkInterface -ContainerNetworkInterfaceConfig $ContainerNetworkInterfaceConfig;
$vNetworkProfile = New-AzureRmNetworkProfile -ResourceGroupName $rgname -Name $npName -Location $location -ContainerNetworkInterfaceConfig $ContainerNetworkInterfaceConfig;
Assert-NotNull $vNetworkProfile;
Assert-True { Check-CmdletReturnType "New-AzureRmNetworkProfile" $vNetworkProfile };
Assert-NotNull $vNetworkProfile.ContainerNetworkInterfaces;
Assert-True { $vNetworkProfile.ContainerNetworkInterfaces.Length -gt 0 };
Assert-True { $vNetworkProfile.ContainerNetworkInterfaces.Length -eq 0 };
Assert-NotNull $vNetworkProfile.ContainerNetworkInterfaceConfigs;
Assert-True { $vNetworkProfile.ContainerNetworkInterfaceConfigs.Length -gt 0 };
Assert-AreEqual $npName $vNetworkProfile.Name;
Expand Down Expand Up @@ -107,17 +106,16 @@ function Test-NetworkProfileCRUDAllParameters
try
{
$resourceGroup = New-AzureRmResourceGroup -Name $rgname -Location $rglocation;

# Create required dependencies
$ContainerNetworkInterface = New-AzureRmNetworkProfileContainerNetworkInterface -Name $ContainerNetworkInterfaceName;
$ContainerNetworkInterfaceConfig = New-AzureRmNetworkProfileContainerNetworkInterfaceConfig -Name $ContainerNetworkInterfaceConfigName;

# Create NetworkProfile
$vNetworkProfile = New-AzureRmNetworkProfile -ResourceGroupName $rgname -Name $npName -Location $location -ContainerNetworkInterface $ContainerNetworkInterface -ContainerNetworkInterfaceConfig $ContainerNetworkInterfaceConfig;
$vNetworkProfile = New-AzureRmNetworkProfile -ResourceGroupName $rgname -Name $npName -Location $location -ContainerNetworkInterfaceConfig $ContainerNetworkInterfaceConfig;
Assert-NotNull $vNetworkProfile;
Assert-True { Check-CmdletReturnType "New-AzureRmNetworkProfile" $vNetworkProfile };
Assert-NotNull $vNetworkProfile.ContainerNetworkInterfaces;
Assert-True { $vNetworkProfile.ContainerNetworkInterfaces.Length -gt 0 };
Assert-True { $vNetworkProfile.ContainerNetworkInterfaces.Length -eq 0 };
Assert-NotNull $vNetworkProfile.ContainerNetworkInterfaceConfigs;
Assert-True { $vNetworkProfile.ContainerNetworkInterfaceConfigs.Length -gt 0 };
Assert-AreEqual $npName $vNetworkProfile.Name;
Expand Down Expand Up @@ -161,36 +159,36 @@ function Test-ContainerNetworkInterfaceCRUDMinimalParameters
$resourceGroup = New-AzureRmResourceGroup -Name $rgname -Location $rglocation;

# Create ContainerNetworkInterface
$vContainerNetworkInterface = New-AzureRmNetworkProfileContainerNetworkInterface -Name $containerNicName;
Assert-NotNull $vContainerNetworkInterface;
Assert-True { Check-CmdletReturnType "New-AzureRmNetworkProfileContainerNetworkInterface" $vContainerNetworkInterface };
$vNetworkProfile = New-AzureRmNetworkProfile -ResourceGroupName $rgname -Name $networkProfileName -ContainerNetworkInterface $vContainerNetworkInterface -Location $location;
$vContainerNetworkInterfaceConfig = New-AzureRmNetworkProfileContainerNetworkInterfaceConfig -Name $containerNicName;
Assert-NotNull $vContainerNetworkInterfaceConfig;
Assert-True { Check-CmdletReturnType "New-AzureRmNetworkProfileContainerNetworkInterfaceConfig" $vContainerNetworkInterfaceConfig };
$vNetworkProfile = New-AzureRmNetworkProfile -ResourceGroupName $rgname -Name $networkProfileName -ContainerNetworkInterface $vContainerNetworkInterfaceConfig -Location $location;
Assert-NotNull $vNetworkProfile;
Assert-AreEqual $containerNicName $vContainerNetworkInterface.Name;
Assert-AreEqual $containerNicName $vContainerNetworkInterfaceConfig.Name;

# Get ContainerNetworkInterface
$vContainerNetworkInterface = Get-AzureRmNetworkProfileContainerNetworkInterface -NetworkProfile $vNetworkProfile -Name $containerNicName;
Assert-NotNull $vContainerNetworkInterface;
Assert-True { Check-CmdletReturnType "Get-AzureRmNetworkProfileContainerNetworkInterface" $vContainerNetworkInterface };
Assert-AreEqual $containerNicName $vContainerNetworkInterface.Name;
$vContainerNetworkInterfaceConfig = Get-AzureRmNetworkProfileContainerNetworkInterfaceConfig -NetworkProfile $vNetworkProfile -Name $containerNicName;
Assert-NotNull $vContainerNetworkInterfaceConfig;
Assert-True { Check-CmdletReturnType "Get-AzureRmNetworkProfileContainerNetworkInterfaceConfig" $vContainerNetworkInterfaceConfig };
Assert-AreEqual $containerNicName $vContainerNetworkInterfaceConfig.Name;

# Add ContainerNetworkInterface
$vNetworkProfile = Add-AzureRmNetworkProfileContainerNetworkInterface -Name $containerNicNameAdd -NetworkProfile $vNetworkProfile;
$vNetworkProfile = Add-AzureRmNetworkProfileContainerNetworkInterfaceConfig -Name $containerNicNameAdd -NetworkProfile $vNetworkProfile;
Assert-NotNull $vNetworkProfile;
$vNetworkProfile = Set-AzureRmNetworkProfile -NetworkProfile $vNetworkProfile;

# Get ContainerNetworkInterface
$vContainerNetworkInterface = Get-AzureRmNetworkProfileContainerNetworkInterface -NetworkProfile $vNetworkProfile -Name $containerNicNameAdd;
Assert-NotNull $vContainerNetworkInterface;
Assert-True { Check-CmdletReturnType "Get-AzureRmNetworkProfileContainerNetworkInterface" $vContainerNetworkInterface };
Assert-AreEqual $containerNicNameAdd $vContainerNetworkInterface.Name;
$vContainerNetworkInterfaceConfig = Get-AzureRmNetworkProfileContainerNetworkInterfaceConfig -NetworkProfile $vNetworkProfile -Name $containerNicNameAdd;
Assert-NotNull $vContainerNetworkInterfaceConfig;
Assert-True { Check-CmdletReturnType "Get-AzureRmNetworkProfileContainerNetworkInterfaceConfig" $vContainerNetworkInterfaceConfig };
Assert-AreEqual $containerNicNameAdd $vContainerNetworkInterfaceConfig.Name;

# Remove ContainerNetworkInterface
Remove-AzureRmNetworkProfileContainerNetworkInterface -NetworkProfile $vNetworkProfile -Name $containerNicNameAdd;
Remove-AzureRmNetworkProfileContainerNetworkInterfaceConfig -NetworkProfile $vNetworkProfile -Name $containerNicNameAdd;
$vNetworkProfile = Set-AzureRmNetworkProfile -NetworkProfile $vNetworkProfile;

# Get ContainerNetworkInterface should fail
Assert-ThrowsContains { Get-AzureRmNetworkProfileContainerNetworkInterface -NetworkProfile $vNetworkProfile -Name $containerNicNameAdd } "Sequence contains no matching element";
Assert-ThrowsContains { Get-AzureRmNetworkProfileContainerNetworkInterfaceConfig -NetworkProfile $vNetworkProfile -Name $containerNicNameAdd } "Sequence contains no matching element";
}
finally
{
Expand Down Expand Up @@ -274,7 +272,6 @@ function Test-ContainerNetworkInterfaceConfigCRUD
$resourceGroup = New-AzureRmResourceGroup -Name $rgname -Location $rglocation;

# Create virtual network and subnet
$vnet = New-AzureRmVirtualNetwork
$subnet = New-AzureRmVirtualNetworkSubnetConfig -Name $subnetName -AddressPrefix 10.0.1.0/24
$response = New-AzureRmVirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $subnet
$subnet = $response.Subnets[0]
Expand Down Expand Up @@ -337,7 +334,7 @@ function Test-ContainerNetworkInterfaceConfigCRUD
}
}

function Test-ContainerNetworkInterfaceConfigCRUD
function Test-ContainerNetworkInterfaceConfigCRUDSet
{
# Setup
$rgname = Get-ResourceGroupName;
Expand All @@ -355,7 +352,6 @@ function Test-ContainerNetworkInterfaceConfigCRUD
$resourceGroup = New-AzureRmResourceGroup -Name $rgname -Location $rglocation;

# Create virtual network and subnet
$vnet = New-AzureRmVirtualNetwork
$subnet = New-AzureRmVirtualNetworkSubnetConfig -Name $subnetName -AddressPrefix 10.0.1.0/24
$response = New-AzureRmVirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -Subnet $subnet
$subnet = $response.Subnets[0]
Expand Down Expand Up @@ -411,12 +407,13 @@ function Test-NetworkProfileEndToEndWithContainerNics
$ipConfigProfileName = "ipconfigprofile1"
$location = "westus";

$vnetName = "vnet1"
$subnetName = "subnet1"
$containerGroupName = "cg1"

try
{
# Create Virtual Network and Subnet
$vnet = New-AzureRmVirtualNetwork
$subnet = New-AzureRmVirtualNetworkSubnetConfig -Name $subnetName -AddressPrefix 10.0.1.0/24
$response = New-AzureRmVirtualNetwork -Name $vnetName -ResourceGroupName $rgname -Location $location -AddressPrefix 10.0.0.0/16 -DnsServer 8.8.8.8 -Subnet $subnet
$subnet = $response.Subnets[0]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ CmdletsToExport = 'Add-AzureRmApplicationGatewayAuthenticationCertificate',
'Get-AzureRmNetworkProfileContainerNetworkInterfaceConfig',
'New-AzureRmNetworkProfileContainerNetworkInterfaceConfig',
'Remove-AzureRmNetworkProfileContainerNetworkInterfaceConfig',
'Add-AzureRmNetworkProfileContainerNetworkInterfaceConfig'
'Add-AzureRmNetworkProfileContainerNetworkInterfaceConfig',
'Set-AzureRmNetworkProfileContainerNetworkInterfaceConfig',
'Get-AzureRmNetworkProfileContainerNetworkInterfaceConfigIpConfig',
'New-AzureRmNetworkProfileContainerNetworkInterfaceConfigIpConfig',
Expand Down