One admin's notes https://www.kondaurov.me/ PowerShell, Office 365, Azure and automation Thu, 26 Sep 2024 15:34:34 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 https://www.kondaurov.me/wp-content/uploads/ms-icon-310x310-150x150.png One admin's notes https://www.kondaurov.me/ 32 32 IT dad jokes https://www.kondaurov.me/2024/it-jokes/ https://www.kondaurov.me/2024/it-jokes/#respond Fri, 26 Jul 2024 05:32:33 +0000 https://www.kondaurov.me/?p=904 Why developers like dark screen mode? Because light attract bugs. Why restaurants do not open data centers? Because they haven’t enough servers. What do data analysts do when they get bored? They pivot tables. A SQL query walks into a bar, walks up to two tables, and asks, “Can I join you?” …

The post IT dad jokes appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2024/it-jokes/feed/ 0
Enable diagnostic settings for Azure Storage to export logs to Log Analytics Workspace using Terraform https://www.kondaurov.me/2024/enable-diagnostic-settings-for-azure-storage-logs-export-using-terraform/ https://www.kondaurov.me/2024/enable-diagnostic-settings-for-azure-storage-logs-export-using-terraform/#respond Mon, 24 Jun 2024 15:30:08 +0000 https://www.kondaurov.me/?p=876 I haven’t work with the Terraform for a while and didn’t know about recent updates in Azure API released at the end of 2023. If you are like me, in short, this update allows you configure settings for Azure Storage sub-services separately. Private Endpoints, retention settings and diagnostic settings have to be …

The post Enable diagnostic settings for Azure Storage to export logs to Log Analytics Workspace using Terraform appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2024/enable-diagnostic-settings-for-azure-storage-logs-export-using-terraform/feed/ 0
Unlock Terraform state on Azure storage https://www.kondaurov.me/2022/unlock-terraform-state-on-azure-storage/ https://www.kondaurov.me/2022/unlock-terraform-state-on-azure-storage/#respond Fri, 11 Feb 2022 14:33:05 +0000 https://www.kondaurov.me/?p=660 I’ve been in an awkward situation once, when I was provisioning Azure resources using Terraform via Azure DevOps pipeline. Pipeline stuck with the provisioning and I cancelled the apply step. The state file got locked. As it is stored on Azure Blob Storage in a dedicated container and only the Service Principal …

The post Unlock Terraform state on Azure storage appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2022/unlock-terraform-state-on-azure-storage/feed/ 0
Provision Azure Traffic Manager with Terraform https://www.kondaurov.me/2021/provision-azure-traffic-manager-with-terraform/ https://www.kondaurov.me/2021/provision-azure-traffic-manager-with-terraform/#respond Sat, 09 Oct 2021 12:22:29 +0000 https://www.kondaurov.me/?p=410 These days Terraform is the infrastructure as a code standard (IaC). Terraform can be used with various platforms, while I am writing about Azure here. One can provision almost any resource in Azure by Terraform. Terraform is a great tool for a resource provisioning automation and a cornerstone for DevOps. HashiCorp develops …

The post Provision Azure Traffic Manager with Terraform appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/provision-azure-traffic-manager-with-terraform/feed/ 0
Add Windows local users and admins by PowerShell https://www.kondaurov.me/2021/add-windows-local-users-and-admins-by-powershell/ https://www.kondaurov.me/2021/add-windows-local-users-and-admins-by-powershell/#respond Fri, 16 Jul 2021 10:07:48 +0000 https://www.kondaurov.me/?p=396 Once I got a task to create Windows Server local users on 10 machines and give them Admin permissions. I’ve found that I’d rather automate and be effective. I prefer to spend 10 minutes writing a script and 10 minutes running it rather than spending 30 minutes for manual job. This small …

The post Add Windows local users and admins by PowerShell appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/add-windows-local-users-and-admins-by-powershell/feed/ 0
Azure File Sync: Synchronize files with your own schedule https://www.kondaurov.me/2021/azure-file-sync-run-with-your-own-schedule/ https://www.kondaurov.me/2021/azure-file-sync-run-with-your-own-schedule/#respond Thu, 01 Jul 2021 09:30:55 +0000 https://www.kondaurov.me/?p=378 When I was implementing Azure Storage File Sync solution, I found that it worked pretty quick with the files to be uploaded from a server to the cloud storage. The reason for it is the agent installed on the server checks for file changes. Unfortunately, when a file needs to be downloaded …

The post Azure File Sync: Synchronize files with your own schedule appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/azure-file-sync-run-with-your-own-schedule/feed/ 0
Install PS 5.1 and Az PowerShell to Windows Server 2008R2 https://www.kondaurov.me/2021/install-ps-5-1-and-az-powershell-to-windows-server-2008r2/ https://www.kondaurov.me/2021/install-ps-5-1-and-az-powershell-to-windows-server-2008r2/#respond Sat, 12 Jun 2021 10:36:46 +0000 https://www.kondaurov.me/?p=351 Once I got a task that required PowerShell Az modules to be installed on a Windows Server 2008 R2 box. Azure PowerShell modules updates quite often and I wasn’t sure if that will work at all. I found that it requires at least PowerShell 5 and .NET 4 framework on MS Docs …

The post Install PS 5.1 and Az PowerShell to Windows Server 2008R2 appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/install-ps-5-1-and-az-powershell-to-windows-server-2008r2/feed/ 0
Azure Cost Savings https://www.kondaurov.me/2021/azure-cost-savings/ https://www.kondaurov.me/2021/azure-cost-savings/#respond Mon, 07 Jun 2021 00:10:54 +0000 https://www.kondaurov.me/?p=87 This article guides you with the options you have for savings with Azure. There are some for different size environments and goals.

The post Azure Cost Savings appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/azure-cost-savings/feed/ 0
Send test email with PowerShell https://www.kondaurov.me/2021/send-test-email-powershell/ https://www.kondaurov.me/2021/send-test-email-powershell/#respond Fri, 21 May 2021 10:09:01 +0000 https://www.kondaurov.me/?p=285 It is a quite common situation. when you need to send an email from a PowerShell script that contains a status report or another kind of data. Nevertheless, before you can send a normal email you would like to run a quick test to confirm that you can send email from this …

The post Send test email with PowerShell appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/send-test-email-powershell/feed/ 0
AD DC replication test using PowerShell https://www.kondaurov.me/2021/ad-dc-replication-test-powershell-script/ https://www.kondaurov.me/2021/ad-dc-replication-test-powershell-script/#respond Mon, 05 Apr 2021 13:15:37 +0000 https://www.kondaurov.me/?p=223 I believe that every server, and a Domain Controller especially, should be tested after a restart or another kind of maintenance job. The task to test AD DC replication test using PowerShell needs to be executed on each DC in AD. My team asked me if there is a way to automate Active …

The post AD DC replication test using PowerShell appeared first on One admin's notes.

]]>
https://www.kondaurov.me/2021/ad-dc-replication-test-powershell-script/feed/ 0