An app that will publicly display Embedded Power BI reports on GovCloud using a service principle. The following links can help configure Azure and Power BI:
Steps to run this application on your local machine for development purposes.
- Java 14
- NPM ~v12
- Azure CLI
- Docker CLI
- KUBECTL CLI (if deploying to AKS)
- Backend:
env SPRING_PROFILES_ACTIVE=development ./gradlew bootRun
; http://localhost:8080- or for staging environment:
env SPRING_PROFILES_ACTIVE=staging ./gradlew bootRun
- or for staging environment:
- Frontend:
cd client && npm run serve
; http://localhost:8081
- Application:
./build.sh
- Container:
./build-push-docker-image.sh
POWERBI_TENANT_ID
: Azure Tenant IDPOWERBI_CLIENT_ID
: Application ID from the AD App RegistrationPOWERBI_CLIENT_SECRET
: Client secret from the AD App RegistrationFLYWAY_URL
: The jdbc connection to the AZURE SQL Database. This string must be in quotes if using MacOS.FLYWAY_USER
: Username to the AZURE SQL DatabaseFLYWAY_PASSWORD
: Password to the AZURE SQL Database
If running in staging environment, add these additional variables:
AZURE_OAUTH_TENANT_ID
AZURE_OAUTH_CLIENT_SECRET
BUILD_ID=100
(or some placeholder number)GATEWAY_API_TOKEN=faketoken
(or some placeholder string)
For details related to the deployment of containerized applications in Azure, reference this repo with deployment scenarios
- SQL Scripts for updating the Database can be found here: /src/main/resources/db/migration
- To print details and status information about all the migrations:
gradle flywayInfo
(Flyway docs)