Dynamic Terraform Configurations with try and for_each Functions
Thomas Thornton
by Thomas Thornton
3d ago
The try function combined with for_each in Terraform offers a great approach to handling multiple variations in data structures within Terraform. In this blog post, we will look at using both these features to develop more resilient and adaptable Terraform configurations and will also include an example of this usage Quick overview of try and for_each try Function: Allows you to attempt to evaluate a list of expressions and returns the first expression that does not produce an error. It’s particularly useful in handling optional attributes that may or may not be present in your data structure ..read more
Visit website
Time based filtering in Log Analytics queries with examples
Thomas Thornton
by Thomas Thornton
1w ago
I have used Log Analytics & Kusto Query Language (KQL) quite alot over the years, recently I been spending sometime writing a number of queries that have time based filtering included, such as return data for a specific month, specific time frame etc – have created a quick blog post to show some of these time based filters that are possible as part of your KQL. Getting Started with Time-Based Filtering in KQL Lets jump right into some examples of time-based filters and understand what each query does: find Searches across all tables for the specified condition 1. Logs for a specific mont ..read more
Visit website
Step-by-Step Guide to Automate Log Analytics Reports with Azure Logic Apps to Blob Storage
Thomas Thornton
by Thomas Thornton
2w ago
Azure Logic Apps, coupled with Log Analytics, offers a simple, but powerful solution for automating the creation and storage of reports from Log Analytics queries and sending them to blob storage. Why automate reports? Many reasons as to why you may want to automate reports from log analytics queries, storing the data in blob storage that can be referenced else where, maybe even potential archiving. More reasons to automate: Can even run them in a schedule, knowing the reports are automated and stored. The solution I create a simple 4 step Logic App Workflow solution: Setup a schedule recurre ..read more
Visit website
Adding comments to your GitHub Pull Requests using GitHub Actions
Thomas Thornton
by Thomas Thornton
3w ago
When managing a GitHub Pull Request (PR) workflow, numerous continuous integration (CI) checks typically run to ensure code quality, functionality, and compliance with project standards. Keeping track of these checks and providing timely, consistent feedback to contributors can be challenging. In this blog post, I’ll show how to enhance your PR process by adding automated comments using GitHub Actions. This technique can be invaluable for including outputs from CI checks, reporting their status, and highlighting any errors – ultimately making your development process smoother and more efficien ..read more
Visit website
Step-by-Step to creating Azure Application Gateway for Containers using Terraform
Thomas Thornton
by Thomas Thornton
2M ago
Application Gateway for Containers (AGFC) is a newer and improved version of the earlier Application Gateway Ingress Controller (AGIC), which you might be familiar with if you’ve used Azure Kubernetes Service (AKS). This iteration advances Azure’s Application Load Balancing capabilities and adds a fresh offering to the Application Gateway product lineup. As I mentioned new and improved – it comes with some new features from its release including: Traffic splitting and weighted round-robin Mutual authentication with backend targets Enhanced performance, enabling near real-time updates for addi ..read more
Visit website
Mitigating Prompt Injections with Azure AI Prompt Shields and Terraform Deployment
Thomas Thornton
by Thomas Thornton
2M ago
Using Open AI, you have probably came across prompt injections – Azure recently released a new service called AI Prompt Shields. In this blog post we will look at how you can deploy Azure AI Prompt Shield to mitigate against prompt injections – this will be deployed using Terraform with an example of mitigating. What is prompt injections? Reported some time ago – https://research.nccgroup.com/2022/12/05/exploring-prompt-injection-attacks/ , prompt injections are a type of attack that manipulate the input into an AI model in a certain way that can allow the execution of arbitrary commands or al ..read more
Visit website
Boost GitHub Actions Efficiency with Path Filters: Only run when specific files or paths are updated
Thomas Thornton
by Thomas Thornton
2M ago
Within your GitHub Actions, you may be running a lot of workflows continuously during a merge to the main branch – a way to mitigate the possibility of them always running is to implement path filters. What are path filters? Path filters in GitHub Actions allow you specify when the workflow/action runs essentially, it helps you control when your actions run based on the location of the files or folders that have been modified. This means you can set up your workflows to only execute when changes are made to specific directories or files, which can be really useful for keeping your automation w ..read more
Visit website
Deploying MkDocs to GitHub Pages with GitHub Actions
Thomas Thornton
by Thomas Thornton
3M ago
In this blog post, I will show how you can deploy your MkDocs to GitHub Pages with GitHub Actions. What is MKDocs? MKDocs is a great little tool for creating a static site, used commonly to store repository documentation, drawings, some examples etc! MkDocs is a fast, simple and downright gorgeous static site generator that’s geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file. Start by reading the introductory tutorial, then check the User Guide for more ..read more
Visit website
Using Terraform tfvars for environment-agnostic deployments
Thomas Thornton
by Thomas Thornton
3M ago
In this blog post we will look at how you would use tfvars to deploy to multiple environments in Azure. Deploying Infrastructure as Code (IaC) to multiple environments, we want to keep scalability in mind along with the thought of removing duplication when possible. Managing infrastructure configurations across different environments can be challenging, this is where using .tfvars comes in and within this blog post I will show you why you using be using them, especially on a per environment basis. What are tfvars? Tfvars, short for “Terraform variables,” are an essential aspect of Terraform co ..read more
Visit website
Deploying a content filtering configuration in Azure OpenAI studio using Terraform and AzAPI
Thomas Thornton
by Thomas Thornton
3M ago
In this blog post, I’ll show you on how to set up a content filtering configuration in Azure OpenAI Studio and apply it to your OpenAI deployment entirely using Terraform. Since there isn’t a native Terraform resource available for content filtering configurations, I will be using azapi_resource to assist with this. The content filtering system in Azure OpenAI Service is designed to complement its core models. It operates by subjecting both the prompt and completion to a combination of classification models, which are geared towards identifying and stopping the generation of harmful content. T ..read more
Visit website

Follow Thomas Thornton on FeedSpot

Continue with Google
Continue with Apple
OR