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

✨ add ability to fetch ms365 application by id #5094

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vjeffrey
Copy link
Contributor

@vjeffrey vjeffrey commented Jan 15, 2025

allow users to fetch by name or id

 microsoft.application(id: "2efd0330-112c-4971-ab20-eaa54c.....") { * }
microsoft.application(name: "nametest") { * }

Copy link
Contributor

Test Results

3 208 tests  ±0   3 204 ✅ ±0   1m 55s ⏱️ +7s
  379 suites ±0       4 💤 ±0 
   29 files   ±0       0 ❌ ±0 

Results for commit 4943966. ± Comparison against base commit bd6c42f.

}
name := raw.Value.(string)
if appId == "" {
raw, ok := args["id"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should id take precedence if both are specified

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right now we're assuming that only one will be provided/are rejecting if more than one provided. but ya, if we got both it would be better it would be better to use id

@jaym
Copy link
Contributor

jaym commented Jan 15, 2025

should there be changes to the resource definition file?

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

Successfully merging this pull request may close these issues.

2 participants