Azure API Management: Chicken or the egg dilemma.

Sometimes in your IaC, you may need to get the API definitions from the backend AppService. At the same time, you may need to restrict access to the AppService based on the source IP address:

Create two modules:[code_snippet_source id=1 line_numbers=true]

module “apimanagementapi-0000” {
….


data “http” “swagger” {
  url = “${var.service_url}/swagger/v1/swagger.json”
   request_headers = {
    Accept = “application/json”
  }
}

resource “azurerm_api_management_api” “api” {
  import{
    content_format = “openapi+json”
    content_value = data.http.swagger.body
  }



How to log sudoers

vi /root/.bashrc

vi /etc/rsyslog.conf

Running screen with su

/etc/rc.local

/home/mdt/project1/scripts/run_workers.sh

 

Hyper-V Replicate all VMs

 

Installing Apache Ambri on Ubuntu 14.04

If you have error like this:

 

You have to edit :

 

And change version number:

 

ambri_errd

EMC Recover Point – how to recreate repository volume

We have to recreate repository volume of our RP but I could not find any guidance from EMC site. So I’m documenting my steps here for further usage:

Procedure overview:
On EMC storage:

  1. Create about 6-8 GB LUN.
  2. Present that LUN to storage group of RP nodes.

On RP appliances:
On last cluster member:

  1. Detach RPA from cluster
  2. Format repository volume
  3. Reboot
  4. Attach RPA to cluster

On each subsequent appliance:

  1. Detach RPA from cluster
  2. Select repository volume
  3. Reboot
  4. Attach RPA to cluster

This is a transcript of console sessions:
Continue reading “EMC Recover Point – how to recreate repository volume”

VLAN trunking in Hyper-V. Virtual switch to VM

1.  get interface

2. set VLANs