azure-docs icon indicating copy to clipboard operation
azure-docs copied to clipboard

the command is not right in document: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-powershell#create-a-container

Open tfbubu111 opened this issue 3 years ago • 2 comments

[Enter feedback here] According to powershell command: https://docs.microsoft.com/en-us/powershell/module/az.containerinstance/new-azcontainergroup?view=azps-8.2.0, there is no parameter "image" in New-AzContainerGroup, but document suggests to create container group by command

New-AzContainerGroup -ResourceGroupName aci -Name mycontainer -Image mcr.microsoft.com/windows/servercore/iis:nanoserver -OsType Windows -DnsNameLabel aci-fiona-0811

and it returns error:
New-AzContainerGroup: Cannot process argument transformation on parameter 'ImageRegistryCredential'. Cannot convert value "mcr.microsoft.com/windows/servercore/iis:nanoserver" to type "Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210901.IImageRegistryCredential[]". Error: "Cannot convert the "mcr.microsoft.com/windows/servercore/iis:nanoserver" value of type "System.String" to type "Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210901.IImageRegistryCredential"."

please update the document correctly

Document Details

https://docs.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-powershell#create-a-container ⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

tfbubu111 avatar Aug 11 '22 03:08 tfbubu111

@tfbubu111 Thanks for the feedback! We will check and update the document as appropriate.

VikasPullagura-MSFT avatar Aug 11 '22 04:08 VikasPullagura-MSFT

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

Karishma-Tiwari-MSFT avatar Aug 17 '22 02:08 Karishma-Tiwari-MSFT

still not working https://docs.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-powershell#code-try-1

Tlamatini avatar Aug 30 '22 22:08 Tlamatini

Any update? This still isn't working.

Nisha318 avatar Jan 04 '23 19:01 Nisha318

I have a similar issue - Is this resolved?

mram0509 avatar Mar 09 '23 00:03 mram0509

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. Though the scope of our feedback channel here on GitHub covers specific documentation fixes, we can help redirect you to the right support channel to get an answer to your question: [reference to alternative product/service or community endpoint]. Because this issue does not relate to documentation, we are closing this issue. #please-close

tomvcassidy avatar Jul 17 '23 17:07 tomvcassidy