azure-docs
azure-docs copied to clipboard
CLI and Powershell Commands Out-dated
The powershel and cli commands for this turorial are out-dated. They dont work and they need to be updated.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: ab030f18-c377-42e4-02ab-f9fda73253ad
- Version Independent ID: 2ac64eb4-0de4-6538-d97d-40ddb5ac5060
- Content: Quickstart - Deploy Docker container to container instance - PowerShell - Azure Container Instances
- Content Source: articles/container-instances/container-instances-quickstart-powershell.md
- Service: container-instances
- GitHub Login: @macolso
- Microsoft Alias: macolso
@adrianakbari , thank you for your feedback. We'll review this and get back to you shortly!
Can you please share specifically which commands are you seeing issues with? Thanks.
try the first command for creating the container group:
PS C:\Users\Gebruiker> New-AzContainerGroup -ResourceGroupName azurelearn -name myContainer -image mcr.microsoft.com/windows/servercore/iis:nanoserver -Ostype Windows -Dnsnamelabel aci-demo-win 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"." At line:1 char:77
- ... iner -image mcr.microsoft.com/windows/servercore/iis:nanoserver -Osty ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidData: (:) [New-AzContainerGroup], ParameterBindingArgumentTransformationException
- FullyQualifiedErrorId : ParameterArgumentTransformationError,New-AzContainerGroup
@adrianakbari and @Karishma-Tiwari-MSFT, I'm running into the same issue. It's the first command in the PowerShell example:
https://docs.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-powershell#create-a-container
New-AzContainerGroup -ResourceGroupName myResourceGroup -Name mycontainer -Image mcr.microsoft.com/windows/servercore/iis:nanoserver -OsType Windows -DnsNameLabel aci-demo-win
Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.
still not working https://docs.microsoft.com/en-us/azure/container-instances/container-instances-quickstart-powershell#code-try-1
I can confirm it still isn't working, just trying out this tutorial. I get the same exception as above using the Cloud Shell PowerShell.
Can confirm that this is still an issue, as I get the same error following the tutorial and using Cloud Shell
11 months on - still not working, even though article claims to have been updated in June.
they dot't fix this problem on today..
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
Lol . I'm still facing this problem. ))) one year...