func NewActiveDirectoryAdministrator(ctx *pulumi.Context,
	name string, args *ActiveDirectoryAdministratorArgs, opts ...pulumi.ResourceOption) (*ActiveDirectoryAdministrator, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}

	if args.Login == nil {
		return nil, errors.New("invalid value for required argument 'Login'")
	}
	if args.ObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ObjectId'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.ServerName == nil {
		return nil, errors.New("invalid value for required argument 'ServerName'")
	}
	if args.TenantId == nil {
		return nil, errors.New("invalid value for required argument 'TenantId'")
	}
	var resource ActiveDirectoryAdministrator
	err := ctx.RegisterResource("azure:sql/activeDirectoryAdministrator:ActiveDirectoryAdministrator", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
// NewActiveDirectoryAdministrator registers a new resource with the given unique name, arguments, and options.
NewActiveDirectoryAdministrator registers a new resource with the given unique name, arguments, and options.
// NewActiveDirectoryAdministrator registers a new resource with the given unique name arguments and options .
func NewActiveDirectoryAdministrator(ctx *pulumi.Context,
	name string, args *ActiveDirectoryAdministratorArgs, opts ...pulumi.ResourceOption) (*ActiveDirectoryAdministrator, error) {
	if args == nil {
		return nil, errors.New("missing one or more required arguments")
	}
	if args.Login == nil {
		return nil, errors.New("invalid value for required argument 'Login'")
	}
	if args.ObjectId == nil {
		return nil, errors.New("invalid value for required argument 'ObjectId'")
	}
	if args.ResourceGroupName == nil {
		return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
	}
	if args.ServerName == nil {
		return nil, errors.New("invalid value for required argument 'ServerName'")
	}
	if args.TenantId == nil {
		return nil, errors.New("invalid value for required argument 'TenantId'")
	}
	var resource ActiveDirectoryAdministrator
	err := ctx.RegisterResource("azure:sql/activeDirectoryAdministrator:ActiveDirectoryAdministrator", name, args, &resource, opts...)
	if err != nil {
		return nil, err
	}
	return &resource, nil
}
func NewActiveDirectoryAdministrator ( ctx * pulumi . Context , name string , args * ActiveDirectoryAdministratorArgs , opts ... pulumi . ResourceOption ) ( * ActiveDirectoryAdministrator , error ) { if args == nil { return nil , errors . New ( " " ) } if args . Login == nil { return nil , errors . New ( " " ) } if args . ObjectId == nil { return nil , errors . New ( " " ) } if args . ResourceGroupName == nil { return nil , errors . New ( " " ) } if args . ServerName == nil { return nil , errors . New ( " " ) } if args . TenantId == nil { return nil , errors . New ( " " ) } var resource ActiveDirectoryAdministrator err := ctx . RegisterResource ( " " , name , args , & resource , opts ... ) if err != nil { return nil , err } return & resource , nil }
NewActiveDirectoryAdministrator registers a new resource with the given unique name, arguments, and options.
NewActiveDirectoryAdministrator registers a new resource with the given unique name arguments and options .