Is it possible to copy a file inside an azurerm_app_service after creation?

After the creation of an app_service on azure, I have a need to copy a script inside it. I tried the file provider, but it didn’t work. Has anyone done something like this?