You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to import azurerm_storage_share. The resource doesn't appear in generated main.tf, but the resource is listed in .aztfyResourceMapping.json with empty address:
Resources are listed in aztfy, with an error on the storage share:
exit status 1
Error: Cannot import non-existent remote object
While attempting to import an existing object to
"azurerm_storage_share.processing-share", the provider detected that no
object exists with the given id. Only pre-existing objects can be imported;
check that the id is correct and that it is associated with the provider's
configured region or endpoint, or use "terraform apply" to create a new
remote object for this resource.
Am I doing something wrong here? Should address to the storage share be something other than <resource type>.<resource name> in this case?
The text was updated successfully, but these errors were encountered:
@CNBoland Thank you for submitting this! The reason of the failure is that Terraform expects the data plane ID of the storage share, while ARM returns its mgmt plane ID. There needs a special handling for this. Will submit a fix soon.
Attempting to import
azurerm_storage_share
. The resource doesn't appear in generated main.tf, but the resource is listed in .aztfyResourceMapping.json with empty address:"/subscriptions//resourceGroups/FC-AZ-RG-USC-Dev-Foo/providers/Microsoft.Storage/storageAccounts/fcazstgdevfoo/fileServices/default/shares/processing-share": ""
The storage share resource was originally created with Terraform v0.14.11 and AzureRM v3.9:
I updated .aztfyResourceMapping.json with the appropriate address:
"/subscriptions//resourceGroups/FC-AZ-RG-USC-Dev-Foo/providers/Microsoft.Storage/storageAccounts/fcazstgdevfoo/fileServices/default/shares/processing-share": "azurerm_storage_share.processing-share"
then ran the import again, referencing the updated mapping file (I copied updated mapping file to parent folder for safekeeping):
aztfy -m ..\.aztfyResourceMapping.json FC-AZ-RG-USC-Dev-Foo
Resources are listed in aztfy, with an error on the storage share:
Am I doing something wrong here? Should address to the storage share be something other than
<resource type>.<resource name>
in this case?The text was updated successfully, but these errors were encountered: