Executing Local Development
Last updated
Was this helpful?
Last updated
Was this helpful?
So first you need tokens for a Secure Application Model (SAM) application and you should have completed setting up for local development
You should now have everything you require to start a local development instance of the Azure Function App (API), the Static Web App (frontend) or both.
Starting only the frontend:
We use an invalid path for --swa-config-location
on purpose. We do this because the config provided in the CIPP folder only works for the actual Static Web Application (SWA) engine and not the local emulator.
To start only the API function app:
To start both, it's recommended to use func start
and swa start
independently. You can also have the SWA utility start the API but this brings in some added difficulties because you can't see the API logs directly in the console.
If you need the APIs to connect to Microsoft 365 and / or to test the Secure Application Model functionality itself you have to make a local.settings.json
file in the CIPP-API
folder. This file isn't detected by git (because of the .gitignore
file) so it's not pushed with any changes/contributions you make. This file stores the Secure Application Model tokens, and a Azure Storage connection string for the durable function queues.
The contents of your local.settings.json
file differs depending on whether you are using the Azurite storage emulator or Azure Storage itself.
If you open the CIPP project in there is a launch.json
file that you can use to start the API, frontend, Azurite and, the SWA emulator.
You can consult the documentation on for more information.
The launch task you're looking for is Launch it all 🚀
. Which launches everything required to run CIPP locally. Once started you can navigate to CIPP by visiting .