Even though I am not a security expert, it has always interested me. When I worked on the IIS team some years back, pre Azure and pre Cloud days the protocol mostly used for large corporations was Kerberos. Initially, troubleshooting those issues would give me sleepless nights, but over some years you begin to see […]
Read More →Tags: PowerShell
Azure Function keys, keys and more keys, regenerated and synced
A very important point you must understand when it comes to working with Azure Functions is that that product is tightly bound to an Azure Storage account. You see, Azure Functions is a compute offering, when you provision that you are getting some CPU, some memory and a host to run the code on. The […]
Read More →Securing an Azure App Service or Azure Function PaaS
A common topic I would like to call out which I see in regards to security has to do with endpoints. I kind of want to call those endpoints “potentially vulnerable attack vectors”. I am a bit nervous writing “vulnerable” because the endpoints I mention here are secure, which is why I also called out […]
Read More →How to deploy to Azure using an ARM template with PowerShell
I wrote this article here “How to use/create ARM templates for deployments” where I show how I generated the ARM template for multiple Azure features existing in a Resource Group. I then deploy all features using the ARM template using the Template deployment blade in the portal. This article explains how to run the same […]
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 →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 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 make an App Setting or Connection String sticky
I wrote an article here which talk about how to make an app setting or connection string sticky to the slot. You can make the settings stick using Azure PowerShell. Here are the Azure PowerShell cmdlets required to create an Azure App Service Web App: Login-AzureRmAccount Set-AzureRmContext Set-AzureWebsite (also have a look here at the […]
Read More →Remove Auto Scaling from an Azure App Service using Azure PowerShell
I needed to remove some auto scale settings from one of my App Services using Azure PowerShell so I decided to document that here. Here are the steps: Login Set the subscription context Get the existing Auto Scale rules based on Resource Group Remove the Auto Scale rule Please keep reading for more details. Login […]
Read More →How to set Azure PowerShell to a specific Azure Subscription
If you have multiple Azure Subscriptons, when you login you get a default subscription set, so if you try and take any actions on a feature in another subscription you would get a ‘NotFound’ like error. So you need to set the correct subscription. The old (ASM) way of doing that was to use the […]
Read More →