-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Labels
kind/bugSome behavior is incorrect or out of specSome behavior is incorrect or out of specresolution/fixedThis issue was fixedThis issue was fixed
Milestone
Description
I'm trying to migrate Azure documentdb DatabaseAccountSqlDatabase and DatabaseAccountSqlContainer recourses from azure-nextgen to azure-native. Following this migration plan I've tried to do an import two different ways (Scenario 1 and Scenario 2) and neither of them is seemed to be working.
Scenario 1
Expected behavior
The resource is imported without errors
Current behavior
azure-native:documentdb:DatabaseAccountSqlDatabase:
error: azure-native:documentdb:DatabaseAccountSqlDatabase resource '[dbname]' has a problem: missing required property 'options'
error: azure-native:documentdb:DatabaseAccountSqlDatabase resource '[dbname]' has a problem: missing required property 'resource'
error: Preview failed: one or more inputs failed to validate
Steps to reproduce
- Migrating a db:
pulumi import azure-native:documentdb:DatabaseAccountSqlDatabase databaseName databaseName
Scenario 2
Expected behavior
The resource is imported without errors
Current behavior
azure-native:documentdb:SqlResourceSqlContainer:
error: Preview failed: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="The request path https://cdbmgmtprodsg.documents.azure.com:450/subscriptions/[id]/resourceGroups/[resourceGroup]/providers/Microsoft.DocumentDB/databaseAccounts/[dbAccount]/sqlDatabases/uploaddb/sqlContainers/[containerName]?api-version=2021-01-15 is invalid.\r\nActivityId: 7d3e4a6e-0f4d-4fdf-9af7-e4951e98c388, Microsoft.Azure.Documents.Common/2.11.0"
Steps to reproduce
- Migrating a db:
pulumi import azure-native:documentdb:SqlResourceSqlDatabase databaseName /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName- SUCCESS - Migrating a container:
pulumi import azure-native:documentdb:SqlResourceSqlContainer containerName /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName- FAIL
Context (Environment)
I use Pulumi for creating Azure resources and want to migrate existing infrastructure to azure-native.
ebashmakov, lfernandezbl, DivyaMoryani, erwanascouet, mskutin and 3 more
Metadata
Metadata
Assignees
Labels
kind/bugSome behavior is incorrect or out of specSome behavior is incorrect or out of specresolution/fixedThis issue was fixedThis issue was fixed