Power shell script to restore Bacpac to Bak
## ***** Download bacpac file ********* #Save it to c:\temp\ or d:\temp\ for Azure VM #If you have a bacpac file locally, then $BacpacSasLinkFromLCS should be empty, and $f should have a value, i.e., $f = Get-ChildItem D:\temp\CFBSSalesbackup.bacpac #Use the following PowerShell script to convert the bacpac file to the SQL Database #https://github.com/valerymoskalenko/D365FFO-PowerShell-scripts/blob/master/Invoke-D365FFOAxDBRestoreFromBACPAC.ps1 #If you are going to download the BACPAC file from the LCS Asset Library, please use this section #$BacpacSasLinkFromLCS = 'https://uswedpl1catalog.blob.core.windows.net%2Fproduct-financeandoperations%2Fd00c14a8-1980-481b-8506-f642cce1fac' #$NewDB = 'Demo20230325' #Database name. No spaces in the name! Do not put here AxDB! $TempFolder = 'C:\temp\' # 'c:\temp\' #$env:TEMP #If you are NOT going to download the BACPAC file from the LCS Asset Library, please use this section $BacpacSasLinkFromLCS = '' $f = ...