Pulumi refresh
does not detect resource name changes due to letter casing differences
#2479
Labels
kind/bug
Some behavior is incorrect or out of spec
needs-triage
Needs attention from the triage team
What happened?
When there is a difference in letter casing in a resource's name, the
pulumi refresh
command does not detect it. Thepulumi refresh
command should recognize such changes and synchronize the stack with the resource name in Azure.Example
"workspaceName": "lawtestservice"
.pulumi refresh
in the command line – no changes are detected.Expected behavior
The workspace name in the stack should be overwritten to "lawTestService" and synchronized with the name defined in the Azure provider.
Output of
pulumi about
running 'dotnet build -nologo .'
Determining projects to restore...
All projects are up-to-date for restore.
C:\Users\cerma.nuget\packages\microsoft.codeanalysis.netanalyzers\7.0.4\build\Microsoft.CodeAnalysis.NetAnalyzers.targets(593,5): warning : The .NET SDK has newer analyzers with version '8.0.0' than what version '7.0.4' of 'Microsoft.CodeAnalysis.NetAnaly
zers' package provides. Update or remove this package reference. [C:\Sources\NetCoreBoilerplate\infrastructure\Ori.NetCoreBoilerplate.Infrastructure\Ori.NetCoreBoilerplate.Infrastructure.csproj]
Ori.NetCoreBoilerplate.Infrastructure -> C:\Sources\NetCoreBoilerplate\infrastructure\Ori.NetCoreBoilerplate.Infrastructure\bin\Debug\net8.0\Ori.NetCoreBoilerplate.Infrastructure.dll
Build succeeded.
C:\Users\cerma.nuget\packages\microsoft.codeanalysis.netanalyzers\7.0.4\build\Microsoft.CodeAnalysis.NetAnalyzers.targets(593,5): warning : The .NET SDK has newer analyzers with version '8.0.0' than what version '7.0.4' of 'Microsoft.CodeAnalysis.NetAnalyzers' package provides. Update or remove this package reference. [C:\Sources\NetCoreBoilerplate\infrastructure\Ori.NetCoreBoilerplate.Infrastructure\Ori.NetCoreBoilerplate.Infrastructure.csproj]
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.86
Workload updates are available. Run
dotnet workload list
for more information.'dotnet build -nologo .' completed successfully
CLI
Version 3.133.0
Go Version go1.23.1
Go Compiler gc
Plugins
KIND NAME VERSION
resource azure 5.78.0
resource azure-native 2.42.1
resource azuread 5.50.0
resource azuredevops 3.1.1
language dotnet unknown
Host
OS Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631
Arch x86_64
This project is written in dotnet: executable='C:\Program Files\dotnet\dotnet.exe' version='8.0.402'
Current Stack: organization/NcBoilerplateInfrastructureStack/we.uat
TYPE URN
pulumi:pulumi:Stack urn:pulumi:we.uat::NcBoilerplateInfrastructureStack::pulumi:pulumi:Stack::NcBoilerplateInfrastructureStack-we.uat
pulumi:providers:azure-native urn:pulumi:we.uat::NcBoilerplateInfrastructureStack::pulumi:providers:azure-native::azure-native-tenant-e46bc88e-1a4b-44ff-a158-1b9f7eb4561e-subscription-bf92e86b-7b0b-4d78-8785-c104ce8ffaf4
pulumi:providers:azure urn:pulumi:we.uat::NcBoilerplateInfrastructureStack::pulumi:providers:azure::azure-tenant-e46bc88e-1a4b-44ff-a158-1b9f7eb4561e-subscription-bf92e86b-7b0b-4d78-8785-c104ce8ffaf4
azure-native:resources:ResourceGroup urn:pulumi:we.uat::NcBoilerplateInfrastructureStack::azure-native:resources:ResourceGroup::rgncboilerplateuatwe-online
azure-native:operationalinsights:Workspace urn:pulumi:we.uat::NcBoilerplateInfrastructureStack::azure-native:operationalinsights:Workspace::lawncboilerplateuatwe-online
Found no pending operations associated with we.uat
Backend
Name Pavel-PC
URL azblob://frameworks
User PAVEL-PC\cerma
Organizations
Token type personal
Dependencies:
NAME VERSION
Ori.Common.Analyzers.CSharp 7.0.2
Ori.Common.Analyzers.Security 5.0.1
Ori.Common.Pulumi 0.1.35
Additional context
Although pulumi refresh does not detect changes in letter casing, pulumi up does and attempts to replace the resource.
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).
The text was updated successfully, but these errors were encountered: