<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Aks_bash</id>
	<title>Aks bash - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Aks_bash"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Aks_bash&amp;action=history"/>
	<updated>2026-04-24T16:03:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Aks_bash&amp;diff=5279&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` #!/bin/bash  # Variables RESOURCE_GROUP=&quot;myResourceGroup&quot; AKS_CLUSTER_NAME=&quot;myAKSCluster&quot; LOCATION=&quot;eastus&quot; VNET_NAME=&quot;myVNet&quot; SUBNET_NAME=&quot;mySubnet&quot;  # Create resource gr...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Aks_bash&amp;diff=5279&amp;oldid=prev"/>
		<updated>2024-06-03T23:30:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` #!/bin/bash  # Variables RESOURCE_GROUP=&amp;quot;myResourceGroup&amp;quot; AKS_CLUSTER_NAME=&amp;quot;myAKSCluster&amp;quot; LOCATION=&amp;quot;eastus&amp;quot; VNET_NAME=&amp;quot;myVNet&amp;quot; SUBNET_NAME=&amp;quot;mySubnet&amp;quot;  # Create resource gr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Variables&lt;br /&gt;
RESOURCE_GROUP=&amp;quot;myResourceGroup&amp;quot;&lt;br /&gt;
AKS_CLUSTER_NAME=&amp;quot;myAKSCluster&amp;quot;&lt;br /&gt;
LOCATION=&amp;quot;eastus&amp;quot;&lt;br /&gt;
VNET_NAME=&amp;quot;myVNet&amp;quot;&lt;br /&gt;
SUBNET_NAME=&amp;quot;mySubnet&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Create resource group (if it doesn't exist)&lt;br /&gt;
az group create --name $RESOURCE_GROUP --location $LOCATION&lt;br /&gt;
&lt;br /&gt;
# Get the Virtual Network ID&lt;br /&gt;
VNET_ID=$(az network vnet show --resource-group $RESOURCE_GROUP --name $VNET_NAME --query id --output tsv)&lt;br /&gt;
&lt;br /&gt;
# Get the Subnet ID&lt;br /&gt;
SUBNET_ID=$(az network vnet subnet show --resource-group $RESOURCE_GROUP --vnet-name $VNET_NAME --name $SUBNET_NAME --query id --output tsv)&lt;br /&gt;
&lt;br /&gt;
# Create AKS cluster with Calico network policy and private cluster option&lt;br /&gt;
az aks create \&lt;br /&gt;
    --resource-group $RESOURCE_GROUP \&lt;br /&gt;
    --name $AKS_CLUSTER_NAME \&lt;br /&gt;
    --location $LOCATION \&lt;br /&gt;
    --enable-managed-identity \&lt;br /&gt;
    --vnet-subnet-id $SUBNET_ID \&lt;br /&gt;
    --network-plugin azure \&lt;br /&gt;
    --network-policy calico \&lt;br /&gt;
    --node-count 3 \&lt;br /&gt;
    --vnet-subnet-id $SUBNET_ID \&lt;br /&gt;
    --generate-ssh-keys \&lt;br /&gt;
    --enable-private-cluster&lt;br /&gt;
&lt;br /&gt;
# Get the credentials for the new AKS cluster&lt;br /&gt;
az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_CLUSTER_NAME&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;AKS cluster $AKS_CLUSTER_NAME created with Calico network policy and connected to VNet $VNET_NAME in subnet $SUBNET_NAME. The cluster is private.&amp;quot;&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>