Three things that got me here. First, I learned about creating a Service Principle in Azure and that the credentials for that those can be used to login to Azure, for a given Tenant/Directory ID. See here “Create an Azure service principal with Azure PowerShell”, also here if you want to see how to create […]
Read More →Author: Benjamin Perkins
What is self-contained deployment mode, works locally but not after deploying
It happens very often that an application is coded, configured and tested on a local machine and when deployed to an Azure App Service or any other machine, for some reason there are unexpected errors and exceptions. Let the debugging begin. I wrote this article “ASP.NET Core 2.1 and HTTP Error 502.5 – Process Failure” […]
Read More →Publish a Web App for Containers Windows Docker Image
I wrote these other articles here “How to add Docker support to your ASP.NET Core application” and here “Publish a Docker Windows image to Docker Hub using Visual Studio” that discussed how I got to this point. So far, not many problems and it went pretty smooth. When I added Docker support to my ASP.NET […]
Read More →How to add Docker support to your ASP.NET Core application
Well, here we go. Not only have I had the opportunity to work with open source and Linux, now I get some taste of containers. I find the concept very interesting because containers solve many issues when in the context of cloud hosting and running code on a multitenant platform. This is how I added […]
Read More →How to list all App Services within an App Service plan using PowerShell
Here is the PowerShell command to list out all the App Services running on an App Service Plan. $asp=Get-AzureRmAppServicePlan -ResourceGroupName “<RGNAME>” -Name “<ASPNAME<” $apps=Get-AzureRmWebApp -AppServicePlan $asp Foreach($app in $apps) { $app.Name }
Read More →Function ({name}) Error: The binding type(s) ‘{triggerType}’ are not registered.
I was working with an Azure Function V2 (beta) and got this exception, Figure 1, when I opened the Function in the portal. Error: Function (BlobTrigger-v2) Error: The binding type(s) ‘blobTrigger’ are not registered. Please ensure the type is correct and the binding extension is installed. Figure 1, Function Error: binding extension is installed The […]
Read More →How to create a read only user for a SQL Azure database
I am updating, or should I say, re-coding a website I have from ASP.NET Web Forms (aspx) to ASP.NET Core Razor Pages (chtml). The database it connects to only has a global admin, full access user identity. So I thought that I would fix that and create a need account for read only access. This […]
Read More →Call a parent method from UserControl using WPF in C#
I was implementing some paging functionality in a system I was building and realized that I had created the same forward, backward, first and last buttons and logic 3 times. After doing this I realized these buttons and logic were a perfect example of where I could reduce complexity and encapsulate my code better. I […]
Read More →Server Error 0x800004005 Request timed out.
I wrote this post and this lab about the impact of having debug=true in your web.config file. The fact is, when you are running in a production environment, you do not want to have debug=true. However, I was writing a series of NETSH tracing posts: Capturing a NETSH network trace Analyze NETSH traces with Wireshark […]
Read More →Adding groups to an Azure Active Directory domain
I wrote about creating a user in an Azure Active Directory domain or adding users to the Azure Active Directory domain here, but now I want to add some groups. Both of these articles are in preparation for an ASP.NET application I will write as an example for how to implement role based security into […]
Read More →