Closed Athystrup closed 1 year ago
Dear @Athystrup ,
Could you please provide extra details/pipeline logs. The "Unauthorized" would mean you have an error in the setup of the Credentials, please check if the correct authenticatie schema is selected and the Username/Password are correct.
Kind regards,
Hi guys,
I'm having the same issue. I have double-checked the credentials and they are correct. I'm able to publish from VS Code and Powershell apps with the same credentials, but my release pipeline is failing with the error unauthorized. I can see that the pipeline is accessing the Business Central service because it lists the installed apps in the environment. But when it tries to publish the app file it fails. The error is unrelated to the syncMode option - I get it with forceSync and synchronize. I have also tried with different authentication types - username/password and basic, but it's not working. It is possible that I'm doing something wrong, but I can't figure it out at the moment.
Just for clarity in my case, the on-prem environment is a local container.
2023-04-10T12:31:34.6798335Z ##[section]Starting: ALOps Extension API 2023-04-10T12:31:34.6997108Z ============================================================================== 2023-04-10T12:31:34.6997319Z Task : ALOps Extension API 2023-04-10T12:31:34.6997381Z Description : Get/Publish extensions with the Business Central API 2023-04-10T12:31:34.6997480Z Version : 1.455.3600 2023-04-10T12:31:34.6997536Z Author : Hodor 2023-04-10T12:31:34.6998566Z Help : Get/Publish extensions with the Business Central API. 2023-04-10T12:31:34.6998738Z ============================================================================== 2023-04-10T12:31:36.3377962Z Validate configuration 2023-04-10T12:31:36.5029369Z Task Inputs: 2023-04-10T12:31:36.5126774Z 2023-04-10T12:31:36.5334095Z name value 2023-04-10T12:31:36.5337311Z ---- ----- 2023-04-10T12:31:36.5338746Z usedocker False 2023-04-10T12:31:36.5340968Z fixed_tag
2023-04-10T12:31:36.5343493Z interaction publish 2023-04-10T12:31:36.5345794Z api_endpoint http://buildenv:7048/BC/api/ 2023-04-10T12:31:36.5347813Z dev_endpoint http://buildenv:7049/BC/dev/ 2023-04-10T12:31:36.5350633Z dev_schemeupdatemode forcesync 2023-04-10T12:31:36.5352302Z apiversion v1.0 2023-04-10T12:31:36.5355922Z authentication usernamepassword 2023-04-10T12:31:36.5357482Z azure_tenant_id ry 2023-04-10T12:31:36.5359660Z azure_app_client_id
2023-04-10T12:31:36.5362111Z azure_app_client_secret
2023-04-10T12:31:36.5364362Z azure_app_client_certificate
2023-04-10T12:31:36.5370038Z azure_app_client_certificate_password
2023-04-10T12:31:36.5372833Z username xx 2023-04-10T12:31:36.5375129Z password xxxxxxxxxxxxx 2023-04-10T12:31:36.5377450Z bccompany
2023-04-10T12:31:36.5379992Z artifact_path C:\agent_work\r1\a 2023-04-10T12:31:36.5381594Z artifact_filter *.app 2023-04-10T12:31:36.5384093Z showdeploymentstatus True 2023-04-10T12:31:36.5385811Z checksecondsdelay 30 2023-04-10T12:31:36.5387973Z maxtries 20 2023-04-10T12:31:36.5390041Z replacepackageid False 2023-04-10T12:31:36.5391729Z blocksymbolsonly False 2023-04-10T12:31:36.5392919Z 2023-04-10T12:31:36.5433615Z 2023-04-10T12:31:36.5446286Z 2023-04-10T12:31:36.5774640Z 2023-04-10T12:31:36.5785858Z No ALOps License found. Set License with the [alops-licenseid] or [alops_licenseid] variables. 2023-04-10T12:31:36.5795577Z To acquire a license, please visit: https://www.alops.be/getlicense 2023-04-10T12:31:36.5805066Z For pricing options, please visit : https://www.alops.be/pricing 2023-04-10T12:31:36.5814888Z For documentation, please visit : https://www.alops.be/documentation 2023-04-10T12:31:36.5819854Z 2023-04-10T12:31:37.1516049Z ALOps License: 2023-04-10T12:31:37.1545374Z Trial Key : ed1861a2-5723-4c3d-bcea-affa5d8b479e 2023-04-10T12:31:37.1573106Z Licensed To: ALOps Trial [28/31] days remaining. Trial ends: Tuesday, 09 May 2023 2023-04-10T12:31:37.1579912Z 2023-04-10T12:31:37.4532626Z Imported required PS-Functions 2023-04-10T12:31:37.4554676Z Parse Task Parameters 2023-04-10T12:31:37.5819682Z Creating API Connector with endpoint [http://buildenv:7048/BC/api/] 2023-04-10T12:31:37.6487500Z API Version: v1.0 2023-04-10T12:31:37.6516826Z Interaction Mode: publish 2023-04-10T12:31:37.6558240Z DevPort deploy Endpoint: http://buildenv:7049/BC/dev/ 2023-04-10T12:31:37.6694501Z API Authentication: Using Username/Password Authentication [ry] 2023-04-10T12:31:37.6930532Z List Companies 2023-04-10T12:31:37.7073797Z ##[command]Invoke-RestMethod -Method Get -Uri 'http://buildenv:7048/bc/api/microsoft/automation/v1.0/companies' 2023-04-10T12:31:41.7689644Z 2023-04-10T12:31:41.7694742Z 2023-04-10T12:31:41.7701293Z id : ebca5e7f-c6c9-ed11-94c7-000d3a2a9e6e 2023-04-10T12:31:41.7701612Z systemVersion : 22.0.54157.54635 2023-04-10T12:31:41.7702570Z timestamp : 40796 2023-04-10T12:31:41.7703504Z name : CRONUS International Ltd. 2023-04-10T12:31:41.7703973Z displayName : 2023-04-10T12:31:41.7704263Z businessProfileId : 2023-04-10T12:31:41.7705739Z systemCreatedAt : 2023-03-23T22:03:10.613Z 2023-04-10T12:31:41.7707032Z systemCreatedBy : 00000000-0000-0000-0000-000000000001 2023-04-10T12:31:41.7707684Z systemModifiedAt : 2023-03-23T22:03:10.613Z 2023-04-10T12:31:41.7708885Z systemModifiedBy : 00000000-0000-0000-0000-000000000001 2023-04-10T12:31:41.7709063Z 2023-04-10T12:31:41.7709130Z 2023-04-10T12:31:41.7711225Z 2023-04-10T12:31:41.7767352Z Selected Company: CRONUS International Ltd. [ebca5e7f-c6c9-ed11-94c7-000d3a2a9e6e] 2023-04-10T12:31:41.7917674Z ##[command]Invoke-RestMethod -Method Get -Uri 'http://buildenv:7048/bc/api/microsoft/automation/v1.0/companies(ebca5e7f-c6c9-ed11-94c7-000d3a2a9e6e)/extensions' 2023-04-10T12:31:44.8048731Z * Installed Extensions: 2023-04-10T12:31:44.8320392Z 2023-04-10T12:31:44.8598587Z 2023-04-10T12:31:44.8616119Z packageId : 15f9e251-f4b1-4c19-b0ce-2960e3bf63d3 2023-04-10T12:31:44.8642745Z id : a2cc2ef8-949f-43d4-45b8-10bd6f8bc62c 2023-04-10T12:31:44.8654687Z publisher : Microsoft 2023-04-10T12:31:44.8657317Z displayName : API Reports - Finance 2023-04-10T12:31:44.8659915Z version : 22.0 2023-04-10T12:31:44.8660393Z 2023-04-10T12:31:44.8669395Z packageId : f7ffc2a2-c8a2-4c8d-91ee-597441714e18 2023-04-10T12:31:44.8675933Z id : c1335042-3002-4257-bf8a-75c898ccb1b8 2023-04-10T12:31:44.8680311Z publisher : Microsoft 2023-04-10T12:31:44.8682941Z displayName : Application 2023-04-10T12:31:44.8684371Z version : 22.0 2023-04-10T12:31:44.8685400Z 2023-04-10T12:31:44.8690057Z packageId : db1fd365-7a96-43eb-83eb-d5c7fe612784 2023-04-10T12:31:44.8691905Z id : a41b0c3e-bf1c-4c97-ad1b-b430a3933ada 2023-04-10T12:31:44.8692873Z publisher : Microsoft 2023-04-10T12:31:44.8695587Z displayName : Audit File Export 2023-04-10T12:31:44.8695876Z version : 22.0 2023-04-10T12:31:44.8696450Z 2023-04-10T12:31:44.8701148Z packageId : 0b01d97f-0e0b-49cd-a50a-b97295fb4705 2023-04-10T12:31:44.8704111Z id : 437dbf0e-84ff-417a-965d-ed2bb9650972 2023-04-10T12:31:44.8704476Z publisher : Microsoft 2023-04-10T12:31:44.8707042Z displayName : Base Application 2023-04-10T12:31:44.8711051Z version : 22.0 2023-04-10T12:31:44.8711484Z 2023-04-10T12:31:44.8715689Z packageId : 7d3173ae-581d-4302-9717-a1b9c71cfec2 2023-04-10T12:31:44.8716991Z id : c512d720-63b9-4b26-b062-a0c09b4ed322 2023-04-10T12:31:44.8718695Z publisher : Microsoft 2023-04-10T12:31:44.8719698Z displayName : Company Hub 2023-04-10T12:31:44.8720889Z version : 22.0 2023-04-10T12:31:44.8722269Z 2023-04-10T12:31:44.8729822Z packageId : ff69d5a6-a55f-4faf-be5f-3cf12a1511fa 2023-04-10T12:31:44.8730693Z id : 5a0b41e9-7a42-4123-d521-2265186cfb31 2023-04-10T12:31:44.8731380Z publisher : Microsoft 2023-04-10T12:31:44.8733601Z displayName : Contoso Coffee Demo Dataset 2023-04-10T12:31:44.8735324Z version : 22.0 2023-04-10T12:31:44.8736507Z 2023-04-10T12:31:44.8742497Z packageId : 94266cb8-fd8b-4799-b8c3-7a73c8eb8488 2023-04-10T12:31:44.8743857Z id : 7819d79d-feea-4f09-bbed-5bbaca4bf323 2023-04-10T12:31:44.8745787Z publisher : Microsoft 2023-04-10T12:31:44.8746941Z displayName : Data Archive 2023-04-10T12:31:44.8748838Z version : 22.0 2023-04-10T12:31:44.8749518Z 2023-04-10T12:31:44.8753055Z packageId : 3139410a-e276-4e90-b66c-cc2e0120c0b7 2023-04-10T12:31:44.8753966Z id : ac14293f-1eb7-4a7b-9936-b280da31970b 2023-04-10T12:31:44.8754453Z publisher : Microsoft 2023-04-10T12:31:44.8755685Z displayName : Data Search 2023-04-10T12:31:44.8756683Z version : 22.0 2023-04-10T12:31:44.8757674Z 2023-04-10T12:31:44.8761630Z packageId : 31667b13-c8af-4b02-9057-6b3e3ddd82d7 2023-04-10T12:31:44.8762864Z id : 08d69832-9231-429e-be2c-8bab2c96905b 2023-04-10T12:31:44.8764241Z publisher : Microsoft 2023-04-10T12:31:44.8765534Z displayName : Email - Current User Connector 2023-04-10T12:31:44.8766233Z version : 22.0 2023-04-10T12:31:44.8766696Z 2023-04-10T12:31:44.8770539Z packageId : 52ccf4ac-ac65-4658-b239-cb654b3b53c9 2023-04-10T12:31:44.8772418Z id : aceb66c8-472e-437c-81d3-27e6c07d0f14 2023-04-10T12:31:44.8774470Z publisher : Microsoft 2023-04-10T12:31:44.8779821Z displayName : Email - Microsoft 365 Connector 2023-04-10T12:31:44.8783611Z version : 22.0 2023-04-10T12:31:44.8788997Z 2023-04-10T12:31:44.8805055Z packageId : 8323017c-fa84-4b2b-9955-3107b1fdaf55 2023-04-10T12:31:44.8808156Z id : e6328152-bb29-4664-9dae-3bc7eaae1fd8 2023-04-10T12:31:44.8809960Z publisher : Microsoft 2023-04-10T12:31:44.8813424Z displayName : Email - Outlook REST API 2023-04-10T12:31:44.8813758Z version : 22.0 2023-04-10T12:31:44.8814652Z 2023-04-10T12:31:44.8820950Z packageId : 97031045-98b0-49ac-a322-c00c170fa0f2 2023-04-10T12:31:44.8824594Z id : 8fc50dfb-d338-4fd9-9499-5e44cc8cbf50 2023-04-10T12:31:44.8827524Z publisher : Microsoft 2023-04-10T12:31:44.8831371Z displayName : Email - SMTP API 2023-04-10T12:31:44.8832955Z version : 22.0 2023-04-10T12:31:44.8834143Z 2023-04-10T12:31:44.8837293Z packageId : 1a940e55-ec1d-4442-9c23-58a756608f28 2023-04-10T12:31:44.8838814Z id : 68e13fa3-217a-4be0-9141-99e5bf0ca818 2023-04-10T12:31:44.8840144Z publisher : Microsoft 2023-04-10T12:31:44.8841722Z displayName : Email - SMTP Connector 2023-04-10T12:31:44.8843150Z version : 22.0 2023-04-10T12:31:44.8843388Z 2023-04-10T12:31:44.8848444Z packageId : de872599-aa7d-4687-8a75-4962b7fca79d 2023-04-10T12:31:44.8851475Z id : 2a89f298-7ffd-44a5-a7ce-e08dac98abce 2023-04-10T12:31:44.8852241Z publisher : Microsoft 2023-04-10T12:31:44.8853344Z displayName : Essential Business Headlines 2023-04-10T12:31:44.8855170Z version : 22.0 2023-04-10T12:31:44.8855580Z 2023-04-10T12:31:44.8860173Z packageId : 4490ad96-0f57-4eb6-8a4c-d844dc3babeb 2023-04-10T12:31:44.8861354Z id : 70912191-3c4c-49fc-a1de-bc6ea1ac9da6 2023-04-10T12:31:44.8862369Z publisher : Microsoft 2023-04-10T12:31:44.8863575Z displayName : Intrastat Core 2023-04-10T12:31:44.8864767Z version : 22.0 2023-04-10T12:31:44.8865453Z 2023-04-10T12:31:44.8870306Z packageId : 6bfd3b36-8f10-464c-9c85-717f50be6af9 2023-04-10T12:31:44.8871474Z id : 3d5b2137-efeb-4014-8489-41d37f8fd4c3 2023-04-10T12:31:44.8872954Z publisher : Microsoft 2023-04-10T12:31:44.8874416Z displayName : Late Payment Prediction 2023-04-10T12:31:44.8875382Z version : 22.0 2023-04-10T12:31:44.8876366Z 2023-04-10T12:31:44.8881187Z packageId : 56824c8a-a009-4a13-9240-2c1203889122 2023-04-10T12:31:44.8882242Z id : 8ac0f4d5-2f64-438c-8441-3cabccd78edc 2023-04-10T12:31:44.8882885Z publisher : Microsoft 2023-04-10T12:31:44.8884182Z displayName : OnPrem Permissions 2023-04-10T12:31:44.8885236Z version : 22.0 2023-04-10T12:31:44.8885956Z 2023-04-10T12:31:44.8889743Z packageId : d1f35a98-90b1-41e8-88d4-421114fa887b 2023-04-10T12:31:44.8890620Z id : d09fa965-9a2a-424d-b704-69f3b54ed0ce 2023-04-10T12:31:44.8891576Z publisher : Microsoft 2023-04-10T12:31:44.8893369Z displayName : Payment Links to PayPal 2023-04-10T12:31:44.8894245Z version : 22.0 2023-04-10T12:31:44.8894581Z 2023-04-10T12:31:44.8898775Z packageId : af84c8a7-460c-4d22-b35d-65f55ea78c5e 2023-04-10T12:31:44.8899974Z id : 75f1590f-55c5-4501-ae63-bada5534e852 2023-04-10T12:31:44.8900279Z publisher : Microsoft 2023-04-10T12:31:44.8901668Z displayName : Performance Toolkit 2023-04-10T12:31:44.8902386Z version : 22.0 2023-04-10T12:31:44.8902490Z 2023-04-10T12:31:44.8906704Z packageId : 2568e800-461e-4980-acce-e09ea3124c3c 2023-04-10T12:31:44.8907628Z id : 40860557-a18d-42ad-aecb-22b7dd80dc80 2023-04-10T12:31:44.8909066Z publisher : Microsoft 2023-04-10T12:31:44.8909594Z displayName : Permissions Mock 2023-04-10T12:31:44.8910244Z version : 22.0 2023-04-10T12:31:44.8910485Z 2023-04-10T12:31:44.8914062Z packageId : b3015456-61c7-4522-b8e0-51509f294a79 2023-04-10T12:31:44.8914994Z id : a53a4bb0-aa53-8ff8-77d6-fe3388db0eb8 2023-04-10T12:31:44.8916076Z publisher : Microsoft 2023-04-10T12:31:44.8916919Z displayName : Recommended Apps 2023-04-10T12:31:44.8918171Z version : 22.0 2023-04-10T12:31:44.8918743Z 2023-04-10T12:31:44.8922546Z packageId : 6ac00602-2d3a-465d-81a3-b31c48e2c454 2023-04-10T12:31:44.8923657Z id : c526b3e9-b8ca-4683-81ba-fcd5f6b1472a 2023-04-10T12:31:44.8923943Z publisher : Microsoft 2023-04-10T12:31:44.8925096Z displayName : Sales and Inventory Forecast 2023-04-10T12:31:44.8926234Z version : 22.0 2023-04-10T12:31:44.8926416Z 2023-04-10T12:31:44.8930390Z packageId : f93bd3bc-8a77-49c3-9a8b-b9d8699af643 2023-04-10T12:31:44.8931531Z id : e97bbbc7-16b6-470b-9428-376baa778970 2023-04-10T12:31:44.8932285Z publisher : Microsoft 2023-04-10T12:31:44.8933366Z displayName : Send remittance advice by email 2023-04-10T12:31:44.8934467Z version : 22.0 2023-04-10T12:31:44.8934874Z 2023-04-10T12:31:44.8939154Z packageId : 9008a819-352d-4ce6-8055-26c36ca62148 2023-04-10T12:31:44.8940854Z id : 8c972578-fe72-4aa5-ae51-cc5575fef2ea 2023-04-10T12:31:44.8941923Z publisher : Microsoft 2023-04-10T12:31:44.8947836Z displayName : Send To Email Printer 2023-04-10T12:31:44.8948913Z version : 22.0 2023-04-10T12:31:44.8949312Z 2023-04-10T12:31:44.8953488Z packageId : 74a2c23a-cae7-49d4-9ecc-4c5b946ddedf 2023-04-10T12:31:44.8954271Z id : e2ae191d-8829-44c3-a373-3749a2742d4d 2023-04-10T12:31:44.8955978Z publisher : Microsoft 2023-04-10T12:31:44.8958885Z displayName : Service Declaration 2023-04-10T12:31:44.8960128Z version : 22.0 2023-04-10T12:31:44.8960970Z 2023-04-10T12:31:44.8966328Z packageId : f074b211-b373-4225-ab9d-8fe96371e0e9 2023-04-10T12:31:44.8966872Z id : ec255f57-31d0-4ca2-b751-f2fa7c745abb 2023-04-10T12:31:44.8967598Z publisher : Microsoft 2023-04-10T12:31:44.8968586Z displayName : Shopify Connector 2023-04-10T12:31:44.8969389Z version : 22.0 2023-04-10T12:31:44.8969783Z 2023-04-10T12:31:44.8973597Z packageId : 50237b5e-053f-45af-a8f2-99534e765fbf 2023-04-10T12:31:44.8974517Z id : 79b1a79a-2f66-4736-bc1b-8abb3537eb51 2023-04-10T12:31:44.8975518Z publisher : Microsoft 2023-04-10T12:31:44.8976550Z displayName : Simplified Bank Statement Import 2023-04-10T12:31:44.8978181Z version : 22.0 2023-04-10T12:31:44.8978431Z 2023-04-10T12:31:44.8982566Z packageId : cbe9f10c-f87c-4c28-a7db-11788c238890 2023-04-10T12:31:44.8983283Z id : ea130081-c669-460f-a5f4-5dde14f03131 2023-04-10T12:31:44.8983895Z publisher : Microsoft 2023-04-10T12:31:44.8984960Z displayName : Statistical Accounts 2023-04-10T12:31:44.8986032Z version : 22.0 2023-04-10T12:31:44.8986622Z 2023-04-10T12:31:44.8990859Z packageId : 25dde50f-0c90-4336-a00d-009c8fa397a3 2023-04-10T12:31:44.8991519Z id : 63ca2fa4-4f03-4f2b-a480-172fef340d3f 2023-04-10T12:31:44.8993321Z publisher : Microsoft 2023-04-10T12:31:44.8994118Z displayName : System Application 2023-04-10T12:31:44.8995661Z version : 22.0 2023-04-10T12:31:44.8995983Z 2023-04-10T12:31:44.9000527Z packageId : 4689480d-1df2-4685-9b2c-830b5d4cd5bd 2023-04-10T12:31:44.9001854Z id : 23de40a6-dfe8-4f80-80db-d70f83ce8caf 2023-04-10T12:31:44.9002155Z publisher : Microsoft 2023-04-10T12:31:44.9003058Z displayName : Test Runner 2023-04-10T12:31:44.9003911Z version : 22.0 2023-04-10T12:31:44.9004290Z 2023-04-10T12:31:44.9008194Z packageId : e81efeac-d6f9-4a05-8be8-f8e431dc9abd 2023-04-10T12:31:44.9009047Z id : 7961e9dc-a8e5-49b1-839b-3a78803a4cb8 2023-04-10T12:31:44.9009859Z publisher : Microsoft 2023-04-10T12:31:44.9011036Z displayName : Troubleshoot FA Ledger Entries 2023-04-10T12:31:44.9012078Z version : 22.0 2023-04-10T12:31:44.9012214Z 2023-04-10T12:31:44.9016534Z packageId : 911756cb-5a0d-4512-a8b6-5e196a745e4b 2023-04-10T12:31:44.9017092Z id : 2654d7e7-9afd-4947-9e02-6bb8f3e0cd04 2023-04-10T12:31:44.9017881Z publisher : Microsoft 2023-04-10T12:31:44.9019635Z displayName : Universal Print Integration 2023-04-10T12:31:44.9020675Z version : 22.0 2023-04-10T12:31:44.9020946Z 2023-04-10T12:31:44.9025493Z packageId : 576011cf-3ec6-46f0-9090-7079eb42342e 2023-04-10T12:31:44.9026227Z id : c50a4bf0-db51-4ad2-88d5-fe2287da0eb8 2023-04-10T12:31:44.9027084Z publisher : Microsoft 2023-04-10T12:31:44.9028190Z displayName : VAT Group Management 2023-04-10T12:31:44.9029350Z version : 22.0 2023-04-10T12:31:44.9029928Z 2023-04-10T12:31:44.9030114Z 2023-04-10T12:31:44.9032553Z 2023-04-10T12:31:44.9041126Z 2023-04-10T12:31:44.9054100Z * Published Extensions (not installed): 2023-04-10T12:31:44.9091488Z 2023-04-10T12:31:44.9361855Z Import NAV/BC Management DLL's [False] 2023-04-10T12:31:44.9451230Z ServiceTier not specified, loading default assemblies. 2023-04-10T12:31:44.9882891Z Default Assemblies not found. Load via BC-Artifacts 2023-04-10T12:31:45.0217358Z Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper] 2023-04-10T12:31:45.0312072Z Check BcContainerHelper 2023-04-10T12:31:45.8378811Z Load BcContainerHelper 2023-04-10T12:31:46.2251890Z BcContainerHelper version 2.0.15 2023-04-10T12:31:49.9198327Z 2023-04-10T12:31:49.9198929Z ModuleType Version Name ExportedCommands
2023-04-10T12:31:49.9199640Z ---------- ------- ---- ----------------
2023-04-10T12:31:49.9200264Z Script 2.0.15 BcContainerHelper {Add-FontsToBcContainer, Add-GitToAlProjectFolder, Backup-... 2023-04-10T12:31:49.9200445Z 2023-04-10T12:31:49.9200506Z 2023-04-10T12:31:49.9200564Z 2023-04-10T12:31:49.9205756Z 2023-04-10T12:31:49.9258021Z ##[command]"Get-BCArtifactUrl" 2023-04-10T12:31:49.9258317Z Name Value
2023-04-10T12:31:49.9258862Z ---- -----
2023-04-10T12:31:49.9259064Z select Latest
2023-04-10T12:31:49.9259248Z type OnPrem
2023-04-10T12:31:49.9259360Z country W1
2023-04-10T12:31:49.9259408Z 2023-04-10T12:31:49.9259447Z 2023-04-10T12:31:49.9259693Z -select: Latest -type: OnPrem -country: W1 2023-04-10T12:31:51.8086291Z Platform: C:\bcartifacts.cache\onprem\22.0.54157.54635\platform 2023-04-10T12:31:51.8153666Z Localisation: C:\bcartifacts.cache\onprem\22.0.54157.54635\w1 2023-04-10T12:31:52.0038794Z BC Management DLL: C:\bcartifacts.cache\onprem\22.0.54157.54635\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service\Management\Microsoft.Dynamics.Nav.Management.dll 2023-04-10T12:31:52.0226084Z Selected module: [C:\bcartifacts.cache\onprem\22.0.54157.54635\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service\Management\Microsoft.Dynamics.Nav.Management.dll] 2023-04-10T12:31:52.0236829Z Loading module: [C:\bcartifacts.cache\onprem\22.0.54157.54635\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service\Management\Microsoft.Dynamics.Nav.Management.dll] 2023-04-10T12:31:52.2875055Z BC App Management DLL: C:\bcartifacts.cache\onprem\22.0.54157.54635\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll 2023-04-10T12:31:52.2901091Z Selected module: [C:\bcartifacts.cache\onprem\22.0.54157.54635\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll] 2023-04-10T12:31:52.2910738Z Loading module: [C:\bcartifacts.cache\onprem\22.0.54157.54635\platform\ServiceTier\program files\Microsoft Dynamics NAV\220\Service\Management\Microsoft.Dynamics.Nav.Apps.Management.dll] 2023-04-10T12:31:52.3219355Z Publish Extension 2023-04-10T12:31:52.3229997Z Artifact Path : C:\agent_work\r1\a 2023-04-10T12:31:52.3241262Z Artifact Filter: .app 2023-04-10T12:31:52.3524915Z ** Resolve App file in [C:\agent_work\r1\a] 2023-04-10T12:31:52.3697566Z Resolved App File: [C:\agent_work\r1\a_DevOps\Business Central\ryordanov_DevOps_1.0.202315.36.app]. 2023-04-10T12:31:52.3743938Z Resolved App Path: [C:\agent_work\r1\a_DevOps\Business Central\ryordanov_DevOps_1.0.202315.36.app] 2023-04-10T12:31:52.4011553Z Upload extension [C:\agent_work\r1\a_DevOps\Business Central\ryordanov_DevOps_1.0.202315.36.app] 2023-04-10T12:31:52.4027272Z * Get App Info 2023-04-10T12:31:52.5543094Z App.PackageID = f60857bc-6c45-4080-917f-6f6d03ae43de 2023-04-10T12:31:52.5603854Z App.ID = 3b3fd680-4827-4e98-b4e5-525f4a20f507 2023-04-10T12:31:52.5650232Z App.Name = DevOps 2023-04-10T12:31:52.5689275Z App.Publisher = ryordanov 2023-04-10T12:31:52.5725665Z App.Version = 1.0.202315.36 2023-04-10T12:31:52.5981427Z Using Dev-Port deploy instead of API 2023-04-10T12:31:52.6299289Z Publishing to http://buildenv:7049/bc/dev/apps?SchemaUpdateMode=forcesync 2023-04-10T12:31:52.8959573Z ##[error]Status Code Unauthorized : Unauthorized2023-04-10T12:31:52.9380680Z ##[section]Finishing: ALOps Extension API
Dear @ryordanov91,
Thanks for the full log, this helps a lot. The DEV Port deploy was introduced for AppSource Apps in BC-SaaS, seems we are missing an authentication mechanism on this feature. We'll dive into it and get a hotfix out asap.
Kind regards,
Dear @Athystrup , @ryordanov91, @TheDoubleH,
Please try our latest version v1.455.3607, we hotfixed the Authentication issue for DevPort deploy.
Kind regards,
@AdminHodor thank you for looking into the issue.
I have tried with version v1.455.3607 and unfortunately I get the exact same error as before. My log contains some sensitive information, so I will see if I can clean it, but it basically looks almost identical to the one provided by @ryordanov91.
Dear @Athystrup ,
If you want to keep the logs of github, you are always free to email it to admin@hodor.be. We handle all private info with care.
Kind regards,
@AdminHodor I have sent you an email.
@AdminHodor Anything new regarding this issue?
We have problems in replicating the issue. We try, but it keeps succeeding :-/.
When we see this: Publishing to http://buildenv:7049/bc/dev/apps?SchemaUpdateMode=forcesync
what we notice:
Do you think it's possible to set up the service with best practices in mind?
In the meantime, we'll add some more logging, because we need to know exactly which URL it's using, and which authentication, before we can say anything more.. .
@waldo1001
After looking through the Powershell task, I think that I might have found the issue. It seems that the credentials are not correctly added to the header when using the dev endpoint.
I have sent an email to @AdminHodor which describes the Powershell change that helped solve the issue for me.
Let me know if this information was helpful to you.
Thanks - we'll look into it! should be fixed in next release!
Will be available in the upcoming release. Today or tomorrow.
Hi
Do you have an example of how the DEV-endpoint should look, when using the new "DEV Schema Sync Mode" in the ALOps Extension API task?
We are using :/<Server Instance/dev
However this does not seem to work, as we get the following error: