microsoft / CloudAdoptionFramework

Code samples and extended documentation to support the guidance provided in the Microsoft Cloud Adoption Framework
https://aka.ms/CAF
Creative Commons Attribution 4.0 International
855 stars 613 forks source link

No internet #139

Closed LocDaiLeFromTwoMany closed 1 year ago

LocDaiLeFromTwoMany commented 1 year ago

I have deploy the app to Azure Web App using GitHub Action. I get this error in Configuration page.

image
BryanSoltis commented 1 year ago

Hello, The Azure Naming Tool requires internet connectivity for some of the features (Resource Type/Location refreshes, version checks, etc.). The site will attempt to download a 1px file from the following URL:

https://github.com/aznamingtool/AzureNamingTool/blob/main/connectiontest.png

If it cannot access the URL, it will determine that the site is not connected to the internet and display the message you are seeing. You may have some networking configuration that is preventing your Azure App Service to access that URL.

The disabled features only apply to updates to the resource types (New Azure services added) and location (new Azure regions added), which do not occur very often. Additionally, the tool updates are publicized on Twitter/LinkedIn. If you cannot resolve the issue for any reason, it will not affect very much of the functionality.

msoukhomlinov commented 1 year ago

I have the same issue using the same deployment type, there are no restrictions on internet access.

Is there a way to debug this?

BryanSoltis commented 1 year ago

Thank you for the additional feedback. To elaborate on the functionality, there is a function in the /helpers/ConfigurationHelper.cs file called VerifyConnectivty. In the function, the site will attempt the following:

If an exception is occurring in the process, there should be a message listed in Admin Log. Please check the log and let me know if you see any errors listed there.

To help in the future, we will add the following in the next update:

I have added these features to current development version and will include them in the next release in a few weeks. I will update this thread once the features are enabled.