Azure / azure-relay-bridge

Azure Relay Bridge - A cross-platform command line tool to create VPN-less TCP tunnels from and to anywhere
MIT License
120 stars 48 forks source link

Support Json Config #73

Closed bewatersmsft closed 2 weeks ago

bewatersmsft commented 9 months ago

YAML isn't natively supported by powershell and needs 3rd party modules to parse yaml configs

clemensv commented 2 weeks ago

YAML is a superset of JSON that includes JSON support, therefore you can use

{
  "AzureRelayEndpoint": "sb://myrelay.servicebus.windows.net/",
  "RemoteForward": [
    {
      "RelayName": "a1",
      "Host": "localhost",
      "PortName": "rdp",
      "HostPort": 3389
    }
  ],
  "LogLevel": "INFO"
}