-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add Project and Cluster cmdlets to Az.MongoDB #29768
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
Open
sharmaanuj334
wants to merge
8
commits into
Azure:main
Choose a base branch
from
sharmaanuj334:feature/mongodb-projects-clusters
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
0a0e167
Add Project and Cluster cmdlets to Az.MongoDB
sharmaanuj334 0faae46
Fix Limit-AzMongoDBProject example output to match recording
sharmaanuj334 033f60e
Replace skipped Remove tests with -WhatIf smoke tests
sharmaanuj334 3edbd9e
Add empty recordings and update Remove examples to use -WhatIf
sharmaanuj334 5aeecc7
Fix backslash in custom/README.md markdown link
sharmaanuj334 b7dd92d
Fix backslashes in READMEs and use correct env vars in Remove tests
sharmaanuj334 d539dfc
Update docs/ Remove examples to use -WhatIf consistently
sharmaanuj334 de0683e
Fix Module Guid in docs/Az.MongoDB.md to match manifest
sharmaanuj334 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects-clusters.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| { | ||
| "resourceType": "organizations/projects/clusters", | ||
| "apiVersion": "2026-03-01-preview", | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.mongodb" | ||
| }, | ||
| "commands": [ | ||
| { | ||
| "name": "Get-AzMongoDBCluster", | ||
| "description": "Get a Cluster", | ||
| "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}/projects/{projectName}/clusters/{clusterName}", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.mongodb/get-azmongodbcluster" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-Name <String>", | ||
| "-OrganizationName <String>", | ||
| "-ProjectName <String>", | ||
| "-ResourceGroupName <String>", | ||
| "[-SubscriptionId <String[]>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Get a Cluster", | ||
| "parameters": [ | ||
| { | ||
| "name": "-Name", | ||
| "value": "[Path.clusterName]" | ||
| }, | ||
| { | ||
| "name": "-OrganizationName", | ||
| "value": "[Path.organizationName]" | ||
| }, | ||
| { | ||
| "name": "-ProjectName", | ||
| "value": "[Path.projectName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Remove-AzMongoDBCluster", | ||
| "description": "Delete a Cluster", | ||
| "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}/projects/{projectName}/clusters/{clusterName}", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.mongodb/remove-azmongodbcluster" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-Name <String>", | ||
| "-OrganizationName <String>", | ||
| "-ProjectName <String>", | ||
| "-ResourceGroupName <String>", | ||
| "[-SubscriptionId <String>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Delete a Cluster", | ||
| "parameters": [ | ||
| { | ||
| "name": "-Name", | ||
| "value": "[Path.clusterName]" | ||
| }, | ||
| { | ||
| "name": "-OrganizationName", | ||
| "value": "[Path.organizationName]" | ||
| }, | ||
| { | ||
| "name": "-ProjectName", | ||
| "value": "[Path.projectName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
138 changes: 138 additions & 0 deletions
138
src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,138 @@ | ||
| { | ||
| "resourceType": "organizations/projects", | ||
| "apiVersion": "2026-03-01-preview", | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.mongodb" | ||
| }, | ||
| "commands": [ | ||
| { | ||
| "name": "Get-AzMongoDBProject", | ||
| "description": "Get a Project", | ||
| "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}/projects/{projectName}", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.mongodb/get-azmongodbproject" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-Name <String>", | ||
| "-OrganizationName <String>", | ||
| "-ResourceGroupName <String>", | ||
| "[-SubscriptionId <String[]>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Get a Project", | ||
| "parameters": [ | ||
| { | ||
| "name": "-Name", | ||
| "value": "[Path.projectName]" | ||
| }, | ||
| { | ||
| "name": "-OrganizationName", | ||
| "value": "[Path.organizationName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Limit-AzMongoDBProject", | ||
| "description": "Check if tier limit is reached for the project.", | ||
| "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}/projects/{projectName}/tierLimitReached", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.mongodb/limit-azmongodbproject" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-Name <String>", | ||
| "-OrganizationName <String>", | ||
| "-ResourceGroupName <String>", | ||
| "[-SubscriptionId <String>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Check if tier limit is reached for the project.", | ||
| "parameters": [ | ||
| { | ||
| "name": "-Name", | ||
| "value": "[Path.projectName]" | ||
| }, | ||
| { | ||
| "name": "-OrganizationName", | ||
| "value": "[Path.organizationName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "name": "Remove-AzMongoDBProject", | ||
| "description": "Delete a Project", | ||
| "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MongoDB.Atlas/organizations/{organizationName}/projects/{projectName}", | ||
| "help": { | ||
| "learnMore": { | ||
| "url": "https://learn.microsoft.com/powershell/module/az.mongodb/remove-azmongodbproject" | ||
| }, | ||
| "parameterSets": [ | ||
| { | ||
| "parameters": [ | ||
| "-Name <String>", | ||
| "-OrganizationName <String>", | ||
| "-ResourceGroupName <String>", | ||
| "[-SubscriptionId <String>]" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "examples": [ | ||
| { | ||
| "description": "Delete a Project", | ||
| "parameters": [ | ||
| { | ||
| "name": "-Name", | ||
| "value": "[Path.projectName]" | ||
| }, | ||
| { | ||
| "name": "-OrganizationName", | ||
| "value": "[Path.organizationName]" | ||
| }, | ||
| { | ||
| "name": "-ResourceGroupName", | ||
| "value": "[Path.resourceGroupName]" | ||
| }, | ||
| { | ||
| "name": "-SubscriptionId", | ||
| "value": "[Path.subscriptionId]" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } |
2 changes: 1 addition & 1 deletion
2
src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is expected and consistent with every other AutoRest module in the repo. For example,
Az.Cdnhasmodule-version: 0.1.0in its AutoRest README butModuleVersion = '6.0.2'in the .psd1. Themodule-versionin the AutoRest configuration is a code-generation metadata field, not the shipped module version. These are intentionally decoupled.