visual studio - How do I test an Azure Internal Endpoint from a local dev client? (Test in Production) -


the big question:

how ip:port of internal endpoint local dev client not running inside roleenvironment? if connect azure network, test class in vs (where trying execute tests calls service directly) cannot make use of roleenvironment.roles["myrole"].instances;, because in , of itself, not running in azure role.

the setup:

  • i have backend web services (web api) internal endpoints in deployment/role. front end website uses these services.
  • i have dev employee needs run tests against internal endpoints using vs (unit tests)
  • i not have on-premise network (small company, works home, no active directory per se, no domain server handling windows auth, have o365 accounts).

the requirements:

  1. i need local client (not running inside roleenvironment)
    • connect azure (vpn?)
    • get location (ip:port) of endpoint
  2. the developer accessing azure network should have access these services, not entire box within azure (i.e. not admin in remote desktop, nor admin of azure portal, etc)

my situation straight forward, , hope common practice, can't find on interwebs has addressed this.

the solution?

[update] have vpn working (point site) , cloud service deployed there. in order hit internal endpoints 1 must open firewall using s startup task. done. discovered acls endpoints... not sure yet if or how applies situation (my goal being restrict access developers role, etc)

either way, how in world reference endpoint? sure, can use roleenvironment.roles app running in environment (my front end website), vs client (local dev machine) not running in said enviro. can manually ip in virtual network dashboard , manually ip , port specific service want running under. surely there programmatic, proper way...


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -