Hello everyone, we are currently experiencing fol...
# azure
e
Hello everyone, we are currently experiencing following error when running
pulumi up
against our existing AKS with no code changed:
Copy code
Previewing update ([redacted]/dev)

View in Browser (Ctrl+O): <https://app.pulumi.com/[redacted]/azure-kubernetes/dev/previews/2ab6b03c-327c-48a6-a3a0-5280c05e66a3>

     Type                          Name                           Plan     Info
     pulumi:pulumi:Stack           azure-kubernetes-dev                    
     └─ azuread:index:Application  infra-poc-dev-aks-application           1 error


Diagnostics:
  azuread:index:Application (infra-poc-dev-aks-application):
    error: unmarshaling urn:pulumi:dev::azure-kubernetes::pulumi:pulumi:StackReference$azuread:index/application:Application::infra-poc-dev-aks-application's instance state: could not read field public_client: '' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[redirect_uris:[]]'
With our Go code looking like this:
Copy code
package azure

import (
	"<http://github.com/pulumi/pulumi-azuread/sdk/v4/go/azuread|github.com/pulumi/pulumi-azuread/sdk/v4/go/azuread>"
	"<http://github.com/pulumi/pulumi/sdk/v3/go/pulumi|github.com/pulumi/pulumi/sdk/v3/go/pulumi>"
)

func CreateApplication(
	ctx *pulumi.Context,
	name string,
	opts ...pulumi.ResourceOption,
) (*azuread.Application, error) {

	// * <https://www.pulumi.com/registry/packages/azuread/api-docs/application/>
	application, err := azuread.NewApplication(
		ctx,
		name,
		&azuread.ApplicationArgs{
			DisplayName: pulumi.String(name),
		},
		opts...,
	)
	if err != nil {
		return nil, err
	}

	return application, nil
}
In my current understanding this is related to the fact that both
PublicClient
and
GroupMembershipClaims
were deprecated in
azuread.ApplicationArgs
and are using a different types in newer Azure AD implementations. But I have no idea how to fix the error above because we are not configuring both explicitly. Thanks :)
Just realized that we used a very outdated azuread package and the current one is imported with
"<http://github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread|github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread>"
.