One of the cool features of the .NET Core is that the namespaces you reference in the project are the only ones that are contained in the DLL your project renders. I was reading that when you initially create a project in Visual Studio, that numerous packages are included by default and was wondering, because […]
Read More →Archive for April, 2018
Targeting a specific version of the .NET Framework
I find numerous opinions and understandings about side-by-side and in-place installations of the .NET Framework. Here is my favorite explanation of this “.NET Versioning and Multi-Targeting – .NET 4.5 is an in-place upgrade to .NET 4.0”. I also link to that same article in one of my IIS labs here, “Lab 5: Basic and Advanced […]
Read More →What is the current .NET version on an Azure App Service
I have an App Service here (currentdotnetversion) that shows the output of the current (when I wrote this article) .NET version using C# code. Here is a partial code snippet: protected void Page_Load(object sender, EventArgs e) { const string subkey = @”SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\”; using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey(subkey)) { […]
Read More →How to delete your Azure App Service deployment credential
I wrote this article “Resetting FTP password, using Publish Profile credentials, Azure App Service” here which may be of interest to you as well. In this article, if your goal is to deleted the deployment credential, then you landed on the right page. If you access the Deployment credentials blade shown in Figure 1 you […]
Read More →How to check the version of .NET Core on an Azure App Service
If you would like to check the version of .NET core installed on the Azure App Service platform you can execute the following command from KUDU/SCM, which i discuss further here. Also show in Figure 1. dotnet –version Figure 1, how to check .NET Core version, which .NET Core version is running on Azure App […]
Read More →How to Backup/Restore an Azure App Service using Azure PowerShell
Use these Azure PowerShell cmdlets: New-AzureRmWebAppBackup Restore-AzureRmWebAppBackup Get-AzureRmStorageAccountKey New-AzureStorageContainerSASToken Don’t forget that this is open source, so you can see what these cmdlets are doing on GitHub here. Note that creating and restoring backups are only available in STANDARD and PREMIUM mode. Check out how to do the same using BASH from the console here. […]
Read More →How to Backup/Restore an Azure App Service using BASH
Check out my post here that explains how to start the Cloud Shell and set the subscription. Also checkout how to do the same using Azure PowerShell here. To backup an App Service using CLI / AZ you execute this command, seen in Figure 1. az webapp config backup create –resource-group “BACKUPS” –webapp-name “**********” –container-url […]
Read More →How to set Azure BASH to a specific Azure subscription
At the top right of the Azure Management portal here, you will see the Cloud Shell item, Figure 1, click it. Figure 1, Open BASH Cloud Shell in Azure Management Portal Enter the following command to list out all the subscriptions which are linked to the ID used to access the portal. az account list […]
Read More →The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. 404.63.0
I was troubleshooting this issue on an Azure App Service (ASE) and found the 404 was actually a 404.63.0 which translates into “Site not found: Hostname lookup failed, we are probably under attack”. The interesting thing was that it was only reproducible randomly and after I sat an hit the F5 or refreshed the page […]
Read More →TLS on Azure App Services
I wrote this article some time ago “How to disable TLS 1.0 on an Azure App Service Web App” that explains some of the reasons TLS was not configurable on the Azure App Service platform. There were many customers who wanted to disable TLS 1.0 so they could remain or become PCI compliant and at […]
Read More →