I would like to create ACI using the following command in PowerShell:
New-AzContainerGroup -ResourceGroupName acr -Name benighilmohamed ` -Image alpine -OsType Linux ` -Command "echo 'Hello from an Azure container instance triggered by an Azure function'" ` -RestartPolicy Never But I get the following error :
Cannot process argument transformation on parameter 'ImageRegistryCredential'. Cannot convert value "alpine" to type "Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]".
Error: "Cannot convert the "alpine" value of type "System.String" to type "Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential"
I don't see exactly what is going on.
New-AzContainerGroupdoesn't have an-Imageparameter, perhaps you're confusing the command withNew-AzContainerInstanceObject?