Closed SnehasishGuhaRoy closed 8 months ago
Thank you for opening this issue, we will look into it.
Thank you for your feedback. This has been routed to the support team for assistance.
Thank you for your feedback. This has been routed to the support team for assistance.
@SnehasishGuhaRoy Thanks for reaching out to us and reporting this issue. Could you please provide us the below details ?
--debug
parameter and share the verbose logs here ?This will help us to assist you better. Awaiting your reply.
azure-cli 2.50.0 *
core 2.50.0 telemetry 1.0.8
Dependencies: msal 1.22.0 azure-mgmt-resource 23.1.0b2
Python location '/opt/homebrew/Cellar/azure-cli/2.50.0_1/libexec/bin/python' Extensions directory '/Users/snehasishguharoy/.azure/cliextensions'
Python (Darwin) 3.10.12 (main, Jul 28 2023, 18:34:01) [Clang 14.0.3 (clang-1403.0.22.14.1)]
Legal docs and information: aka.ms/AzureCliLegal
@SnehasishGuhaRoy Thanks for reaching out to us and reporting this issue. Could you please provide us the below details ?
- Which Azure CLI command are you running ?
- Could you please run the command with
--debug
parameter and share the verbose logs here ?- Also share your use case and requierment.
This will help us to assist you better. Awaiting your reply.
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Expected root element 'settings' but found 'server' (position: START_TAG seen
[DEBUG] (f) pricingTier = B1
[DEBUG] (f) project = MavenProject: com.in28minutes.springboot.web:02-todo-web-application-h2:0.0.1-SNAPSHOT @ /Users/snehasishguharoy/Desktop/azure-spring-boot-h2/pom.xml
[DEBUG] (f) region = westeurope
[DEBUG] (f) resourceGroup = todo-web-application-h2
[DEBUG] (f) resources = []
[DEBUG] (f) os = linux
[DEBUG] (f) javaVersion = jre8
[DEBUG] (f) webContainer = TOMCAT 9.0
[DEBUG] (s) runtime = com.microsoft.azure.maven.webapp.configuration.RuntimeSetting@3aed69dd
[DEBUG] (f) schemaVersion = V2
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@3f1a9a53
[DEBUG] (f) settings = org.apache.maven.execution.SettingsAdapter@1ca3d25b
[DEBUG] (f) skip = false
[DEBUG] (f) stopAppDuringDeployment = false
[DEBUG] -- end configuration --
[INFO] Authenticate with Azure CLI 2.0
[DEBUG] Failed to authenticate with Azure CLI 2.0
[DEBUG]
java.io.FileNotFoundException: /Users/snehasishguharoy/.azure/accessTokens.json (No such file or directory)
at java.io.FileInputStream.open0 (Native Method)
at java.io.FileInputStream.open (FileInputStream.java:219)
at java.io.FileInputStream.
I am doing az login and it is successful. Please check
@SnehasishGuhaRoy Thanks for your reply. I am adding the service team to assist you further.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.
@dannysongg Can you please investigate if this is related to CLI or a springboot issues?
@SnehasishGuhaRoy Thank you for your report and we apologize for the delayed response. It seems that you are using an outdated version of the web app maven plugin, which is incompatible with the azure cli on your machine. To solve this issue, could you please upgrade to the latest web app maven plugin v2.13.0? You can find the related documentation for the maven plugin here. If you encounter any problems, please do not hesitate to open an issue in the plugin repository. We will also update our message and wiki to provide more clear solutions for authentication problems. Thank you again for your help.
closing this issue as per @Flanker32 comment. CCL @tulikac
Describe the bug
Cannot read files /Users/snehasishguharoy/.azure/azureProfile.json and /Users/snehasishguharoy/.azure/accessTokens.json. Are you logged in Azure CLI? Getting this while doing mvn azure-webapp:deploy for spring boot application deployment at terminal of Mac OS
Related command
mvn azure-webapp:deploy
Errors
Cannot read files /Users/snehasishguharoy/.azure/azureProfile.json and /Users/snehasishguharoy/.azure/accessTokens.json. Are you logged in Azure CLI?
Issue script & Debug output
Cannot read files /Users/snehasishguharoy/.azure/azureProfile.json and /Users/snehasishguharoy/.azure/accessTokens.json. Are you logged in Azure CLI?
Expected behavior
It should have deploy the spring boot application
Environment Summary
Additional context
No response