Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

azure functions - Value cannot be null. (Parameter 'uriString')

On deploying an Azure function, I see the following exception in Application Insights:

enter image description here

I have the following in config setting:

enter image description here

The key vault contains the service bus connection string:

enter image description here

What am I missing?

question from:https://stackoverflow.com/questions/65910672/value-cannot-be-null-parameter-uristring

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

There are couple of things you can check :

  1. If we are using any connection endpoint and reading the value from the appsettings. If yes, check the value of that settings.
  2. Please confirm whether we are using a valid service bus connection endpoint in this case. ( if there is any)

These are very generic explanation for the problem statement as that doesn't provide more details. In case of functions many a times we see this error because if the connection string value is read from Azure Key Vault and you miss out on setting this value in the app settings of Azure Function configuration. In this scenario, an Access Policy created in the Key Vault configuration so that Azure Function application can read the values from the Key Vault. So you need to reverify the access policies to make sure the app settings values of the keys have valid values.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...