Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resourcegroup-append feature is case sensitive #911

Closed
LucasYao93 opened this issue Feb 16, 2022 · 1 comment
Closed

resourcegroup-append feature is case sensitive #911

LucasYao93 opened this issue Feb 16, 2022 · 1 comment

Comments

@LucasYao93
Copy link
Contributor

Description

when use resourcegroup-append to get resource group name from resource id. Can not get it if the resource id format as below:

"/subscriptions/xxxxxxxxx/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/useids-pwsh-t01"
PS D:\> Get-AzUserAssignedIdentity -ResourceGroupName lucas-rg-test -Name useids-pwsh-t01

Location Name            ResourceGroupName
-------- ----            -----------------
eastus   useids-pwsh-t01

PS D:\> Get-AzUserAssignedIdentity -ResourceGroupName lucas-rg-test -Name useids-pwsh-t01 | fl

ClientId          : xxxxxxxxxxxxxx
Id                : /subscriptions/xxxxxxxxxxxxxxxxxx/resourcegroups/lucas-rg-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/useids-pwsh-t01
Location          : eastus
Name              : useids-pwsh-t01
PrincipalId       : xxxxxxxxxxxxxxxxxxxx
ResourceGroupName :
Tag               : {
                    }
TenantId          : xxxxxxxxxxxxxxx
Type              : Microsoft.ManagedIdentity/userAssignedIdentities

Autorest version

 Type       Extension Name                           Version      Location
 core       @autorest/core                           3.7.5        C:\Users\v-diya\.autorest\@autorest_core@3.7.5
 extension  @autorest/modelerfour                    4.15.414     C:\Users\v-diya\.autorest\@autorest_modelerfour@4.15.414
 extension  @autorest/powershell                     3.0.472      C:\Users\v-diya\.autorest\@autorest_powershell@3.0.472
@dolauli
Copy link
Contributor

dolauli commented Feb 24, 2022

Should have been fixed in #894.

@dolauli dolauli closed this as completed Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants