https://pulumi.com logo
Title
s

sticky-exabyte-94099

01/09/2022, 3:47 PM
Now I´m trying to deploy my infrastructure in Azure DevOps and have my code deployed with it. NB. my other issues are still not figured out.. Searching for examples I have found many but this one here uses Blob and FileArchive. What I don´t understand is that it points to "../src/bin/*Debug*/.." How will that work with release? And then I spotted SourceControl on AppService but I find no information on it and can see that I point the service down to the project I want. So can somebody point me some up-2-date information on how to deploy infrastructure and code together? Just like I show done here but with ArchiveFunctionApp OR should I just build and publish my code separately in stages before so for instance a zip is placed in a correct staging directory for pulumi stack to pick it up? Just like this?
Nobody? @billowy-army-68599? When I get this running I can start using Pulumi (and figure out my other problems along the way)
g

great-queen-39697

01/10/2022, 9:20 PM
There might be a few more folks who can help answer how they build this kind of thing in prod over in #azure, but I'm not sure what parts of Azure you're trying to use specifically so I can help point you in the right direction. Are you specifically wanting to use App Service and need help getting started there with Pulumi (i.e., "how do I use Pulumi to work with Azure?"), or are you looking for general information around using Azure to deploy an app and its infrastructure?
s

sticky-exabyte-94099

01/10/2022, 10:01 PM
Hi thanks for answering. Well now Im just trying to deploy my code and infrastructure together and I happen to be using Azure App Services. There seem to be many ways about it. 1. Build it and zip it and add to blob and then connect the blob to appsettings 2. Add build and publish artifact in the build pipeline and let pulumi access that. I dont know witch one is better or how to get nr 1 to fully work. So I would love some help and pointers.. ps I also go pointed out I was mixing native and cleint.. so thats that 🙈 https://github.com/pulumi/pulumi-azure-native/issues/1416#issuecomment-1008695522
b

billowy-army-68599

01/10/2022, 10:04 PM
Unfortunately we don't have the resources to guide you through this end to end, we'll do our best to respond when we can
s

sticky-exabyte-94099

01/10/2022, 10:10 PM
I understand that and am just thankful for what I get. But Ok can you answer witch one is better and for App Service how you would deploy a code for one service (in Azure Native)? Ill figure the rest out (or ask you along the way 😉)
b

billowy-army-68599

01/10/2022, 10:12 PM
there isn't a "better" one, they have different responsibilities. https://www.pulumi.com/blog/azure-container-solutions/
g

great-queen-39697

01/10/2022, 10:15 PM
Re: Classic and Native, I find the native provider works best for Azure with Pulumi, so you want to keep using these API docs: https://www.pulumi.com/registry/packages/azure-native/api-docs/. The search helps a lot under the API Navigation heading when you're trying to find the right class.
👍 1
s

sticky-exabyte-94099

01/10/2022, 10:20 PM
I dont understand @billowy-army-68599 containers? 🤔 I was asking if I should be connecting pulumi and my code together in the stack (C#) or do a build and publish step in yaml and then let the pulimi stack take over. Or am I misunderstanding even more and am doing some container code? 😄🙈
b

billowy-army-68599

01/11/2022, 12:02 AM
apoloiges, I assumed you were using containers, disregard