Was seeing a lot of timeout errors in our apps in Azure through app insights. A lot meaning more than 50 per hour. Not to mention sporadic down time. All the timeouts were trying to talk to our redis caches that we use as simple session storage. Timeout performing EVAL, inst: 1, mgr: Inactive, err: […]
Read More →Powershell script – get FTP publishing info for Azure web app
Simple script that logs in and grabs the FTP publishing info for an app. I like to just copy and paste stuff into my powershell window so this is exactly that. Replace the variables with your own info and copy/paste it into Powershell. You could convert these to read-host or parameters pretty easily. You can […]
Read More →Azure VPN Gateway – The certificate’s CN name does not match the passed value.
Getting this error? Remove the connection from Windows. Go into the Azure portal and download the VPN client under point to site config Install client Profit.
Read More →Azure powershell – update an app setting without erasing them
Another simple script that updates an app setting. This one grabs the existing app settings of an Azure web app into a hash table that you can then add more hashes to. It’s nice because I manage a lot of web apps with different settings and I don’t want to carry over unnecessary settings from […]
Read More →Azure powershell – migrate web apps between resource groups
Simple script to move some web apps between resource groups. If you want to just move one app.
Read More →Azure powershell – move webapp slot to new app service plan and stop it
Quick script to move all the slots of web apps in a subscription to a new app service plan and stop them. To save resources I keep our development slots stopped in our production apps. I keep them on a lower much less expensive app service plan as well. But with all the deployments we […]
Read More →Azure Let’s Encrypt Extension certificate renewal error
This was a fun one. I’ve been using Let’s Encrypt for free certificates on a lot of the websites we have hosted in Azure, and the Let’s Encrypt extension is awesome at managing all of that. As part of some transient fault tolerance I also use a couple app settings to cache everything on local […]
Read More →Just encrypt the virtual machine Azure
Ran into an issue trying to encrypt the disks of a new VM in Azure. After running the cmdlet to encrypt the disks the vm would reboot and then Azure would stop it. Never figured out why, I ended up rebuilding it with new disks and creating a new script from a different Azure doc. […]
Read More →Change event log properties with powershell
I have some specifics requirements for the Windows event logs on Azure VMs. This comes form the need to offload IO, save the event logs somewhere, and archive them instead of overwriting. Yes, I have a SIEM but I have reasons. Anyway, for anyone else that needs to change the following properties: Log Path Archive […]
Read More →Failed to invite guest user to Azure AD/Subscription even as an admin/owner role
Had an interesting issue that was relatively simple to resolve, albeit obscure. I was trying to invite some users outside our directory as contributors to a subscription. My user is a global admin and admin of the subscription I was trying to invite the users to. But when I tried to invite I got a […]
Read More →