HodorNV / ALOps

ALOps
59 stars 24 forks source link

Question: How to use ALOps External Deployer with PTE when running Multi-Tenant On Premises #580

Open petertijsma opened 1 year ago

petertijsma commented 1 year ago

I cannot find out how to use the External Deployer weh nusing Multi-Tenant On Premises.

Setting the Tenant doesn't work (also the Tooltip says it's only for Saas), but there is no other place to setup which tenant to deploy to.

Yaml:

steps:
- task: Hodor.hodor-alops.ALOpsExtensionAPI.ALOpsExtensionAPI@1
  displayName: 'ENL Batch Publish PrintVis Apps'
  inputs:
    interaction: batch
    api_endpoint: 'https://og-xxxxxxx.xx.xxxxxxxx.nl:31003/CLIENT-MT/api'
    authentication: basic
    username: '$(og.serviceaccount)'
    password: '$(og.serviceaccountpassword)'
    bccompany: 'L01 xxxxx xxxxx'
    artifact_path: '$(System.ArtifactsDirectory)\_Third Party Apps\Apps\OGDT Core Dependencies\NovaVision'
    checksecondsdelay: 10
    maxtries: 10
  continueOnError: true
  condition: succeededOrFailed()

Error in DevOps:

image

Adding:

azure_tenant_id: ENL

Does not make any difference. Gives the same error

However, when I run the Get manually with ?tenant=ENL added, It does give me the requested result:

image

Thanks in advance

waldo1001 commented 1 year ago

Do you want to push your PTE globally, or in one single Tenant?

We are working hard on the ALops.ExternalDeployer - we'll see if we can add the multitenant supportability.

For now: did you look into working with the alternative name? Than you might be able to do it already... 🤔 (just a hunge)

petertijsma commented 1 year ago

Currently, we want to deploy Per Tenant (in order to phase the deployments per company), but of course a setting to choose Global or Tenant scope would be better :-)

"For now: did you look into working with the alternative name? Than you might be able to do it already..." Ahh crap! Yes, will check this too!

waldo1001 commented 1 year ago

Well - we'll check what we can do - we're a bit dependent on the automation-api as well ..

petertijsma commented 1 year ago

Coming back on this one again...

I've tried publishing through using the alternative name, but still without luck. Can't wrap my head around it :-(

Info in the Status Page: image

Although the Get companies works fine: image

Pulishing Yaml:

steps:
- task: Hodor.hodor-alops.ALOpsExtensionAPI.ALOpsExtensionAPI@1
  displayName: 'ENL Batch Publish OGDT Core'
  inputs:
    interaction: batch
    api_endpoint: 'https://etiketnl.dfbxbcxvbcxvb.nl:20043/ODATA-PRD/api'
    authentication: basic
    username: '$(og.serviceaccount)'
    password: '$(og.serviceaccountpassword)'
    bccompany: 'L01 Etiket Nederland'
    artifact_path: '$(System.ArtifactsDirectory)\_OGDT Core'
    checksecondsdelay: 20
    maxtries: 10
  continueOnError: true
  condition: succeededOrFailed()

Publishing part: image

Non-informative Errors in Event Viewer: image

image

Tenant config: image

Maybe this helps...