https://pulumi.com logo
#azure
Title
# azure
m

magnificent-motherboard-76110

12/08/2023, 6:49 PM
Hi everyone! I’m trying to migrate from
azure-native
v1
to
azure-native
v2
, all seems good except for an issue: I was using
dbformysql
SingleServer and now I’m planning to migrate to FlexibleServer, however, my code was already written for Single Server, and I cannot simply delete my SingleServer instances, first I need to create the new FlexibleServer instances, migrate the data, and then I can delete the old SingleServer instances, but there’s a point in that process when I need both SingleServer and Flexible Server running at the same time. I’m using Python, and according to the documentation, all I need is to import the
v20171201
to continue supporting SingleServer in
v2
, however, such a version doesn’t contain the
Database
class that I’m using in my
v1
code base. Someone has experienced this situation? Any suggestions?
m

magnificent-motherboard-76110

12/08/2023, 11:50 PM
Copy code
class Database(pulumi.CustomResource):
    warnings.warn("""azure-native:dbformysql/v20171201:Database is being removed in the next major version of this provider.