https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
dotnet
  • w

    white-balloon-205

    11/12/2019, 6:36 PM
    set the channel description: Pulumi for .NET Core - C#, F# and VB
  • c

    chilly-crayon-57653

    11/12/2019, 8:31 PM
    set the channel description: Pulumi for .NET Core - C#, F# and VB.NET
  • l

    lemon-librarian-43470

    11/13/2019, 11:21 AM
    Hey have been getting into Pulumi with the announcement of the adoption of .NET Core. Great stuff! Have worked through the initial 'Hello World'. Now looking at some of the more complicated examples, in particular
    azure-cs-functions-raw
    . I think this maybe needs to call an Azure API to request Azure to restart the app to ensure the new code takes effect... I'm finding that the behaviour of the functions app doesn't always seem to update to reflect the new code in the blob. I'm willing to give it a go myself, but stuck on figuring out how to get the default subscription id that I need to call the API, and can I rely on Pulumi having already authenticated (or is Pulumi using the
    az
    tool under the hood and I just need to call an
    az
    command somehow?)
    t
    • 2
    • 9
  • s

    sparse-piano-12937

    11/13/2019, 1:52 PM
    hi all
  • s

    sparse-piano-12937

    11/13/2019, 1:53 PM
    I'm liking Pulumi! question - is there going to be an octopus deploy extension that can run on Windows? My Octopus instance is self hosted oN Windows
    b
    g
    • 3
    • 5
  • d

    delightful-lizard-41466

    11/13/2019, 2:00 PM
    Hey! There is a way for testing infra with XUnit and C# ? Any samples ?
    t
    w
    • 3
    • 7
  • s

    sparse-piano-12937

    11/13/2019, 2:02 PM
    @delightful-lizard-41466 I would imagine this would be no different to any other code? You'd need to get the resource and then check its state.
  • w

    worried-city-86458

    11/13/2019, 5:44 PM
    I'm very keen to switch from TS to C#, but currently only using Pulumi for everything Kubernetes, including EKS to stand up the cluster...
    t
    • 2
    • 4
  • a

    adventurous-garage-59192

    11/14/2019, 5:18 AM
    Has anyone else tried pulumi .net within Azure Pipelines? On a windows agent I get
    C:\Program Files\dotnet\sdk\3.0.100\NuGet.targets(528,5): error : Value cannot be null. (Parameter 'path1') [d:\a\1\s\Infra.csproj]
    and on Linux I get
    The user's home directory could not be determined. Set the 'DOTNET_CLI_HOME' environment variable to specify the directory to use.
  • a

    adventurous-garage-59192

    11/14/2019, 6:36 AM
    Did some more fiddling and I still can't get it working. No combination of platforms, .NET Core installs or manually setting
    DOTNET_CLI_HOME
    fixes it.
    c
    f
    • 3
    • 10
  • s

    sparse-piano-12937

    11/14/2019, 3:38 PM
    Hi all, anyone got guidance on how to structure Pulumi projects? Should things like network, iam, compute be seperate C# solutions that can be re-used?
    w
    • 2
    • 2
  • c

    clean-fall-53750

    11/22/2019, 10:19 PM
    Hi all! I'm just getting started and hit a snag. I have gone through the c# intro walk-through successfully, and now trying to set up my first Azure function. Pulled sample source from https://github.com/pulumi/examples/tree/master/azure-cs-functions-raw, and after calling 'pulumi up' the four stack resources are created successfully, but getting an InvalidOperationException: error: Running program 'C:\Projects\pulumi\azure-csharp2\bin\Debug\netcoreapp3.0\Azure.FunctionsRaw.dll' failed with an unhandled exception: System.InvalidOperationException: Expected System.String but got System.Collections.Immutable.ImmutableArray`1[[System.Object, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]] deserializing Pulumi.Azure.AppService.FunctionApp.appSettings at Pulumi.Serialization.Converter.EnsureType[T](String context, Object val) at Pulumi.Serialization.Converter.ConvertObject(String context, Object val, Type targetType) at Pulumi.Serialization.Converter.ConvertDictionary(String fieldName, Object val, Type targetType) at Pulumi.Serialization.Converter.ConvertObject(String context, Object val, Type targetType) at Pulumi.Serialization.Converter.ConvertValue(String context, Value value, Type targetType) at Pulumi.Deployment.CompleteResourceAsync(Resource resource, ResourceArgs args, ResourceOptions options, ImmutableDictionary`2 completionSources) at Pulumi.Output`1.Pulumi.IOutput.GetDataAsync() at Pulumi.Output`1.AllHelperAsync(ImmutableArray`1 inputs) at Pulumi.Output`1.ApplyHelperAsync[U](Task`1 dataTask, Func`2 func) at Pulumi.Output`1.Pulumi.IOutput.GetDataAsync() at Pulumi.Output`1.Pulumi.IOutput.GetDataAsync() at Pulumi.Serialization.Serializer.SerializeAsync(String ctx, Object prop) at Pulumi.Serialization.Serializer.SerializeAsync(String ctx, Object prop) at Pulumi.Deployment.SerializeFilteredPropertiesAsync(String label, Input`1 args, Predicate`1 acceptKey) at Pulumi.Deployment.SerializeAllPropertiesAsync(String label, Input`1 args) at Pulumi.Deployment.RegisterResourceOutputsAsync(Resource resource, Output`1 outputs) at Pulumi.Deployment.Runner.WhileRunningAsync()
    t
    c
    s
    • 4
    • 13
  • b

    boundless-tailor-35598

    11/29/2019, 3:32 PM
    I am new to Pulumi, but would like to evaluate it to deploy to Kubernetes. It looks like the .NET core support does not extend to Kubernetes yet? Is that correct? If so, is there an ETA on when support will be added? Apologise if this is covered somewhere, but I could not find it.
  • t

    tall-librarian-49374

    11/29/2019, 3:47 PM
    Hi Alexis. The first version of the .NET SDK for K8s just landed a couple of days ago: https://www.nuget.org/packages/Pulumi.Kubernetes/1.3.2-preview
  • t

    tall-librarian-49374

    11/29/2019, 3:47 PM
    Here is an example: https://github.com/pulumi/examples/tree/master/kubernetes-cs-guestbook
  • b

    boundless-tailor-35598

    11/29/2019, 3:47 PM
    Thankyou Mikhail. This is amazing!
  • t

    tall-librarian-49374

    11/29/2019, 3:48 PM
    Give it a try, I look forward to your feedback
  • b

    boundless-tailor-35598

    11/29/2019, 3:49 PM
    Thankyou! Will be sure to provide feedback.
  • a

    adventurous-garage-59192

    12/05/2019, 4:53 AM
    Any idea how to set a site extension on an app service?
    • 1
    • 1
  • s

    shy-window-64655

    12/16/2019, 8:46 AM
    Hi, I see the ~\pulumi\examples\kubernetes-cs-guestbook\components\ServiceDeployment.cs code and doubt that there is mismatching with
    base ctor
    signature call (lines 31-32):
    public ServiceDeployment(string name, ServiceDeploymentArgs args, ComponentResourceOptions? opts = null)
            : base(name, "k8sx:service:ServiceDeployment", opts)
    Am I right? (looks like the
    base ctor
    waits for the
    string type
    argument in the first place rather second).
    t
    • 2
    • 11
  • f

    future-noon-68975

    12/16/2019, 1:11 PM
    t
    • 2
    • 10
  • t

    thankful-alarm-12978

    12/16/2019, 1:30 PM
    Hello, how do I look up the resource ID of a virtual network? For example, a resource with the name "vnet-mei-dev-01" is a pre-existing virtual network that we are not creating via Pulumi. We would get "vnet-mei-dev-01" from the stack. What's is the best way of looking this resource up in Pulumi so that we can use the fully qualified ID for the remoteVirtualNetworkId property when creating an A_zure_.network.VirtualNetworkPeering. Example of the fully qualified ID: "/subscriptions/52e39ec9-0204-44ae-8abe-2401582a288d/resourceGroups/rg-mei-dev-01/providers/Microsoft.Network/virtualNetworks/vnet-mei-dev-01". Thanks
    t
    • 2
    • 2
  • r

    rhythmic-vegetable-87369

    12/18/2019, 6:37 AM
    Hi, I'm a newbie here. I'm trying to deploy a azure func using pulumi. I presume the following code is the part that should contain the content.
  • r

    rhythmic-vegetable-87369

    12/18/2019, 6:37 AM
    Content = new FileArchive("./functions/bin/Debug/netcoreapp3.0/Hello"),
  • r

    rhythmic-vegetable-87369

    12/18/2019, 6:37 AM
    I have my function.json there
  • r

    rhythmic-vegetable-87369

    12/18/2019, 6:37 AM
    nothing happens though
  • r

    rhythmic-vegetable-87369

    12/18/2019, 6:37 AM
    what am I doing wrong?
  • r

    rhythmic-vegetable-87369

    12/18/2019, 6:37 AM
    Thanks in advance
  • t

    tall-librarian-49374

    12/18/2019, 7:25 AM
    Hi @rhythmic-vegetable-87369 The path should point to the root folder of your Function App artifacts, i.e. where your
    host.json
    file is
  • t

    tall-librarian-49374

    12/18/2019, 7:26 AM
    You should also
    dotnet publish
    to make sure all the required libraries are there
Powered by Linen
Title
t

tall-librarian-49374

12/18/2019, 7:26 AM
You should also
dotnet publish
to make sure all the required libraries are there
View count: 1