Skip to content

Commit

Permalink
Add New Resource NetworkManager (Azure#12441)
Browse files Browse the repository at this point in the history
* Add New Resource NetworkManager

* fix prettie

* Fix bug

* add customwords

* fix bugs

* add patch api

* Fix bug

* add deployment status apis

* fix bugs

* Fix bugs

* fix bug

* add vnetapi

* Fix bug

* Fix bug

* prettycheck

* fix bug

* fix as commnets

* fix example

* fix buyg

* Fix as commit

* fix bug

* move to preview folder

* Fix bug

* fix bug

* Fix description

* Fix bug

* fix bug

* fix rules

* fix spell

* Remove tags and add systemtags

* Fix bug

* remove location

* fix as discussed

* Fix bug

* Fix version

* fix as commnets

* Fix format

* fix format

* fix bug

* Add patch nm

* Fix bug

* fix validation

* update tag

* Fix as commnets

* fix bug

* Fix Bug Issue

* Fix Bug Issue

* Fix dup

* Fix dup

* New fix

* add systemdata

* add systemdata

* Change as comments

* fix as comments

* try unchange tag

* change tag
  • Loading branch information
yanfa317 authored Feb 24, 2021
1 parent cf1e3f9 commit 36b9a02
Show file tree
Hide file tree
Showing 44 changed files with 5,443 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1182,6 +1182,7 @@ nowcasts
nsdname
nsku
nsxt
NSGs
ntext
ntfs
ntlm
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"title": "Get Azure Virtual Network Manager Active Configuration",
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "subscriptionA",
"resourceGroupName": "myResourceGroup",
"networkManagerName": "testNetworkManager"
},
"responses": {
"200": {
"body": {
"value": [
{
"configType": "Connectivity",
"connectivityConfiguration": {
"name": "myTestConnectivityConfig",
"id": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/connectivityConfigurations/myTestConnectivityConfig",
"type": "Microsoft.Network/networkManagers/connectivityConfigurations",
"properties": {
"displayName": "myTestConnectivityConfig",
"description": "Sample Configuration",
"connectivityTopology": "HubAndSpokeTopology",
"hubId": "subscriptions/subscriptionB/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myHubVnet",
"deleteExistingPeering": true,
"isGlobal": true,
"appliesToGroups": [
{
"networkGroupId": "subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/groups/group1",
"useHubGateway": true,
"groupConnectivity": "Transitive",
"isGlobal": false
}
],
"provisioningState": "Succeeded"
}
},
"securityAdminRule": null,
"securityUserRule": null,
"configurationGroups": [
{
"name": "group1",
"id": "/subscriptions/subscriptionA/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/group1",
"type": "Microsoft.Network/networkManagers/networkGroups",
"properties": {
"displayName": "My Network Group",
"description": "A group for all test Virtual Networks",
"memberType": "VirtualNetwork",
"groupMembers": [
{
"resourceId": "/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/virtualnetwork/vnet1"
}
],
"conditionalMembership": "",
"provisioningState": "Succeeded"
}
}
],
"region": "westus",
"commitTime": "2020-07-10T18:03:22.2578238+05:30"
}
],
"nextLink": "{baseurl}/subscriptions/subscriptionA/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkManagers/testNetworkManager/activeConfigurations?api-version=22021-02-01-preview&$skipToken=10"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"configurationName": "myTestSecurityConfig",
"networkManagerName": "testNetworkManager",
"ruleName": "SampleAdminRule"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"configurationName": "myTestSecurityConfig",
"networkManagerName": "testNetworkManager",
"ruleName": "SampleAdminRule"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/securityConfigurations/myTestSecurityConfig/adminRules/SampleAdminRule",
"type": "Microsoft.Network/networkManagers/securityConfigurations/AdminRules",
"name": "SampleAdminRule",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
},
"properties": {
"displayName": "SampleAdminRule",
"description": "This is Sample Admin Rule",
"protocol": "Tcp",
"source": [
{
"addressPrefixType": "IPPrefix",
"addressPrefix": "*"
}
],
"destination": [
{
"addressPrefixType": "IPPrefix",
"addressPrefix": "*"
}
],
"sourcePortRanges": [
"0-65535"
],
"destinationPortRanges": [
"22"
],
"access": "Deny",
"priority": 1,
"direction": "Inbound",
"appliesToGroups": [
{
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkmanagers/testNetworkManager/networkGroups/testGroup"
}
],
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkManagerName": "testNetworkManager",
"configurationName": "myTestSecurityConfig",
"ruleName": "SampleAdminRule",
"adminRule": {
"properties": {
"description": "This is Sample Admin Rule",
"protocol": "Tcp",
"source": [
{
"addressPrefixType": "ServiceTag",
"addressPrefix": "Internet"
}
],
"destination": [
{
"addressPrefixType": "IPPrefix",
"addressPrefix": "*"
}
],
"sourcePortRanges": [
"0-65535"
],
"destinationPortRanges": [
"22"
],
"access": "Deny",
"priority": 1,
"direction": "Inbound",
"appliesToGroups": [
{
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"
}
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityConfigurations/myTestSecurityConfig/adminRules/SampleAdminRule",
"type": "Microsoft.Network/networkManagers/securityConfigurations/AdminRules",
"name": "SampleAdminRule",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
},
"properties": {
"description": "This is Sample Admin Rule",
"protocol": "Tcp",
"source": [
{
"addressPrefixType": "ServiceTag",
"addressPrefix": "Internet"
}
],
"destination": [
{
"addressPrefixType": "IPPrefix",
"addressPrefix": "*"
}
],
"sourcePortRanges": [
"0-65535"
],
"destinationPortRanges": [
"22"
],
"access": "Deny",
"priority": 1,
"direction": "Inbound",
"appliesToGroups": [
{
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"
}
],
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/SecurityConfigurations/myTestSecurityConfig/adminRules/SampleAdminRule",
"type": "Microsoft.Network/networkManagers/securityConfigurations/AdminRules",
"name": "SampleAdminRule",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
},
"properties": {
"description": "This is Sample Admin Rule",
"protocol": "Tcp",
"source": [
{
"addressPrefixType": "ServiceTag",
"addressPrefix": "Internet"
}
],
"destination": [
{
"addressPrefixType": "IPPrefix",
"addressPrefix": "*"
}
],
"sourcePortRanges": [
"0-65535"
],
"destinationPortRanges": [
"22"
],
"access": "Deny",
"priority": 1,
"direction": "Inbound",
"appliesToGroups": [
{
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/testGroup"
}
],
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkManagerName": "testNetworkManager",
"configurationName": "myTestSecurityConfig"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkmanagers/testNetworkManager/securityConfigurations/myTestSecurityConfig/adminRules/SampleAdminRule",
"type": "Microsoft.Network/networkManagers/securityConfigurations/AdminRules",
"name": "SampleAdminRule",
"systemData": {
"createdBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"createdByType": "User",
"createdAt": "2021-01-11T18:52:27Z",
"lastModifiedBy": "b69a9388-9488-4534-b470-7ec6d41beef5",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-11T18:52:27Z"
},
"properties": {
"description": "This is Sample Admin Rule",
"protocol": "Tcp",
"source": [
{
"addressPrefixType": "IPPrefix",
"addressPrefix": "*"
}
],
"destination": [
{
"addressPrefixType": "IPPrefix",
"addressPrefix": "*"
}
],
"sourcePortRanges": [
"0-65535"
],
"destinationPortRanges": [
"22"
],
"access": "Deny",
"priority": 1,
"direction": "Inbound",
"appliesToGroups": [
{
"networkGroupId": "/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.Network/networkmanagers/testNetworkManager/networkGroups/testGroup"
}
],
"provisioningState": "Succeeded"
}
}
],
"nextLink": "{baseurl}/subscriptions/subscriptionC/resourceGroup/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkManagers/myTestSecurityConfig/adminRules?api-version=2021-02-01-preview&$skipToken=10"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "Post Azure Virtual Network Manager Commit",
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "subscriptionC",
"resourceGroupName": "resoureGroupSample",
"networkManagerName": "testNetworkManager",
"parameters": {
"targetLocations": [
"usest"
],
"configurationIds": [
"/subscriptions/subscriptionC/resourceGroups/resoureGroupSample/providers/Microsoft.Network/networkManagers/testNetworkManager/securityConfigurations/SampleSecurityConfig"
],
"commitType": "AdminPolicy"
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"title": "Get Azure Virtual Network Manager Connectivity Configuration",
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "subscriptionA",
"resourceGroupName": "myResourceGroup",
"networkManagerName": "testNetworkManager",
"configurationName": "myTestConnectivityConfig"
},
"responses": {
"200": {},
"204": {}
}
}
Loading

0 comments on commit 36b9a02

Please sign in to comment.