code: protected void createOrUpdateFunctionApp() throws Exception {
          final FunctionApp app = getFunctionApp();
          if (app == null) {
              createFunctionApp();
          } else {
              updateFunctionApp(app);
          }
      }
docs: region Create or update Azure Functions