azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

Introduce new parameters into az network watcher connection-monitor. Add new commands.

Open irrogozh opened this issue 7 years ago • 10 comments

Resource Provider Az.Network

Description of Feature or Work Requested We are going to create a new version of connection monitor API. instead of single source/destination we are going to enable monitoring for multiple endpoints and configurations. Instead of current parameters, we will need to have a list of endpoints, testConfigurations, testGroups and outputs.

Looks like reasonable approach:

  1. create a shallow connection monitor resource: az network watcher connection-monitor create --name --notes

  2. add endpoint to connection monitor: az network watcher connection-monitor endpoint create --name --resourceId --address --filterType --filterAddresses

  3. add testConfiguration to connection monitor: az network watcher connection-monitor testConfiguration create --name --testFrequencySec -- successThresholdChecksFailedPercent --successThresholdRoundTripTimeMs --preferredIPVersion --protocolConfiguration

  4. add testGroup to connection monitor: az network watcher connection-monitor testGroup create --name --testConfigurations(list of test configuration names) --sources(list of source endpoint names) --destinations(list of destination endpoint names)

  5. add output to connectionMonitor: az network watcher connection-monitor output create --outputType --workspaceResourceId

  6. I'm not sure what's the best approach to set protocolConfiguration from item 3. For powershell we do it like this:

New-AzNetworkWatcherConnectionMonitorProtocolConfigurationObject -Protocol

[1st parameter set - if TCP protocol specified: [-Port] [-DisableTraceRoute]] [2nd parameter set - if HTTP protocol specified: [-Port] [-Method] [-Path] [-RequestHeader] [-ValidStatusCodeRange<List[String]>] [-PreferHTTPS]] [3nd parameter set - if ICMP protocol specified: [-DisableTraceRoute]]


  1. We also need to have some way to update connection monitor. If there is an option to delete endpoint, testConfiguration, testGroup and output from connectionMonitor, it could work. The challenge is that if customer remove endpoint but forget to remove this endpoint name from a testGroup which was referenced it, customer will have validation exception on server side. Probably, it's fine...

Minimum API Version Required What is the minimum API version of your service required to implement your feature?

Swagger Link https://github.com/Azure/azure-rest-api-specs/pull/7821

it's not updated with new parameters yet

Target Date We are going to have private preview at the second half of June.

irrogozh avatar May 17 '19 23:05 irrogozh

@irrogozh what is the min API version for these features and are there PRs that show the actual swagger changes?

tjprescott avatar May 20 '19 17:05 tjprescott

Bumping to sprint 66 due to higher priority direction from NRP.

tjprescott avatar Jun 17 '19 17:06 tjprescott

Travis, please, don't implement this please. The spec is not approved yet - there is ongoing changes in contract...

irrogozh avatar Jun 17 '19 17:06 irrogozh

@irrgozh no worries. If the spec isn't approved for work in sprint 66 I'll just shuffle priorities accordingly.

tjprescott avatar Jun 17 '19 17:06 tjprescott

@irrogozh Hello. Once are the spec PR ready, please modify the title and ping me. Thanks

mmyyrroonn avatar Jul 31 '19 02:07 mmyyrroonn

@irrogozh Feel free to ping me when the service's ready.

mmyyrroonn avatar Dec 02 '19 02:12 mmyyrroonn

@MyronFanQiu , can we discuss design? The public preview is going to be in January. So, we will need to have cmdlets by this time.

irrogozh avatar Dec 03 '19 01:12 irrogozh

@irrogozh sure. Should we schedule a meeting?

mmyyrroonn avatar Dec 03 '19 02:12 mmyyrroonn

@MyronFanQiu, yep, would be great. Could you send me your Msft alias so I could schedule a meeting? What time would be convenient for you? I'm working on PST time... Just in case, my alias - [email protected]

irrogozh avatar Dec 03 '19 04:12 irrogozh

add to S164.

yonzhan avatar Dec 30 '19 02:12 yonzhan