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
  • m

    melodic-byte-32771

    12/28/2020, 3:59 AM
    Does someone know if this is the resource for a azure static webapp? • https://www.pulumi.com/docs/reference/pkg/azure-nextgen/web/webapp/
    t
    • 2
    • 1
  • l

    loud-shampoo-49194

    12/30/2020, 9:26 AM
    I'm attempting to deploy a subnet but got the following error: error: Code="InvalidRequestFormat" Message="Cannot parse the request." Details=[] any chance there are more details to be seen somewhere? Edit: Problem was caused by the subnet delegation to Microsoft.Web/serverfarms. I'll have to investigate that. The pulumi up process sometimes seems to hang even though the resources are created / updated corretly.
  • c

    cuddly-xylophone-65881

    12/31/2020, 9:27 AM
    Hi all, I'm running into an issue importing existing resources from azure. For example, if I try to import a VirtualNetworkGateway, I'm getting the following error:
    Diagnostics:
      azure:network:VirtualNetworkGateway (cgw-snm-net-blue):
        error: azure:network/virtualNetworkGateway:VirtualNetworkGateway resource 'cgw-snm-net-blue' has a problem: Missing required property 'type'
        error: azure:network/virtualNetworkGateway:VirtualNetworkGateway resource 'cgw-snm-net-blue' has a problem: Missing required property 'sku'
        error: azure:network/virtualNetworkGateway:VirtualNetworkGateway resource 'cgw-snm-net-blue' has a problem: Missing required property 'ipConfigurations'
        error: Preview failed: one or more inputs failed to validate
    
      pulumi:pulumi:Stack (autopilot-azure-autopilot-azure):
        error: preview failed
    Interestingly enough though, if I look at the debug output, it does have a type, sku and ip configurations. What would be the recommended way moving forward? Just trying to import the resource manually by patching the stack?
    t
    • 2
    • 20
  • j

    jolly-camera-35709

    01/04/2021, 4:26 AM
    Doesn't seem pulumi supports this property "applicationGatewayBackendAddressPools" of NetworkInterface, I didn't find it in in the doc here https://www.pulumi.com/docs/reference/pkg/azure/network/networkinterface/#networkinterfaceipconfiguration
    t
    • 2
    • 1
  • a

    aloof-hamburger-47707

    01/05/2021, 10:34 AM
    Crossposting here, because it's an Azure question! Anyone have EventGrid Subscriptions in their Pulumi stack? https://pulumi-community.slack.com/archives/C84L4E3N1/p1609839795110100 Thanks!!
    p
    t
    • 3
    • 7
  • l

    loud-shampoo-49194

    01/05/2021, 3:49 PM
    Is there a better way to diagnose a hanging/slow update of a stack other than the -d flag on pulumi up? I have a simple stack (rsg,vnet, 3 subnets) and wanted to add a key vault but its stuck on "debug: Registering resource monitor end: t=pulumi😛ulumi:Stack, name=tvp-sb, custom=False, remote=False" - since 9 minutes.
    c
    • 2
    • 2
  • s

    swift-hamburger-98290

    01/06/2021, 8:12 AM
    Is there a way to restart an Azure webapp after deployment using pulumi (without the Azure CLI). We are running into a problem where this said app needs access to a KeyVault, but when the app is created/started the RBAC is not there yet. Thanks!
    t
    • 2
    • 4
  • s

    stocky-crayon-93563

    01/06/2021, 1:37 PM
    Hi, anyone had any luck with Azure front door and the rules engine. Seems like there's a circular dependency. I've got a front door created using the Pulumi.Azure provider and have created a RulesEngine using the Nextgen provider but I can't figure out how to associate the rulesengine to the routing rule. BTW frontdoor was something I had already created with the Pulumi.Azure provider and wasn't looking to move it to nextgen just yet (time constraints). The only solution I can think of it to use a script using azure cli to do the association but that means it's a separate step outside of Pulumi
    t
    • 2
    • 3
  • b

    brainy-ocean-92780

    01/06/2021, 6:48 PM
    #azure I'm creating resources using Pulumi in Azure. I then have to pass information as a consequence of those resources back into Azure. An example is creating an Sql Database in Azure and then adding an administration group to it. The resource is stood up via Pulumi and I have an Azure Cli script that can perform the administrator group addition. However I need to update the Azure Cli scrip to include the ResourceGroupName and SqlServerName to the script. Basically I need a way to get those values back from pulumi so I can feed them into the script. Does anyone know the best way to get that information from Pulumi?
    w
    t
    t
    • 4
    • 5
  • b

    brave-winter-60074

    01/07/2021, 3:08 PM
    Hi we are creating a Azure Function (app) with the Azure NextGen provider. We are not able to identify how to confgure the Cors “supportCredentials”: true with pulumi, please help its here in the portal
    t
    • 2
    • 5
  • a

    aloof-table-12538

    01/08/2021, 8:55 AM
    Hi all! I'm trying to enable Google authentication for an Azure App Service with next-gen provider, but I don't find how to do it. With the "old" provider it was quite simple: https://www.pulumi.com/docs/reference/pkg/azure/appservice/appservice/#appserviceauthsettingsgoogle. Can someone give me any clue of how to do it? Thanks!
    t
    • 2
    • 1
  • p

    prehistoric-nail-50687

    01/08/2021, 10:51 AM
    does
    nextgen
    not (yet) support the import command and generate the code? I was not able to find an example…
    t
    • 2
    • 9
  • n

    numerous-artist-1705

    01/08/2021, 11:48 AM
    hi everyone. do you know if it is possible to use a Terraform state stored in Azure Storage blobs as a state for Pulumi?
    b
    • 2
    • 7
  • s

    swift-hamburger-98290

    01/11/2021, 4:40 PM
    Regarding azure web applications, deployment slots, and running from zip: can we do it with pulumi? We have this:
    ...
    
    var blob = new azure.storage.Blob("bl-slot", {
      ...
    });
    
    const app = new azure.appservice.AppService("app-slot", {
      ...
    });
    
    const slot = new azure.appservice.Slot("apps-slot", {
      appServiceName: app.name,
      appSettings: {
        WEBSITE_RUN_FROM_PACKAGE: azure.storage.signedBlobReadUrl(blob, storage),
      },
      siteConfig: {
        ...
        autoSwapSlotName: "production",
      },
      ...
    });
    Now the problem we face is on the second deployment: the ZIP which is used by the
    production
    slot (in case the swap was performed) will be replaced by the new one. So we need 2 blobs (ZIPs) to exist at any given time, but pulumi only has one. I understand this is quite a special case, but is there any pulumi mechanism to deal with this?
  • b

    brainy-ocean-92780

    01/12/2021, 12:41 AM
    #azure is there a way to get a sql server connection string for a database I've just created? I'm not seeing listed as one of the properties. I want to make sure I'm not missing something.
    t
    • 2
    • 3
  • j

    jolly-camera-35709

    01/12/2021, 3:19 AM
    I'm getting this error when modify properties of the Linux VM
  • j

    jolly-camera-35709

    01/12/2021, 3:20 AM
    azure:compute:LinuxVirtualMachine (WebVM):   error: creating Linux Virtual Machine "xxxx" (Resource Group "xxxx"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="NicInUse" Message="Network Interface networkinterface1 is used by existing resource /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Compute/virtualMachines/xxxx. In order to delete the network interface, it must be dissociated from the resource.
  • j

    jolly-camera-35709

    01/12/2021, 3:22 AM
    The property I'm trying to modify is the custom data, looks like it resulted in replacement of the VM, that's understandable, what I don't understand is, isn't pulumi suppose to handle the association with the network interface gracefully? the network interface is created in the same pulumi project
  • j

    jolly-camera-35709

    01/12/2021, 3:23 AM
    what I had to do is commenting out the VM in code, run pulumi up, let it delete the VM and then uncomment the VM, run pulumi up again to recreate the VM
  • j

    jolly-camera-35709

    01/12/2021, 3:25 AM
    Creating VM is probably most often used, I can't believe pulumi couldn't handle the replacement of the VM gracefully, has anybody experience same issue? or did I do anything wrong?
    s
    t
    • 3
    • 3
  • b

    boundless-airport-99052

    01/12/2021, 12:39 PM
    When creating a custom role definition with azure next gen, I got the following error
    azure-nextgen:authorization/v20150701:RoleDefinition (roleDefinition):
        error: autorest/azure: Service returned an error. Status=405 Code="" Message="The requested resource does not support http method 'PUT'."
    Is there an issue with the provider?
    t
    • 2
    • 6
  • b

    boundless-airport-99052

    01/12/2021, 12:43 PM
    I find this related issue https://github.com/pulumi/pulumi-azure-nextgen/issues/145. It seems this error was due to bad inputs
  • b

    brave-winter-60074

    01/12/2021, 12:48 PM
    We are building a microservice setup with pulumi azure nextgen and are transioting all our services to the new pulumi structure. Is there a way to create stacks for a group of pulumi projects so that we able to spin up a new environment and all its infrastructure without having to go to each service and do it by hand. Hope that my question makes sense…
    w
    • 2
    • 2
  • w

    wet-noon-14291

    01/12/2021, 3:13 PM
    Is there a way to set the name when creating an API in API management through the nextgen sdk with an openapi link? I want to have two instances based on the same openapi spec, but it seems like the name is taken from the openapi spec and I don't find any argument to override it. It is possible in the old sdk so I use that for now, but I didn't find a way to do it in nextgen.
    t
    s
    • 3
    • 11
  • b

    brainy-ocean-92780

    01/12/2021, 11:14 PM
    #azure I'm run into an error updating appsettings for an app service. It complains about an interface being nil and also returns a bunch of references to google.golang (not my code) The error returns
    panic: interface conversion: interface {} is nil, not map[string]interface {}
        goroutine 130 [running]:
        <http://github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.expandAppServiceLogs(0x4e99700|github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.expandAppServiceLogs(0x4e99700>, 0xc000f23260, 0x4, 0x4e99700, 0xc000f23260, 0x1)
            /home/runner/go/pkg/mod/github.com/pulumi/terraform-provider-azurerm@v1.41.1-0.20210112145652-000a00bbbc6f/azurerm/internal/services/web/app_service.go:1413 +0xf25
        <http://github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.resourceAppServiceUpdate(0xc001168a80|github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/services/web.resourceAppServiceUpdate(0xc001168a80>, 0x502d5e0, 0xc00028c300, 0x0, 0x0)
            /home/runner/go/pkg/mod/github.com/pulumi/terraform-provider-azurerm@v1.41.1-0.20210112145652-000a00bbbc6f/azurerm/internal/services/web/app_service_resource.go:515 +0x1d12
        <http://github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc001322240|github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc001322240>, 0xc00184ec80, 0xc001c32640, 0x502d5e0, 0xc00028c300, 0x1, 0x0, 0x1)
            /home/runner/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.13.1/helper/schema/resource.go:316 +0x273
        <http://github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000b3ad00|github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc000b3ad00>, 0xc0006715e0, 0xc00184ec80, 0xc001c32640, 0x0, 0x0, 0x0)
            /home/runner/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.13.1/helper/schema/provider.go:294 +0xa5
        <http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfshim/sdk-v1.v1Provider.Apply(0xc000b3ad00|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfshim/sdk-v1.v1Provider.Apply(0xc000b3ad00>, 0x57fa2d3, 0x13, 0x5f1e240, 0xc000b579d0, 0x5f633a0, 0xc001c32640, 0x0, 0x5f633a0, 0xc001c32640, ...)
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.16.0/pkg/tfshim/sdk-v1/provider.go:97 +0x106
        <http://github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0000021e0|github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge.(*Provider).Update(0xc0000021e0>, 0x5f1a400, 0xc000b55650, 0xc0006c6100, 0xc0000021e0, 0x50a0b01, 0xc001659540)
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v2@v2.16.0/pkg/tfbridge/provider.go:977 +0x96b
        <http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x5f1a400|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler.func1(0x5f1a400>, 0xc000b55650, 0x54e0820, 0xc0006c6100, 0x54c6b00, 0x976d3e0, 0x5f1a400, 0xc000b55650)
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.15.1-0.20201202214525-260620430c4c/proto/go/provider.pb.go:2305 +0x90
        <http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x5f1a400|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1(0x5f1a400>, 0xc000ec4ba0, 0x54e0820, 0xc0006c6100, 0xc001b70380, 0xc001b703a0, 0x0, 0x0, 0x5e9f7a0, 0xc000498750)
            /home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x302
        <http://github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x55a12c0|github.com/pulumi/pulumi/sdk/v2/proto/go._ResourceProvider_Update_Handler(0x55a12c0>, 0xc0000021e0, 0x5f1a400, 0xc000ec4ba0, 0xc001d00ae0, 0xc00137db80, 0x5f1a400, 0xc000ec4ba0, 0xc001c44f80, 0x1a4c)
            /home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v2@v2.15.1-0.20201202214525-260620430c4c/proto/go/provider.pb.go:2307 +0x152
        <http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc000988540|google.golang.org/grpc.(*Server).processUnaryRPC(0xc000988540>, 0x5f64360, 0xc000105380, 0xc0006d8000, 0xc0013d0150, 0x9726af8, 0x0, 0x0, 0x0)
            /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1171 +0x522
        <http://google.golang.org/grpc.(*Server).handleStream(0xc000988540|google.golang.org/grpc.(*Server).handleStream(0xc000988540>, 0x5f64360, 0xc000105380, 0xc0006d8000, 0x0)
            /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:1494 +0xce5
        <http://google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000058430|google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000058430>, 0xc000988540, 0x5f64360, 0xc000105380, 0xc0006d8000)
            /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:834 +0xa8
        created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
            /home/runner/go/pkg/mod/google.golang.org/grpc@v1.30.0/server.go:832 +0x1fd
  • b

    brainy-ocean-92780

    01/12/2021, 11:17 PM
    Interestingly enough though my value does update successfully even though pulumi says it failed.
    g
    • 2
    • 4
  • w

    wet-noon-14291

    01/13/2021, 3:44 PM
    Anyone that has successfully configured APIM with openapi and also a good setup to keep APIM up to the when the underlying openapi spec changes. I currently want to have 2 APIs in APIM that is based on the same openapi spec. I get it working some times, but not all the time which is pretty annoying. I have given my APIs in APIM unique names, but for some reason it picks the name that is defined in the openapi spec for some reason, and then it gets some kind of conflict. The message I get looks something like:
    Original Error: Code="ValidationError" Message="One or more fields contain incorrect values:" Details=[{"code":"ValidationError","message":"API with specified name '<name from openapi spec>' already exists","target":"name"}]
    • 1
    • 1
  • b

    brave-winter-60074

    01/14/2021, 10:53 AM
    We have successfully implemented pulumi azure nextgen with our core infrastructure, but when running it in azure devops pipeline it fails when trying to lookup signalr keys. Is this an error in pulumi or in some devops setting? and which? Stacktrace attached… Thank you in advance!
    Grpc.Core.RpcException: Status(StatusCode="Unknown", Detail="invocation of azure-nextgen:signalrservice/latest:listSignalRKeys returned an error: request failed /subscriptions/5d5f4691-723c-462e-b620-e4219f22ee8a/resourceGroups/rg-nuuday-troubleticket-development/providers/Microsoft.SignalRService/signalR/signalr-service-waxfpu/listKeys: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The Resource 'Microsoft.SignalRService/SignalR/signalr-service-waxfpu' under resource group 'rg-nuuday-troubleticket-development' was not found. For more details please go to <https://aka.ms/ARMResourceNotFoundFix>"", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1610621210.259509913","description":"Error received from peer ipv4:127.0.0.1:40251","file":"/var/local/git/grpc/src/core/lib/surface/call.cc","file_line":1063,"grpc_message":"invocation of azure-nextgen:signalrservice/latest:listSignalRKeys returned an error: request failed /subscriptions/5d5f4691-723c-462e-b620-e4219f22ee8a/resourceGroups/rg-nuuday-troubleticket-development/providers/Microsoft.SignalRService/signalR/signalr-service-waxfpu/listKeys: autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="The Resource 'Microsoft.SignalRService/SignalR/signalr-service-waxfpu' under resource group 'rg-nuuday-troubleticket-development' was not found. For more details please go to
    t
    • 2
    • 5
  • l

    loud-shampoo-49194

    01/14/2021, 12:17 PM
    I'm having an issue adding a WebAppSlot to a WebApp ( Windows, non-containered). It always fails with a very unspecific Code="Failed" Message="The async operation failed." message. Anyone here managed to do it? Using the AzureNextGen provider. I exported an arm template from azure with a similar config and just added the siteConfig, since that one does not get exported by azure.
  • b

    brave-winter-60074

    01/14/2021, 4:24 PM
    I suddenly get this error when creating a function app (web app) It has been working for the last couple of days and I have trouble identifying whats the error is azure-nextgen:web/v20200601:WebApp (Function): error: autorest/azure: Service returned an error. Status=<nil> <nil> i have upgraded pulumi cli with brew can that be the culprit?
    t
    • 2
    • 9
Powered by Linen
Title
b

brave-winter-60074

01/14/2021, 4:24 PM
I suddenly get this error when creating a function app (web app) It has been working for the last couple of days and I have trouble identifying whats the error is azure-nextgen:web/v20200601:WebApp (Function): error: autorest/azure: Service returned an error. Status=<nil> <nil> i have upgraded pulumi cli with brew can that be the culprit?
t

tall-librarian-49374

01/14/2021, 7:16 PM
Could you take a look in the activity log of that web app? Web resources are really bad with returning error messages.
Ah, I can see it’s a new one. Maybe in the resource group activity?
b

brave-winter-60074

01/14/2021, 8:03 PM
Ok thank you I tried in another function and that worked so will try delete and recreate tomorrow
t

tall-librarian-49374

01/14/2021, 8:49 PM
Status=<nil> <nil>
is what the service returns, unfortunately. Internet is full of questions about that.
b

brave-winter-60074

01/15/2021, 9:53 AM
@tall-librarian-49374 Thank you for all your help, have now tried destroying and removing the stack, copied code from another working function and retried several times but it still fails on this one microservice when creating the web app. Any ideas what could be the reason? naming lengths something other? And is there any log that i can look at when the web app isn’t created. Thanx in advance
t

tall-librarian-49374

01/15/2021, 9:55 AM
Have you checked the activity log of the resource group?
b

brave-winter-60074

01/15/2021, 9:55 AM
i will look at it, didn’t know where its located, but will try to take a look
found it
That helped my locate the problem, thank you once again. This fast access to help is really a major win for us! We are paying customers and will potentially expand pulumi across our organisation. We are just trying to justify the cost by being the first tribe to try it out.
👍 1
View count: 3