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
azure
  • c

    colossal-room-15708

    03/20/2020, 6:07 AM
    I am running this here in my pulumi script:
    const requirements = exec("cd cspm; python3.7 -m venv venv; . venv/bin/activate; pip3.7 install -r requirements.txt", (error: { message: any; }, stdout: any, stderr: any) => {
        if (error) {
            console.log(`error: ${error.message}`);
            return;
        }
        if (stderr) {
            console.log(`stderr: ${stderr}`);
            return;
        }
        console.log(`stdout: ${stdout}`);
    });
    but if I see it correctly, the following steps (mainly the one zipping everything up) isn't waiting for this to finish. What's the "pulumi way" to wait here?
    t
    • 2
    • 4
  • n

    nutritious-judge-27316

    03/20/2020, 3:41 PM
    Anyone got any examples of add cors to azure function, got myself a little bit stuck
    t
    • 2
    • 5
  • p

    powerful-football-81694

    03/20/2020, 10:10 PM
    Hi folks, and maybe especially @clever-sunset-76585. In a couple of our Pulumi programs, we are importing some shared NuGet packages from an internal package feed in our Azure DevOps project. This works fine, for example using the built-in
    DotNetCoreCLI@2
    task. Anything executing in the pipeline is able to implicitly authenticate to the package feed. Except the Pulumi Task Extension for Azure DevOps. When the program is built by Pulumi, this authentication for some reason does not work. It is as if the normal environment variables, or some other ambient/contextual thing, are not visible to dotnet.exe when it’s called from Pulumi.
    c
    t
    • 3
    • 17
  • c

    colossal-room-15708

    03/21/2020, 8:39 AM
    I'm just hitting the weirdest issues today:
    const appservicePlan = new azure.appservice.Plan("asp", {
        resourceGroupName: resourceGroup.name,
        kind: "linux",
        sku: { tier: "Dynamic", size: "Y1" },
        reserved: true
    });
    const app = new azure.appservice.ArchiveFunctionApp("App", {
        resourceGroupName: resourceGroup.name,
        name: functionAppName,
        plan: appservicePlan,
        version: "~3",
        archive: new pulumi.asset.FileArchive("./app"),
        appSettings: {
            "runtime": "python"
        }
    });
    I deploy this and all is fine, next time around though, Pulumi wants to replace the App Service Plan because on the API the
    kind
    is now
    functionapp
    ? All the examples set
    kind
    to
    linux
    .
  • c

    colossal-room-15708

    03/21/2020, 8:46 AM
    Same applies to the Function App, next
    preview
    says it's going to replace the Function App because
    osType
    is not configured. It's available in
    <https://github.com/pulumi/pulumi-azure/blob/master/sdk/nodejs/appservice/functionApp.ts>
    but seems like it's not exposed in the
    ArchiveFunctionApp
  • t

    tall-librarian-49374

    03/21/2020, 8:48 AM
    Hmm… You should probably set kind to
    functionapp
    for the plan.
  • t

    tall-librarian-49374

    03/21/2020, 8:48 AM
    reserved: true
    is what makes it Linux
  • t

    tall-librarian-49374

    03/21/2020, 8:49 AM
    I think this changed in recent TF versions… we may need to change examples
  • t

    tall-librarian-49374

    03/21/2020, 8:50 AM
    Could you open an issue, I’ll take a look at both?
  • c

    colossal-room-15708

    03/21/2020, 8:52 AM
    but
    functionapp
    makes it
    windows
    , right? I can have a function running on Linux. Seems like that's not allowed in TF?
  • c

    colossal-room-15708

    03/21/2020, 8:52 AM
    Or not properly exposed in TF
  • t

    tall-librarian-49374

    03/21/2020, 8:57 AM
    It definitely used to work and I believe
    functionapp
    won’t make it Windows
  • t

    tall-librarian-49374

    03/21/2020, 8:59 AM
    It’s confusing though, so I keep forgetting
  • c

    colossal-room-15708

    03/21/2020, 9:14 AM
    right, okay, I'm stopping for now. The doco is quite confusing on the TF side. I need to test this more properly as I seem to be getting mixed results and the fact that pulumi wants to replace all the time (because TF wants to) doesn't help
  • g

    glamorous-policeman-63745

    03/21/2020, 9:35 AM
    Is there a way prevent the deletion of imported resources when issuing
    pulumi destroy
    edit: nvm for some reason I just never found the protected option. Having a fresh look helps unsuprisingly.
  • p

    powerful-football-81694

    03/22/2020, 2:55 AM
    Why does
    pulumi refresh
    not update the stack state to reflect the resources that exist in the target environment but which do not exist in the stack?
    c
    t
    • 3
    • 15
  • c

    clean-megabyte-19501

    03/22/2020, 6:11 PM
    Hey. I'm trying to use the Pulumi Azure Pipelines Task in an Azure DevOps release pipeline. I get this error. Anyone knows how to resolve this?
    c
    • 2
    • 3
  • b

    breezy-answer-83664

    03/23/2020, 7:18 AM
    Hello, I'm quite new to Pulumi, I've created on azure, a VNet with subnets and NSG attached to each subnet. The creation with pulumi up went fine. But, when I update my python code, in order to extend the VNet address space and add a subnet in the VNet: • the address space is correctly added to the VNet, • the new subnet is also added. • But all the other subnets have disappeared! All the subnets were empty (no VM or anything else running inside them). any though about this strange behaviour?
    t
    e
    • 3
    • 11
  • b

    best-jordan-23853

    03/23/2020, 4:36 PM
    Hi, How I can create a Windows VM on AZ using a custom image? Looking for docs I didn’t find anything.
  • b

    better-rainbow-14549

    03/23/2020, 5:39 PM
    https://www.terraform.io/docs/providers/azurerm/r/image.html start here i guess
    👍 1
  • b

    brainy-garden-89849

    03/23/2020, 8:37 PM
    Is there a way to delay for x seconds after one resource is created but before another is created? When I create my Azure Service Principal, and then create an AKS Kubernetes Cluster with that Azure Service Principal, sometimes it fails because replication of the Service Principal needs to occur. If I could just delay by 30 seconds or so after the Service Principal is created and before it starts creating the AKS Kubernetes cluster, it would allow my pipeline to pass first time without having to re-run as I do currently.
    w
    • 2
    • 2
  • b

    better-rainbow-14549

    03/24/2020, 9:17 AM
    if i create an azure role binding then delete it on portal, then delete it in pulumi and run update it errors out with a http 204 and EOF reading body content - is this better filed for terraform than pulumi-azure?
    t
    • 2
    • 6
  • b

    better-rainbow-14549

    03/24/2020, 9:56 AM
    i'm still having to have
    "@azure/ms-rest-js": "1.8.13"
    in my package.json to stop azure bombing out - is that expected?
  • p

    plain-tiger-79744

    03/24/2020, 5:57 PM
    Hi! How can I use the function
    registerStackTransformation
    with C#? I can't find the method for C#.
    t
    • 2
    • 7
  • r

    rough-tomato-98795

    03/25/2020, 8:01 AM
    Hello, i am creating aks cluster with typescript without specifying windowsProfile property. pulumi up works fine. But another pulumi up says that value windowsProfile was changed and it wants to replace all the resources which are related to k8s cluster. Is this a bug/feature?
    a
    b
    t
    • 4
    • 22
  • h

    handsome-optician-50551

    03/25/2020, 10:02 AM
    Hello, Im getting the following error: error: Error waiting for creation/update of API Management Service "ddm-te-dev-2-ams" (Resource Group "ddm-te-dev-2-rg"): Future#WaitForCompletion: context has been cancelled: StatusCode=202 -- Original Error: context deadline exceeded. As I understand it the service takes to long to create resulting in my following api not being registered in the service and the pipeline throwing the error and failing. Is there a way to make it not exceed the deadline or increasing the deadline?
    t
    • 2
    • 2
  • h

    handsome-optician-50551

    03/26/2020, 1:36 PM
    Hello again, I was wondering how the swagger import should look like. I've written the following but getting unexpected character error. `const api = new azure.apimanagement.Api(
    ${prefix}-api
    , {` `name:
    ${prefix}-api
    ,`
    resourceGroupName: resourceGroup.name,
    apiManagementName: service.name.apply(async (o) => {
    if (!pulumi.runtime.isDryRun()) {
    await sleep();
    }
    return o;
    }), `displayName:
    api-${prefix}
    ,`
    protocols: ["https"],
    revision: "1",
    path: "weather",
    import: {
    contentFormat: "swagger-json",
    contentValue: "<https://ddm-te-dev-2-as.azurewebsites.net/swagger/v1/swagger.json>"
    }
    `}, { import:
    /subscriptions/${subId}/resourceGroups/${prefix}-rg/providers/Microsoft.ApiManagement/service/${prefix}-ams/apis/${prefix}-api
    , customTimeouts: { create: "10m", update: "10m" } });`
    t
    • 2
    • 7
  • f

    future-kite-91191

    03/29/2020, 9:18 AM
    @tall-librarian-49374 could you guys please provide a Service Fabric sample? https://github.com/pulumi/examples/issues/202
    t
    c
    • 3
    • 7
  • b

    bright-jordan-62321

    03/30/2020, 11:50 AM
    Has anyone used Pulumi to create Azure Databricks successfully? I have been hitting some error constantly:
    Error waiting for the completion of the creating/updating of databricks workspace "dpworkspaceeadbac04" (resource group "resourcegroup8de3db5b"): code="permissionnotpropagated" message="permission_not_propagated: a retryable error occurred. databricks has not yet received permission to access resources in your managed resource group, which is necessary to set up your workspace. this process could take up to an hour. please retry then.
  • l

    loud-oyster-36834

    03/30/2020, 12:53 PM
    I am unable to set/update the
    error404Document
    in the
    static_website
    block of my Storage Account resource.
    indexDocument
    works fine. Is there something I missunderstood or doing wrong here, or should I just report it as an issue on github? Can the fact that the key contains numeric values mess something up in some transformation/translation (I am using the Python SDK)?
    t
    • 2
    • 2
Powered by Linen
Title
l

loud-oyster-36834

03/30/2020, 12:53 PM
I am unable to set/update the
error404Document
in the
static_website
block of my Storage Account resource.
indexDocument
works fine. Is there something I missunderstood or doing wrong here, or should I just report it as an issue on github? Can the fact that the key contains numeric values mess something up in some transformation/translation (I am using the Python SDK)?
t

tall-librarian-49374

03/30/2020, 2:18 PM
This is tracked in https://github.com/pulumi/pulumi-terraform-bridge/issues/127
👍 1
l

loud-oyster-36834

03/30/2020, 2:24 PM
thanks 🙂
View count: 3