# Something wrong with my serverless.yml for eventhubs azure function?

**URL:** https://forum.serverless.com/t/something-wrong-with-my-serverless-yml-for-eventhubs-azure-function/13235
**Category:** Serverless Framework
**Tags:** azure
**Created:** [November 27, 2020, 6:28am UTC](https://forum.serverless.com/t/something-wrong-with-my-serverless-yml-for-eventhubs-azure-function/13235 "2020-11-27T06:28:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![verikono](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/verikono/32/4793_2.png) [@verikono](https://forum.serverless.com/u/verikono)
#### Post date: [November 27, 2020, 6:28am UTC](https://forum.serverless.com/t/something-wrong-with-my-serverless-yml-for-eventhubs-azure-function/13235/1 "2020-11-27T06:28:51Z")

</div>

Hi Guys,

Trying to get an azure function triggered by eventhubs working but can’t get passed the error “x-azure-settingsTrigger not supported”.

Is there something wrong with serverless.yml?

```
service: function-play
frameworkVersion: '2'
provider:
  name: azure
  region: East US 2
  runtime: nodejs12
  environment:
    VARIABLE_FOO: 'foo'
plugins:
  - serverless-azure-functions
package:
  exclude:
    - local.settings.json
    - .vscode/**
functions:
  myserverless:
    handler: src/handlers/eventHub.printMessage
    events:
      - eventHub:
        x-azure-settings:
          name: myhub
          eventHubName: test-hub
          consumerGroup: $Default
          connection: EVENTHUB_CS
```
