Open ysharabi76 opened 1 year ago
@giuliov This is the issue I'm facing for 2 weeks.
PS D:\aggregator-cli-win-x64> .\aggregator-cli.exe add.rule --verbose --instance AutoCalculateaggregator --name IssueCalculator --resourceGroup vm-east1 --file D:\Autocalculation\issueCalculation.rule
[2023-05-17 18:53:57Z] aggregator-cli v1.2.0 (build: 1.2.0.0 Release) (c) Copyright c TFS Aggregator Team
[2023-05-17 18:53:57Z] Authenticating to Azure...
[2023-05-17 18:53:57Z] Connected to subscription XXXXXXXXXXXXXXXXXXX
[2023-05-17 18:53:57Z] Validate rule file D:\Autocalculation\issueCalculation.rule
[2023-05-17 18:53:59Z] Rule file is valid
[2023-05-17 18:53:59Z] Layout rule files
[2023-05-17 18:53:59Z] Retrieving deployed aggregator-function.dll
[2023-05-17 18:53:59Z] Retrieving Kudu publish credentials for AutoCalculateaggregator.
[2023-05-17 18:54:01Z] Object reference not set to an instance of an object.
[2023-05-17 18:54:01Z] Exiting with code 99
Something has changed. webFunctionApp.GetPublishingProfile() in KuduApi.cs is returning null for ftp username and password...
@ysharabi76 It mean this issue coming from azure services?
I changed the function configuration under General settings, FTP state, from FTPS only to all allowed. It worked for me.
Installed .net core 3.1 + 6 + 7 runtimes, gave full permissions to service principal and to the token in ADO. I tried from windows 10 + ubuntu 22.04 and aggregator cli v1.2.0 (1.1.0 gave the exact same error) Deployment succeeded in Azure. Can someone please point me to what i have done wrong?