One of my developers was asking me to enable xp_cmdshell in our on-premises SQL server so she could test renaming files from SQL Server stored procedure. Since xp_cmdshell is not supported in Azure SQL Managed Instance (and it looks like a security risk) I told her I would not enable that for use. However, I am trying to find an alternative for this developer to go about what she was trying to do.
Does anyone know of a viable alternative to using xp_cmdshell for the purpose of renaming files in Azure SQL Managed Instance? The only thing I can think of is maybe running PowerShell in SQL Agent as a job, but wondering what other people would suggest.
Thank you in advance for all help!