Closed nickstenning closed 2 years ago
@jluk @yangl900 would you mind taking a look at this issue?
@cormacpayne I've assigned @dkkapur given neither Anders nor myself work on ACI anymore
Hi @nickstenning ,
Sorry for late response. I noticed you was using Az.ContainerInstance 1.0.1.
From version 2.0.0, we don't support running Remove-AzContainerGroup -ResourceId <ResourceId>
. If you want to do similar thing like that, please upgrade Az.ContainerInstance to its latest version and use:
PS C:\Users\bez> $c = New-Object -TypeName Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ContainerInstanceIdentity
PS C:\Users\bez> $c.Id = $containerGroup.Id
PS C:\Users\bez> Remove-AzContainerGroup -InputObject $c
Please let me know if you still have issue on latest Az.ContainerInstance
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
Description
Running
Remove-AzContainerGroup
with the-ResourceId
parameter results in a deserialization error when handling container groups with user-assigned identities.Steps to reproduce
Remove-AzContainerGroup -ResourceId <ResourceId>
against a container group with an associated user-assigned identity.Environment data
Module versions
Debug output
I've
<redacted>
some information in what follows.Error output