<p>I have created an instance of Azure Kubernetes Service (AKS) and have discovered that apart from the resource group I created the AKS instance in, two other resource groups were created for me. Here is what my resource groups and their contents looks like:</p>

<ul>
<li><code>MyResourceGroup-Production</code>

<ul>
<li><code>MyAKSInstance</code> - Azure Kubernetes Service (AKS)</li>
</ul></li>
<li><code>DefaultResourceGroup-WEU</code>

<ul>
<li><code>ContainerInsights(MyAKSInstance)</code> - Solution</li>
<li><code>MyAKSInstance</code> - Log Analytics</li>
</ul></li>
<li><code>MC_MyResourceGroup-Production_MyAKSInstance_westeurope</code>

<ul>
<li><code>agentpool-availabilitySet-36219400</code> - Availability set</li>
<li><code>aks-agentpool-36219400-0</code> - Virtual machine</li>
<li><code>aks-agentpool-36219400-0_OsDisk_1_09469b24b1ff4526bcfd5d00840cfbbc</code> - Disk</li>
<li><code>aks-agentpool-36219400-nic-0</code> - Network interface</li>
<li><code>aks-agentpool-36219400-nsg</code> - Network security group</li>
<li><code>aks-agentpool-36219400-routetable</code> - Route table</li>
<li><code>aks-vnet-36219400</code> - Virtual network</li>
</ul></li>
</ul>

<p>I have a few questions about these two separate resource groups:</p>

<ol>
<li>Can I rename the resource groups or control how they are named from my ARM template in the first place at the time of creation?</li>
<li>Can I move the contents of <code>DefaultResourceGroup-WEU</code> into <code>MyResourceGroup-Production</code>?</li>
<li>Can I safely edit their settings?</li>
<li>The <code>DefaultResourceGroup-WEU</code> seems to be created if you enable Log Analytics. Can I use this instance for accepting logs from other instances?</li>
</ol>

<h2>UPDATE</h2>

<p>I managed to pre-create a log analytics resource and use that for Kubernetes. However, there is a third resource that I'm having trouble moving into my resource group:</p>

<pre><code>      {
        "type": "Microsoft.Resources/deployments",
        "name": "SolutionDeployment",
        "apiVersion": "2017-05-10",
        "resourceGroup": "[split(parameters('omsWorkspaceId'),'/')[4]]",
        "subscriptionId": "[split(parameters('omsWorkspaceId'),'/')[2]]",
        "properties": {
            "mode": "Incremental",
            "template": {
                "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
                "contentVersion": "1.0.0.0",
                "parameters": {},
                "variables": {},
                "resources": [
                    {
                        "apiVersion": "2015-11-01-preview",
                        "type": "Microsoft.OperationsManagement/solutions",
                        "location": "[parameters('workspaceRegion')]",
                        "name": "[concat('ContainerInsights', '(', split(parameters('omsWorkspaceId'),'/')[8], ')')]",
                        "properties": {
                            "workspaceResourceId": "[parameters('omsWorkspaceId')]"
                        },
                        "plan": {
                            "name": "[concat('ContainerInsights', '(', split(parameters('omsWorkspaceId'),'/')[8], ')')]",
                            "product": "[concat('OMSGallery/', 'ContainerInsights')]",
                            "promotionCode": "",
                            "publisher": "Microsoft"
                        }
                    }
                ]
            }
        },
        "dependsOn": []
    }
</code></pre>

<ol>
<li>No, you cant.</li>
<li>Yes, but I'd advice against it. I'd advice remove the health metrics from AKS, delete that resource group, create OMS in the same resource group with AKS (or wherever you need your OMS to be) and then use that OMS. it will just create container solution for you in the same resource group where oms is in.</li>
<li>To extent, if you break anything AKS wont fix it</li>
<li>Yes you can, but you better rework it like I mention in point 2.</li>
</ol>
