pulumi up <https://github.com/pulumi/examples/tree/master/azure-py-aci>
?
billowy-army-68599
08/22/2022, 12:04 AM
The order you’re running commands in isn’t best practice.
Copy code
pulumi new python-azure
pulumi config set azure-native:location westus2
pulumi up
s
salmon-sandwich-15994
08/22/2022, 12:05 AM
When using a template, what pulumi command should I use? I thought I was supposed to use pulumi up passing in the template as an argument. What should I do instead? What is the correct syntax?
b
billowy-army-68599
08/22/2022, 12:08 AM
pulumi up
executes your pulumi code that you’ve written
pulumi new
is the command you want to use to specify a template
billowy-army-68599
08/22/2022, 12:09 AM
what you’re passing isn’t a template url though, it’s an example
s
salmon-sandwich-15994
08/22/2022, 12:10 AM
Like this?
Copy code
pulumi new python-azure
pulumi config set azure-native:location westus2
pulumi new <https://github.com/pulumi/examples/blob/master/azure-py-aci/__main__.py>
pulumi up
b
billowy-army-68599
08/22/2022, 12:37 AM
no, you cannot pass the url you’re passing
billowy-army-68599
08/22/2022, 12:38 AM
that url isn’t a template, you’ll have to copy and paste the code you want into your program
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.