Hot questions for Using Azure in intellij idea

Top Java Programmings / Azure / intellij idea


I'm trying to configure the azure plugin for intellij so that I can deploy my spring project to tomcat directly from my IDE. I'm sure I'm doing something stupid since I can't get it to work and I can't find ANYTHING as far as directions or other people struggling.

I've tried following the directions listed here:

These directions lead me to believe that I should be able to set up my project to deploy to my tomcat instance without having to use ftp or any other such method,

Everything goes well for me until I get to the part that says:

Now that it is ready, we will configure the application to publish/deploy to Azure. With the installation of the Azure plugin, new tools are available to configure and deploy to Azure. Select ‘publish to Azure’.

I'm not sure where I can find the "Publish To Azure" to start the wizard that the final steps talk about.

I have successfully imported my subscription and that seems to be working fine.

Any help to get me past this hurdle would be greatly appreciated.


You have to display the main toolbar by selecting View -> Toolbar. There you can see the new Azure Tool Buttons.


I want to use timerTrigger in azure functions. I created function according this guide: it is generated by default httpTrigger. I tried command of azure-functions:add. I succeeded adding timerTrigger but I encountered with a lot of errors

How I can delete httpTrigger and declaring only timerTrigger? before I run the azure-functions:add:

after running the command:

I guess it is related to azure plugin and maven plugin conflict but not sure and I don't know how to handle such this situation

any help will be appreciated



For now, I suppose it doesn't support create java function with default timer trigger. However you could delete the HTTP one then create the timer, cause you don't provide much information so maybe you could refer to my steps.

  1. Create the function with maven.(I'm using the 1.22 version)
  2. Delete the HTTP function, and delete the test folder.

  3. Create the Timer Trigger function. After this the project will be like this.(Before packaging remember set the storage connection string in the local.settings.json)

  4. Package it.(Use the package method in the Lifecycle.)

  5. Run it with azure-functions:run under azure-functions plugin.


I am using hibernate with InteliJ Idea ultimate, every time I try to Generate Persistence mapping of my tables, it generates them with slightly incorrect @Table name

My database structure - IMGUR IMAGE

so my correct table name for "Activity" table would be: "[dbo].[Activity]"

but InteliJ generates it like this:

@Table(name = "Modules", schema = "dbo", catalog = "test-V4ClientDb")

And it causes errors where it can not retrieve data:

ERROR: Incorrect syntax near '-'. org.hibernate.exception.SQLGrammarException: could not extract ResultSet at org.hibernate.exception.internal.SQLStateConversionDelegate.convert( at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert( at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert( at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert( at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract( at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.getResultSet( at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeQueryStatement( at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad( at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad( at org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load( at org.hibernate.persister.entity.AbstractEntityPersister.load( at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource( at org.hibernate.event.internal.DefaultLoadEventListener.doLoad( at org.hibernate.event.internal.DefaultLoadEventListener.load( at org.hibernate.event.internal.DefaultLoadEventListener.proxyOrLoad( at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad( at org.hibernate.event.internal.DefaultLoadEventListener.onLoad( at org.hibernate.internal.SessionImpl.fireLoad( at org.hibernate.internal.SessionImpl.access$1900( at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doLoad( at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load( at org.hibernate.internal.SessionImpl.get( at hibernate.DatabaseManager.retrieveModuleFromDatabase( at hibernate.DatabaseManager.populateDatabase( at runner.TestRunner.setUp( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall( at at org.junit.runners.model.FrameworkMethod.invokeExplosively( at org.junit.internal.runners.statements.RunBefores.evaluate( at org.junit.internal.runners.statements.RunAfters.evaluate( at at at at at org.testng.junit.JUnit4TestRunner.start( at at org.testng.TestRunner$ at org.testng.TestRunner.runJUnitWorkers( at org.testng.TestRunner.privateRunJUnit( at at org.testng.SuiteRunner.runTest( at org.testng.SuiteRunner.runSequentially( at org.testng.SuiteRunner.privateRun( at at org.testng.SuiteRunnerWorker.runSuite( at at org.testng.TestNG.runSuitesSequentially( at org.testng.TestNG.runSuitesLocally( at at at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass( at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute( at org.apache.maven.surefire.testng.TestNGProvider.invoke( at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader( at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess( at org.apache.maven.surefire.booter.ForkedBooter.execute( at org.apache.maven.surefire.booter.ForkedBooter.main( Caused by: Incorrect syntax near '-'. at at at at$PrepStmtExecCmd.doExecute( at at at at at at org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.extract( ... 56 more

is there a possibility to configure InteliJ to use correct naming?

I am using Microsoft Azure sql server.

Thank you.


It also works if there is no "catalog" specified

@Table(name = "Modules", schema = "dbo")

So question still is, how to configure InteliJ hibernate tool to use correct naming.


Looks like you cannot use the caracter "-" in your catalog string.