import * as azure from "@pulumi/azure" ; import * as config from "./config" ; let resourceGroup = new azure . core . ResourceGroup ( config . name , { location : config . location } ) ; let adApp = new azure . ad . Application ( `${ config . name }-app` ) ; let adSp = new azure . ad . ServicePrincipal ( `${ config . name }-sp` , { applicationId : adApp . applicationId , } ) ; let adSpPassword = new azure . ad . ServicePrincipalPassword ( `${ config . name }-password` , { servicePrincipalId : adSp . id , value : config . password , endDate : "2099-01-01T00:00:00Z" , } ) ; export const resourceGroupName = resourceGroup . name ; export const applicationID = adApp . applicationId ; export const servicePrincipalPassword = adSpPassword . value ; export const location = config . location ;