0

I need to pull the Runtime version of a Function app using APIs.

enter image description here

Calling https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites?api-version=2023-12-01

Does not appear to provide this information.

Calling https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions?api-version=2023-12-01

does not provide the information either.

Does anyone have any guidance on how I can pull this information?

TIA

2 Answers 2

1

You can get it using below rest api which gives the whole number with ~ as it stores that way in the configuration section :

https://management.azure.com/subscriptions/subid/resourceGroups/rgname/providers/Microsoft.Web/sites/funname/config/appsettings/list?api-version=2019-08-01

Got token for resource https://management.azure.com/ and used as Bearer Token.

Output:

enter image description here

It stores the functions version as ~4 instead of 4.34.2.22820 or ~3 for 3.22.0.0 .

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Is it possible to get the exact number?
0

This API will provide the exact value of the runtime.

https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/host/default/properties/status?api-version=2022-03-01

1 Comment

Glad you are able to get it @john

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.