# Using CloudZiti with the dotnet SDK

**URL:** <https://openziti.discourse.group/t/using-cloudziti-with-the-dotnet-sdk/937>\
**Category:** sdk-csharp\
**Created:** [December 13, 2022, 5:48pm UTC](https://openziti.discourse.group/t/using-cloudziti-with-the-dotnet-sdk/937 "2022-12-13T17:48:40Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [December 13, 2022, 10:49pm UTC](https://openziti.discourse.group/t/using-cloudziti-with-the-dotnet-sdk/937/4 "2022-12-13T22:49:31Z")

</div>

I added a community post over at [Using CloudZiti with the dotnet SDK - How things work - NetFoundry Community Support](https://community.netfoundry.io/t/using-cloudziti-with-the-dotnet-sdk/172) but i’ll recap the post here too.

Here’s how you would do that with CloudZiti:

- Obtain a CloudZiti/NetFoundry Console login and login

- Create an endpoint named “weather.demo” (no attributes needed) :  
 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/1X/b28eed3dd1e121f3fdf014288403a814ff6df5fa.png)

- download the jwt to your local computer and put it into the folder of your choice. I’ll put it into my WSL instance at `/tmp/weather.demo` but you could put it anywhere you like.

- make a new “Simple Service” (you could use any service type, this is just an example of doing it) Make sure you choose “Endpoint Hosted” and choose the identity of your private router. In my example, my private router is “@\_dovanet\_inovato\_er” as shown:  
 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/1X/2ce7d59f27efaceaa09f33cc95ec944bc80fb725.png)

- Add an appwan and authorize the dialing client. You can see I added `@weather.demo.service` to my appwan (#1) and authorize the “weather.demo” identity as shown (#2):  

- on your dev machine run the dotnet sample. Start by `cd`ing to the `Samples` directory

- issue `dotnet run weather /tmp/weather.demo.jwt` and replace the path accordingly (if needed)

You should enjoy the weather from your dotnet app, via OpenZiti

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/1X/6e777e4b6db99903dda5441f35e3c739d78e1d06.png)

---

_[View the full topic](https://openziti.discourse.group/t/using-cloudziti-with-the-dotnet-sdk/937)._
