Force azure provider registration to false.

Azure provider registration allow terraform provider to automatically
register azure resource providers.
In our context we are running read only so we do not want to try to
enable them during the scan.
Without this, a driftctl scan will try to register resource providers
since it is done in the gRPC configure call.
main
Elie 2021-11-16 14:42:33 +01:00
parent e9ab2cacc0
commit af8afc77df
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
1 changed files with 6 additions and 5 deletions

View File

@ -38,11 +38,12 @@ func NewAzureTerraformProvider(version string, progress output.Progress, configD
Name: p.name,
GetProviderConfig: func(_ string) interface{} {
c := p.GetConfig()
return map[string]string{
"subscription_id": c.SubscriptionID,
"tenant_id": c.TenantID,
"client_id": c.ClientID,
"client_secret": c.ClientSecret,
return map[string]interface{}{
"subscription_id": c.SubscriptionID,
"tenant_id": c.TenantID,
"client_id": c.ClientID,
"client_secret": c.ClientSecret,
"skip_provider_registration": true,
}
},
}, progress)