Author Topic: Using ArchiTool HTML Report - but no intranet - Azure AD?  (Read 1038 times)

JelleEA

  • Newbie
  • *
  • Posts: 3
Using ArchiTool HTML Report - but no intranet - Azure AD?
« on: April 08, 2021, 12:11:49 PM »
Did anyone found a way to encapsulate the HTML Report output with an Azure AD or other identity provisioning service?

Thomas Rischbeck (ITMC.ch)

  • Member
  • **
  • Posts: 18
  • working on STAR: strategy - architecture
    • ITMC
Re: Using ArchiTool HTML Report - but no intranet - Azure AD?
« Reply #1 on: April 12, 2021, 07:57:31 AM »
Hi Jelle - yes, i did - although it's a bit "manual": We've created a Web Application in Visual Studio, placed the HTML export in their and deployed to Azure. You can then limit access to your domains' AD users. See https://docs.microsoft.com/en-us/azure/static-web-apps/getting-started?tabs=vanilla-javascript for more info.
ITMC AG • Bahnhofstrasse 10 • CH-8001 Zürich
Dr. Thomas Rischbeck
PhD in Computer Science
Managing Partner   
rischbeck@itmc.ch
www.itmc.ch

carld

  • Newbie
  • *
  • Posts: 1
Re: Using ArchiTool HTML Report - but no intranet - Azure AD?
« Reply #2 on: April 15, 2021, 23:35:13 PM »
I'm doing something like this using Azure app services. To create a static site resource on the Azure CLI:

Code: [Select]
cd /tmp/ArchiHTML  # the directory the HTML report was exported to
az login
az webapp up -n archihtml -g RG-P-ArchiWeb -l australiasoutheast --html

And then enable authentication for that service in the Azure portal, to use Azure Active Directory authentication.

When running report from Archi again, the site can be updated from the CLI with:

Code: [Select]
cd /tmp/ArchiHTML  # the directory the HTML report was exported to
az login
az webapp up --location australiasoutheast --name archihtml --html

This could be done in a pipeline - I never got that far, but there's a docker image for Archi which could run Archi in CLI mode:

Code: [Select]
./archi --html.createReport /tmp/ArchiHTML

The docker image is here  https://github.com/fauberso/dockerimg-archi

In case it helps, I got this far with the yml file for the pipeline

Code: [Select]
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml

trigger:
- master

pool:
  vmImage: 'carldouglas/home:latest'

steps:
- script: ./archi --html.createReport /tmp/html
  displayName: 'Render HTML'

« Last Edit: April 15, 2021, 23:37:47 PM by carld »