Open gpduck opened 6 months ago
@gpduck
If I view details or go ahead with the import, the resource only has id set, none of the other properties are being returned by the import. Importing and then trying to set the values in code results in the resource being replaced which defeats the purpose of importing them.
That's (normally) the nature of an import. The ID of the resource gets added to the stack (state). On the next refresh the properties get populated (read) from the (target) system.
Will your infrastructure run successful after an import? Or do you get any additional errors, especially when you run pulumi preview --refresh
I have tried both importing in code and using
pulumi import
to import existing AzureadUser, SqlLogin, and SqlUser resources, but I cannot get any of them to successfully import.When importing via code (my project is Typescript), I get an error "inputs to import do not match the existing resource". I have used getAuzreadUser to verify that I am setting the correct values for databaseId, userObjectId, and name, and that I'm using the correct id for the import.
When importing via the cli, I'm running the command as follows:
I get the following warnings:
If I view details or go ahead with the import, the resource only has
id
set, none of the other properties are being returned by the import. Importing and then trying to set the values in code results in the resource being replaced which defeats the purpose of importing them.