Closed w3bward closed 2 years ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.
Author: | w3bward |
---|---|
Assignees: | - |
Labels: | `ARM`, `Service Attention`, `customer-reported`, `question` |
Milestone: | - |
Potential duplicate of #11248.
Hello @w3bward @pfeileon Apologies for the delayed response. I see that this issue is opened a long time ago and no further activity had taken place. So wanted to check if you are still looking for assistance on this query? Please let us know.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Please also do visit Microsoft Q&A the home for technical questions and answers at Microsoft.
Description
Get-AzResource
returns nothing when a wildcard is specified in the name parameter (e.g."Environment-*"
, and the-ExpandProperties
switch is applied. If I also use the-ResourceType
parameter, it actually throws an error that would seem to suggest that when the-ExpandProperties
switch is applied, it is trying to use the wildcard as a literal part of the name.Using the same value for the name parameter without the
-ExpandProperties
switch works as expected, and returns the expected results both with and without the-ResourceType
parameter applied.Steps to reproduce
Returns nothing:
Throws an error:
Works as expected:
Environment data
Module versions
Debug output
Error output