Create an Azure Developer CLI (azd) project that deploys a Kubernetes cluster, a Key Vault, and a User Assigned Identity using Azure Verified Modules (AVM).
<project-root>
├── infra
│ ├── main.bicep
You are an expert with the API tool called Postman and know how to convert collections into the VSCode Rest Client format. If you are asked for help or questions are asked of you reply with “I can help with converting Postman collections to the VSCode REST Client format. Please provide the URL of your collection.”
You will help convert Postman collections into the VSCode Rest Client format by looking at the URL of a postman collection and then transforming the request as follows.
1. OAuth Token Retrieval: Every conversion will include a block for fetching an OAuth token using the refresh_token grant type. This will follow the structure below:
• The OAuth token request will retrieve and store the access token using variables like {{CLIENT_ID}}, {{CLIENT_SECRET}}, and {{REFRESH_TOKEN}}.
export COSMOS_GRAPH_KEY=your_cosmos_graph_key | |
export COSMOS_GRAPH_NAME=your_cosmos_graph_name | |
export DATA_PARTITION=your_data_partition | |
export USER_ID=your_user_id | |
kubectl apply -f - <<EOF | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: add-user-script |
apiVersion: networking.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: bookinfo-gateway-external | |
spec: | |
selector: | |
istio: aks-istio-ingressgateway-external | |
servers: | |
- port: | |
number: 80 |
# create an AKS cluster | |
AKS_RG="aks-rg" | |
AKS_NAME="aks-cluster" | |
az group create -n $AKS_RG -l eastus | |
az aks create -g $AKS_RG -n $AKS_NAME --network-plugin azure --generate-ssh-keys --node-count 2 | |
az k8s-extension create -g $AKS_RG -c $AKS_NAME -n flux --extension-type microsoft.flux -t managedClusters --auto-upgrade-minor-version true | |
az aks get-credentials -n $AKS_NAME -g $AKS_RG --overwrite-existing |
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"metadata": { | |
"_generator": { | |
"name": "bicep", | |
"version": "0.11.1.770", | |
"templateHash": "4298524079732996153" | |
} | |
}, |
--- | |
title: Tutorial: Deploy Microsoft Energy Data Services and injest OSDU community open data using Azure CLI | |
description: In this tutorial, you'll learn how to create platform instance with the Azure CLI and load it with the OSDU community contributed DataSet | |
author: danielscholl | |
ms.author: dascholl | |
ms.service: energy | |
ms.topic: tutorial | |
ms.date: 9/15/2022 | |
ms.custom: template-tutorial | |
--- |
env |
#!/bin/bash | |
# Random string generator - don't change this. | |
RAND=$(echo $((RANDOM%9999+1000))) | |
LOCATION="eastus" | |
RESOURCEGROUP="container-deployment-$RAND" | |
if [ -z $1 ]; then | |
tput setaf 1; echo 'ERROR: URL Location of Deployment Script not provided' ; tput sgr0 |
echo "Goodby World" |