diff --git a/internal/services/mssql/mssql_server_resource.go b/internal/services/mssql/mssql_server_resource.go index a464dfeb2b7a..278aeb7eae8d 100644 --- a/internal/services/mssql/mssql_server_resource.go +++ b/internal/services/mssql/mssql_server_resource.go @@ -518,7 +518,7 @@ func resourceMsSqlServerRead(d *pluginsdk.ResourceData, meta interface{}) error if v := props.MinimalTlsVersion; v == nil || *v == "None" { d.Set("minimum_tls_version", "Disabled") } else { - d.Set("minimum_tls_version", props.MinimalTlsVersion) + d.Set("minimum_tls_version", string(pointer.From(props.MinimalTlsVersion))) } d.Set("public_network_access_enabled", pointer.From(props.PublicNetworkAccess) == servers.ServerPublicNetworkAccessFlagEnabled) diff --git a/internal/services/mssql/mssql_server_vulnerability_assessment_resource.go b/internal/services/mssql/mssql_server_vulnerability_assessment_resource.go index fcbc48e67ea4..8299a3bdf887 100644 --- a/internal/services/mssql/mssql_server_vulnerability_assessment_resource.go +++ b/internal/services/mssql/mssql_server_vulnerability_assessment_resource.go @@ -8,7 +8,7 @@ import ( "log" "time" - "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v5.0/sql" + "github.com/Azure/azure-sdk-for-go/services/preview/sql/mgmt/v5.0/sql" // nolint: staticcheck "github.com/hashicorp/go-azure-helpers/lang/response" "github.com/hashicorp/go-azure-helpers/resourcemanager/commonids" "github.com/hashicorp/go-azure-sdk/resource-manager/sql/2023-08-01-preview/servervulnerabilityassessments" diff --git a/internal/services/mssql/mssql_virtual_network_rule_resource.go b/internal/services/mssql/mssql_virtual_network_rule_resource.go index 0c2a06b48d10..5b997a68da02 100644 --- a/internal/services/mssql/mssql_virtual_network_rule_resource.go +++ b/internal/services/mssql/mssql_virtual_network_rule_resource.go @@ -154,7 +154,7 @@ func resourceMsSqlVirtualNetworkRuleRead(d *pluginsdk.ResourceData, meta interfa return fmt.Errorf("parsing subnet ID returned by API %q: %+v", props.VirtualNetworkSubnetId, err) } - d.Set("subnet_id", subnetId) + d.Set("subnet_id", subnetId.ID()) } }