2024-07-04T09:25:55.3303155Z ##[section]Starting: ALOps Extension API
2024-07-04T09:25:55.3322459Z ==============================================================================
2024-07-04T09:25:55.3322641Z Task : ALOps Extension API
2024-07-04T09:25:55.3322741Z Description : Get/Publish extensions with the Business Central API
2024-07-04T09:25:55.3322859Z Version : 1.465.6167
2024-07-04T09:25:55.3322930Z Author : Hodor
2024-07-04T09:25:55.3323517Z Help : Get/Publish extensions with the Business Central API.
2024-07-04T09:25:55.3323638Z ==============================================================================
2024-07-04T09:25:57.2033847Z *** Validate configuration
2024-07-04T09:25:57.2034358Z *** Task Inputs:
2024-07-04T09:25:57.2034484Z
2024-07-04T09:25:57.2034728Z name value
2024-07-04T09:25:57.2035829Z ---- -----
2024-07-04T09:25:57.2036216Z usedocker False
2024-07-04T09:25:57.2036521Z fixed_tag
2024-07-04T09:25:57.2036810Z interaction publish
2024-07-04T09:25:57.2037530Z api_endpoint ...ral.dynamics.com/v2.0/<tenant>/dev-bc/api
2024-07-04T09:25:57.2037942Z dev_endpoint
2024-07-04T09:25:57.2038272Z dev_schemeupdatemode synchronize
2024-07-04T09:25:57.2039276Z apiversion v1.0
2024-07-04T09:25:57.2039603Z authentication oauth
2024-07-04T09:25:57.2040364Z azure_tenant_id <tenant>
2024-07-04T09:25:57.2041307Z azure_app_client_id ***
2024-07-04T09:25:57.2049478Z azure_app_client_secret ***
2024-07-04T09:25:57.2049876Z azure_app_client_certificate
2024-07-04T09:25:57.2050282Z azure_app_client_certificate_password
2024-07-04T09:25:57.2051287Z username
2024-07-04T09:25:57.2051749Z password
2024-07-04T09:25:57.2052561Z bccompany
2024-07-04T09:25:57.2053111Z artifact_path D:\a\r1\a
2024-07-04T09:25:57.2053390Z artifact_filter *.app
2024-07-04T09:25:57.2053627Z showdeploymentstatus True
2024-07-04T09:25:57.2055952Z checksecondsdelay 30
2024-07-04T09:25:57.2056172Z maxtries 20
2024-07-04T09:25:57.2058129Z replacepackageid False
2024-07-04T09:25:57.2058346Z blocksymbolsonly False
2024-07-04T09:25:57.2058609Z pwsh False
2024-07-04T09:25:57.2058696Z
2024-07-04T09:25:57.2058763Z
2024-07-04T09:25:57.2058831Z
2024-07-04T09:25:57.2058953Z True
2024-07-04T09:25:57.2059175Z *** For documentation, please visit : https://www.alops.be/documentation
2024-07-04T09:25:57.2059451Z
2024-07-04T09:25:57.2615104Z *** ALOps License:
2024-07-04T09:25:57.2653487Z * Licensed To: xxxxxx
2024-07-04T09:25:57.4804465Z *** Imported required PS-Functions
2024-07-04T09:25:57.4820748Z *** Parse Task Parameters
2024-07-04T09:25:57.6144914Z *** Creating API Connector with endpoint [https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api]
2024-07-04T09:25:57.6602796Z *** API Version: v1.0
2024-07-04T09:25:57.6634058Z *** Interaction Mode: publish
2024-07-04T09:25:57.6667206Z *** API Authentication: Using Azure OAuth Authentication [***]
2024-07-04T09:25:57.6692749Z *** Get OAuth token for tenant [<tenant>]
2024-07-04T09:25:57.7031593Z *** Communication: Service-2-Service (Client Secret)
2024-07-04T09:25:57.7075166Z ##[command]Invoke-RestMethod -Method Post -Uri "https://login.microsoftonline.com/<tenant>/oauth2/token"
2024-07-04T09:25:57.9374785Z *** BC Authentication: Token [Bearer]
2024-07-04T09:25:57.9451277Z *** List Companies
2024-07-04T09:25:57.9553084Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies'
2024-07-04T09:25:58.4672308Z
<lists companies>
2024-07-04T09:25:59.0638850Z *** Installed Extensions:
2024-07-04T09:25:59.0678150Z
2024-07-04T09:25:59.0856900Z
2024-07-04T09:25:59.0862101Z @odata.etag : W/"JzE5Oz
<lists extensions>
2024-07-04T09:25:59.1588379Z
2024-07-04T09:25:59.1597825Z *** Published Extensions (not installed):
2024-07-04T09:25:59.1610350Z
<lists extensions>
2024-07-04T09:25:59.1701814Z
2024-07-04T09:25:59.1702018Z
2024-07-04T09:25:59.1702204Z
2024-07-04T09:25:59.1846757Z *** Import NAV/BC Management DLL's [False]
2024-07-04T09:25:59.2281278Z *** ServiceTier not specified, loading default assemblies.
2024-07-04T09:25:59.2393434Z *** Default Assemblies not found. Load via BC-Artifacts
2024-07-04T09:25:59.2506141Z *** Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper]
2024-07-04T09:25:59.2558757Z *** Check BcContainerHelper
2024-07-04T09:28:03.7843725Z *** Install BcContainerHelper
2024-07-04T09:28:16.4780421Z *** Load BcContainerHelper
2024-07-04T09:28:16.7757865Z BcContainerHelper version 6.0.19
2024-07-04T09:28:19.1771124Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-07-04T09:28:19.3231643Z Running on Windows, PowerShell 5.1.20348.2400
2024-07-04T09:28:22.0651917Z
2024-07-04T09:28:22.0653027Z ModuleType Version Name ExportedCommands
2024-07-04T09:28:22.0654610Z ---------- ------- ---- ----------------
2024-07-04T09:28:22.0655027Z Script 6.0.19 BcContainerHelper {Add-FontsToBcContainer, Add-GitToAlProjectFolder, AddTele...
2024-07-04T09:28:22.0655225Z
2024-07-04T09:28:22.0655276Z
2024-07-04T09:28:22.0655321Z
2024-07-04T09:28:22.0662475Z
2024-07-04T09:28:22.0698925Z ##[command]"Get-BCArtifactUrl"
2024-07-04T09:28:22.0699256Z Name Value
2024-07-04T09:28:22.0700313Z ---- -----
2024-07-04T09:28:22.0700590Z select Weekly
2024-07-04T09:28:22.0700896Z type Sandbox
2024-07-04T09:28:22.0701190Z country W1
2024-07-04T09:28:22.0701433Z
2024-07-04T09:28:22.0701594Z
2024-07-04T09:28:22.0702000Z -select: Weekly -type: Sandbox -country: W1
2024-07-04T09:28:55.3124933Z Downloading artifact /sandbox/24.2.20227.21402/w1
2024-07-04T09:28:55.3769577Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\333583bb-1de8-44f0-8662-cc1c51fa2bac.zip
2024-07-04T09:29:01.1771258Z Unpacking artifact to tmp folder using 7zip
2024-07-04T09:29:08.2794336Z Downloading platform artifact /sandbox/24.2.20227.21402/platform
2024-07-04T09:29:08.2826172Z Downloading C:\Users\VssAdministrator\AppData\Local\Temp\eb091f4d-1e47-4d0f-917b-607f1b067b11.zip
2024-07-04T09:29:21.7022809Z Unpacking artifact to tmp folder using 7zip
2024-07-04T09:29:57.3187256Z Downloading Prerequisite Components
2024-07-04T09:29:57.3351908Z Downloading C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2024-07-04T09:29:57.4067812Z Downloading C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
2024-07-04T09:29:58.6471153Z *** Platform: C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform
2024-07-04T09:29:58.6507940Z *** Localisation: C:\bcartifacts.cache\sandbox\24.2.20227.21402\w1
2024-07-04T09:29:58.7875062Z *** BC Management DLL: C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform\ServiceTier\program files\Microsoft Dynamics NAV\240\Service\Management\Microsoft.Dynamics.Nav.Management.dll
2024-07-04T09:29:58.7990941Z *** Selected module: [C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform\ServiceTier\program files\Microsoft Dynamics NAV\240\Service\Management\Microsoft.Dynamics.Nav.Management.dll]
2024-07-04T09:29:58.7999695Z *** Loading module: [C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform\ServiceTier\program files\Microsoft Dynamics NAV\240\Service\Management\Microsoft.Dynamics.Nav.Management.dll]
2024-07-04T09:29:58.9221258Z *** BC Management DLL: C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform\ServiceTier\program files\Microsoft Dynamics NAV\240\Service\Management\Microsoft.Dynamics.Nav.Management.dll
2024-07-04T09:29:58.9250179Z *** Selected module: [C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform\ServiceTier\program files\Microsoft Dynamics NAV\240\Service\Management\Microsoft.Dynamics.Nav.Management.dll]
2024-07-04T09:29:58.9260049Z *** Loading module: [C:\bcartifacts.cache\sandbox\24.2.20227.21402\platform\ServiceTier\program files\Microsoft Dynamics NAV\240\Service\Management\Microsoft.Dynamics.Nav.Management.dll]
2024-07-04T09:29:58.9287515Z *** Load module [Microsoft.Dynamics.Nav.Apps.Management]
2024-07-04T09:29:59.0870298Z *** BC App Management DLL: not available
2024-07-04T09:29:59.0889918Z *** Publish Extension
2024-07-04T09:29:59.0898814Z * Artifact Path : D:\a\r1\a
2024-07-04T09:29:59.0907696Z * Artifact Filter: *.app
2024-07-04T09:29:59.0999861Z *** Resolve App file in [D:\a\r1\a]
2024-07-04T09:29:59.1052210Z *** Resolved App File: [D:\a\r1\a\Main BC_<xxxxxx>\Dynamics365 Business Central\<name>_24.2.162718.0_sandbox_24.2_dk.app].
2024-07-04T09:29:59.1074925Z *** Resolved App Path: [D:\a\r1\a\Main BC_<xxxxx>\Dynamics365 Business Central\<name>_24.2.162718.0_sandbox_24.2_dk.app]
2024-07-04T09:29:59.1244260Z *** Upload extension [D:\a\r1\a\Main BC_<xxxxx>\Dynamics365 Business Central\<name>_24.2.162718.0_sandbox_24.2_dk.app]
2024-07-04T09:29:59.1256115Z *** Get App Info
2024-07-04T09:30:04.6174507Z * App.PackageID = dedc0d2d-3847-4e4f-a5f6-b9e9547956e0
2024-07-04T09:30:04.6212594Z * App.ID = xxxxxx
2024-07-04T09:30:04.6242700Z * App.Name = xxxxxx
2024-07-04T09:30:04.6269049Z * App.Publisher = xxxxx
2024-07-04T09:30:04.6293866Z * App.Version = 24.2.162718.0
2024-07-04T09:30:04.6363422Z *** Get Extension status
2024-07-04T09:30:04.6415375Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensions'
2024-07-04T09:30:05.1770826Z ##[command]Invoke-RestMethod -Method Patch -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionUpload(0)/content'
2024-07-04T09:30:09.5254750Z
2024-07-04T09:30:09.5272369Z *** Poll Deployment status
2024-07-04T09:30:09.5352220Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:30:40.2789059Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:31:10.7500261Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:31:41.2439740Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:32:11.7177561Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:32:42.2131251Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:33:12.6876470Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:33:43.8018628Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:34:13.7769472Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:34:44.2641092Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:35:14.7475722Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:35:45.2425012Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:36:15.7580020Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:36:46.3465367Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:37:16.8381631Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:37:47.3919917Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:38:17.9398750Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:38:48.5003659Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:39:19.0598168Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:39:49.5662883Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:39:50.1181754Z ##[error]Progress check failed multiple times. Aborting check sequence.
2024-07-04T09:39:50.1197633Z *** Deployment Status:
2024-07-04T09:39:50.1197746Z
2024-07-04T09:39:50.1197863Z
2024-07-04T09:39:50.1199560Z operationID : f3c941d6-f2b4-4148-ac64-0cae95e1a113
2024-07-04T09:39:50.1199897Z name : <appname>
2024-07-04T09:39:50.1200049Z publisher : <publisher>
2024-07-04T09:39:50.1201395Z appVersion : 24.2.162718.0
2024-07-04T09:39:50.1201616Z status : InProgress
2024-07-04T09:39:50.1202042Z startedOn : 2024-07-04T09:30:09.37Z
2024-07-04T09:39:50.1202141Z
2024-07-04T09:39:50.1202247Z
2024-07-04T09:39:50.1202294Z
2024-07-04T09:39:50.1203283Z ##[error]App publish failed. Check the 'Extension Deployment Status' page in the Business Central client.
2024-07-04T09:39:50.1396150Z ##[command]Invoke-RestMethod -Method Get -Uri 'https://api.businesscentral.dynamics.com/v2.0/<tenant>/dev-bc/api/microsoft/automation/v1.0/companies(8b3a1dd3-e4ab-ee11-be36-6045bda15750)/extensionDeploymentStatus'
2024-07-04T09:39:50.6808635Z
2024-07-04T09:39:50.7060340Z name publisher appVersion operationType schedule status startedOn
<lists apps>
2024-07-04T09:39:50.7381587Z
2024-07-04T09:39:50.7562765Z *** Cleanup VSTS Environment: True
2024-07-04T09:39:53.1507489Z ##[section]Finishing: ALOps Extension API
Expected behavior
other status than "failed"
possibility to adjust timeout
Screenshots
Additional context
This happens every other release and is misleading. Usually the app is published and installed on the environment correctly, but status in AzureDevops is 'failed'
Describe the bug Publishing the app fails with "Progress check failed multiple times. Aborting check sequence."
the used yaml please provide the yaml that you used.
steps:
the output
Expected behavior
Screenshots
Additional context This happens every other release and is misleading. Usually the app is published and installed on the environment correctly, but status in AzureDevops is 'failed'