sparse-intern-71089
08/25/2020, 4:59 PMwhite-balloon-205
clever-sunset-76585
08/25/2020, 6:57 PMpulumi plugin install resource <plugin_name> <version>
.
You can specify a pre-built binary in the Pulumi.yaml
. See the options
property bag on https://www.pulumi.com/docs/intro/concepts/project/#pulumi-yaml, and specifically the binary
property under that.
Here’s an example of a Pulumi.yaml
using that option:
name: azure-csharp-webserver
runtime:
name: dotnet
options:
binary: ./bin/Release/netcoreapp3.1/azure-cs-landingzone.dll
description: A minimal Azure C# Pulumi program
And here’s a sample Azure Pipelines config using that stack:
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '$(solution)'
feedsToUse: 'select'
vstsFeed: 'xxxxxxxxxxxxxx'
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
msbuildArchitecture: 'x64'
- task: Pulumi@1
displayName: Install pulumi
inputs:
azureSubscription: 'xxxxxxxx'
command: 'stack'
stack: '$(pulumi.stack.name)'
- script: pulumi plugin install resource azure v3.12.1
displayName: Install pulumi plugins
- task: Pulumi@1
inputs:
azureSubscription: 'xxxxxxxx'
command: 'preview'
stack: '$(pulumi.stack.name)'
gifted-cat-21399
08/26/2020, 7:26 PM