Skip to content

Commit

Permalink
Add SetNetworkManager (#17624)
Browse files Browse the repository at this point in the history
* Add SetNetworkManager

* add sessiondata

* add example

* fix
  • Loading branch information
yanfa317 authored Mar 28, 2022
1 parent 7271acd commit 0f3a57b
Show file tree
Hide file tree
Showing 6 changed files with 471 additions and 89 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ function Test-NetworkManagerCRUD
Assert-AreEqual $networkmanager.NetworkManagerScopeAccesses[0] "Connectivity";
Assert-AreEqual $networkManager.NetworkManagerScopes.Subscriptions[0] $subscriptionId;

$networkManager.NetworkManagerScopeAccesses.Add("SecurityAdmin");
$newNetworkManager = Set-AzNetworkManager -ResourceGroupName $rgname -NetworkManager $networkManager
Assert-AreEqual $networkmanager.NetworkManagerScopeAccesses[0] "Connectivity";
Assert-AreEqual $networkmanager.NetworkManagerScopeAccesses[1] "SecurityAdmin";

$job = Remove-AzNetworkManager -ResourceGroupName $rgname -Name $networkManagerName -PassThru -Force -AsJob;
$job | Wait-Job;
$removeResult = $job | Receive-Job;
Expand Down
Loading

0 comments on commit 0f3a57b

Please sign in to comment.