Running the configuration that creates a azurerm_log_analytics_workspace and updates the total_retention_in_days for all azurerm_log_analytics_workspace_table throws a 404 when applying both at the same time, the error message is:
failed to update table ### in workspace ### in resource group ###: performing CreateOrUpdate: unexpected status 404 (404 Not Found) with error: ResourceNotFound: Workspace not active
I can see the workspace get created and the tables are there but from the error looks like it is trying to update the tables too early, has anyone else encountered this?
NOTE: running plan and apply again following succeeds