This message was deleted.
# azure
s
This message was deleted.
r
How do you deploy your application which needs to connect to the servicebus? In our case with container based deployments (azure container instances or Kubernetes deployments) we inject those environment specific values using environment variables or indirectly using Kubernetes secrets that get mapped to env vars in the container. Therefore the application is built in a way that it allows overwriting configurations via env vars. See https://12factor.net/config
So if you deploy the app using pulumi, you can access those values directly from inside the pulumi program and provision those fields. If you have a different way of deploying, you also have the possibility to access the pulumi stack output (all exported variables of the program) independently from performing the pulumi run and e.g. generate a configuration file with the names you obtained from the output.
w
That is actually pretty cool, should have thought about that ๐Ÿ™‚. I did it the naive way with just setting the
Name
in the args properties so I know what it will be called. I like your approach better.
๐Ÿ‘Œ 1
we will also have our stuff running on k8s, so it fits really well.
r
Donโ€™t hesitate to ask if you want to learn about what worked well for us and what not. Happy to share some experiences.
w
@rhythmic-finland-36256 I accidently answered in the wrong channel. Awesome tips and got something working fairly simple.
๐Ÿ‘Œ 1