sparse-intern-71089
06/24/2020, 7:50 PMgentle-diamond-70147
06/24/2020, 8:21 PMimport
statements might be incorrect given the undefined
errors.
Beyond that, you shouldn't be instantiating any *Ptr
objects. Instead you should use ServerAzureadAdministratorArgs
directly.
So your code should look like this instead:
azureADAdministratorArgs := &mssql.ServerAzureadAdministratorArgs{
LoginUsername: pulumi.String(azureADAdministratorInput[0].LoginUsername),
ObjectId: pulumi.String(azureADAdministratorInput[0].ObjectID),
TenantId: pulumi.StringPtr(azureADAdministratorInput[0].TenantID),
}
echoing-librarian-76448
06/24/2020, 9:04 PM*Ptr
objects.
I have some other objects from mssql
like mssql.NewElasticPool
that aren't giving that same error. I noticed that Azure SQL Servers were migrated to mssql
from sql
. Should I be using the old version?
Here's my import statement:
import (
"<http://github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns|github.com/pulumi/pulumi-azure/sdk/v3/go/azure/dns>"
"<http://github.com/pulumi/pulumi-azure/sdk/v3/go/azure/mssql|github.com/pulumi/pulumi-azure/sdk/v3/go/azure/mssql>"
"<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi|github.com/pulumi/pulumi/sdk/v2/go/pulumi>"
"<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi/config|github.com/pulumi/pulumi/sdk/v2/go/pulumi/config>"
)
echoing-librarian-76448
06/24/2020, 9:46 PMgo.mod
file had v3.0.0
listed for <http://github.com/pulumi/pulumi-azure/sdk/v3|github.com/pulumi/pulumi-azure/sdk/v3>
. I ran go get <http://github.com/pulumi/pulumi-azure/sdk/v3|github.com/pulumi/pulumi-azure/sdk/v3>
and it's getting past that issueechoing-librarian-76448
06/24/2020, 9:51 PMgentle-diamond-70147
06/24/2020, 10:11 PM