0

I have the following azure function

public static void Run([ServiceBusTrigger("topic-bus", "sub-bus", Connection = "myCString")] string mySbMsg, ILogger log)
    {
        log.LogInformation("test123");
    }

I also have the following settings.json file

"Values":{
    myTopic: "topic-bus",
    mySub: "sub-bus"
}

I don't want to use "topic-bus" and "sub-bus" string as part of the Run parameter. I would like to get those string from my settings.json file. Is ther eanyway to do this? thanks.

0

1 Answer 1

1

Please try this way:

[ServiceBusTrigger("%myTopic%", "%mySub%", Connection = "myCString")]
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.