strong-thailand-35364
05/29/2024, 10:03 AMurn:pulumi:dev::azure-native:documentdb/v20221115:DatabaseAccount::cosmosdb
If I switch the API to latest the URN of the object is changed to the urn:pulumi:dev::azure-native:documentdb/DatabaseAccount::cosmosdb
which results that Pulumi wants to drop and recreate my database which I don't want 🙂 ( of course object is protected so the drop fails ) . What is the best approach in this situation? Maybe I can manually rename the urn without dropping the database or do a backup, recreate and then restore of the data ?tall-librarian-49374
05/29/2024, 12:18 PMtall-librarian-49374
05/29/2024, 12:19 PMtall-librarian-49374
05/29/2024, 12:20 PMtall-librarian-49374
05/29/2024, 12:20 PMaliases
resource option to point the new resource to the old urn, which should get you unblocked: https://www.pulumi.com/docs/concepts/options/aliases/
But again, this should not be required...strong-thailand-35364
05/29/2024, 12:26 PMstrong-thailand-35364
05/29/2024, 12:49 PM12:42:08 [DBG] azure-native:documentdb:DatabaseAccount cosmosdb [diff: ~provider]
12:42:08 [DBG] azure-native:documentdb:SqlResourceSqlRoleDefinition cosmosdb/79e77441-c1be-4ebb-b79e-ba50a15150a4 [diff: ~provider]
12:42:08 [DBG] azure-native:documentdb:SqlResourceSqlDatabase cosmosdb/Database [diff: ~provider]
which results to try to drop from source perspective the change is
- using Pulumi.AzureNative.DocumentDB.V20221115;
- using Pulumi.AzureNative.DocumentDB.V20221115.Inputs;
+ using Pulumi.AzureNative.DocumentDB;
+ using Pulumi.AzureNative.DocumentDB.Inputs;
I will try to set aliases to the resources and write if it is working.strong-thailand-35364
05/29/2024, 2:00 PMrhythmic-activity-46295
06/05/2024, 10:10 AMrhythmic-activity-46295
06/05/2024, 10:14 AMtall-librarian-49374
06/05/2024, 10:57 AMv20210201
version? It was probably removed from v2 to save space, but any later version of the default one should work.rhythmic-activity-46295
06/05/2024, 11:19 AMrhythmic-activity-46295
06/05/2024, 11:21 AMrhythmic-activity-46295
06/05/2024, 11:28 AMtall-librarian-49374
06/05/2024, 11:36 AMrhythmic-activity-46295
06/05/2024, 11:45 AMrhythmic-activity-46295
06/05/2024, 11:46 AMrhythmic-activity-46295
06/05/2024, 11:47 AMrhythmic-activity-46295
06/05/2024, 11:48 AMrhythmic-activity-46295
06/05/2024, 11:54 AMtall-librarian-49374
06/05/2024, 12:39 PMup
yet. I'm not sure what is going on with refresh, but if you run up
once it should update the versions in state and fix the refresh.rhythmic-activity-46295
06/05/2024, 12:41 PMrhythmic-activity-46295
06/05/2024, 12:43 PM