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

    prehistoric-nail-50687

    02/07/2021, 11:32 AM
    I was very surprised today, when I found out that the
    azure-nextgen
    provider is not OSS: https://github.com/pulumi/pulumi-azure-nextgen/issues/36 One of the drivers why we have chosen pulumi also was the fact that it is OSS, unfortunately today I noticed that the main component we use is actually not. I’m not yet sure how to deal with it and I need to talk to the whole team about it, but this was very unexpected šŸ˜ž
    šŸ˜ž 1
  • b

    broad-dog-22463

    02/07/2021, 2:14 PM
    Hi @prehistoric-nail-50687 The provider itself is open source but the code generation behind it is not What component are you specifically referring to?
    p
    t
    t
    • 4
    • 3
  • c

    cold-caravan-83486

    02/08/2021, 11:58 AM
    Does the Azure Devops (NextGen or otherwise) allow creation of a yaml pipeline, like Pipelines - Create (Azure DevOps Pipelines) | Microsoft Docs describes? Pipelines only seem to be in the NextGen api, where the PipelineArgs requires a BootstrapConfiguration that references a template by ID rather than just a yaml file and repo folder
    • 1
    • 1
  • t

    tall-needle-56640

    02/08/2021, 10:06 PM
    Why does
    ResourceGroup.Get()
    require an ID? I don't see it being used in the spec.
    t
    • 2
    • 12
  • t

    tall-needle-56640

    02/10/2021, 9:28 PM
    In ARM templates,
    Microsoft.Web/sites
    and
    Microsoft.KeyVault/vaults/secrets
    both have objects called
    properties
    . However, in AzureNextGen, they are not treated the same. In
    WebApp
    , the properties object disappears completely and all the sub-objects are brought up a level. However, in
    Secret
    (KeyVault), there is
    SecretProperties
    . Why are these treated differently? Could
    SecretPropertiesArgs
    just merge into
    Secret
    ?
    t
    • 2
    • 3
  • f

    fancy-umbrella-67692

    02/10/2021, 9:44 PM
    anyone seen this behavior?
    failed creating container: containers.Client#Create: Failure sending request: StatusCode=409 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="PublicAccessNotPermitted" Message="Public access is not permitted on this storage account.
    very easy to replicate: 1. create storage account with no public blob access;
    pulumi up
    2. alter the code to update storage account with public blob access and create a container;
    pulumi up
    t
    • 2
    • 7
  • b

    bright-eve-47520

    02/11/2021, 2:23 AM
    Hi, I’m running into errors using AzureNextGen dotnet, it appears that Pulumi is receiving a blank error from ARM. I have 2 examples related to APIM, creating an ApiPolicy resource and creating a ProductApi resource. The output from Pulumi is the same in both scenarios:
    error: autorest/azure: error response cannot be parsed: "" error: EOF
    verbose logging doesn’t reveal anything extra
    provider received rpc error Unknown: autorest/azure: error response cannot be parsed: "" error: EOF
    Does anybody know a way to debug further. Is there somewhere in the Azure portal maybe that can shed some light on what’s failing?
    t
    t
    • 3
    • 11
  • f

    full-winter-70537

    02/11/2021, 4:29 AM
    Hi, does anyone know how to configure / retrieve as
    Output
    either the
    AccessKey
    or a
    Private Endpoint Connection
    for an Azure App Config instance? https://www.pulumi.com/docs/reference/pkg/azure-nextgen/appconfiguration/configurationstore/
    t
    • 2
    • 2
  • t

    tall-librarian-49374

    02/11/2021, 1:38 PM
    Hey Azure NextGen users, There is a proposal which deprecated the
    Latest
    modules and introduces top-level resources instead. I’d appreciate your feedback on it! See this GitHub comment: https://github.com/pulumi/pulumi-azure-nextgen/issues/169#issuecomment-777458268
  • b

    best-jordan-23853

    02/11/2021, 5:46 PM
    Hi, Does anyone know how to remove OS disk on VM delete for Azure NextGen? Using old provider I able to set _delete_os_disk_on_termination_ but I didn’t found nothing related for NextGen.
  • t

    tall-needle-56640

    02/12/2021, 5:29 PM
    Why would I be unable to delete an access policy? It just hangs for 30 min. It keeps querying for it not to be found, but it's always found, so it just keeps trying.
    • 1
    • 1
  • b

    bitter-bear-28592

    02/15/2021, 4:18 AM
    To those familiar with importing existing resources - does that resource get deleted if you end up deleting the stack?
    b
    • 2
    • 2
  • b

    breezy-animal-52081

    02/15/2021, 11:43 AM
    Hey, does anyone know how to create a Serverless tier Azure SQL Database, any advice would be appreciated? I am trying to create an Azure SQL database with Serverless billing, however whilst I can set theĀ 
    Pulumi.Azure.Sql.DatabaseArgs.Edition
    Ā property to "GeneralPurpose" I can't see how to set ComputeModel to serverless. Here is the equivalent Azure command line call:
    New-AzSqlDatabase -ResourceGroupName $resourceGroupName -ServerName $serverName -DatabaseName $databaseName  -ComputeModel Serverless -Edition GeneralPurpose -ComputeGeneration Gen5  -MinVcore 0.5 -MaxVcore 2 -AutoPauseDelayInMinutes 720
    Ā as per this page:Ā https://docs.microsoft.com/en-gb/azure/azure-sql/database/serverless-tier-overview#use-powershell Thanks!
    t
    • 2
    • 3
  • b

    breezy-apartment-46543

    02/17/2021, 2:09 PM
    Im trying to implement a blob trigger for an Azure function and I thought I could use a BlobEventSubscription. I provide an Azure function but I struggle to find out how and when this function is triggered using the BlobEventSubscription. I haven’t found any documentation about this so I thought i’d ask here. I haven’t decided when it should be triggered yet but most likely at creation of the blob. Im using JavaScript for this btw. Should I perhaps use EventGrid instead?
    t
    • 2
    • 3
  • t

    tall-needle-56640

    02/17/2021, 10:16 PM
    What is the equivalent of
    SharedAccessSignature.SignedBlobReadUrl
    in NG?
    t
    • 2
    • 1
  • b

    bitter-bear-28592

    02/17/2021, 11:48 PM
    Hello all, trying to import an existing AzureAD Application and getting the following error - `error: azuread:index/application:Application resource 'test' has a problem: ExactlyOne: "display_name": one of
    display_name,name
    must be specified` `error: azuread:index/application:Application resource 'test' has a problem: ExactlyOne: "name": one of
    display_name,name
    must be specified`
    error: Preview failed: one or more inputs failed to validate
    s
    • 2
    • 3
  • f

    few-coat-22129

    02/18/2021, 1:03 AM
    Are there any examples of how to use c# to create
    Azure Roles Assignments
    for a resource? For Example: in the portal I can, from the Access Control blade for a database server, assigned the role of SQL DB Contributor to an App service) Thanks!
    a
    • 2
    • 2
  • b

    brave-winter-60074

    02/18/2021, 8:02 PM
    Hi everyone, we seem to get an error that has not existed earlier today in our Azure devops pipelines, Pulumi fails to do a dotnet restore and accessing our nuget packages. Has something changed today? We think we haven’t changed anything but may be wrong šŸ™‚ We are using Azure nextgen by the way
    g
    g
    • 3
    • 3
  • r

    red-lighter-44012

    02/19/2021, 10:27 PM
    Has anyone experienced issues creating new postgres server and then creating new databases and users at once? I get an
    no pg_hba.conf entry for host...
    error on a freshly provisioned server (in the same pulumi stack). If I then run pulumi up again, everything passes and I can create the database users (postgres roles) and their grants. It seems that the firewall rule im applying (allowing connectivity) gets applied / created too late.
    w
    • 2
    • 2
  • w

    wet-noon-14291

    02/21/2021, 8:40 AM
    Is there a way to the aks cluster config within a pulumi program for the service principal in use? Or do I have to get the config using the cli with
    az aks get-credentials?
    before running pulumi?
    b
    f
    t
    • 4
    • 24
  • b

    bitter-bear-28592

    02/21/2021, 10:43 PM
    Is there a way to pass the name of an application being created (ex, a web app service) to its own app settings during creation?
    t
    • 2
    • 2
  • t

    tall-needle-56640

    02/22/2021, 6:34 PM
    Is there a way to upload files directly to a WebApp's storage instead of having to push the deployment file into a separate storage account?
  • r

    rough-tomato-98795

    02/23/2021, 11:52 AM
    Hello, is there a way how to purge keyvault secret with azure-nextgen?
    b
    t
    • 3
    • 13
  • f

    few-coat-22129

    02/25/2021, 6:01 AM
    I had to change my Azure Subscriptions after building a stack. So logged in the azure CLI again, blew away the stack (
    pulumi stack rm <value>
    ) However i get a message saying it's still trying to use the old subscription:
    azure-nextgen:resources:ResourceGroup (resourceGroup): error: autorest/azure: Service returned an error. Status=<nil> Code="ReadOnlyDisabledSubscription" Message="The subscription is disabled and therefore marked as read only. You
    cannot perform any write actions on this subscription until it is re-enabled."
    Is there anywhere else the old subscription is cached?
    • 1
    • 1
  • r

    rhythmic-activity-46295

    02/25/2021, 1:36 PM
    hi guys, wander if someone can help.? I'm trying to do a poc storing pulumi state into azure blob storage, but having issues with it not recognizing the account name I've setup in env variables....
    RESOURCE_GROUP_NAME=rg-name
    AZURE_STORAGE_ACCOUNT=sa-account-name
    STORAGE_CONTAINER_NAME="pulumi-state"
    CONNECTION_STRING=$(azĀ storageĀ accountĀ show-connection-stringĀ -nĀ "$AZURE_STORAGE_ACCOUNT"Ā -gĀ $RESOURCE_GROUP_NAMEĀ -oĀ tsv)
    azĀ storageĀ containerĀ createĀ -nĀ "$STORAGE_CONTAINER_NAME"Ā --connection-stringĀ "$CONNECTION_STRING"
    -Ā generateĀ aĀ sasĀ token
    end=`dateĀ -uĀ -dĀ "30Ā minutes"Ā '+%Y-%m-%dT%H:%MZ'`
    AZURE_STORAGE_SAS_TOKENĀ =Ā $(azĀ storageĀ accountĀ generate-sasĀ --permissionsĀ cdlruwapĀ --account-nameĀ "$AZURE_STORAGE_ACCOUNT"Ā --servicesĀ qtĀ --resource-typesĀ scĀ --expiryĀ "$end"Ā --outputĀ tsv)
    this is the error am getting: /azdo_projects$ pulumi login azblob://pulumi-state error: problem logging in: unable to open bucket azblob://pulumi-state: azureblob.OpenBucket: accountName is required followed this example here but no luck : https://woivre.com/blog/2020/02/pulumi-store-your-state-in-azure-storage
    k
    • 2
    • 1
  • n

    nice-guitar-97142

    02/25/2021, 9:25 PM
    we are migrating to
    next-gen
    in our Typescript project and can’t find any mention of
    Certificate
    under
    keyvault
    . does it live somewhere else now? this used to be under
    azure.keyvault.Certificate
    t
    • 2
    • 2
  • n

    nice-guitar-97142

    02/25/2021, 9:27 PM
    new keyvault lib: https://github.com/pulumi/pulumi-azure-nextgen/tree/master/sdk/nodejs/keyvault/latest old keyvault lib: https://github.com/pulumi/pulumi-azure/tree/master/sdk/nodejs/keyvault
  • m

    miniature-leather-70472

    02/26/2021, 10:56 AM
    Is there any way to update an existing resource without having Pulumi own it? I am trying to create an Azure App Service certificate, which requires adding an entry to a TXT record in DNS, however this TXT record already exists, with entries added already, and will continue to be updated outside of Pulumi so it's not practical to have this managed in Pulumi state
    t
    • 2
    • 5
  • b

    brave-winter-60074

    02/26/2021, 11:30 AM
    Hi, we have an issue with Event Grid (using Pulumi Azure nextgen) and topic subscriptions. Is there a way to conditionally test whether a given function (our event grid listener) is deployed before creating the subscription. Our code that create the subscription is here, and it fails due to the fact that the actual function is deployed in our Azure Devops CI/CD pipeline after running Pulumi up on a microservice
    var viewUpdatesSubscription = new EventSubscription("viewUpdatesSubscription", new EventSubscriptionArgs
    {
        Destination = new AzureFunctionEventSubscriptionDestinationArgs()
        {
            EndpointType = EndpointType.AzureFunction.ToString(),
            MaxEventsPerBatch = 1,
            ResourceId =
                signalrNegotiator.FunctionAppResourceId.Apply(
                    id => $"{id}/functions/ViewUpdatesTopicSubscriber"),
        },
        EventSubscriptionName = coreRandomSuffix.Apply(random => $"view-updates-subscription-{random}"),
        Scope = viewUpdatesTopicId, // eventSubscriptionScope,
    });
    • 1
    • 1
  • c

    clean-appointment-35715

    02/27/2021, 9:43 PM
    hi everyone, I want to ask you for a hand to understand how I can integrate an azure container registry with an aks. Using az cli you would use this command:
    az aks update -n $ AKS_NAME -g $ RG_NAME \
        --attach-acr $ (az acr show -n $ ACR_NAME --query "id" -o tsv)
    While I can't figure out how to replicate it from pulumi. can you recommend me some examples in nodejs that i can use? Thank you
    t
    • 2
    • 2
Powered by Linen
Title
c

clean-appointment-35715

02/27/2021, 9:43 PM
hi everyone, I want to ask you for a hand to understand how I can integrate an azure container registry with an aks. Using az cli you would use this command:
az aks update -n $ AKS_NAME -g $ RG_NAME \
    --attach-acr $ (az acr show -n $ ACR_NAME --query "id" -o tsv)
While I can't figure out how to replicate it from pulumi. can you recommend me some examples in nodejs that i can use? Thank you
t

tall-librarian-49374

02/28/2021, 8:06 AM
Here is one example: https://github.com/mikhailshilkov/temporal-samples/blob/main/azure-aks/temporal.ts#L73
c

clean-appointment-35715

03/01/2021, 7:54 AM
Thx so much šŸ˜„
View count: 3