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
parent
e9ab2cacc0
commit
af8afc77df
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue