pulumi/examples

azure-cs-credential-rotation-one-set: Does not provision in the standard example

Thorbenl opened this issue · 0 comments

What happened?

I am trying to run azure-cs-credential-rotation-one-set/AppStack.cs from this repo, just as is, and following the docs. But I am getting:

azure-native:eventgrid:SystemTopicEventSubscription (eventSubscription):
    error: 1 error occurred:
    	* resource created but read failed autorest/azure: Service returned an error. Status=404 Code="ResourceNotFound" Message="Event subscription doesn't exist.": Code="Endpoint validation" Message="Destination endpoint not found. Resource details: resourceId: /subscriptions/****/resourceGroups/rotatesecretoneset-rgd43cda31/providers/Microsoft.Web/sites/functionAppc4ace397/functions/AKVSQLRotation. Resource should pre-exist before attempting this operation. Activity id:0cb6d841-074c-48e9-9fa3-07185f9b4edc, timestamp: 7/23/2024 8:01:54 AM (UTC)."

Image

I dont understand that error really, because all the things that are supposed to be there seem to be available

Example

Clone https://github.com/pulumi/examples/tree/master/azure-cs-credential-rotation-one-set and follow the readme.

Output of pulumi about

> pulumi about
running 'dotnet build -nologo .'
  Determining projects to restore...
  All projects are up-to-date for restore.
  Azure.CredentialRotation.OneSet -> /Users/dkThoLue/work/examples/azure-cs-credential-rotation-one-set/bin/Debug/net6.0/Azure.CredentialRotation.OneSet.dll

Build succeeded.

    0 Warning(s)
    0 Error(s)
Time Elapsed 00:00:00.77

'dotnet build -nologo .' completed successfully
CLI
Version      3.125.0
Go Version   go1.22.5
Go Compiler  gc

Plugins
KIND      NAME          VERSION
resource  azure-native  2.50.1
language  dotnet        unknown
resource  random        3.2.0

Host
OS       darwin
Version  14.5
Arch     arm64

This project is written in dotnet: executable='/usr/local/share/dotnet/dotnet' version='8.0.100'

Current Stack: organization/azure-cs-cred-rotation-one-set/dev

TYPE                                                 URN
pulumi:pulumi:Stack                                  urn:pulumi:dev::azure-cs-cred-rotation-one-set::pulumi:pulumi:Stack::azure-cs-cred-rotation-one-set-dev
pulumi:providers:azure-native                        urn:pulumi:dev::azure-cs-cred-rotation-one-set::pulumi:providers:azure-native::default_2_50_1
pulumi:providers:random                              urn:pulumi:dev::azure-cs-cred-rotation-one-set::pulumi:providers:random::default_3_2_0
random:index/randomUuid:RandomUuid                   urn:pulumi:dev::azure-cs-cred-rotation-one-set::random:index/randomUuid:RandomUuid::sqlPassword
azure-native:resources:ResourceGroup                 urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:resources:ResourceGroup::rotatesecretoneset-rg
azure-native:web:AppServicePlan                      urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:web:AppServicePlan::functionApp-appService
azure-native:sql:Server                              urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:sql:Server::sqlServer
azure-native:web:AppServicePlan                      urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:web:AppServicePlan::webApp-appService
azure-native:storage:StorageAccount                  urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:storage:StorageAccount::storageaccount
azure-native:web:WebApp                              urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:web:WebApp::webApp
azure-native:sql:FirewallRule                        urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:sql:FirewallRule::AllowAllWindowsAzureIps
azure-native:web:WebApp                              urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:web:WebApp::functionApp
azure-native:keyvault:Vault                          urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:keyvault:Vault::keyVault
azure-native:eventgrid:SystemTopic                   urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:eventgrid:SystemTopic::SecretExpiry
azure-native:web:WebAppApplicationSettings           urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:web:WebAppApplicationSettings::webApp-appSettings
azure-native:eventgrid:SystemTopicEventSubscription  urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:eventgrid:SystemTopicEventSubscription::eventSubscription
azure-native:web:WebAppSourceControl                 urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:web:WebAppSourceControl::webApp-sourceControl
azure-native:web:WebAppSourceControl                 urn:pulumi:dev::azure-cs-cred-rotation-one-set::azure-native:web:WebAppSourceControl::functionApp-sourceControl


Found no pending operations associated with dev

Backend
Name           ...
URL            ....
User          ...
Organizations....
Token type     personal

Dependencies:
NAME                VERSION
Pulumi              3.65.0
Pulumi.AzureNative  2.50.1
Pulumi.Random       3.2.0

Pulumi locates its logs in /var/folders/t7/7_djb4cn549_n_c65178xl940000gp/T/ by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).