Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Blog posts : "MICROSOFT AZURE"

Configure CPU quota usage alerts for subscription using Azure Bicep templates

This article is a continuation of my previous post, where I deployed CPU quota usage alerts for a subscription using Azure ARM templates. In this post, I'll demonstrate how to deploy Action Groups and Subscription Quota Alerts for CPU usage using Bicep.

Compared to ARM templates, I find Bicep to …

Read more

Create CPU quota usage alerts for subscription using Azure ARM templates

This article is about Implementing of CPU Quota Usage Alert for Azure Subscription. As part of my recent assignment, I successfully created a CPU quota usage alert for an Azure subscription using Azure Resource Manager (ARM) templates. The deployment enables real-time monitoring of CPU quota usage, …

Read more

Terraform module Azure function app with private endpoint and storage account

terraform microsoft azure function app service plan storage account private endpoint virtual network vnet resource group virtual private link private dns zone configuration deployment.png

In this article I posting terraform configuration script to deploy and configure complete function app with private endpoint and related resources in Microsoft Azure. This is complete configuration script for function app with private endpoint. With this configuration code it creates all below l…

Read more

PowerShell create resources on Azure using Rest API with user account

Using client id (Service Principal) and client secret to connect Azure Rest API is fairly easy and simple. As I have shown in my earlier articles. I am using another way of using your organization Username of Password to connect to azure Rest API instead of client id and client secret. You generate …

Read more

Azure Rest API connect with Powershell and create resources

Powershell Microsoft Azure Rest API postman configuration automation application platform interface invoke-webrequest invoke-restmethod.png

I had a task to explore and deploy resources in Microsoft Azure using Rest API. Very good and detailed documentation is provided by Microsoft for Azure Rest API here https://learn.microsoft.com/en-us/rest/api/azure/

In this example I will use PowerShell to automate Azure Rest API and cre…

Read more

Using element function with count meta argument example Terraform Azure subnets

I had a task to deploy multiple subnets to a Azure Virtual Network (vNet) using Hashicorp Terraform HCL. I wanted to test and use element() function combination with count meta argument to do the simple POC with less code and automation. Here is snapshot of my Virtual Network's Subnets view in the p…

Read more

Azure Web App Containers Cannot perform credential operations for providers Microsoft.ContainerRegistry ad admin user is disabled, enable it

While creating a new resource Service Plan Web APP with Container, while choosing option Image Source from Azure Container Registry (ACR) and selecting docker image I was receiving error Cannot perform credential operations for /subscriptions/9e22xxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/vc…

Read more

DevOps Part 1.2 SCM Git - Create Virtual Network (vNET) in Microsoft Azure

In my earlier part of this DevOps series DevOps Part 1.1 SCM Git - Create Resource Group in Microsoft Azure, I created first Azure resource - an empty Resource Group. In this example I am going to create vNET (Virtual Network) in this resource group.

An essential part of your private network inf…

Read more

Ansible Azure An exception occurred during task execution. TypeError deprecated() got an unexpected keyword argument

After upgrading Ansible Azure plugin module, while running my old ansible scripts against Azure resources to change or get information I was receiving error of TypeError: deprecated() got an unexpected keyword argument. (My credentials are stored in the file location of vim ~/.azure/credentials

Read more

PowerShell How to find file and folders in Azure Storage Account Blobs and Containers

This script helps to find files and folders on Azure Storage Accounts blobs and containers.

There are two PowerShell variables I have mentioned, First Variable is $searchFile use file extension or names you want to search. Report are generated in file path mentioned under variable $exportCsv.

Read more

Create multiple Azure vnet (Virtual Network) using ansible

This is a second part of Deploy create Virtual Network vNET in Azure cloud using Ansible, in this part I am creating multiple vNets with single Ansible script. All the info and details related to new vNet added in separate vnet variable yml file in json format as shown below.

Azure Virtual network json ansible yaml mutliple vnets creation resources arm templates resource group address prefixes cidr location vnet name.jpg

Next in below …

Read more

Find and use Azure Marketplace VM images with Azure Az CLI

There is another way to Find and use Azure Marketplace VM images with Azure PowerShell. You can do the same task to fetch Azure VM information using is az cli. There are two common images UbuntuServer and MicrosoftWindowsServer. Here I will work with Ubuntu images to get information from az cli co…

Read more

Azure add create a Subnet to existing Virtual Network using PowerShell

This is second part of the earlier written article Create a Azure Virtual Network with Subnet using PowerShell. Here in this blog I will create subnet in already created Azure vNET (Virtual Network). I have defined Azure vNET and subnets in Powershell variables. I am creating a Azure vNET without a…

Read more

Remove Azure Virtual Network Subnet using PowerShell

This PowerShell script will help you to remove subnet from Microsoft Azure Virtual Network (vNET). You can follow my earlier articles regarding the another topic related to Azure networking here on Azure add create a Subnet to existing Virtual Network using PowerShell and  Create a Azure Virtual…

Read more

Ansible authenticate to Microsoft Azure using credential inside yaml file

Ansible authenticate to Microsoft Azure using credential profiles Part 1
Ansible authenticate to Microsoft Azure using credential profiles Part 2

This is continuation of  the authentication to azure with ansible parts. While working on Ansible AWX tower controller, I wanted to create profile, bu…

Read more

Ansible authenticate to Microsoft Azure using credential profiles Part 2

This part is continuation of Ansible authenticate to Microsoft Azure using credential profiles Part 1. Earlier I used automatic variables to use profile while executing ansible yaml script. But it is sometimes very inefficient, So inside the Ansible azure yaml code you can use profile parameter as…

Read more

Quickstart How to authenticate Ansible with Microsoft Azure

This article is first part of Deploy create Virtual Network vNET in Azure cloud using Ansible Here I am going to show multiple ways to authenticate Ansible with Microsoft Azure cloud. Very first method is very simple using azure az cli. Make sure you have installed azure cli application on linux wh…

Read more

Create a Azure Virtual Network with Subnet using PowerShell

Azure VNet (Virtual Network) is the essential element for your private network in the Azure Cloud. Virtual Network allows various kinds of Azure resources, such as Azure Virtual Machines (VM), to securely connect with each other, the internet, and on-premises networks. In this article I will be crea…

Read more

Deploy create Virtual Network vNET in Azure cloud using Ansible

This is ansible code example for deploying creating vNET (Virtual Network) on Microsoft Azure cloud. This is working basic ansible yaml/yaml script.

Below example shows how it is deployed using ansible-playbook command from the linux using ansible-playbook command.

Download this script here …

Read more

Azure PowerShell Get-AzStorageShare Could not get the storage context

While working with Azure Storage Account Shares report, while running below Azure az PowerShell command to get shares list, it was throwing error.

Get-AzStorageShare -Name testbackup
Get-AzStorageShare: could not get the storage context. Please pass in a storage context or set the current stor…

Read more

20 blog posts

Blog Search

Page Views

12085221

Follow me on Blogarama