File tree Expand file tree Collapse file tree 3 files changed +35
-3
lines changed
src/ResourceManager/Network
Commands.Network.Test/ScenarioTests Expand file tree Collapse file tree 3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ function Test-CortexCRUD
46
46
Assert-AreEqual $false $virtualWan.AllowVnetToVnetTraffic
47
47
Assert-AreEqual $false $virtualWan.AllowBranchToBranchTraffic
48
48
49
+ # Get Supported SecurityProvider
50
+ $supportedSecurityProvider = Get-AzureRmVirtualWanSupportedSecurityProvider - ResourceGroupName $rgName - VirtualWan $virtualWan
51
+ Assert-NotNull $supportedSecurityProvider
52
+
49
53
# Create the Virtual Hub
50
54
$createdVirtualHub = New-AzureRmVirtualHub - ResourceGroupName $rgName - Name $virtualHubName - Location $rglocation - AddressPrefix " 192.168.1.0/24" - VirtualWan $virtualWan
51
55
$virtualHub = Get-AzureRmVirtualHub - ResourceGroupName $rgName - Name $virtualHubName
@@ -95,6 +99,11 @@ function Test-CortexCRUD
95
99
$hubVnetConnection = Get-AzureRmVirtualHubVnetConnection - ResourceGroupName $rgName - VirtualHubName $virtualHubName - Name $hubVnetConnectionName
96
100
Assert-AreEqual $hubVnetConnectionName $hubVnetConnection.Name
97
101
102
+ # Update a HubVirtualNetworkConnection
103
+ Update-AzureRmVirtualHubVnetConnection - ResourceGroupName $rgName - VirtualHubName $virtualHubName - Name $hubVnetConnectionName - EnableInternetSecurity
104
+ $hubVnetConnection = Get-AzureRmVirtualHubVnetConnection - ResourceGroupName $rgName - VirtualHubName $virtualHubName - Name $hubVnetConnectionName
105
+ Assert-True $hubVnetConnection.EnableInternetSecurity
106
+
98
107
# Download config
99
108
$storetype = ' Standard_GRS'
100
109
$containerName = ' cont' + $rgName
Original file line number Diff line number Diff line change @@ -93,16 +93,23 @@ public override void Execute()
93
93
//// Resolve the VirtualHub
94
94
if ( ParameterSetName . Equals ( CortexParameterSetNames . ByHubVirtualNetworkConnectionObject , StringComparison . OrdinalIgnoreCase ) )
95
95
{
96
- var parsedResourceId = new ResourceIdentifier ( this . InputObject . Id ) ;
96
+ this . ResourceId = this . InputObject . Id ;
97
+
98
+ if ( string . IsNullOrWhiteSpace ( this . ResourceId ) )
99
+ {
100
+ throw new PSArgumentException ( Properties . Resources . HubVnetConnectionNotFound ) ;
101
+ }
102
+
103
+ var parsedResourceId = new ResourceIdentifier ( this . ResourceId ) ;
97
104
this . ResourceGroupName = parsedResourceId . ResourceGroupName ;
98
- this . ParentResourceName = parsedResourceId . ParentResource ;
105
+ this . ParentResourceName = parsedResourceId . ParentResource . Split ( new [ ] { '/' } , StringSplitOptions . RemoveEmptyEntries ) . Last ( ) ;
99
106
this . Name = parsedResourceId . ResourceName ;
100
107
}
101
108
else if ( ParameterSetName . Equals ( CortexParameterSetNames . ByHubVirtualNetworkConnectionResourceId , StringComparison . OrdinalIgnoreCase ) )
102
109
{
103
110
var parsedResourceId = new ResourceIdentifier ( this . ResourceId ) ;
104
111
this . ResourceGroupName = parsedResourceId . ResourceGroupName ;
105
- this . ParentResourceName = parsedResourceId . ParentResource ;
112
+ this . ParentResourceName = parsedResourceId . ParentResource . Split ( new [ ] { '/' } , StringSplitOptions . RemoveEmptyEntries ) . Last ( ) ;
106
113
this . Name = parsedResourceId . ResourceName ;
107
114
}
108
115
Original file line number Diff line number Diff line change 3353
3353
<ListItem >
3354
3354
<Label >RemoteVirtualNetwork</Label >
3355
3355
<ScriptBlock >$_.RemoteVirtualNetwork.Id</ScriptBlock >
3356
+ </ListItem >
3357
+ <ListItem >
3358
+ <Label >EnableInternetSecurity</Label >
3359
+ <PropertyName >EnableInternetSecurity</PropertyName >
3356
3360
</ListItem >
3357
3361
<ListItem >
3358
3362
<Label >ProvisioningState</Label >
3387
3391
<ListItem >
3388
3392
<Label >AllowBranchToBranchTraffic</Label >
3389
3393
<PropertyName >AllowBranchToBranchTraffic</PropertyName >
3394
+ </ListItem >
3395
+ <ListItem >
3396
+ <Label >SecurityProviderName</Label >
3397
+ <PropertyName >SecurityProviderName</PropertyName >
3398
+ </ListItem >
3399
+ <ListItem >
3400
+ <Label >Office365LocalBreakoutCategory</Label >
3401
+ <PropertyName >Office365LocalBreakoutCategory</PropertyName >
3390
3402
</ListItem >
3391
3403
<ListItem >
3392
3404
<Label >Location</Label >
3495
3507
<ListItem >
3496
3508
<Label >BgpSettings</Label >
3497
3509
<PropertyName >BgpSettings</PropertyName >
3510
+ </ListItem >
3511
+ <ListItem >
3512
+ <Label >IsSecuritySite</Label >
3513
+ <PropertyName >IsSecuritySite</PropertyName >
3498
3514
</ListItem >
3499
3515
<ListItem >
3500
3516
<Label >Type</Label >
You can’t perform that action at this time.
0 commit comments