diff --git a/internal/common/client_options.go b/internal/common/client_options.go index dedd747c7701..b8330a62f929 100644 --- a/internal/common/client_options.go +++ b/internal/common/client_options.go @@ -63,8 +63,8 @@ func setUserAgent(client *autorest.Client, tfVersion, partnerID string, disableT tfUserAgent := fmt.Sprintf("HashiCorp Terraform/%s (+https://www.terraform.io) Terraform Plugin SDK/%s", tfVersion, meta.SDKVersionString()) providerUserAgent := fmt.Sprintf("%s terraform-provider-azurerm/%s", tfUserAgent, version.ProviderVersion) - if features.ThreePointOhBeta() { - providerUserAgent = fmt.Sprintf("%s terraform-provider-azurerm/%s+3.0-beta", tfUserAgent, version.ProviderVersion) + if features.FourPointOhBeta() { + providerUserAgent = fmt.Sprintf("%s terraform-provider-azurerm/%s+4.0-beta", tfUserAgent, version.ProviderVersion) } client.UserAgent = strings.TrimSpace(fmt.Sprintf("%s %s", client.UserAgent, providerUserAgent))