diff --git a/internal/provider/gql.go b/internal/provider/gql.go index c1f1110..9058d61 100644 --- a/internal/provider/gql.go +++ b/internal/provider/gql.go @@ -656,8 +656,6 @@ type MicrosoftDefenderConfigurationOptionsInput struct { ClientId string SubscriptionsAllowlist []string SubscriptionsDenylist []string - Certificate string - ClientSecret string } type ClientIntegrationConfigurationOptions struct { @@ -673,7 +671,7 @@ type ClientIntegrationConfigurationOptions struct { JiraConfigurationOptions JiraConfigurationOptions `graphql:"... on JiraConfigurationOptions"` EmailConfigurationOptions EmailConfigurationOptions `graphql:"... on EmailConfigurationOptions"` GitlabConfigurationOptions GitlabConfigurationOptions `graphql:"... on GitlabConfigurationOptions"` - MicrosoftDefenderConfigurationOptionsInput MicrosoftDefenderConfigurationOptionsInput `graphql:"... on MicrosoftDefenderConfigurationOptionsInput"` + MicrosoftDefenderConfigurationOptionsInput MicrosoftDefenderConfigurationOptionsInput `graphql:"... on MicrosoftDefenderConfigurationOptions"` // Add other configuration options here } diff --git a/internal/provider/integration_msdefender_resource.go b/internal/provider/integration_msdefender_resource.go index edb2400..398f098 100644 --- a/internal/provider/integration_msdefender_resource.go +++ b/internal/provider/integration_msdefender_resource.go @@ -304,7 +304,7 @@ func (r *integrationMsDefenderResource) ImportState(ctx context.Context, req res SubscriptionAllowList: allowList, SubscriptionDenyList: denyList, Credential: integrationMsDefenderCredentialModel{ - PEMFile: types.StringValue(integration.ConfigurationOptions.MicrosoftDefenderConfigurationOptionsInput.Certificate), + PEMFile: types.StringPointerValue(nil), }, }