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

CLI and Powershell Commands Out-dated

Open adrianakbari opened this issue 3 years ago • 10 comments

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.

adrianakbari avatar Dec 25 '21 10:12 adrianakbari

@adrianakbari , thank you for your feedback. We'll review this and get back to you shortly!

GitaraniSharma-MSFT avatar Dec 25 '21 14:12 GitaraniSharma-MSFT

Can you please share specifically which commands are you seeing issues with? Thanks.

Karishma-Tiwari-MSFT avatar Jan 04 '22 04:01 Karishma-Tiwari-MSFT

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 avatar Jan 05 '22 19:01 adrianakbari

@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

image

kobulloc-MSFT avatar Jan 09 '22 02:01 kobulloc-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 Jan 11 '22 12:01 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

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.

TalllPaul avatar Sep 01 '22 07:09 TalllPaul

Can confirm that this is still an issue, as I get the same error following the tutorial and using Cloud Shell

AnkeDubois-Ace avatar Sep 27 '22 08:09 AnkeDubois-Ace

11 months on - still not working, even though article claims to have been updated in June.

robgilliam avatar Nov 26 '22 10:11 robgilliam

they dot't fix this problem on today..

vlvksbdof123 avatar Dec 16 '22 08:12 vlvksbdof123

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

Lol . I'm still facing this problem. ))) one year...

armanit93 avatar Aug 10 '23 00:08 armanit93