Skip to content

Commit

Permalink
Update azuread.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ramin-mobilab authored Oct 19, 2023
1 parent 14acb4e commit a80c7a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions internal/clients/azuread.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ func TerraformSetupBuilder(version, providerSource, providerVersion string, sche
return ps, errors.Wrap(err, errTrackUsage)
}

ps.Configuration = map[string]interface{}{
keyTerraformFeatures: struct{}{},

Check failure on line 78 in internal/clients/azuread.go

View workflow job for this annotation

GitHub Actions / ci / local-deploy

undefined: keyTerraformFeatures

Check failure on line 78 in internal/clients/azuread.go

View workflow job for this annotation

GitHub Actions / ci / unit-tests

undefined: keyTerraformFeatures
// Terraform AzureRM provider tries to register all resource providers
// in Azure just in case if the provider of the resource you're
// trying to create is not registered and the returned error is
// ambiguous. However, this requires service principal to have provider
// registration permissions which are irrelevant in most contexts.
// For details, see https://github.com/upbound/provider-azure/issues/104
keySkipProviderRegistration: true,

Check failure on line 85 in internal/clients/azuread.go

View workflow job for this annotation

GitHub Actions / ci / local-deploy

undefined: keySkipProviderRegistration

Check failure on line 85 in internal/clients/azuread.go

View workflow job for this annotation

GitHub Actions / ci / unit-tests

undefined: keySkipProviderRegistration
}

var err = msiAuth(pc, &ps)
return ps, err
}
Expand Down

0 comments on commit a80c7a1

Please sign in to comment.