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

    white-balloon-205

    12/17/2019, 6:37 PM
    set the channel description: Using Azure with Pulumi
  • m

    melodic-easter-82419

    12/20/2019, 5:07 PM
    Hello I am currently trying to setup a dev environment for deploying a resource group in Azure using Pulumi. I have setup the starter project and logged into azure using the az-cli. It seems that pulumi is not using my credentials when running
    pulumi up
    . So I get the following error
    error: Error building AzureRM Client: 3 errors occurred:
            * A Subscription ID must be configured when authenticating as a Service Principal using a Client Secret.
            * A Client ID must be configured when authenticating as a Service Principal using a Client Secret.
            * A Tenant ID must be configured when authenticating as a Service Principal using a Client Secret.
    Anyone know why this wouldn't use my credentials on my local dev machine?
    b
    w
    • 3
    • 31
  • w

    wooden-grass-12815

    01/04/2020, 6:37 PM
    I am trying to import an existing Azure App Service plan (I import the existing Resource Group without any problem) and the code I use looks like this:
    var appServicePlan = new Plan("ExistingPlanName",
    new PlanArgs
    {
        Name = "ExistingPlanName",
        ResourceGroupName = resourceGroup.Name,
        Location = resourceGroup.Location,
        Sku = new PlanSkuArgs
        {
            Tier = "Basic",
            Size = "B1",
            Capacity = 1
        },
        Kind = "linux",
    
    },
    new CustomResourceOptions
    {
        ImportId = "/subscriptions/782a82df-843b-423f-b7ab-XXXXXXXXX/resourceGroups/XXXXXXXX/providers/Microsoft.Web/serverFarms/ExistingPlanName"
    });
  • w

    wooden-grass-12815

    01/04/2020, 6:37 PM
    and the error I get is import [diff: +location,sku~kind,name]; 1 warning
  • w

    wooden-grass-12815

    01/04/2020, 6:37 PM
    warning: inputs to import do not match the existing resource; importing this resource will fail
  • w

    wooden-grass-12815

    01/04/2020, 6:38 PM
    anyone tried this? how to get the import to work? I have verified all the data in the Azure Resource Explorer
  • w

    wooden-grass-12815

    01/04/2020, 6:39 PM
    Under details I get
    + kind             : "linux"
          + location         : "northeurope"
          + name             : "ExistingPlanName"
          ~ resourceGroupName: "existingplanname" => "ExistingPlanName"
          + sku              : {
              + capacity  : 1
              + size      : "B1"
              + tier      : "Basic"
            }
  • w

    wooden-grass-12815

    01/04/2020, 6:43 PM
    The main question is why I get the diff warning [diff: +location,sku~kind,name,resourceGroupName]; 1 warning
  • b

    broad-dog-22463

    01/04/2020, 7:23 PM
    @wooden-grass-12815 the casing on your resource group name isn’t correct
  • b

    broad-dog-22463

    01/04/2020, 7:23 PM
    That’s the problem you are facing
  • w

    wooden-grass-12815

    01/04/2020, 7:31 PM
    The wierd thing is that I set the Plan name to ResourceGroupName = resourceGroup.Name
  • w

    wooden-grass-12815

    01/04/2020, 7:31 PM
    even if I hardcode it to the correct casing , I get similar issues
  • w

    wooden-grass-12815

    01/04/2020, 7:31 PM
    and the diff complains about the sku, kund, and name as well "diff warning [diff: +location,sku~kind,name,resourceGroupName]; 1 warning"
  • w

    wooden-grass-12815

    01/04/2020, 7:32 PM
    My sku according to the Resource Explorer is
    "sku": {
        "name": "B1",
        "tier": "Basic",
        "size": "B1",
        "family": "B",
        "capacity": 1
      }
  • w

    wooden-grass-12815

    01/04/2020, 7:32 PM
    perhaps the lack of family and name in the Pulumi sku object is a problem?
  • b

    broad-dog-22463

    01/04/2020, 8:20 PM
    No the actual string is the problem
  • b

    broad-dog-22463

    01/04/2020, 8:20 PM
    You have ExistingPlanName
  • b

    broad-dog-22463

    01/04/2020, 8:20 PM
    The RG is azure looks to be existingplanname
  • b

    broad-dog-22463

    01/04/2020, 8:21 PM
    It’s in the PlanArgs
  • b

    broad-dog-22463

    01/04/2020, 8:21 PM
    I misled you by saying Resource Group
  • b

    broad-dog-22463

    01/04/2020, 8:21 PM
    It’s the plan name
  • w

    wooden-grass-12815

    01/04/2020, 9:08 PM
    Thanks!, I will give it a try.
  • b

    broad-dog-22463

    01/04/2020, 9:20 PM
    Feel free to ping me if you need something
  • s

    sticky-lighter-73941

    01/06/2020, 5:09 PM
    Hi guys ! I’m trying to deploy a Helm chart from my private ACR , but when I run the Pulumi up command , I got an error about unauthorised 401 index.yaml ( see the image ) . I have tried several settings without getting it working . I also double check my ACR settings and everything looks fine , I can get the chart via AZ without issues . Any idea what I’m missing here ? Thanks
    b
    • 2
    • 5
  • b

    better-rainbow-14549

    01/06/2020, 5:23 PM
    https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/kubernetes/helm/v2/#FetchOpts have you checked this
    s
    • 2
    • 1
  • b

    better-rainbow-14549

    01/06/2020, 5:24 PM
    there are password / cert etc options
  • s

    salmon-dog-3471

    01/07/2020, 1:38 AM
    Is there support for Azure App Service Environment in the existing Azure SDK Modules ?
    b
    t
    • 3
    • 3
  • m

    miniature-grass-95081

    01/07/2020, 4:22 AM
    I'm curious if the output from a deployment can be pushed to something like Azure App Configuration, to automatically push app settings and/or secrets? We're working on solving this today in Azure DevOps using Terraform -> Azure App Config, but was wondering if this would be easier with Pulumi?
    t
    • 2
    • 3
  • b

    better-rainbow-14549

    01/08/2020, 2:53 PM
    still getting the same long-standing issue with it wanting to tear down AKS clusters - is there any guidance advice on this?
  • b

    better-rainbow-14549

    01/08/2020, 2:54 PM
    i just deployed a new one and on the second preview it wants to replace it due to
    warning: urn:pulumi:devau::devau::azure:containerservice/kubernetesCluster:KubernetesCluster::devau1 verification warning: "agent_pool_profile": [DEPRECATED] This has been replaced by `default_node_pool` and will be removed in version 2.0 of the AzureRM Provider
Powered by Linen
Title
b

better-rainbow-14549

01/08/2020, 2:54 PM
i just deployed a new one and on the second preview it wants to replace it due to
warning: urn:pulumi:devau::devau::azure:containerservice/kubernetesCluster:KubernetesCluster::devau1 verification warning: "agent_pool_profile": [DEPRECATED] This has been replaced by `default_node_pool` and will be removed in version 2.0 of the AzureRM Provider
View count: 4