Hi ho and hello! Is there an easy way to tell Pul...
# general
d
Hi ho and hello! Is there an easy way to tell Pulumi to ignore changes in one of the attributes I am setting? I am creating a service principal; and the Owner is being set - in CICD, the owner is different and I don't want to bother trying to change it ...
Copy code
var app = new Application($"{Deployment.Instance.StackName}-app", new ApplicationArgs
{
    DisplayName = $"{Deployment.Instance.StackName}-cicd",
    Owners = { current.Apply(c => c.ObjectId), },
    SignInAudience = "AzureADMultipleOrgs"
}, new CustomResourceOptions()
{
    IgnoreChanges = {
        "Owners"
    }
});
I thought the above "IgnoreChanges" might be the key, but I suspect I am using that incorrectly in this case. Tips appreciated.
Solved: ignore changes requires the list of attributes to be in camelCase
1
Therefore, "Owners" is changed to "owners" and it works.
🙌 3