Question:
You are tasked with deploying a legacy application written in .NET Framework on Azure. This application's container image is stored in an Azure Container Registry with the address myAcrRegistry.azurecr.io/myNetApp:latest.
You need to ensure that the application is properly isolated and manageable within Azure's infrastructure. To do this, write the necessary PowerShell commands to host this application in a container group named "myContainerGroup" using Azure Container Instances (ACI).
Answer:
Because the application needs to be isolated, you need to create a new resource group.
Because .Net Framework is specific to Windows only, you'll need -OsType "Windows"
# Create a new resource group "myResourceGroup"
New-AzResourceGroup -Name "myResourceGroup" -Location "West US"
# Create a new container group "myContainerGroup"
New-AzContainerGroup -ResourceGroupName "myResourceGroup" -Name "myContainerGroup" -Image "myAcrRegistry.azurecr.io/myNetApp:latest" -OsType "Windows"