https://pulumi.com logo
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
  • t

    tall-librarian-49374

    12/18/2019, 7:27 AM
    So usually it's something like "./functions/bin/Debug/netcoreapp3.0/publish"
  • r

    rhythmic-vegetable-87369

    12/18/2019, 9:53 AM
    Thanks Mikhail, I will check on it.
  • r

    rhythmic-vegetable-87369

    12/18/2019, 12:37 PM
    It worked !
  • r

    rhythmic-vegetable-87369

    12/18/2019, 12:38 PM
    I also need to create a logic app and service bus along with a queue. Could you please guide me on this? I'm using C#
  • t

    tall-librarian-49374

    12/18/2019, 12:46 PM
    There aren't many C# examples yet. ServiceBus should be straightforward, e.g. look at this TypeScript example and translate to C# https://github.com/pulumi/pulumi-azure/blob/master/examples/servicebus-migration-test/step2/index.ts#L8-L20
  • t

    tall-librarian-49374

    12/18/2019, 12:48 PM
    LogicApp is definitely more tricky and depends on what your connections and actions are there.
  • r

    rhythmic-vegetable-87369

    12/19/2019, 3:41 AM
    Thanks, I got the bus worked out. Is there a way to get rid of the identifier added at the end? ex-snamespace0169ebee
  • r

    rhythmic-vegetable-87369

    12/19/2019, 3:41 AM
    I just would only like it to use the name I specify
    w
    • 2
    • 3
  • r

    rhythmic-vegetable-87369

    12/19/2019, 4:31 AM
    I'm creating a logic app, it starts with an office 365 mail arrived trigger, then initializes a variable and moves on to storing the attachment as a blob using an azure function. Then I also store the attachment name in a service bus queue which is watched by an azure function for further processing. i did go through the documentation ,but I'm confused as to how I can specify these trigger types or actions using pulumi. Any help would be appreciated.
    t
    • 2
    • 3
  • r

    rhythmic-vegetable-87369

    12/19/2019, 4:31 AM
  • d

    delightful-dawn-43855

    12/19/2019, 10:57 AM
    Hi, is there a specific reason that dotnet compiles before "pulumi up"? When using pulumi in Azure Devops or similar I would like it to compile during build-step, and then I run "pulumi up" during release-step and I expect it to use the already compiles dll:s then... but that is not possible right now? Or am i missing something? Seems odd to package source-code from the build-step as an artifact...
    👍 1
    t
    • 2
    • 2
  • r

    rhythmic-vegetable-87369

    12/24/2019, 4:42 AM
    Is it possible to assign a user identity to a resource using pulumi?
    t
    • 2
    • 4
  • w

    wooden-grass-12815

    12/26/2019, 12:06 PM
    When creating a Virtual Azure machine in .NET, how do I create an auto-shutdown timer?
    b
    w
    • 3
    • 4
  • w

    wooden-grass-12815

    01/04/2020, 9:10 PM
    when I try to build my C# pulumi project in Github using their actions, I get this error
    Diagnostics:
      pulumi:pulumi:Stack (PulumiAppServiceContainer-githubaction):
        error: could not find `dotnet` on the $PATH: exec: "dotnet": executable file not found in $PATH
  • w

    wooden-grass-12815

    01/04/2020, 9:10 PM
    Any solution to that?
  • w

    wooden-grass-12815

    01/04/2020, 9:11 PM
    or are there any pulumi docker image with .NET core installed?
    t
    • 2
    • 1
  • w

    wooden-grass-12815

    01/04/2020, 9:12 PM
    I am using this image - uses: docker://pulumi/actions
  • f

    fresh-summer-65887

    01/08/2020, 11:48 AM
    Hi, will crosswalk (awsx) come to the .net libs?
  • t

    tall-librarian-49374

    01/08/2020, 3:24 PM
    We are currently actively working on https://github.com/pulumi/pulumi/issues/2430 which should open the door to cross-language components like crosswalk.
    f
    • 2
    • 1
  • p

    powerful-football-81694

    01/11/2020, 12:56 PM
    A question about
    Input<T>
    and
    Output<T>
    as they pertain to a C# program. If resource A takes an
    Input<string>
    and I want to construct that string using a pattern including one or more
    Output<string>
    from resource B, how should I do that? I assume the following is too naĂŻve:
    resourceA.SomeInput = $"{resourceB.FirstOutput}...{resourceB.SecondOutput}";
    Is there some string formatter implementation of
    Output<T>
    perhaps?
    w
    • 2
    • 3
  • r

    rhythmic-vegetable-87369

    01/11/2020, 4:23 PM
    Hi all, I get the following error when I try to use the Pulumi Task in the pipeline I get the following error now, any help would be appreciated ##[error]Error: There was an error when attempting to execute the process 'd:\a\_temp\425ce36a-f50c-48af-99c5-5559867ad702\pulumi\bin\pulumi.exe'. This may indicate the process failed to start. Error: spawn d:\a\_temp\425ce36a-f50c-48af-99c5-5559867ad702\pulumi\bin\pulumi.exe ENOENT [9:53 PM] Any ideas as to how I might solve this? Thanks in advance.
    w
    c
    • 3
    • 3
  • f

    fast-dinner-32080

    01/13/2020, 10:36 PM
    I am trying to create a vaultProvider using approle. I have tried adding AuthLoginArgs with the role_id and secret_id but it is giving me the error stating that "auth_login.0.parameters: should be a map". I was unable to find any good example that is doing this so hoping someone here can help.
    var vaultProvider = new Provider("vault",
      new Pulumi.Vault.ProviderArgs
      {
        Address = config.Require("vaultEndpoint"),
        AuthLogins = new InputList<ProviderAuthLoginsArgs>
        {
          new ProviderAuthLoginsArgs
          {
            Path = $"auth/approle/role/{config.Require("vaultAppRoleName")}/login",
            Parameters = new InputMap<string>
            {
              {"role_id", config.Require("vaultAppRoleId")},
              {"secret_id", config.RequireSecret("vaultAppRoleSecretId")}
            },
          }
        }
      });
    t
    • 2
    • 3
  • p

    powerful-football-81694

    01/15/2020, 6:26 PM
    Hi everyone! How can I map an
    Output<T>
    , where T is a string containing a comma-separated list of IP addresses, into multiple resources where each resource takes one of those IP addresses as an input? Case in point:
    AppService
    exposes
    PossibleOutboundIpAddresses
    as such an output property, and I need to transform that and create one
    Sql.FirewallRule
    for each IP address in that string. Of course I want to keep the chain of inputs-to-outputs intact to not break the dependency tracking etc. Anyone know how to do this?
    f
    t
    • 3
    • 13
  • p

    powerful-football-81694

    01/16/2020, 6:13 PM
    Hi again folks! Another question around mapping/transformation of outputs to inputs: How can I accomplish an
    Output.Format()
    if my format string is not a string interpolation inline in code, but instead a composite format string (containing
    {0}
    placeholders) that is fetched from an external source (such as an environment variable)?
    w
    t
    • 3
    • 7
  • a

    adventurous-garage-59192

    01/20/2020, 12:59 PM
    What's the intended convention when you have a single StackReference value you want to use in C#? The
    Output<object>
    return from
    RequireOutput
    is fine if you're using
    Output.Format
    or related, but isn't so great if you just want to grab it and pass it as-in into some property. The two options seem to be
    (string)await infra.RequireValueAsync(".....")
    or
    infra.RequireOutput(".....").Apply(x=> (string)x);
    . As a side note, the docs still say that SR isn't available in C# yet.
    t
    • 2
    • 4
  • c

    cold-caravan-83486

    01/20/2020, 4:39 PM
    Has anyone used the Pulumi AWS dotnet API to create the same AWS Lambda Application entry and Rest API that dotnet lambda deploy-serverless creates?
  • c

    cold-caravan-83486

    01/20/2020, 4:50 PM
    specifically, creating
    RestApi
    ,
    Deployment
    ,
    Stage
    and
    Integration
    for a
    Function
    - so far I'm getting stuck at " Error creating API Gateway Deployment: BadRequestException: No integration defined for method status code: 400"
    t
    • 2
    • 8
  • r

    rhythmic-vegetable-87369

    01/21/2020, 3:52 AM
    I am trying to deploy my arm template and related parameters by using the following snippet
  • r

    rhythmic-vegetable-87369

    01/21/2020, 3:53 AM
    var parameters = string.Empty; using (StreamReader r = new StreamReader("LogicApp.parameters.json")) { parameters = r.ReadToEnd(); } using (StreamReader r = new StreamReader("LogicApp.json")) { armTemplate = r.ReadToEnd(); } new TemplateDeployment("test-dep", new TemplateDeploymentArgs { ParametersBody= parameters, ResourceGroupName = resourceGroup, DeploymentMode = "Incremental", TemplateBody = armTemplate });
    a
    • 2
    • 1
  • r

    rhythmic-vegetable-87369

    01/21/2020, 3:54 AM
    I keep on getting this error
Powered by Linen
Title
r

rhythmic-vegetable-87369

01/21/2020, 3:54 AM
I keep on getting this error
View count: 1