Menu

Virtual Geek

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

Blog posts : "MICROSOFT AZURE"

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

Install the Microsoft Azure CLI on Ubuntu Linux

While working on one of the client's project I wanted to install and use Microsoft Azure-cli to manage Azure cloud on ubuntu (Get Started: Configure Ansible for Azure Cloud Infrastructure). This is step by step guide, First step I am updating and upgrading ubuntu system using apt-get. 

Microsoft Azure azure-cli az cli installation on linux sudo su - sudo apt-get update upgrade autoremove azure cloud automation.png

vj…

Read more

Deploy Native SFTP (Secure FTP) in Storage Account | Microsoft Azure

I was working with a software product based startup client, They wanted to have SFTP server where their customer will upload logs. Here they didn't want to host a FTP solution On-Prem or in Virtual Machine. For this design, we chose PAAS service available on Microsoft Azure Cloud. There is a option …

Read more

Gather Azure Virtual Network inventory information using PowerShell

I am huge fan of PowerShell when gathering inventory report information. Before disabling few of my subscriptions in my Azure accounts, I wanted to gather Virtual Network inventory in the CSV file so It can be used later to see the information quickly to share in table format. Below is the screensho…

Read more

Microsoft Azure PowerShell cmdlet 'this.Client.SubscriptionId' cannot be null

While working on one of my expired and disabled Microsoft Azure subscription with PowerShell, I was receiving error (Get-AzVirtualNetwork: 'this.Client.SubscriptionId' cannot be null) when trying to get information from Azure Virtual Network. Although I was receiving error for all the resources when…

Read more

Terraform manage similar resources with for_each loop inside modules

After working on few of the Azure Terraform (Infrastructure as code) projects, I found I had to deploy same resource again and again, instead of defining same resource manually, I can use for_each loop to deploy resources smartly inside module block. In this example I am going to deploy Azure Virtu…

Read more

Microsoft Azure Virtual WAN Part 7 - Configure security configuration | Route traffic to your secured hub | Test connectivity

Microsoft vWAN Azure firewall virtual wan virtual hub virtual network connections vnet subnet virtual machine vm vnet peering hub to hub connectivity powershell template creation routing connectivity check vm virtual machines.png

This is final and last article of vWAN configuration series. In this article I will be configuring Hub Security configuration - Routing on the the Virtual Hub and testing connectivity between Azure Virtual Machines between the different vNETs and across the region. 

Microsoft Azure Virtual…

Read more

Microsoft Azure Virtual WAN Part 6 - Creating and configuring Azure Firewall Policies

In the earlier article I created few Virtual Machines on the Azure. Below are the few screenshots of Virtual Machines networking configuration with location and Private Ip address information which I will require to configure in Azure firewall policies to filter traffic in next few steps.

Microso…

Read more

20 blog posts

Blog Search

Page Views

11240295

Follow me on Blogarama