From 0a0e1677d2abebfd62a2f2827ad0f72e3476a2e9 Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Thu, 25 Jun 2026 20:57:54 +0530 Subject: [PATCH 1/8] Add Project and Cluster cmdlets to Az.MongoDB --- .../Properties/AssemblyInfo.cs | 8 +- src/MongoDB/MongoDB.Autorest/README.md | 7 +- .../organizations-projects-clusters.json | 105 ++++++ .../MongoDB.Atlas/organizations-projects.json | 138 +++++++ .../UX/MongoDB.Atlas/organizations.json | 2 +- .../custom/Az.MongoDB.custom.psm1 | 4 +- src/MongoDB/MongoDB.Autorest/custom/README.md | 8 +- .../MongoDB.Autorest/docs/Az.MongoDB.md | 26 +- .../docs/Get-AzMongoDBCluster.md | 257 +++++++++++++ .../docs/Get-AzMongoDBProject.md | 208 +++++++++++ .../Get-AzMongoDBProjectClusterTierRegion.md | 175 +++++++++ .../docs/Limit-AzMongoDBProject.md | 208 +++++++++++ .../docs/New-AzMongoDBCluster.md | 352 ++++++++++++++++++ .../docs/New-AzMongoDBProject.md | 273 ++++++++++++++ src/MongoDB/MongoDB.Autorest/docs/README.md | 4 +- .../docs/Remove-AzMongoDBCluster.md | 283 ++++++++++++++ .../docs/Remove-AzMongoDBProject.md | 247 ++++++++++++ .../examples/Get-AzMongoDBCluster.md | 53 +++ .../examples/Get-AzMongoDBProject.md | 40 ++ .../Get-AzMongoDBProjectClusterTierRegion.md | 24 ++ .../examples/Limit-AzMongoDBProject.md | 13 + .../examples/New-AzMongoDBCluster.md | 33 ++ .../examples/New-AzMongoDBProject.md | 24 ++ .../examples/Remove-AzMongoDBCluster.md | 6 + .../examples/Remove-AzMongoDBProject.md | 6 + .../MongoDB.Autorest/generate-info.json | 2 +- .../MongoDB.Autorest/resources/README.md | 2 +- .../test/Get-AzMongoDBCluster.Recording.json | 98 +++++ .../test/Get-AzMongoDBCluster.Tests.ps1 | 45 +++ .../test/Get-AzMongoDBProject.Recording.json | 98 +++++ .../test/Get-AzMongoDBProject.Tests.ps1 | 40 ++ ...oDBProjectClusterTierRegion.Recording.json | 50 +++ ...zMongoDBProjectClusterTierRegion.Tests.ps1 | 26 ++ .../Limit-AzMongoDBProject.Recording.json | 50 +++ .../test/Limit-AzMongoDBProject.Tests.ps1 | 33 ++ .../test/New-AzMongoDBCluster.Recording.json | 324 ++++++++++++++++ .../test/New-AzMongoDBCluster.Tests.ps1 | 45 +++ .../test/New-AzMongoDBProject.Recording.json | 141 +++++++ .../test/New-AzMongoDBProject.Tests.ps1 | 37 ++ src/MongoDB/MongoDB.Autorest/test/README.md | 2 +- .../test/Remove-AzMongoDBCluster.Tests.ps1 | 33 ++ .../test/Remove-AzMongoDBProject.Tests.ps1 | 29 ++ src/MongoDB/MongoDB.Autorest/test/env.json | 31 +- src/MongoDB/MongoDB.Autorest/test/utils.ps1 | 12 + src/MongoDB/MongoDB.sln | 28 +- src/MongoDB/MongoDB/Az.MongoDB.psd1 | 20 +- src/MongoDB/MongoDB/ChangeLog.md | 4 + src/MongoDB/MongoDB/help/Az.MongoDB.md | 26 +- .../MongoDB/help/Get-AzMongoDBCluster.md | 259 +++++++++++++ .../MongoDB/help/Get-AzMongoDBOrganization.md | 6 +- .../MongoDB/help/Get-AzMongoDBProject.md | 209 +++++++++++ .../Get-AzMongoDBProjectClusterTierRegion.md | 174 +++++++++ .../MongoDB/help/Limit-AzMongoDBProject.md | 208 +++++++++++ .../MongoDB/help/New-AzMongoDBCluster.md | 352 ++++++++++++++++++ .../MongoDB/help/New-AzMongoDBOrganization.md | 15 +- .../MongoDB/help/New-AzMongoDBProject.md | 272 ++++++++++++++ .../MongoDB/help/Remove-AzMongoDBCluster.md | 283 ++++++++++++++ .../help/Remove-AzMongoDBOrganization.md | 3 +- .../MongoDB/help/Remove-AzMongoDBProject.md | 246 ++++++++++++ 59 files changed, 5646 insertions(+), 61 deletions(-) create mode 100644 src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects-clusters.json create mode 100644 src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects.json create mode 100644 src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBProjectClusterTierRegion.md create mode 100644 src/MongoDB/MongoDB.Autorest/docs/Limit-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB.Autorest/docs/New-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB.Autorest/docs/New-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBProjectClusterTierRegion.md create mode 100644 src/MongoDB/MongoDB.Autorest/examples/Limit-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB.Autorest/examples/New-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB.Autorest/examples/New-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBCluster.Recording.json create mode 100644 src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBCluster.Tests.ps1 create mode 100644 src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProject.Recording.json create mode 100644 src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProject.Tests.ps1 create mode 100644 src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProjectClusterTierRegion.Recording.json create mode 100644 src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProjectClusterTierRegion.Tests.ps1 create mode 100644 src/MongoDB/MongoDB.Autorest/test/Limit-AzMongoDBProject.Recording.json create mode 100644 src/MongoDB/MongoDB.Autorest/test/Limit-AzMongoDBProject.Tests.ps1 create mode 100644 src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBCluster.Recording.json create mode 100644 src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBCluster.Tests.ps1 create mode 100644 src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBProject.Recording.json create mode 100644 src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBProject.Tests.ps1 create mode 100644 src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 create mode 100644 src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 create mode 100644 src/MongoDB/MongoDB/help/Get-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB/help/Get-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB/help/Get-AzMongoDBProjectClusterTierRegion.md create mode 100644 src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB/help/New-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB/help/New-AzMongoDBProject.md create mode 100644 src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md create mode 100644 src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md diff --git a/src/MongoDB/MongoDB.Autorest/Properties/AssemblyInfo.cs b/src/MongoDB/MongoDB.Autorest/Properties/AssemblyInfo.cs index 0a0b85326453..e81fe6afa59c 100644 --- a/src/MongoDB/MongoDB.Autorest/Properties/AssemblyInfo.cs +++ b/src/MongoDB/MongoDB.Autorest/Properties/AssemblyInfo.cs @@ -20,7 +20,11 @@ [assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] [assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] [assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - MongoDb")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0")] -[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.1")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.1.1")] [assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] [assembly: System.CLSCompliantAttribute(false)] + + + + diff --git a/src/MongoDB/MongoDB.Autorest/README.md b/src/MongoDB/MongoDB.Autorest/README.md index 694c5b56f642..dfde0ea70777 100644 --- a/src/MongoDB/MongoDB.Autorest/README.md +++ b/src/MongoDB/MongoDB.Autorest/README.md @@ -29,7 +29,8 @@ For information on how to develop for `Az.MongoDB`, see [how-to.md](how-to.md). ```yaml # pin the swagger version by using the commit id instead of branch name -commit: 589f71f4a7fe1c6ca70b0988cadd93687df8f73c +# Updated to include Projects and Clusters resources from 2026-03-01-preview (PR #43780) +commit: 5c97134820f1145742a874df3838b28e515e4ba1 require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md @@ -40,7 +41,9 @@ require: try-require: - $(repo)/specification/liftrmongodb/resource-manager/readme.powershell.md -module-version: 1.0.0 +# Use the 2026-03-01-preview tag which includes Organization, Project, and Cluster resources +tag: package-2026-03-01-preview +module-version: 1.1.0 # Normally, title is the service name title: MongoDB service-name: MongoDB diff --git a/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects-clusters.json b/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects-clusters.json new file mode 100644 index 000000000000..f4c493d2c709 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects-clusters.json @@ -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 ", + "-OrganizationName ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "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 ", + "-OrganizationName ", + "-ProjectName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "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]" + } + ] + } + ] + } + ] +} diff --git a/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects.json b/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects.json new file mode 100644 index 000000000000..57102c5bdbbd --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations-projects.json @@ -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 ", + "-OrganizationName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "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 ", + "-OrganizationName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "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 ", + "-OrganizationName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "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]" + } + ] + } + ] + } + ] +} diff --git a/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations.json b/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations.json index 2314365197e5..8fcf281cb582 100644 --- a/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations.json +++ b/src/MongoDB/MongoDB.Autorest/UX/MongoDB.Atlas/organizations.json @@ -1,6 +1,6 @@ { "resourceType": "organizations", - "apiVersion": "2025-06-01", + "apiVersion": "2026-03-01-preview", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.mongodb" }, diff --git a/src/MongoDB/MongoDB.Autorest/custom/Az.MongoDB.custom.psm1 b/src/MongoDB/MongoDB.Autorest/custom/Az.MongoDB.custom.psm1 index 3fac1cdbfafc..5689863851b5 100644 --- a/src/MongoDB/MongoDB.Autorest/custom/Az.MongoDB.custom.psm1 +++ b/src/MongoDB/MongoDB.Autorest/custom/Az.MongoDB.custom.psm1 @@ -1,9 +1,9 @@ # region Generated # Load the private module dll - $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '../bin/Az.MongoDB.private.dll') + $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.MongoDB.private.dll') # Load the internal module - $internalModulePath = Join-Path $PSScriptRoot '../internal/Az.MongoDB.internal.psm1' + $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.MongoDB.internal.psm1' if(Test-Path $internalModulePath) { $null = Import-Module -Name $internalModulePath } diff --git a/src/MongoDB/MongoDB.Autorest/custom/README.md b/src/MongoDB/MongoDB.Autorest/custom/README.md index 38ad2e6ba9ac..cc4dfb8ab337 100644 --- a/src/MongoDB/MongoDB.Autorest/custom/README.md +++ b/src/MongoDB/MongoDB.Autorest/custom/README.md @@ -1,5 +1,5 @@ # Custom -This directory contains custom implementation for non-generated cmdlets for the `Az.MongoDB` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `../exports` folder. The only generated file into this folder is the `Az.MongoDB.custom.psm1`. This file should not be modified. +This directory contains custom implementation for non-generated cmdlets for the `Az.MongoDB` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.MongoDB.custom.psm1`. This file should not be modified. ## Info - Modifiable: yes @@ -15,10 +15,10 @@ For C# cmdlets, they are compiled with the rest of the generated low-level cmdle For script cmdlets, these are loaded via the `Az.MongoDB.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build. ## Purpose -This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `../exports` folder. +This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder. ## Usage -The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `../exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: +The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters: - Break - DefaultProfile - HttpPipelineAppend @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.MongoDB`. - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.MongoDB`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.MongoDB`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md b/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md index d8645fcacb71..27fb9b24fd1a 100644 --- a/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md +++ b/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md @@ -1,6 +1,6 @@ --- Module Name: Az.MongoDB -Module Guid: e8abde8d-9c45-4aea-9875-390bd042d9ea +Module Guid: 97fe2d21-7b64-4cee-b8b9-e39d12750776 Download Help Link: https://learn.microsoft.com/powershell/module/az.mongodb Help Version: 1.0.0.0 Locale: en-US @@ -11,12 +11,36 @@ Locale: en-US Microsoft Azure PowerShell: MongoDb cmdlets ## Az.MongoDB Cmdlets +### [Get-AzMongoDBCluster](Get-AzMongoDBCluster.md) +Get a Cluster + ### [Get-AzMongoDBOrganization](Get-AzMongoDBOrganization.md) Get a OrganizationResource +### [Get-AzMongoDBProject](Get-AzMongoDBProject.md) +Get a Project + +### [Get-AzMongoDBProjectClusterTierRegion](Get-AzMongoDBProjectClusterTierRegion.md) +List available regions by cluster tier for the project. + +### [Limit-AzMongoDBProject](Limit-AzMongoDBProject.md) +Check if tier limit is reached for the project. + +### [New-AzMongoDBCluster](New-AzMongoDBCluster.md) +Create a Cluster + ### [New-AzMongoDBOrganization](New-AzMongoDBOrganization.md) Create a OrganizationResource +### [New-AzMongoDBProject](New-AzMongoDBProject.md) +Create a Project + +### [Remove-AzMongoDBCluster](Remove-AzMongoDBCluster.md) +Delete a Cluster + ### [Remove-AzMongoDBOrganization](Remove-AzMongoDBOrganization.md) Delete a OrganizationResource +### [Remove-AzMongoDBProject](Remove-AzMongoDBProject.md) +Delete a Project + diff --git a/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBCluster.md b/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBCluster.md new file mode 100644 index 000000000000..dbd902cd13df --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBCluster.md @@ -0,0 +1,257 @@ +--- +external help file: +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/get-azmongodbcluster +schema: 2.0.0 +--- + +# Get-AzMongoDBCluster + +## SYNOPSIS +Get a Cluster + +## SYNTAX + +### List (Default) +``` +Get-AzMongoDBCluster -OrganizationName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzMongoDBCluster -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityOrganization +``` +Get-AzMongoDBCluster -Name -OrganizationInputObject -ProjectName + [-DefaultProfile ] [] +``` + +### GetViaIdentityProject +``` +Get-AzMongoDBCluster -Name -ProjectInputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a Cluster + +## EXAMPLES + +### Example 1: List all Clusters under a Project +```powershell +Get-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Lists all clusters that belong to the given project. + +### Example 2: Get a specific Cluster +```powershell +Get-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free | Format-List +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Gets the details of a single cluster by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Cluster resource. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityOrganization, GetViaIdentityProject +Aliases: ClusterName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentityProject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityOrganization, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.ICluster + +## NOTES + +## RELATED LINKS + diff --git a/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBProject.md new file mode 100644 index 000000000000..66525bf83320 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBProject.md @@ -0,0 +1,208 @@ +--- +external help file: +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/get-azmongodbproject +schema: 2.0.0 +--- + +# Get-AzMongoDBProject + +## SYNOPSIS +Get a Project + +## SYNTAX + +### List (Default) +``` +Get-AzMongoDBProject -OrganizationName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [] +``` + +### GetViaIdentity +``` +Get-AzMongoDBProject -InputObject [-DefaultProfile ] [] +``` + +### GetViaIdentityOrganization +``` +Get-AzMongoDBProject -Name -OrganizationInputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a Project + +## EXAMPLES + +### Example 1: List all Projects under an Organization +```powershell +Get-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest +``` + +```output +Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType +---- ------------------- ------------------- ----------------------- +asdfsadf +mavarsh-test-1 +mavarsh-test2 +tesgin +``` + +Lists all projects that belong to the given organization in the resource group. + +### Example 2: Get a specific Project +```powershell +Get-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name mavarsh-test-1 | Format-List +``` + +```output +ClusterCount : 0 +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/mavarsh-test-1 +Name : mavarsh-test-1 +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a39281864733305129a1678 +ProjectName : mavarsh-test-1 +ProvisioningState : Succeeded +ResourceGroupName : sharmaanuTest +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : MongoDB.Atlas/organizations/projects +``` + +Gets the details of a single project by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: Get, GetViaIdentityOrganization +Aliases: ProjectName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Get, List +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: Get, List +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IProject + +## NOTES + +## RELATED LINKS + diff --git a/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBProjectClusterTierRegion.md b/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBProjectClusterTierRegion.md new file mode 100644 index 000000000000..b355c6a5014e --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/docs/Get-AzMongoDBProjectClusterTierRegion.md @@ -0,0 +1,175 @@ +--- +external help file: +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/get-azmongodbprojectclustertierregion +schema: 2.0.0 +--- + +# Get-AzMongoDBProjectClusterTierRegion + +## SYNOPSIS +List available regions by cluster tier for the project. + +## SYNTAX + +``` +Get-AzMongoDBProjectClusterTierRegion -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +## DESCRIPTION +List available regions by cluster tier for the project. + +## EXAMPLES + +### Example 1: List available regions per cluster tier for a Project +```powershell +Get-AzMongoDBProjectClusterTierRegion -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 | Format-List +``` + +```output +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a3d3a7fee32a7a117663313 +RegionsByTier : {{ + "tier": "FLEX", + "regions": [ "westeurope", "eastus2", "canadacentral", "westus", "northeurope", "centralindia", "eastasia" ] + }, { + "tier": "FREE", + "regions": [ "eastus2", "centralindia", "westeurope", "northeurope", "westus", "canadacentral", "eastasia" ] + }, { + "tier": "M10", + "regions": [ "westeurope", "eastasia", "brazilsoutheast", "malaysiawest", "chilecentral", "mexicocentral", "germanywestcentral", "norwaywest", "israelcentral", "centralus", "ukwest", "northeurope", "francecentral", "northcentralus", "westindia", "centralindia", "westus", "westus2", "koreasouth", "uaecentral", "polandcentral", "swedencentral", "francesouth", "australiasoutheast", "swedensouth", "southindia", "southafricawest", "norwayeast", "canadaeast", "southeastasia", "indonesiacentral", "eastus", "eastus2", "australiaeast", "spaincentral", "uaenorth", "newzealandnorth", "canadacentral", "germanynorth", "koreacentral", "qatarcentral", "japaneast", "southafricanorth", "brazilsouth", "japanwest", "italynorth", "uksouth", "australiacentral2", "southcentralus", "westus3", "australiacentral", "westcentralus", "switzerlandnorth", "switzerlandwest" ] + }, { + "tier": "M30", + "regions": [ "westeurope", "eastasia", "brazilsoutheast", "malaysiawest", "chilecentral", "mexicocentral", "germanywestcentral", "norwaywest", "israelcentral", "centralus", "ukwest", "northeurope", "francecentral", "northcentralus", "westindia", "centralindia", "westus", "westus2", "koreasouth", "uaecentral", "polandcentral", "swedencentral", "francesouth", "australiasoutheast", "swedensouth", "southindia", "southafricawest", "norwayeast", "canadaeast", "southeastasia", "indonesiacentral", "eastus", "eastus2", "australiaeast", "spaincentral", "uaenorth", "newzealandnorth", "canadacentral", "germanynorth", "koreacentral", "qatarcentral", "japaneast", "southafricanorth", "brazilsouth", "japanwest", "italynorth", "uksouth", "australiacentral2", "southcentralus", "westus3", "australiacentral", "westcentralus", "switzerlandnorth", "switzerlandwest" ] + }} +``` + +Returns the supported Azure regions for each cluster tier (FREE, FLEX, M10, M30) available to the given project. +Use this before calling `New-AzMongoDBCluster` to pick a valid `-RegionName` for the chosen `-ClusterTier`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IRegionsByTierResponse + +## NOTES + +## RELATED LINKS + diff --git a/src/MongoDB/MongoDB.Autorest/docs/Limit-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/docs/Limit-AzMongoDBProject.md new file mode 100644 index 000000000000..0cd8d2e82fb0 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/docs/Limit-AzMongoDBProject.md @@ -0,0 +1,208 @@ +--- +external help file: +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/limit-azmongodbproject +schema: 2.0.0 +--- + +# Limit-AzMongoDBProject + +## SYNOPSIS +Check if tier limit is reached for the project. + +## SYNTAX + +### Limit (Default) +``` +Limit-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### LimitViaIdentity +``` +Limit-AzMongoDBProject -InputObject [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### LimitViaIdentityOrganization +``` +Limit-AzMongoDBProject -Name -OrganizationInputObject [-DefaultProfile ] + [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Check if tier limit is reached for the project. + +## EXAMPLES + +### Example 1: Check whether the cluster-tier limit has been reached +```powershell +Limit-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 | Format-List +``` + +```output +Current : 0 +IsReached : False +Maximum : 1 +Type : FREE +``` + +Queries the partner to find out, per cluster tier, how many clusters the project currently has, the per-tier maximum, and whether the limit has been reached. +Useful as a pre-flight check before `New-AzMongoDBCluster`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: LimitViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: Limit, LimitViaIdentityOrganization +Aliases: ProjectName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: LimitViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: Limit +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Limit +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Limit +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.ITierLimitReachedResponse + +## NOTES + +## RELATED LINKS + diff --git a/src/MongoDB/MongoDB.Autorest/docs/New-AzMongoDBCluster.md b/src/MongoDB/MongoDB.Autorest/docs/New-AzMongoDBCluster.md new file mode 100644 index 000000000000..74c738e9b546 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/docs/New-AzMongoDBCluster.md @@ -0,0 +1,352 @@ +--- +external help file: +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/new-azmongodbcluster +schema: 2.0.0 +--- + +# New-AzMongoDBCluster + +## SYNOPSIS +Create a Cluster + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-ClusterTier ] [-RegionName ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaIdentityOrganizationExpanded +``` +New-AzMongoDBCluster -Name -OrganizationInputObject -ProjectName + [-ClusterTier ] [-RegionName ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaIdentityProjectExpanded +``` +New-AzMongoDBCluster -Name -ProjectInputObject [-ClusterTier ] + [-RegionName ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaJsonFilePath +``` +New-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName -JsonString [-SubscriptionId ] [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Create a Cluster + +## EXAMPLES + +### Example 1: Create a new FREE-tier Cluster +```powershell +New-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free -ClusterTier FREE -RegionName eastus2 | Format-List +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Creates a FREE-tier MongoDB Atlas cluster in `eastus2` under the given project. +Valid tiers are FREE, FLEX, M10, M30. +Use `Get-AzMongoDBProjectClusterTierRegion` first to confirm the chosen tier is available in the target region. + +### Example 2: Create a paid (M10) Cluster +```powershell +New-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-m10 -ClusterTier M10 -RegionName westus2 +``` + +Creates a dedicated M10 cluster. +M10/M30 tiers incur metered billing through the MongoDB Atlas marketplace offer linked to the organization. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClusterTier +Cluster tier (FREE, FLEX, M10, M30). + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityOrganizationExpanded, CreateViaIdentityProjectExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Cluster resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ClusterName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: CreateViaIdentityOrganizationExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: CreateViaIdentityProjectExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityOrganizationExpanded, CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RegionName +Azure region where the cluster is deployed. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityOrganizationExpanded, CreateViaIdentityProjectExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.ICluster + +## NOTES + +## RELATED LINKS + diff --git a/src/MongoDB/MongoDB.Autorest/docs/New-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/docs/New-AzMongoDBProject.md new file mode 100644 index 000000000000..0240da662e2c --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/docs/New-AzMongoDBProject.md @@ -0,0 +1,273 @@ +--- +external help file: +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/new-azmongodbproject +schema: 2.0.0 +--- + +# New-AzMongoDBProject + +## SYNOPSIS +Create a Project + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] + [] +``` + +### CreateViaIdentityOrganizationExpanded +``` +New-AzMongoDBProject -Name -OrganizationInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] +``` + +### CreateViaJsonFilePath +``` +New-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +### CreateViaJsonString +``` +New-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] + [-WhatIf] [] +``` + +## DESCRIPTION +Create a Project + +## EXAMPLES + +### Example 1: Create a new Project under an Organization +```powershell +New-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 | Format-List +``` + +```output +ClusterCount : 0 +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1 +Name : test-project-1 +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a3d3a7fee32a7a117663313 +ProjectName : test-project-1 +ProvisioningState : Succeeded +ResourceGroupName : sharmaanuTest +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : MongoDB.Atlas/organizations/projects +``` + +Creates a new MongoDB Atlas project under the given organization. +Project name is the only required body parameter; the partner assigns the projectId. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ProjectName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: CreateViaIdentityOrganizationExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonFilePath, CreateViaJsonString +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IProject + +## NOTES + +## RELATED LINKS + diff --git a/src/MongoDB/MongoDB.Autorest/docs/README.md b/src/MongoDB/MongoDB.Autorest/docs/README.md index 67bf8b7eeb1a..116b958ab82b 100644 --- a/src/MongoDB/MongoDB.Autorest/docs/README.md +++ b/src/MongoDB/MongoDB.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.MongoDB` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder. +This directory contains the documentation of the cmdlets for the `Az.MongoDB` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. ## Info - Modifiable: no @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.MongoDB` mo - Packaged: yes ## Details -The process of documentation generation loads `Az.MongoDB` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder. \ No newline at end of file +The process of documentation generation loads `Az.MongoDB` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md b/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md new file mode 100644 index 000000000000..61a90cc32089 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md @@ -0,0 +1,283 @@ +--- +external help file: +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/remove-azmongodbcluster +schema: 2.0.0 +--- + +# Remove-AzMongoDBCluster + +## SYNOPSIS +Delete a Cluster + +## SYNTAX + +### Delete (Default) +``` +Remove-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentity +``` +Remove-AzMongoDBCluster -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityOrganization +``` +Remove-AzMongoDBCluster -Name -OrganizationInputObject -ProjectName + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityProject +``` +Remove-AzMongoDBCluster -Name -ProjectInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a Cluster + +## EXAMPLES + +### Example 1: Remove a Cluster +```powershell +Remove-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free +``` + +Deletes the MongoDB Atlas cluster. +The operation is asynchronous; the underlying partner cluster is also torn down. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Cluster resource. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityOrganization, DeleteViaIdentityProject +Aliases: ClusterName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentityProject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBProject.md new file mode 100644 index 000000000000..0d23683d6cae --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBProject.md @@ -0,0 +1,247 @@ +--- +external help file: +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/remove-azmongodbproject +schema: 2.0.0 +--- + +# Remove-AzMongoDBProject + +## SYNOPSIS +Delete a Project + +## SYNTAX + +### Delete (Default) +``` +Remove-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] + [] +``` + +### DeleteViaIdentity +``` +Remove-AzMongoDBProject -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + +### DeleteViaIdentityOrganization +``` +Remove-AzMongoDBProject -Name -OrganizationInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] +``` + +## DESCRIPTION +Delete a Project + +## EXAMPLES + +### Example 1: Remove a Project +```powershell +Remove-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 +``` + +Deletes the MongoDB Atlas project. +The operation is asynchronous; all clusters under the project must be deleted first. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityOrganization +Aliases: ProjectName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS + diff --git a/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBCluster.md b/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBCluster.md new file mode 100644 index 000000000000..b5490a8c0386 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBCluster.md @@ -0,0 +1,53 @@ +### Example 1: List all Clusters under a Project +```powershell +Get-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Lists all clusters that belong to the given project. + +### Example 2: Get a specific Cluster +```powershell +Get-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free | Format-List +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Gets the details of a single cluster by name. diff --git a/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBProject.md new file mode 100644 index 000000000000..4c7594466d21 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBProject.md @@ -0,0 +1,40 @@ +### Example 1: List all Projects under an Organization +```powershell +Get-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest +``` + +```output +Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType +---- ------------------- ------------------- ----------------------- +asdfsadf +mavarsh-test-1 +mavarsh-test2 +tesgin +``` + +Lists all projects that belong to the given organization in the resource group. + +### Example 2: Get a specific Project +```powershell +Get-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name mavarsh-test-1 | Format-List +``` + +```output +ClusterCount : 0 +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/mavarsh-test-1 +Name : mavarsh-test-1 +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a39281864733305129a1678 +ProjectName : mavarsh-test-1 +ProvisioningState : Succeeded +ResourceGroupName : sharmaanuTest +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : MongoDB.Atlas/organizations/projects +``` + +Gets the details of a single project by name. diff --git a/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBProjectClusterTierRegion.md b/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBProjectClusterTierRegion.md new file mode 100644 index 000000000000..d552088a27ba --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/examples/Get-AzMongoDBProjectClusterTierRegion.md @@ -0,0 +1,24 @@ +### Example 1: List available regions per cluster tier for a Project +```powershell +Get-AzMongoDBProjectClusterTierRegion -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 | Format-List +``` + +```output +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a3d3a7fee32a7a117663313 +RegionsByTier : {{ + "tier": "FLEX", + "regions": [ "westeurope", "eastus2", "canadacentral", "westus", "northeurope", "centralindia", "eastasia" ] + }, { + "tier": "FREE", + "regions": [ "eastus2", "centralindia", "westeurope", "northeurope", "westus", "canadacentral", "eastasia" ] + }, { + "tier": "M10", + "regions": [ "westeurope", "eastasia", "brazilsoutheast", "malaysiawest", "chilecentral", "mexicocentral", "germanywestcentral", "norwaywest", "israelcentral", "centralus", "ukwest", "northeurope", "francecentral", "northcentralus", "westindia", "centralindia", "westus", "westus2", "koreasouth", "uaecentral", "polandcentral", "swedencentral", "francesouth", "australiasoutheast", "swedensouth", "southindia", "southafricawest", "norwayeast", "canadaeast", "southeastasia", "indonesiacentral", "eastus", "eastus2", "australiaeast", "spaincentral", "uaenorth", "newzealandnorth", "canadacentral", "germanynorth", "koreacentral", "qatarcentral", "japaneast", "southafricanorth", "brazilsouth", "japanwest", "italynorth", "uksouth", "australiacentral2", "southcentralus", "westus3", "australiacentral", "westcentralus", "switzerlandnorth", "switzerlandwest" ] + }, { + "tier": "M30", + "regions": [ "westeurope", "eastasia", "brazilsoutheast", "malaysiawest", "chilecentral", "mexicocentral", "germanywestcentral", "norwaywest", "israelcentral", "centralus", "ukwest", "northeurope", "francecentral", "northcentralus", "westindia", "centralindia", "westus", "westus2", "koreasouth", "uaecentral", "polandcentral", "swedencentral", "francesouth", "australiasoutheast", "swedensouth", "southindia", "southafricawest", "norwayeast", "canadaeast", "southeastasia", "indonesiacentral", "eastus", "eastus2", "australiaeast", "spaincentral", "uaenorth", "newzealandnorth", "canadacentral", "germanynorth", "koreacentral", "qatarcentral", "japaneast", "southafricanorth", "brazilsouth", "japanwest", "italynorth", "uksouth", "australiacentral2", "southcentralus", "westus3", "australiacentral", "westcentralus", "switzerlandnorth", "switzerlandwest" ] + }} +``` + +Returns the supported Azure regions for each cluster tier (FREE, FLEX, M10, M30) available to the given project. Use this before calling `New-AzMongoDBCluster` to pick a valid `-RegionName` for the chosen `-ClusterTier`. diff --git a/src/MongoDB/MongoDB.Autorest/examples/Limit-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/examples/Limit-AzMongoDBProject.md new file mode 100644 index 000000000000..175096205f8c --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/examples/Limit-AzMongoDBProject.md @@ -0,0 +1,13 @@ +### Example 1: Check whether the cluster-tier limit has been reached +```powershell +Limit-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 | Format-List +``` + +```output +Current : 0 +IsReached : False +Maximum : 1 +Type : FREE +``` + +Queries the partner to find out, per cluster tier, how many clusters the project currently has, the per-tier maximum, and whether the limit has been reached. Useful as a pre-flight check before `New-AzMongoDBCluster`. diff --git a/src/MongoDB/MongoDB.Autorest/examples/New-AzMongoDBCluster.md b/src/MongoDB/MongoDB.Autorest/examples/New-AzMongoDBCluster.md new file mode 100644 index 000000000000..4aa91a07a612 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/examples/New-AzMongoDBCluster.md @@ -0,0 +1,33 @@ +### Example 1: Create a new FREE-tier Cluster +```powershell +New-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free -ClusterTier FREE -RegionName eastus2 | Format-List +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Creates a FREE-tier MongoDB Atlas cluster in `eastus2` under the given project. Valid tiers are FREE, FLEX, M10, M30. Use `Get-AzMongoDBProjectClusterTierRegion` first to confirm the chosen tier is available in the target region. + +### Example 2: Create a paid (M10) Cluster +```powershell +New-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-m10 -ClusterTier M10 -RegionName westus2 +``` + +Creates a dedicated M10 cluster. M10/M30 tiers incur metered billing through the MongoDB Atlas marketplace offer linked to the organization. diff --git a/src/MongoDB/MongoDB.Autorest/examples/New-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/examples/New-AzMongoDBProject.md new file mode 100644 index 000000000000..8ddbb5a4be70 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/examples/New-AzMongoDBProject.md @@ -0,0 +1,24 @@ +### Example 1: Create a new Project under an Organization +```powershell +New-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 | Format-List +``` + +```output +ClusterCount : 0 +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1 +Name : test-project-1 +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a3d3a7fee32a7a117663313 +ProjectName : test-project-1 +ProvisioningState : Succeeded +ResourceGroupName : sharmaanuTest +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : MongoDB.Atlas/organizations/projects +``` + +Creates a new MongoDB Atlas project under the given organization. Project name is the only required body parameter; the partner assigns the projectId. diff --git a/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBCluster.md b/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBCluster.md new file mode 100644 index 000000000000..389ad841965d --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBCluster.md @@ -0,0 +1,6 @@ +### Example 1: Remove a Cluster +```powershell +Remove-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free +``` + +Deletes the MongoDB Atlas cluster. The operation is asynchronous; the underlying partner cluster is also torn down. diff --git a/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBProject.md new file mode 100644 index 000000000000..446d299d5d8c --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBProject.md @@ -0,0 +1,6 @@ +### Example 1: Remove a Project +```powershell +Remove-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 +``` + +Deletes the MongoDB Atlas project. The operation is asynchronous; all clusters under the project must be deleted first. diff --git a/src/MongoDB/MongoDB.Autorest/generate-info.json b/src/MongoDB/MongoDB.Autorest/generate-info.json index 91a648b5050c..b91c292f70a0 100644 --- a/src/MongoDB/MongoDB.Autorest/generate-info.json +++ b/src/MongoDB/MongoDB.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "7ec35bc7-5919-45bb-8cbb-daba78847af2" + "generate_Id": "22ad76fb-6d1e-4331-9ef2-82453e5247e2" } diff --git a/src/MongoDB/MongoDB.Autorest/resources/README.md b/src/MongoDB/MongoDB.Autorest/resources/README.md index 736492341e3d..937f07f8fec2 100644 --- a/src/MongoDB/MongoDB.Autorest/resources/README.md +++ b/src/MongoDB/MongoDB.Autorest/resources/README.md @@ -1,5 +1,5 @@ # Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder. +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. ## Info - Modifiable: yes diff --git a/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBCluster.Recording.json b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBCluster.Recording.json new file mode 100644 index 000000000000..5cde49ae01e2 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBCluster.Recording.json @@ -0,0 +1,98 @@ +{ + "Get-AzMongoDBCluster+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters?api-version=2026-03-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "1" ], + "x-ms-client-request-id": [ "eb1415e2-de07-4616-ae91-0edeed5ae337" ], + "CommandName": [ "Get-AzMongoDBCluster" ], + "FullCommandName": [ "Get-AzMongoDBCluster_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/fef8f3a0-1f74-4d5a-8304-9ce4978e6cfe" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "9e865249-e7d8-44c2-ac79-a44799c0e051" ], + "x-ms-correlation-request-id": [ "8b850244-7a6f-479e-aa4b-4c14cac670bb" ], + "x-ms-client-request-id": [ "eb1415e2-de07-4616-ae91-0edeed5ae337" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "de8c70a4-ed90-40bd-95f0-a0227aa4910a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150613Z:8b850244-7a6f-479e-aa4b-4c14cac670bb" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 88A41DC2A6E34B928446ADBA0F6F395E Ref B: PNQ231110907031 Ref C: 2026-06-25T15:06:11Z" ], + "Date": [ "Thu, 25 Jun 2026 15:06:13 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "496" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free\",\"name\":\"test-cluster-free\",\"type\":\"MongoDB.Atlas/organizations/projects/clusters\",\"properties\":{\"clusterName\":\"test-cluster-free\",\"clusterTier\":\"FREE\",\"regionName\":\"eastus2\",\"mongoDbVersion\":\"8.0.24-patch-6a3992052eafe5000797a34e\",\"backups\":false,\"state\":\"IDLE\",\"provisioningState\":\"Succeeded\"}}]}", + "isContentBase64": false + } + }, + "Get-AzMongoDBCluster+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free?api-version=2026-03-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "378deac0-36bd-46f9-aa4b-fb3ddd154d0d" ], + "CommandName": [ "Get-AzMongoDBCluster" ], + "FullCommandName": [ "Get-AzMongoDBCluster_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/6013814a-0a9d-4997-b4bd-872ae3a3ce7f" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "9eb0eb29-f4fd-4a62-98db-853eb786c794" ], + "x-ms-correlation-request-id": [ "33605180-a7ae-40c5-9ca9-a8ed4b1aea58" ], + "x-ms-client-request-id": [ "378deac0-36bd-46f9-aa4b-fb3ddd154d0d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "33eb4685-f936-4ffc-b886-40c32622e2bf" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150616Z:33605180-a7ae-40c5-9ca9-a8ed4b1aea58" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: C12326CDC71045AEB83BB008D8B619D2 Ref B: PNQ231110907031 Ref C: 2026-06-25T15:06:14Z" ], + "Date": [ "Thu, 25 Jun 2026 15:06:16 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "484" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free\",\"name\":\"test-cluster-free\",\"type\":\"MongoDB.Atlas/organizations/projects/clusters\",\"properties\":{\"clusterName\":\"test-cluster-free\",\"clusterTier\":\"FREE\",\"regionName\":\"eastus2\",\"mongoDbVersion\":\"8.0.24-patch-6a3992052eafe5000797a34e\",\"backups\":false,\"state\":\"IDLE\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBCluster.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBCluster.Tests.ps1 new file mode 100644 index 000000000000..664f971ebfe6 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBCluster.Tests.ps1 @@ -0,0 +1,45 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzMongoDBCluster')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMongoDBCluster.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzMongoDBCluster' { + It 'List' { + { + $result = Get-AzMongoDBCluster -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName -ProjectName $env.ProjectName + $result.Count | Should -BeGreaterThan 0 + } | Should -Not -Throw + } + + It 'Get' { + { + $result = Get-AzMongoDBCluster -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName -ProjectName $env.ProjectName -Name $env.ClusterName + $result.ProvisioningState | Should -Be 'Succeeded' + $result.ClusterName | Should -Be $env.ClusterName + $result.State | Should -Be 'IDLE' + } | Should -Not -Throw + } + + It 'GetViaIdentityProject' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentityOrganization' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProject.Recording.json b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProject.Recording.json new file mode 100644 index 000000000000..291431604b50 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProject.Recording.json @@ -0,0 +1,98 @@ +{ + "Get-AzMongoDBProject+[NoContext]+List+$GET+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects?api-version=2026-03-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "34a6c5a0-8739-4ac9-968e-8d71fa0e2003" ], + "CommandName": [ "Get-AzMongoDBProject" ], + "FullCommandName": [ "Get-AzMongoDBProject_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/5cd51198-fc83-4cf1-9a5e-f3e0327c5ed7" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "2c82259f-38bb-42d8-b19e-6621000e9394" ], + "x-ms-correlation-request-id": [ "077bfa4a-ec3a-4f34-9f0a-04f1d8e645b5" ], + "x-ms-client-request-id": [ "34a6c5a0-8739-4ac9-968e-8d71fa0e2003" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "e6c6e86f-1a21-489a-a066-328b09a2c14b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150621Z:077bfa4a-ec3a-4f34-9f0a-04f1d8e645b5" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 448AA3A7D3E94BAEBE7BBB83D76313EC Ref B: PNQ231110907031 Ref C: 2026-06-25T15:06:18Z" ], + "Date": [ "Thu, 25 Jun 2026 15:06:21 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "2021" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"value\":[{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/asdfsadf\",\"name\":\"asdfsadf\",\"type\":\"MongoDB.Atlas/organizations/projects\",\"properties\":{\"projectId\":\"6a3937eb751e66481282d3a7\",\"projectName\":\"asdfsadf\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"clusterCount\":0,\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/mavarsh-test-1\",\"name\":\"mavarsh-test-1\",\"type\":\"MongoDB.Atlas/organizations/projects\",\"properties\":{\"projectId\":\"6a39281864733305129a1678\",\"projectName\":\"mavarsh-test-1\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"clusterCount\":0,\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/mavarsh-test2\",\"name\":\"mavarsh-test2\",\"type\":\"MongoDB.Atlas/organizations/projects\",\"properties\":{\"projectId\":\"6a3a5afd00951c0d035780e6\",\"projectName\":\"mavarsh-test2\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"clusterCount\":1,\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/tesgin\",\"name\":\"tesgin\",\"type\":\"MongoDB.Atlas/organizations/projects\",\"properties\":{\"projectId\":\"6a33fb13df0e8aafd33b404b\",\"projectName\":\"tesgin\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"clusterCount\":3,\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1\",\"name\":\"test-project-1\",\"type\":\"MongoDB.Atlas/organizations/projects\",\"properties\":{\"projectId\":\"6a3d3a7fee32a7a117663313\",\"projectName\":\"test-project-1\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"clusterCount\":1,\"provisioningState\":\"Succeeded\"}}]}", + "isContentBase64": false + } + }, + "Get-AzMongoDBProject+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1?api-version=2026-03-01-preview+1": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "4" ], + "x-ms-client-request-id": [ "d2c54260-a009-49c4-a887-0b138b172933" ], + "CommandName": [ "Get-AzMongoDBProject" ], + "FullCommandName": [ "Get-AzMongoDBProject_Get" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/00a00c57-87b1-417d-afca-32a912dd9efe" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "6b1683f4-4cac-4c9c-b248-d05fc878e68c" ], + "x-ms-correlation-request-id": [ "38ac7ff1-ad86-4618-a69b-ee33a80077c7" ], + "x-ms-client-request-id": [ "d2c54260-a009-49c4-a887-0b138b172933" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "a67797e0-28bb-42a7-a4d9-d062c43f802e" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "248" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3748" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150622Z:38ac7ff1-ad86-4618-a69b-ee33a80077c7" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 3174DE958CDD4F50B8E75F13F91D94A6 Ref B: PNQ231110907031 Ref C: 2026-06-25T15:06:21Z" ], + "Date": [ "Thu, 25 Jun 2026 15:06:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "410" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1\",\"name\":\"test-project-1\",\"type\":\"MongoDB.Atlas/organizations/projects\",\"properties\":{\"projectId\":\"6a3d3a7fee32a7a117663313\",\"projectName\":\"test-project-1\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"clusterCount\":1,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProject.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProject.Tests.ps1 new file mode 100644 index 000000000000..c909fc5fa7a3 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProject.Tests.ps1 @@ -0,0 +1,40 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzMongoDBProject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMongoDBProject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzMongoDBProject' { + It 'List' { + { + $result = Get-AzMongoDBProject -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName + $result.Count | Should -BeGreaterThan 0 + } | Should -Not -Throw + } + + It 'Get' { + { + $result = Get-AzMongoDBProject -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName -Name $env.ProjectName + $result.ProvisioningState | Should -Be 'Succeeded' + $result.ProjectName | Should -Be $env.ProjectName + } | Should -Not -Throw + } + + It 'GetViaIdentityOrganization' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'GetViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProjectClusterTierRegion.Recording.json b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProjectClusterTierRegion.Recording.json new file mode 100644 index 000000000000..8d46d42ff17e --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProjectClusterTierRegion.Recording.json @@ -0,0 +1,50 @@ +{ + "Get-AzMongoDBProjectClusterTierRegion+[NoContext]+List+$POST+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusterTierRegions?api-version=2026-03-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusterTierRegions?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "89bbd471-549e-4e42-a885-3f4b12ce4cf6" ], + "CommandName": [ "Get-AzMongoDBProjectClusterTierRegion" ], + "FullCommandName": [ "Get-AzMongoDBProjectClusterTierRegion_List" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/8d59cce5-ae9f-4ec0-895a-a85f6729e539" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "e75d3aad-d522-49db-a5fd-450af724eb81" ], + "x-ms-correlation-request-id": [ "32adf8b1-e6d4-4c3b-b63b-f7564cbb7b3f" ], + "x-ms-client-request-id": [ "89bbd471-549e-4e42-a885-3f4b12ce4cf6" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "2879e819-abb4-44ea-8f87-e7a0ba5fa833" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150624Z:32adf8b1-e6d4-4c3b-b63b-f7564cbb7b3f" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: B90DA636D75E4E1B88C5551FC118AC58 Ref B: PNQ231110907031 Ref C: 2026-06-25T15:06:23Z" ], + "Date": [ "Thu, 25 Jun 2026 15:06:24 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "1968" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"organizationId\":\"6a2b114e620de528f66a43eb\",\"projectId\":\"6a3d3a7fee32a7a117663313\",\"regionsByTier\":[{\"tier\":\"FLEX\",\"regions\":[\"centralindia\",\"canadacentral\",\"westeurope\",\"eastus2\",\"westus\",\"eastasia\",\"northeurope\"]},{\"tier\":\"FREE\",\"regions\":[\"westus\",\"eastasia\",\"northeurope\",\"centralindia\",\"westeurope\",\"eastus2\",\"canadacentral\"]},{\"tier\":\"M10\",\"regions\":[\"swedensouth\",\"chilecentral\",\"australiacentral2\",\"japanwest\",\"southindia\",\"polandcentral\",\"japaneast\",\"newzealandnorth\",\"eastus2\",\"uaecentral\",\"brazilsoutheast\",\"qatarcentral\",\"indonesiacentral\",\"southeastasia\",\"westus\",\"francecentral\",\"koreacentral\",\"norwayeast\",\"malaysiawest\",\"uaenorth\",\"germanynorth\",\"northeurope\",\"westus2\",\"australiaeast\",\"italynorth\",\"norwaywest\",\"brazilsouth\",\"westcentralus\",\"westus3\",\"israelcentral\",\"uksouth\",\"spaincentral\",\"westeurope\",\"centralindia\",\"canadacentral\",\"southcentralus\",\"australiacentral\",\"westindia\",\"eastasia\",\"switzerlandwest\",\"germanywestcentral\",\"centralus\",\"eastus\",\"southafricanorth\",\"northcentralus\",\"mexicocentral\",\"swedencentral\",\"southafricawest\",\"canadaeast\",\"australiasoutheast\",\"francesouth\",\"switzerlandnorth\",\"ukwest\",\"koreasouth\"]},{\"tier\":\"M30\",\"regions\":[\"swedensouth\",\"chilecentral\",\"australiacentral2\",\"japanwest\",\"southindia\",\"polandcentral\",\"japaneast\",\"newzealandnorth\",\"eastus2\",\"uaecentral\",\"brazilsoutheast\",\"qatarcentral\",\"indonesiacentral\",\"southeastasia\",\"westus\",\"francecentral\",\"koreacentral\",\"norwayeast\",\"malaysiawest\",\"uaenorth\",\"germanynorth\",\"northeurope\",\"westus2\",\"australiaeast\",\"italynorth\",\"norwaywest\",\"brazilsouth\",\"westcentralus\",\"westus3\",\"israelcentral\",\"uksouth\",\"spaincentral\",\"westeurope\",\"centralindia\",\"canadacentral\",\"southcentralus\",\"australiacentral\",\"westindia\",\"eastasia\",\"switzerlandwest\",\"germanywestcentral\",\"centralus\",\"eastus\",\"southafricanorth\",\"northcentralus\",\"mexicocentral\",\"swedencentral\",\"southafricawest\",\"canadaeast\",\"australiasoutheast\",\"francesouth\",\"switzerlandnorth\",\"ukwest\",\"koreasouth\"]}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProjectClusterTierRegion.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProjectClusterTierRegion.Tests.ps1 new file mode 100644 index 000000000000..7b5880fb695d --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Get-AzMongoDBProjectClusterTierRegion.Tests.ps1 @@ -0,0 +1,26 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Get-AzMongoDBProjectClusterTierRegion')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Get-AzMongoDBProjectClusterTierRegion.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Get-AzMongoDBProjectClusterTierRegion' { + It 'List' { + { + $result = Get-AzMongoDBProjectClusterTierRegion -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName -ProjectName $env.ProjectName + $result.OrganizationId | Should -Not -BeNullOrEmpty + $result.ProjectId | Should -Not -BeNullOrEmpty + $result.RegionsByTier | Should -Not -BeNullOrEmpty + } | Should -Not -Throw + } +} diff --git a/src/MongoDB/MongoDB.Autorest/test/Limit-AzMongoDBProject.Recording.json b/src/MongoDB/MongoDB.Autorest/test/Limit-AzMongoDBProject.Recording.json new file mode 100644 index 000000000000..00c6675fffd7 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Limit-AzMongoDBProject.Recording.json @@ -0,0 +1,50 @@ +{ + "Limit-AzMongoDBProject+[NoContext]+Limit+$POST+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/tierLimitReached?api-version=2026-03-01-preview+1": { + "Request": { + "Method": "POST", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/tierLimitReached?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "69519338-49ba-4bf8-9f02-35ff46ac6c69" ], + "CommandName": [ "Limit-AzMongoDBProject" ], + "FullCommandName": [ "Limit-AzMongoDBProject_Limit" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ], + "Authorization": [ "[Filtered]" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/ae19d976-42cd-45c0-b2f0-bb9f046c20a2" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "7080559f-cdb6-437a-81ef-65a9772f9172" ], + "x-ms-correlation-request-id": [ "40dc170c-0a82-4766-a57e-3365a7be9666" ], + "x-ms-client-request-id": [ "69519338-49ba-4bf8-9f02-35ff46ac6c69" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "d561116b-3b87-4749-b653-303715a69110" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150625Z:40dc170c-0a82-4766-a57e-3365a7be9666" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 6A5F62330A0745A0929E1AC24BA52F07 Ref B: PNQ231110907031 Ref C: 2026-06-25T15:06:25Z" ], + "Date": [ "Thu, 25 Jun 2026 15:06:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "69" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"limits\":[{\"type\":\"FREE\",\"maximum\":1,\"current\":1,\"isReached\":true}]}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/test/Limit-AzMongoDBProject.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Limit-AzMongoDBProject.Tests.ps1 new file mode 100644 index 000000000000..e493189cbf06 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Limit-AzMongoDBProject.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Limit-AzMongoDBProject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Limit-AzMongoDBProject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Limit-AzMongoDBProject' { + It 'Limit' { + { + $result = Limit-AzMongoDBProject -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName -ProjectName $env.ProjectName + $result.Type | Should -Not -BeNullOrEmpty + $result.Maximum | Should -Not -BeNullOrEmpty + } | Should -Not -Throw + } + + It 'LimitViaIdentityOrganization' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'LimitViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBCluster.Recording.json b/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBCluster.Recording.json new file mode 100644 index 000000000000..43456cdc3346 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBCluster.Recording.json @@ -0,0 +1,324 @@ +{ + "New-AzMongoDBCluster+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster?api-version=2026-03-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster?api-version=2026-03-01-preview", + "Content": "{\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "4" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/14bb3b6d-08ec-40f5-9a74-b0d2314b8a35*AEB81EF6A3D9DEE272BDE03E6E40AACE5D2B05829666814EA3291B3A22E07240?api-version=2026-03-01-preview\u0026t=639179968114740308\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T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gk6r2Ez8s8_vw6HLIGw7rLHx2D1muwevYyZ0dVgJa-VHCrBoSBL_ytZIofR5WUtbICE_9YIipUuxbnIRg9Vo_fv4cLzx0uLFk32vRKMroJ_zkJageE_exU-hNqZc7DSsWkROInmq7mMmyBvpTZB-q5PrEYUJi9zJZserlQTQG1e7u-Z7UEl\u0026s=z4R0wExec2MSPWbh2jsab0QW_UkSG92t_9uZHyAKyvmUcXQSxf6w-hUVDqkGv6Q65pVFT0qw8bdg-Kimc9xPCh31ooxTWVFm5cPpC_xqqCgem4UkxbNL7iqQD1qK7l3LerfQQln-Ga6sgxIZ3ni3fzFxZcuAFo_hTE5ZkjbJXZF7_a9udv-yK4w689b11rPaPI6LOzTTt6NxBeCEkgDDCuGWz--6ZoRaLuqJtQKGf45hpv34dnNQhp19XEfphu6jYE6K6A63s5sLL8CJ9MT5gVf8FhwfyWVumVAe11wZOgEBW0UJMfE8H_2I1SksS8iKLCNQNmhdPMpDC5eL0dSbRg\u0026h=CGIMmHFCLEQCHvL_T0SEyhGD0IZa4T7Ov0spAIEH0s4" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/3ec46c64-5f23-4dd5-a09f-53452f84f2a5" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "2c7f55f8-1a44-4761-a2e2-d448ed1939a9" ], + "x-ms-correlation-request-id": [ "3b5726d2-1957-4c0d-982b-2ec5b5f46dd0" ], + "x-ms-client-request-id": [ "d13ef6ee-88e0-4102-839d-e3c83d1d82cc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Azure-AsyncNotification": [ "Enabled" ], + "x-ms-resource-provider-hint": [ "noPolling" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/14bb3b6d-08ec-40f5-9a74-b0d2314b8a35*AEB81EF6A3D9DEE272BDE03E6E40AACE5D2B05829666814EA3291B3A22E07240?api-version=2026-03-01-preview\u0026t=639179968114583357\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_lxyL6jb91_Fr1VWY_VRVB7zp7HCgghkwofjjGAbbdIqDseNKJdMcooubZaRzrViDXEgbnaN8vC-4cZ4fjDUhtZh80l4sEyp_iBCPcY7I-xDOLiz7i1vlpvCL7tA0iKHuk6AAPDQk4fPmFWUwUWR3SajkDmuQjTPVWhQyEOJVGJNf6hvyBKFjGuXqSOk8prQb8yn6q8TftPg2b9zjlfxfHQEZqdePVaY7VeW2ljF2sUmWsNvQikg3g_Zh9I6j0tT0DW51c8CoF8PrVglMgLQVrYCdAeE30Fi0vIiXCT0XOP-0RYInckGEJqDB8JAgMBAAGjggTCMIIEvjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAtAGEAMAA1ADUALQA1AGIAZABhAGYAZgBkADUAZQAzADMAZDAMBgorBgEEAYI3ewMCMAwGCisGAQQBgjd7BAIwDAYDVR0TAQH_BAIwADAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwI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-b0d2314b8a35" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150651Z:3b5726d2-1957-4c0d-982b-2ec5b5f46dd0" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 662B2269587D4FD3BEC7D7600506846D Ref B: PNQ231110908040 Ref C: 2026-06-25T15:06:49Z" ], + "Date": [ "Thu, 25 Jun 2026 15:06:51 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "621" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster\",\"name\":\"test-project-for-cluster\",\"type\":\"mongodb.atlas/organizations/projects\",\"systemData\":{\"createdBy\":\"sharmaanu@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2026-06-25T15:06:50.1145794Z\",\"lastModifiedBy\":\"sharmaanu@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2026-06-25T15:06:50.1145794Z\"},\"properties\":{\"projectName\":\"test-project-for-cluster\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"provisioningState\":\"Accepted\"}}", + "isContentBase64": false + } + }, + "New-AzMongoDBCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/14bb3b6d-08ec-40f5-9a74-b0d2314b8a35*AEB81EF6A3D9DEE272BDE03E6E40AACE5D2B05829666814EA3291B3A22E07240?api-version=2026-03-01-preview\u0026t=639179968114583357\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgU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0aG9yaXRpZXMvY2NtZWNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQCJKCm8sITuRyQTfwfcPh1P_Y_FIoUY5rZqcJP5tAOTOk1M7UmZj3IhXCBuZfq1T1jLPVgMAAzHcyE4XjPrHalXdgSI6SJ0gq8I0X_ncsTkhomAsA5RU_sucWZ9nWgbXX-QDJi_bM0mzxsaKErSi607X1BM3DqI2SNMMgk6r2Ez8s8_vw6HLIGw7rLHx2D1muwevYyZ0dVgJa-VHCrBoSBL_ytZIofR5WUtbICE_9YIipUuxbnIRg9Vo_fv4cLzx0uLFk32vRKMroJ_zkJageE_exU-hNqZc7DSsWkROInmq7mMmyBvpTZB-q5PrEYUJi9zJZserlQTQG1e7u-Z7UEl\u0026s=hT0o2vnczyUyE-qAA8DGaJYhm6hjgSCVZN_Ld4YTnMsgabNcPNv2CB-y0YEN0iCJRNrXwRf_y_awV7yqDDNywEvPmeqZkHupnSXw8fDff8BtHCtKZ6odr-Jr9zYWupR8PofVg7-vQkc3bgSNLnmFejxKpAQOkGbpjSm1D59ApNJwoCcOQUq7yhmv5varA42LonAegEwXvjjUMextTK4zA2lu7E5Ky96_zbIgShVKezhodfLzQAlkfiHQhuk_vD0QZicyE3OEotF1_DoCb0QYlATFgtrcb-CVL4nlLu-WVtslAv9cRGfKOfxAk-Sp8Pt7rAw3ydTBaPlbzjCny0TYcg\u0026h=wgTosWMeS35r2f3fl0yEQNw0YDh77dwmj-X2TVmzOqk+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/14bb3b6d-08ec-40f5-9a74-b0d2314b8a35*AEB81EF6A3D9DEE272BDE03E6E40AACE5D2B05829666814EA3291B3A22E07240?api-version=2026-03-01-preview\u0026t=639179968114583357\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NN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nRpZmljYXRlQXV0aG9yaXRpZXMvY2NtZWNlbnRyYWx1c2ljYTAxMA0GCSqGSIb3DQEBCwUAA4IBAQCJKCm8sITuRyQTfwfcPh1P_Y_FIoUY5rZqcJP5tAOTOk1M7UmZj3IhXCBuZfq1T1jLPVgMAAzHcyE4XjPrHalXdgSI6SJ0gq8I0X_ncsTkhomAsA5RU_sucWZ9nWgbXX-QDJi_bM0mzxsaKErSi607X1BM3DqI2SNMMgk6r2Ez8s8_vw6HLIGw7rLHx2D1muwevYyZ0dVgJa-VHCrBoSBL_ytZIofR5WUtbICE_9YIipUuxbnIRg9Vo_fv4cLzx0uLFk32vRKMroJ_zkJageE_exU-hNqZc7DSsWkROInmq7mMmyBvpTZB-q5PrEYUJi9zJZserlQTQG1e7u-Z7UEl\u0026s=hT0o2vnczyUyE-qAA8DGaJYhm6hjgSCVZN_Ld4YTnMsgabNcPNv2CB-y0YEN0iCJRNrXwRf_y_awV7yqDDNywEvPmeqZkHupnSXw8fDff8BtHCtKZ6odr-Jr9zYWupR8PofVg7-vQkc3bgSNLnmFejxKpAQOkGbpjSm1D59ApNJwoCcOQUq7yhmv5varA42LonAegEwXvjjUMextTK4zA2lu7E5Ky96_zbIgShVKezhodfLzQAlkfiHQhuk_vD0QZicyE3OEotF1_DoCb0QYlATFgtrcb-CVL4nlLu-WVtslAv9cRGfKOfxAk-Sp8Pt7rAw3ydTBaPlbzjCny0TYcg\u0026h=wgTosWMeS35r2f3fl0yEQNw0YDh77dwmj-X2TVmzOqk", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "2" ], + "x-ms-client-request-id": [ "d13ef6ee-88e0-4102-839d-e3c83d1d82cc" ], + "CommandName": [ "New-AzMongoDBProject" ], + "FullCommandName": [ "New-AzMongoDBProject_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"9a06711e-0000-0a00-0000-6a3d44270000\"" ], + "x-ms-operation-identifier": [ "" ], + "x-ms-request-id": [ "5bf05e2d-1c80-4e56-8fd9-4b2034a4fb0a" ], + "x-ms-correlation-request-id": [ "fc6e9207-05e1-482a-bfc2-703a8e791e43" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "249" ], + "x-ms-routing-request-id": [ "WESTINDIA:20260625T150722Z:fc6e9207-05e1-482a-bfc2-703a8e791e43" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 61B1DD2D9AA3477FBDEA018C9D2EDF57 Ref B: PNQ231110908040 Ref C: 2026-06-25T15:07:21Z" ], + "Date": [ "Thu, 25 Jun 2026 15:07:22 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "601" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/14bb3b6d-08ec-40f5-9a74-b0d2314b8a35*AEB81EF6A3D9DEE272BDE03E6E40AACE5D2B05829666814EA3291B3A22E07240\",\"name\":\"14bb3b6d-08ec-40f5-9a74-b0d2314b8a35*AEB81EF6A3D9DEE272BDE03E6E40AACE5D2B05829666814EA3291B3A22E07240\",\"resourceId\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster\",\"status\":\"Succeeded\",\"startTime\":\"2026-06-25T15:06:50.6301945Z\",\"endTime\":\"2026-06-25T15:07:18.9690238Z\",\"error\":{},\"properties\":null}", + "isContentBase64": false + } + }, + "New-AzMongoDBCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster?api-version=2026-03-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "3" ], + "x-ms-client-request-id": [ "d13ef6ee-88e0-4102-839d-e3c83d1d82cc" ], + "CommandName": [ "New-AzMongoDBProject" ], + "FullCommandName": [ "New-AzMongoDBProject_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/5c9df24a-7dc8-4208-91a8-e8b5900a6901" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "0a5f3e41-954f-4238-be09-c557224c4d38" ], + "x-ms-correlation-request-id": [ "7697c1cb-3f2d-4665-97d2-f2d593c0138d" ], + "x-ms-client-request-id": [ "d13ef6ee-88e0-4102-839d-e3c83d1d82cc" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "27869c8d-5d19-4f58-ad87-5555bb8a6b13" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150723Z:7697c1cb-3f2d-4665-97d2-f2d593c0138d" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 84AE880A287F47B3AEF65DE98F159B94 Ref B: PNQ231110908040 Ref C: 2026-06-25T15:07:22Z" ], + "Date": [ "Thu, 25 Jun 2026 15:07:23 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "440" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster\",\"name\":\"test-project-for-cluster\",\"type\":\"MongoDB.Atlas/organizations/projects\",\"properties\":{\"projectId\":\"6a3d442440f6937e83f5bf55\",\"projectName\":\"test-project-for-cluster\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"clusterCount\":0,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + }, + "New-AzMongoDBCluster+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster/clusters/test-cluster-pester?api-version=2026-03-01-preview+4": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster/clusters/test-cluster-pester?api-version=2026-03-01-preview", + "Content": "{\r\n \"properties\": {\r\n \"clusterTier\": \"FREE\",\r\n \"regionName\": \"eastus2\"\r\n }\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "85" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD?api-version=2026-03-01-preview\u0026t=639179968458861837\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_lxyL6jb91_Fr1VWY_VRVB7zp7HCgghkwofjjGAbbdIqDseNKJdMcooubZaRzrViDXEgbnaN8vC-4cZ4fjDUhtZh80l4sEyp_iBCPcY7I-xDOLiz7i1vlpvCL7tA0iKHuk6AAPDQk4fPmFWUwUWR3SajkDmuQjTPVWhQyEOJVGJNf6hvyBKFjGuXqSOk8prQb8yn6q8TftPg2b9zjlfxfHQEZqdePVaY7VeW2ljF2sUmWsNvQikg3g_Zh9I6j0tT0DW51c8CoF8PrVglMgLQVrYCdAeE30Fi0vIiXCT0XOP-0RYInckGEJqDB8JAgMBAAGjggTCMIIEvjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQANgA0AC0ANABmADgAYwAt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1XEeLgHDbI9J0skSxOGdyglglmoc78te23ns5XurMUgxmyioqmrWgziLiMQ\u0026h=C3zOSLQv2ALdoai9LM81X722OmxlT-FqMtmNVTXTIY4" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/4848af6a-91e7-4ccc-b07a-f367515611c3" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "510c58ff-fc6c-4ea8-9cb7-dbb0ed22c7bf" ], + "x-ms-correlation-request-id": [ "f78ba82d-7130-4df2-a43c-1f047064f04e" ], + "x-ms-client-request-id": [ "a77468a4-dcb5-40b4-b390-226ce5c02d1f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Azure-AsyncNotification": [ "Enabled" ], + "x-ms-resource-provider-hint": [ "noPolling" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD?api-version=2026-03-01-preview\u0026t=639179968458861837\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_lxyL6j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vw6HLIGw7rLHx2D1muwevYyZ0dVgJa-VHCrBoSBL_ytZIofR5WUtbICE_9YIipUuxbnIRg9Vo_fv4cLzx0uLFk32vRKMroJ_zkJageE_exU-hNqZc7DSsWkROInmq7mMmyBvpTZB-q5PrEYUJi9zJZserlQTQG1e7u-Z7UEl\u0026s=zBgTegEel8zvdgx3yPGOiYyqmQEMc185WFYD1KyUWBQCWwqEfmCe9sZPRaVEyFw8s4SdsC93IdJc7Aj7EdXKOC8IyoBHdq2x3FfdAOhtUoVq9lKm1zsvofqbk2_t6QKBC-6EY3CEDdm1cm4RnlWgatF3-sangktYm7uF0JFxstmOEdipmBS__hj2M4G2oxW4VAHIbUKmwCSXw1Ob14yg9EnFOBnw6lSjrRhB1a-XPFuoZzB0RrHSwIkW17H3CslqWh55tLU4ZNHvFvhpqPx6j4jemIT1XEeLgHDbI9J0skSxOGdyglglmoc78te23ns5XurMUgxmyioqmrWgziLiMQ\u0026h=C3zOSLQv2ALdoai9LM81X722OmxlT-FqMtmNVTXTIY4" ], + "x-ms-request-id": [ "72cc9ab0-a487-477e-80d6-cccb6fec1ffe" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150725Z:f78ba82d-7130-4df2-a43c-1f047064f04e" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 5B3C24624BC44942919D482EA17A4ECE Ref B: PNQ231110908040 Ref C: 2026-06-25T15:07:24Z" ], + "Date": [ "Thu, 25 Jun 2026 15:07:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "677" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster/clusters/test-cluster-pester\",\"name\":\"test-cluster-pester\",\"type\":\"mongodb.atlas/organizations/projects/clusters\",\"systemData\":{\"createdBy\":\"sharmaanu@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2026-06-25T15:07:24.4018225Z\",\"lastModifiedBy\":\"sharmaanu@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2026-06-25T15:07:24.4018225Z\"},\"properties\":{\"clusterName\":\"test-cluster-pester\",\"clusterTier\":\"FREE\",\"regionName\":\"eastus2\",\"backups\":null,\"state\":null,\"provisioningState\":\"Accepted\"}}", + "isContentBase64": false + } + }, + "New-AzMongoDBCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD?api-version=2026-03-01-preview\u0026t=639179968458861837\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_lxyL6jb91_Fr1VWY_VRVB7zp7HCgghkwofjjGAbbdIqDseNKJdMcooubZaRzrViDXEgbnaN8vC-4cZ4fjDUhtZh80l4sEyp_iBCPcY7I-xDOLiz7i1vlpvCL7tA0iKHuk6AAPDQk4fPmFWUwUWR3SajkDmuQjTPVWhQyEOJVGJNf6hvyBKFjGuXqSOk8prQb8yn6q8TftPg2b9zj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FYD1KyUWBQCWwqEfmCe9sZPRaVEyFw8s4SdsC93IdJc7Aj7EdXKOC8IyoBHdq2x3FfdAOhtUoVq9lKm1zsvofqbk2_t6QKBC-6EY3CEDdm1cm4RnlWgatF3-sangktYm7uF0JFxstmOEdipmBS__hj2M4G2oxW4VAHIbUKmwCSXw1Ob14yg9EnFOBnw6lSjrRhB1a-XPFuoZzB0RrHSwIkW17H3CslqWh55tLU4ZNHvFvhpqPx6j4jemIT1XEeLgHDbI9J0skSxOGdyglglmoc78te23ns5XurMUgxmyioqmrWgziLiMQ\u0026h=C3zOSLQv2ALdoai9LM81X722OmxlT-FqMtmNVTXTIY4+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD?api-version=2026-03-01-preview\u0026t=639179968458861837\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_lxyL6jb91_Fr1VWY_VRVB7zp7HCgghkwofjjGAbbdIqDseNKJdMcooubZaRzrViDXEgbnaN8vC-4cZ4fjDUhtZh80l4sEyp_iBCPcY7I-xDOLiz7i1vlpvCL7tA0iKHuk6AAPDQk4fPmFWUwUWR3SajkDmuQjTPVWhQyEOJVGJNf6hvyBKFjGuXqSOk8prQb8yn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OiYyqmQEMc185WFYD1KyUWBQCWwqEfmCe9sZPRaVEyFw8s4SdsC93IdJc7Aj7EdXKOC8IyoBHdq2x3FfdAOhtUoVq9lKm1zsvofqbk2_t6QKBC-6EY3CEDdm1cm4RnlWgatF3-sangktYm7uF0JFxstmOEdipmBS__hj2M4G2oxW4VAHIbUKmwCSXw1Ob14yg9EnFOBnw6lSjrRhB1a-XPFuoZzB0RrHSwIkW17H3CslqWh55tLU4ZNHvFvhpqPx6j4jemIT1XEeLgHDbI9J0skSxOGdyglglmoc78te23ns5XurMUgxmyioqmrWgziLiMQ\u0026h=C3zOSLQv2ALdoai9LM81X722OmxlT-FqMtmNVTXTIY4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "5" ], + "x-ms-client-request-id": [ "a77468a4-dcb5-40b4-b390-226ce5c02d1f" ], + "CommandName": [ "New-AzMongoDBCluster" ], + "FullCommandName": [ "New-AzMongoDBCluster_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"9a061e21-0000-0a00-0000-6a3d442c0000\"" ], + "x-ms-operation-identifier": [ "" ], + "x-ms-request-id": [ "f353915c-4602-4076-841e-c1da640514cf" ], + "x-ms-correlation-request-id": [ "281b1889-ddc5-44c5-907a-ff74352cf864" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "249" ], + "x-ms-routing-request-id": [ "JIOINDIACENTRAL:20260625T150757Z:281b1889-ddc5-44c5-907a-ff74352cf864" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: F62F310453EF45C1AD414B89F4B08C7C Ref B: PNQ231110908040 Ref C: 2026-06-25T15:07:56Z" ], + "Date": [ "Thu, 25 Jun 2026 15:07:57 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "559" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD\",\"name\":\"72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD\",\"resourceId\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster/clusters/test-cluster-pester\",\"status\":\"Accepted\",\"startTime\":\"2026-06-25T15:07:24.9387578Z\"}", + "isContentBase64": false + } + }, + "New-AzMongoDBCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD?api-version=2026-03-01-preview\u0026t=639179968458861837\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK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_bM0mzxsaKErSi607X1BM3DqI2SNMMgk6r2Ez8s8_vw6HLIGw7rLHx2D1muwevYyZ0dVgJa-VHCrBoSBL_ytZIofR5WUtbICE_9YIipUuxbnIRg9Vo_fv4cLzx0uLFk32vRKMroJ_zkJageE_exU-hNqZc7DSsWkROInmq7mMmyBvpTZB-q5PrEYUJi9zJZserlQTQG1e7u-Z7UEl\u0026s=zBgTegEel8zvdgx3yPGOiYyqmQEMc185WFYD1KyUWBQCWwqEfmCe9sZPRaVEyFw8s4SdsC93IdJc7Aj7EdXKOC8IyoBHdq2x3FfdAOhtUoVq9lKm1zsvofqbk2_t6QKBC-6EY3CEDdm1cm4RnlWgatF3-sangktYm7uF0JFxstmOEdipmBS__hj2M4G2oxW4VAHIbUKmwCSXw1Ob14yg9EnFOBnw6lSjrRhB1a-XPFuoZzB0RrHSwIkW17H3CslqWh55tLU4ZNHvFvhpqPx6j4jemIT1XEeLgHDbI9J0skSxOGdyglglmoc78te23ns5XurMUgxmyioqmrWgziLiMQ\u0026h=C3zOSLQv2ALdoai9LM81X722OmxlT-FqMtmNVTXTIY4+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD?api-version=2026-03-01-preview\u0026t=639179968458861837\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQU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9nWgbXX-QDJi_bM0mzxsaKErSi607X1BM3DqI2SNMMgk6r2Ez8s8_vw6HLIGw7rLHx2D1muwevYyZ0dVgJa-VHCrBoSBL_ytZIofR5WUtbICE_9YIipUuxbnIRg9Vo_fv4cLzx0uLFk32vRKMroJ_zkJageE_exU-hNqZc7DSsWkROInmq7mMmyBvpTZB-q5PrEYUJi9zJZserlQTQG1e7u-Z7UEl\u0026s=zBgTegEel8zvdgx3yPGOiYyqmQEMc185WFYD1KyUWBQCWwqEfmCe9sZPRaVEyFw8s4SdsC93IdJc7Aj7EdXKOC8IyoBHdq2x3FfdAOhtUoVq9lKm1zsvofqbk2_t6QKBC-6EY3CEDdm1cm4RnlWgatF3-sangktYm7uF0JFxstmOEdipmBS__hj2M4G2oxW4VAHIbUKmwCSXw1Ob14yg9EnFOBnw6lSjrRhB1a-XPFuoZzB0RrHSwIkW17H3CslqWh55tLU4ZNHvFvhpqPx6j4jemIT1XEeLgHDbI9J0skSxOGdyglglmoc78te23ns5XurMUgxmyioqmrWgziLiMQ\u0026h=C3zOSLQv2ALdoai9LM81X722OmxlT-FqMtmNVTXTIY4", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "6" ], + "x-ms-client-request-id": [ "a77468a4-dcb5-40b4-b390-226ce5c02d1f" ], + "CommandName": [ "New-AzMongoDBCluster" ], + "FullCommandName": [ "New-AzMongoDBCluster_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"9a06db43-0000-0a00-0000-6a3d44690000\"" ], + "x-ms-operation-identifier": [ "" ], + "x-ms-request-id": [ "30c3fdf0-9469-4716-bad3-e45a54a094c6" ], + "x-ms-correlation-request-id": [ "6b85ef9c-f559-465d-b9f8-947c4e1b4432" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "249" ], + "x-ms-routing-request-id": [ "WESTINDIA:20260625T150828Z:6b85ef9c-f559-465d-b9f8-947c4e1b4432" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 76EB8E1B39F146068585D6C77274526D Ref B: PNQ231110908040 Ref C: 2026-06-25T15:08:27Z" ], + "Date": [ "Thu, 25 Jun 2026 15:08:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "630" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD\",\"name\":\"72cc9ab0-a487-477e-80d6-cccb6fec1ffe*C6B7532D6EEF89C791C759010BEDE95650D5D7CB4FAFCE671B3B98C15BC4E7AD\",\"resourceId\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster/clusters/test-cluster-pester\",\"status\":\"Succeeded\",\"startTime\":\"2026-06-25T15:07:24.9387578Z\",\"endTime\":\"2026-06-25T15:08:25.9325416Z\",\"error\":{},\"properties\":null}", + "isContentBase64": false + } + }, + "New-AzMongoDBCluster+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster/clusters/test-cluster-pester?api-version=2026-03-01-preview+7": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster/clusters/test-cluster-pester?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "7" ], + "x-ms-client-request-id": [ "a77468a4-dcb5-40b4-b390-226ce5c02d1f" ], + "CommandName": [ "New-AzMongoDBCluster" ], + "FullCommandName": [ "New-AzMongoDBCluster_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/4ff0c766-d041-4d05-ba8e-9d739998b4cf" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "525ca9bb-de96-45ad-91b5-5842584ee44c" ], + "x-ms-correlation-request-id": [ "5b1fe7e8-d703-4700-913a-63c38504b807" ], + "x-ms-client-request-id": [ "a77468a4-dcb5-40b4-b390-226ce5c02d1f" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "4c89af3a-3840-4844-9b01-bd58d7f0be3a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150829Z:5b1fe7e8-d703-4700-913a-63c38504b807" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 67E9AEAAEAB446BF9D070CF118B0A62E Ref B: PNQ231110908040 Ref C: 2026-06-25T15:08:28Z" ], + "Date": [ "Thu, 25 Jun 2026 15:08:29 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "500" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-for-cluster/clusters/test-cluster-pester\",\"name\":\"test-cluster-pester\",\"type\":\"MongoDB.Atlas/organizations/projects/clusters\",\"properties\":{\"clusterName\":\"test-cluster-pester\",\"clusterTier\":\"FREE\",\"regionName\":\"eastus2\",\"mongoDbVersion\":\"8.0.24-patch-6a3992052eafe5000797a34e\",\"backups\":false,\"state\":\"IDLE\",\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBCluster.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBCluster.Tests.ps1 new file mode 100644 index 000000000000..160d80dfac2d --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBCluster.Tests.ps1 @@ -0,0 +1,45 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzMongoDBCluster')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzMongoDBCluster.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzMongoDBCluster' { + It 'CreateExpanded' { + { + # Create a dedicated project to avoid FREE-tier limit (1 per project) + New-AzMongoDBProject -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName -Name $env.ClusterTestProjectName + $result = New-AzMongoDBCluster -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName -ProjectName $env.ClusterTestProjectName -Name $env.NewClusterName -ClusterTier $env.ClusterTier -RegionName $env.RegionName + $result.ProvisioningState | Should -Be 'Succeeded' + $result.ClusterName | Should -Be $env.NewClusterName + $result.Tier | Should -Be $env.ClusterTier + $result.RegionName | Should -Be $env.RegionName + } | Should -Not -Throw + } + + It 'CreateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityOrganizationExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityProjectExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBProject.Recording.json b/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBProject.Recording.json new file mode 100644 index 000000000000..7c0994ff33ce --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBProject.Recording.json @@ -0,0 +1,141 @@ +{ + "New-AzMongoDBProject+[NoContext]+CreateExpanded+$PUT+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-new?api-version=2026-03-01-preview+1": { + "Request": { + "Method": "PUT", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-new?api-version=2026-03-01-preview", + "Content": "{\r\n}", + "isContentBase64": false, + "Headers": { + }, + "ContentHeaders": { + "Content-Type": [ "application/json" ], + "Content-Length": [ "4" ] + } + }, + "Response": { + "StatusCode": 201, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "Location": [ "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/a7dd01d4-3184-4a43-8499-ee535857ae10*F7A0E196A3F3666514ECFA0EA7DBEF033C67E867BD2E2FC7B1019D7334336050?api-version=2026-03-01-preview\u0026t=639179969119827496\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_lxyL6jb91_Fr1VWY_VRVB7zp7HCgghkwofjjGAbbdIqDseNKJdMcooubZaRzrViDXEgbnaN8vC-4cZ4fjDUhtZh80l4sEyp_iBCPcY7I-xDOLiz7i1vlpvCL7tA0iKHuk6AAPDQk4fPmFWUwUWR3SajkDmuQjTPVWhQyEOJVGJNf6hvyBKFjGuXqSOk8prQb8yn6q8TftPg2b9zjlfxfHQEZqdePVaY7VeW2ljF2sUmWsNvQikg3g_Zh9I6j0tT0DW51c8CoF8PrVglMgLQVrYCdAeE30Fi0vIiXCT0XOP-0RYInckGEJqDB8JAgMBAAGjggTCMIIEvjCBnQYDVR0gBIGVMIGSMAwGCisGAQQBgjd7AQEwZgYKKwYBBAGCN3sCAjBYMFYGCCsGAQUFBwICMEoeSAAzADMAZQAwADEAOQAyADEALQA0AGQAN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PFVrKmRPWJf9cZpam9vMyxcdYnWwyfCvceGTjyvRnBpT3eZyWKT5yF33SQE2sC5qBizrkn5tE2OA\u0026h=OU1oGslpc_P86CPVrK8htlSR2jctMipyvJEzPy135rM" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/d227639a-d19b-4d41-8bb1-891ef6ff47ba" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "ed965449-0775-4636-8580-7045b9187bf3" ], + "x-ms-correlation-request-id": [ "60866c8e-fa18-4b69-b7dd-b28e51419948" ], + "x-ms-client-request-id": [ "08d6f34c-10a0-4011-8d6d-18a1ead5b1b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Azure-AsyncNotification": [ "Enabled" ], + "x-ms-resource-provider-hint": [ "noPolling" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/a7dd01d4-3184-4a43-8499-ee535857ae10*F7A0E196A3F3666514ECFA0EA7DBEF033C67E867BD2E2FC7B1019D7334336050?api-version=2026-03-01-preview\u0026t=639179969119827496\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_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ez8s8_vw6HLIGw7rLHx2D1muwevYyZ0dVgJa-VHCrBoSBL_ytZIofR5WUtbICE_9YIipUuxbnIRg9Vo_fv4cLzx0uLFk32vRKMroJ_zkJageE_exU-hNqZc7DSsWkROInmq7mMmyBvpTZB-q5PrEYUJi9zJZserlQTQG1e7u-Z7UEl\u0026s=gozCUkiRESMTbGlGVIcFBH47U5Mm9iKUOGSe4-njRZYCVLtLAUB0Y9oD59OT3VB8E8oEiCaDngOZTqLOR-P5iftlhPDc_fxpMNYfjVd8rxrg61v136X-ZWV0oaLwHQ9x8GpdjeDO-ZsRkrUFB6i1NNX1wpV0onPA2hBzwLX_hjQtrLgcxJ00XWGtHmEg7urtjaaDyXke_0jvdrZdSW2eWiFjkwI1876BYF_gB9HQc13PczYC79wMbyIaMV57uOGSvkNqflJKUQPFVrKmRPWJf9cZpam9vMyxcdYnWwyfCvceGTjyvRnBpT3eZyWKT5yF33SQE2sC5qBizrkn5tE2OA\u0026h=OU1oGslpc_P86CPVrK8htlSR2jctMipyvJEzPy135rM" ], + "x-ms-request-id": [ "a7dd01d4-3184-4a43-8499-ee535857ae10" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "199" ], + "x-ms-ratelimit-remaining-subscription-global-writes": [ "2999" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150831Z:60866c8e-fa18-4b69-b7dd-b28e51419948" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 74FC720844AD40D7ACC4BDBB269F74DC Ref B: PNQ231110908040 Ref C: 2026-06-25T15:08:30Z" ], + "Date": [ "Thu, 25 Jun 2026 15:08:31 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "597" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-new\",\"name\":\"test-project-new\",\"type\":\"mongodb.atlas/organizations/projects\",\"systemData\":{\"createdBy\":\"sharmaanu@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2026-06-25T15:08:30.5921273Z\",\"lastModifiedBy\":\"sharmaanu@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2026-06-25T15:08:30.5921273Z\"},\"properties\":{\"projectName\":\"test-project-new\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"provisioningState\":\"Accepted\"}}", + "isContentBase64": false + } + }, + "New-AzMongoDBProject+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/a7dd01d4-3184-4a43-8499-ee535857ae10*F7A0E196A3F3666514ECFA0EA7DBEF033C67E867BD2E2FC7B1019D7334336050?api-version=2026-03-01-preview\u0026t=639179969119827496\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_lxyL6jb91_Fr1VWY_VRVB7zp7HCgghkwofjjGAbbdIqDseNKJdMcooubZaRzrViDXEgbnaN8vC-4cZ4fjDUhtZh80l4sEyp_iBCPcY7I-xDOLiz7i1vlpvCL7tA0iKHuk6AAPDQk4fPmFWUwUWR3SajkDmuQjTPVWhQyEOJVGJNf6hvyBKFjGuXqSOk8prQb8yn6q8TftPg2b9zjlfxfHQEZqdePVaY7VeW2ljF2sUmWsNvQikg3g_Zh9I6j0tT0D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-P5iftlhPDc_fxpMNYfjVd8rxrg61v136X-ZWV0oaLwHQ9x8GpdjeDO-ZsRkrUFB6i1NNX1wpV0onPA2hBzwLX_hjQtrLgcxJ00XWGtHmEg7urtjaaDyXke_0jvdrZdSW2eWiFjkwI1876BYF_gB9HQc13PczYC79wMbyIaMV57uOGSvkNqflJKUQPFVrKmRPWJf9cZpam9vMyxcdYnWwyfCvceGTjyvRnBpT3eZyWKT5yF33SQE2sC5qBizrkn5tE2OA\u0026h=OU1oGslpc_P86CPVrK8htlSR2jctMipyvJEzPy135rM+2": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/a7dd01d4-3184-4a43-8499-ee535857ae10*F7A0E196A3F3666514ECFA0EA7DBEF033C67E867BD2E2FC7B1019D7334336050?api-version=2026-03-01-preview\u0026t=639179969119827496\u0026c=MIIHxDCCBqygAwIBAgIRAJbrgketDbWHLEx1EpPCeH4wDQYJKoZIhvcNAQELBQAwNTEzMDEGA1UEAxMqQ0NNRSBHMSBUTFMgUlNBIDIwNDggU0hBMjU2IDIwNDkgQ1VTIENBIDAxMB4XDTI2MDQwODAwMDQ1MloXDTI2MTAwMzA2MDQ1MlowQDE-MDwGA1UEAxM1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDT3FOWry_6qK0dbuwtMK4T4HuDo_lxyL6jb91_Fr1VWY_VRVB7zp7HCgghkwofjjGAbbdIqDseNKJdMcooubZaRzrViDXEgbnaN8vC-4cZ4fjDUhtZh80l4sEyp_iBCPcY7I-xDOLiz7i1vlpvCL7tA0iKHuk6AAPDQk4fPmFWUwUWR3SajkDmuQjTPVWhQyEOJVGJNf6hvyBKFjGuXqSOk8prQb8yn6q8TftPg2b9zjlfxfHQEZqdePVaY7VeW2ljF2sUmWsNvQikg3g_Zh9I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OZTqLOR-P5iftlhPDc_fxpMNYfjVd8rxrg61v136X-ZWV0oaLwHQ9x8GpdjeDO-ZsRkrUFB6i1NNX1wpV0onPA2hBzwLX_hjQtrLgcxJ00XWGtHmEg7urtjaaDyXke_0jvdrZdSW2eWiFjkwI1876BYF_gB9HQc13PczYC79wMbyIaMV57uOGSvkNqflJKUQPFVrKmRPWJf9cZpam9vMyxcdYnWwyfCvceGTjyvRnBpT3eZyWKT5yF33SQE2sC5qBizrkn5tE2OA\u0026h=OU1oGslpc_P86CPVrK8htlSR2jctMipyvJEzPy135rM", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "9" ], + "x-ms-client-request-id": [ "08d6f34c-10a0-4011-8d6d-18a1ead5b1b4" ], + "CommandName": [ "New-AzMongoDBProject" ], + "FullCommandName": [ "New-AzMongoDBProject_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"9a068f55-0000-0a00-0000-6a3d44810000\"" ], + "x-ms-operation-identifier": [ "" ], + "x-ms-request-id": [ "13c0deda-a74d-4805-9bc9-649437df4cf7" ], + "x-ms-correlation-request-id": [ "0a3e9e40-614b-4df7-8943-5eb1558d222a" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "249" ], + "x-ms-routing-request-id": [ "JIOINDIACENTRAL:20260625T150903Z:0a3e9e40-614b-4df7-8943-5eb1558d222a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 9CE3D84C41624115A53B2ED29943ADC2 Ref B: PNQ231110908040 Ref C: 2026-06-25T15:09:02Z" ], + "Date": [ "Thu, 25 Jun 2026 15:09:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "593" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/MongoDB.Atlas/locations/CANADACENTRAL/operationStatuses/a7dd01d4-3184-4a43-8499-ee535857ae10*F7A0E196A3F3666514ECFA0EA7DBEF033C67E867BD2E2FC7B1019D7334336050\",\"name\":\"a7dd01d4-3184-4a43-8499-ee535857ae10*F7A0E196A3F3666514ECFA0EA7DBEF033C67E867BD2E2FC7B1019D7334336050\",\"resourceId\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-new\",\"status\":\"Succeeded\",\"startTime\":\"2026-06-25T15:08:31.2163038Z\",\"endTime\":\"2026-06-25T15:08:49.0940328Z\",\"error\":{},\"properties\":null}", + "isContentBase64": false + } + }, + "New-AzMongoDBProject+[NoContext]+CreateExpanded+$GET+https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-new?api-version=2026-03-01-preview+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-new?api-version=2026-03-01-preview", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "10" ], + "x-ms-client-request-id": [ "08d6f34c-10a0-4011-8d6d-18a1ead5b1b4" ], + "CommandName": [ "New-AzMongoDBProject" ], + "FullCommandName": [ "New-AzMongoDBProject_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v8.2.0", "PSVersion/v7.6.2", "Az.MongoDB/0.1.1" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "x-ms-operation-identifier": [ "tenantId=888d76fa-54b2-4ced-8ee5-aac1585adee7,objectId=da7826b0-7505-464c-a74d-7b72637b257f/eastus2/652d1054-b9d7-4105-aad3-4b58eee20359" ], + "x-ms-providerhub-traffic": [ "True" ], + "Request-Context": [ "appId=cid-v1:726af22e-a98d-41b8-8be8-c1f253ced955" ], + "mise-correlation-id": [ "55ff5ecf-8249-4bde-8e1f-6fc6f78cf421" ], + "x-ms-correlation-request-id": [ "a1b9ea37-7dd6-4bc1-be25-a1a3a1bf54f3" ], + "x-ms-client-request-id": [ "08d6f34c-10a0-4011-8d6d-18a1ead5b1b4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "x-ms-request-id": [ "348ddb56-8604-4aee-901f-ec839386b82d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "249" ], + "x-ms-ratelimit-remaining-subscription-global-reads": [ "3749" ], + "x-ms-routing-request-id": [ "EASTUS2:20260625T150904Z:a1b9ea37-7dd6-4bc1-be25-a1a3a1bf54f3" ], + "X-Cache": [ "CONFIG_NOCACHE" ], + "X-MSEdge-Ref": [ "Ref A: 650353870FE24E1FAFFD373CCEC2F343 Ref B: PNQ231110908040 Ref C: 2026-06-25T15:09:03Z" ], + "Date": [ "Thu, 25 Jun 2026 15:09:04 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "416" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/subscriptions/cbdb67be-e103-4770-a797-2a2fa42eb6f3/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-new\",\"name\":\"test-project-new\",\"type\":\"MongoDB.Atlas/organizations/projects\",\"properties\":{\"projectId\":\"6a3d447cf11dea0067b92fbf\",\"projectName\":\"test-project-new\",\"organizationId\":\"6a2b114e620de528f66a43eb\",\"clusterCount\":0,\"provisioningState\":\"Succeeded\"}}", + "isContentBase64": false + } + } +} \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBProject.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBProject.Tests.ps1 new file mode 100644 index 000000000000..97e73b0688f0 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/New-AzMongoDBProject.Tests.ps1 @@ -0,0 +1,37 @@ +if(($null -eq $TestName) -or ($TestName -contains 'New-AzMongoDBProject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'New-AzMongoDBProject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'New-AzMongoDBProject' { + It 'CreateExpanded' { + { + $result = New-AzMongoDBProject -ResourceGroupName $env.ProjectResourceGroupName -OrganizationName $env.OrganizationName -Name $env.NewProjectName + $result.ProvisioningState | Should -Be 'Succeeded' + $result.ProjectName | Should -Be $env.NewProjectName + } | Should -Not -Throw + } + + It 'CreateViaJsonString' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaJsonFilePath' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'CreateViaIdentityOrganizationExpanded' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/MongoDB/MongoDB.Autorest/test/README.md b/src/MongoDB/MongoDB.Autorest/test/README.md index 1969200c6a09..7c752b4c8c43 100644 --- a/src/MongoDB/MongoDB.Autorest/test/README.md +++ b/src/MongoDB/MongoDB.Autorest/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 new file mode 100644 index 000000000000..6363965c10f8 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 @@ -0,0 +1,33 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzMongoDBCluster')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzMongoDBCluster.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzMongoDBCluster' { + It 'Delete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentityProject' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentityOrganization' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 new file mode 100644 index 000000000000..357028662f99 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 @@ -0,0 +1,29 @@ +if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzMongoDBProject')) +{ + $loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1' + if (-Not (Test-Path -Path $loadEnvPath)) { + $loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1' + } + . ($loadEnvPath) + $TestRecordingFile = Join-Path $PSScriptRoot 'Remove-AzMongoDBProject.Recording.json' + $currentPath = $PSScriptRoot + while(-not $mockingPath) { + $mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File + $currentPath = Split-Path -Path $currentPath -Parent + } + . ($mockingPath | Select-Object -First 1).FullName +} + +Describe 'Remove-AzMongoDBProject' { + It 'Delete' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentityOrganization' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } + + It 'DeleteViaIdentity' -skip { + { throw [System.NotImplementedException] } | Should -Not -Throw + } +} diff --git a/src/MongoDB/MongoDB.Autorest/test/env.json b/src/MongoDB/MongoDB.Autorest/test/env.json index a0814c246bff..3c030c1d33c7 100644 --- a/src/MongoDB/MongoDB.Autorest/test/env.json +++ b/src/MongoDB/MongoDB.Autorest/test/env.json @@ -1,21 +1,30 @@ { - "Tenant": "888d76fa-54b2-4ced-8ee5-aac1585adee7", + "NewClusterName": "test-cluster-pester", + "ProjectResourceGroupName": "sharmaanuTest", "ResourceGroupName": "ajaykumar-rg", - "UserUpn": "ajaykumar@microsoft.com", + "NewProjectName": "test-project-new", + "OfferDetailTermUnit": "P1M", + "Tenant": "888d76fa-54b2-4ced-8ee5-aac1585adee7", "UserFirstName": "Ajay", - "UserEmailAddress": "ajaykumar@microsoft.com", + "ClusterName": "test-cluster-free", + "OfferDetailPlanId": "private_plan", + "RegionName": "eastus2", "OfferDetailOfferId": "mongodb_atlas_azure_native_prod", - "OfferDetailTermId": "gmz7xq9ge3py", - "NewResourceName": "MongoDBV2-11July-6", + "OfferDetailPublisherId": "mongodb", "MarketplaceSubscriptionId": "cbdb67be-e103-4770-a797-2a2fa42eb6f3", - "DeleteResourceName": "TestResource04July2025", - "OfferDetailPlanId": "private_plan", - "ResourceName": "MongoDBV2-11July-5", - "PartnerPropertyOrganizationName": "MongoDBPortalTest", "OfferDetailPlanName": "Pay as You Go (Free) (Private)", "UserLastName": "Kumar", + "OfferDetailTermId": "gmz7xq9ge3py", + "ClusterTestProjectName": "test-project-for-cluster", + "ResourceName": "MongoDBV2-11July-5", "Location": "East US 2", + "OrganizationName": "KanedaTest", + "UserUpn": "ajaykumar@microsoft.com", + "PartnerPropertyOrganizationName": "MongoDBPortalTest", + "ClusterTier": "FREE", "SubscriptionId": "cbdb67be-e103-4770-a797-2a2fa42eb6f3", - "OfferDetailPublisherId": "mongodb", - "OfferDetailTermUnit": "P1M" + "UserEmailAddress": "ajaykumar@microsoft.com", + "DeleteResourceName": "TestResource04July2025", + "ProjectName": "test-project-1", + "NewResourceName": "MongoDBV2-11July-6" } diff --git a/src/MongoDB/MongoDB.Autorest/test/utils.ps1 b/src/MongoDB/MongoDB.Autorest/test/utils.ps1 index ae935f49c00b..0aa9e752713b 100644 --- a/src/MongoDB/MongoDB.Autorest/test/utils.ps1 +++ b/src/MongoDB/MongoDB.Autorest/test/utils.ps1 @@ -62,6 +62,18 @@ function setupEnv() { $env.UserLastName = "Kumar" $env.UserUpn = "ajaykumar@microsoft.com" $env.DeleteResourceName = "TestResource04July2025" + + # Project and Cluster test variables + $env.ProjectResourceGroupName = 'sharmaanuTest' + $env.OrganizationName = 'KanedaTest' + $env.ProjectName = 'test-project-1' # Pre-existing project (used by Get/Limit/TierRegion tests) + $env.NewProjectName = 'test-project-new' # Created by New-AzMongoDBProject test + $env.ClusterName = 'test-cluster-free' # Pre-existing cluster in test-project-1 (used by Get-AzMongoDBCluster) + $env.ClusterTestProjectName = 'test-project-for-cluster' # Created by New-AzMongoDBCluster test (avoids FREE limit on test-project-1) + $env.NewClusterName = 'test-cluster-pester' # Created by New-AzMongoDBCluster test + $env.ClusterTier = 'FREE' + $env.RegionName = 'eastus2' + $envFile = 'env.json' if ($TestMode -eq 'live') { $envFile = 'localEnv.json' diff --git a/src/MongoDB/MongoDB.sln b/src/MongoDB/MongoDB.sln index 40262b1bf586..217147358120 100644 --- a/src/MongoDB/MongoDB.sln +++ b/src/MongoDB/MongoDB.sln @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MongoDB", "MongoDB\MongoDB. EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MongoDB.Autorest", "MongoDB.Autorest", "{9A7D24C1-2F1D-C9F9-DA3B-093BCC14F428}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MongoDB", "..\..\generated\MongoDB\MongoDB.Autorest\Az.MongoDB.csproj", "{0C725679-6064-48D5-A178-B140DE3B0912}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MongoDB", "..\..\generated\MongoDB\MongoDB.Autorest\Az.MongoDB.csproj", "{82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -117,18 +117,18 @@ Global {58F7699B-2687-4ABD-BECC-E8564CBA0FB8}.Release|x64.Build.0 = Release|Any CPU {58F7699B-2687-4ABD-BECC-E8564CBA0FB8}.Release|x86.ActiveCfg = Release|Any CPU {58F7699B-2687-4ABD-BECC-E8564CBA0FB8}.Release|x86.Build.0 = Release|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Debug|x64.ActiveCfg = Debug|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Debug|x64.Build.0 = Debug|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Debug|x86.ActiveCfg = Debug|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Debug|x86.Build.0 = Debug|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Release|Any CPU.Build.0 = Release|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Release|x64.ActiveCfg = Release|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Release|x64.Build.0 = Release|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Release|x86.ActiveCfg = Release|Any CPU - {0C725679-6064-48D5-A178-B140DE3B0912}.Release|x86.Build.0 = Release|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Debug|Any CPU.Build.0 = Debug|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Debug|x64.ActiveCfg = Debug|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Debug|x64.Build.0 = Debug|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Debug|x86.ActiveCfg = Debug|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Debug|x86.Build.0 = Debug|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Release|Any CPU.ActiveCfg = Release|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Release|Any CPU.Build.0 = Release|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Release|x64.ActiveCfg = Release|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Release|x64.Build.0 = Release|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Release|x86.ActiveCfg = Release|Any CPU + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -140,6 +140,6 @@ Global {DB699D8F-0D70-48E3-8F59-D196FAD4F3E3} = {C8622579-C345-45B7-8A61-3FD412071E2D} {433D38D7-E1F0-45E9-AF61-BD78D15CA413} = {C8622579-C345-45B7-8A61-3FD412071E2D} {14306296-05B8-436E-BFDA-FEA69C6995CA} = {C8622579-C345-45B7-8A61-3FD412071E2D} - {0C725679-6064-48D5-A178-B140DE3B0912} = {9A7D24C1-2F1D-C9F9-DA3B-093BCC14F428} + {82C6C3EC-2FC4-4CCE-9EA0-8372068CBB96} = {9A7D24C1-2F1D-C9F9-DA3B-093BCC14F428} EndGlobalSection EndGlobal diff --git a/src/MongoDB/MongoDB/Az.MongoDB.psd1 b/src/MongoDB/MongoDB/Az.MongoDB.psd1 index b6337b5a3576..88a2045f8248 100644 --- a/src/MongoDB/MongoDB/Az.MongoDB.psd1 +++ b/src/MongoDB/MongoDB/Az.MongoDB.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/30/2025 +# Generated on: 25-06-2026 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.5.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'MongoDB.Autorest/bin/Az.MongoDB.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'MongoDB.Autorest/Az.MongoDB.format.ps1xml' @@ -69,8 +69,12 @@ FormatsToProcess = 'MongoDB.Autorest/Az.MongoDB.format.ps1xml' NestedModules = @('MongoDB.Autorest/Az.MongoDB.psm1') # Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export. -FunctionsToExport = 'Get-AzMongoDBOrganization', 'New-AzMongoDBOrganization', - 'Remove-AzMongoDBOrganization' +FunctionsToExport = 'Get-AzMongoDBCluster', 'Get-AzMongoDBOrganization', + 'Get-AzMongoDBProject', 'Get-AzMongoDBProjectClusterTierRegion', + 'Limit-AzMongoDBProject', 'New-AzMongoDBCluster', + 'New-AzMongoDBOrganization', 'New-AzMongoDBProject', + 'Remove-AzMongoDBCluster', 'Remove-AzMongoDBOrganization', + 'Remove-AzMongoDBProject' # Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export. CmdletsToExport = @() @@ -96,7 +100,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','MongoDB' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'MongoDB' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -121,7 +125,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/MongoDB/MongoDB/ChangeLog.md b/src/MongoDB/MongoDB/ChangeLog.md index 5f1f02fa85d0..ff7e6e1ccfd3 100644 --- a/src/MongoDB/MongoDB/ChangeLog.md +++ b/src/MongoDB/MongoDB/ChangeLog.md @@ -18,6 +18,10 @@ - Additional information about change #1 --> ## Upcoming Release +* Added cmdlets for MongoDB Atlas Project management: `Get-AzMongoDBProject`, `New-AzMongoDBProject`, `Remove-AzMongoDBProject` +* Added cmdlets for MongoDB Atlas Cluster management: `Get-AzMongoDBCluster`, `New-AzMongoDBCluster`, `Remove-AzMongoDBCluster` +* Added cmdlet `Get-AzMongoDBProjectClusterTierRegion` to list available cluster tiers and regions for a project +* Added cmdlet `Limit-AzMongoDBProject` to retrieve project resource limits ## Version 0.1.1 * Upgraded to the stable api version diff --git a/src/MongoDB/MongoDB/help/Az.MongoDB.md b/src/MongoDB/MongoDB/help/Az.MongoDB.md index 6389e3c25fdc..fe20dd65fe05 100644 --- a/src/MongoDB/MongoDB/help/Az.MongoDB.md +++ b/src/MongoDB/MongoDB/help/Az.MongoDB.md @@ -11,12 +11,36 @@ Locale: en-US Microsoft Azure PowerShell: MongoDB cmdlets ## Az.MongoDB Cmdlets +### [Get-AzMongoDBCluster](Get-AzMongoDBCluster.md) +Get a Cluster + ### [Get-AzMongoDBOrganization](Get-AzMongoDBOrganization.md) Get a OrganizationResource +### [Get-AzMongoDBProject](Get-AzMongoDBProject.md) +Get a Project + +### [Get-AzMongoDBProjectClusterTierRegion](Get-AzMongoDBProjectClusterTierRegion.md) +List available regions by cluster tier for the project. + +### [Limit-AzMongoDBProject](Limit-AzMongoDBProject.md) +Check if tier limit is reached for the project. + +### [New-AzMongoDBCluster](New-AzMongoDBCluster.md) +Create a Cluster + ### [New-AzMongoDBOrganization](New-AzMongoDBOrganization.md) -create a OrganizationResource +Create a OrganizationResource + +### [New-AzMongoDBProject](New-AzMongoDBProject.md) +Create a Project + +### [Remove-AzMongoDBCluster](Remove-AzMongoDBCluster.md) +Delete a Cluster ### [Remove-AzMongoDBOrganization](Remove-AzMongoDBOrganization.md) Delete a OrganizationResource +### [Remove-AzMongoDBProject](Remove-AzMongoDBProject.md) +Delete a Project + diff --git a/src/MongoDB/MongoDB/help/Get-AzMongoDBCluster.md b/src/MongoDB/MongoDB/help/Get-AzMongoDBCluster.md new file mode 100644 index 000000000000..899d4386e35f --- /dev/null +++ b/src/MongoDB/MongoDB/help/Get-AzMongoDBCluster.md @@ -0,0 +1,259 @@ +--- +external help file: Az.MongoDB-help.xml +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/get-azmongodbcluster +schema: 2.0.0 +--- + +# Get-AzMongoDBCluster + +## SYNOPSIS +Get a Cluster + +## SYNTAX + +### List (Default) +``` +Get-AzMongoDBCluster -OrganizationName -ProjectName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentityProject +``` +Get-AzMongoDBCluster -Name -ProjectInputObject [-DefaultProfile ] + [] +``` + +### GetViaIdentityOrganization +``` +Get-AzMongoDBCluster -Name -ProjectName -OrganizationInputObject + [-DefaultProfile ] [] +``` + +### Get +``` +Get-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzMongoDBCluster -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a Cluster + +## EXAMPLES + +### Example 1: List all Clusters under a Project +```powershell +Get-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Lists all clusters that belong to the given project. + +### Example 2: Get a specific Cluster +```powershell +Get-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free | Format-List +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Gets the details of a single cluster by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Cluster resource. + +```yaml +Type: System.String +Parameter Sets: GetViaIdentityProject, GetViaIdentityOrganization, Get +Aliases: ClusterName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentityProject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: List, GetViaIdentityOrganization, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: List, Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.ICluster + +## NOTES + +## RELATED LINKS diff --git a/src/MongoDB/MongoDB/help/Get-AzMongoDBOrganization.md b/src/MongoDB/MongoDB/help/Get-AzMongoDBOrganization.md index 024c33360350..650757a5f2eb 100644 --- a/src/MongoDB/MongoDB/help/Get-AzMongoDBOrganization.md +++ b/src/MongoDB/MongoDB/help/Get-AzMongoDBOrganization.md @@ -14,7 +14,8 @@ Get a OrganizationResource ### List (Default) ``` -Get-AzMongoDBOrganization [-SubscriptionId ] [-DefaultProfile ] [] +Get-AzMongoDBOrganization [-SubscriptionId ] [-DefaultProfile ] + [] ``` ### Get @@ -31,7 +32,8 @@ Get-AzMongoDBOrganization -ResourceGroupName [-SubscriptionId [-DefaultProfile ] [] +Get-AzMongoDBOrganization -InputObject [-DefaultProfile ] + [] ``` ## DESCRIPTION diff --git a/src/MongoDB/MongoDB/help/Get-AzMongoDBProject.md b/src/MongoDB/MongoDB/help/Get-AzMongoDBProject.md new file mode 100644 index 000000000000..56d2ea7d6e5e --- /dev/null +++ b/src/MongoDB/MongoDB/help/Get-AzMongoDBProject.md @@ -0,0 +1,209 @@ +--- +external help file: Az.MongoDB-help.xml +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/get-azmongodbproject +schema: 2.0.0 +--- + +# Get-AzMongoDBProject + +## SYNOPSIS +Get a Project + +## SYNTAX + +### List (Default) +``` +Get-AzMongoDBProject -OrganizationName -ResourceGroupName [-SubscriptionId ] + [-DefaultProfile ] [] +``` + +### GetViaIdentityOrganization +``` +Get-AzMongoDBProject -Name -OrganizationInputObject [-DefaultProfile ] + [] +``` + +### Get +``` +Get-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] + [] +``` + +### GetViaIdentity +``` +Get-AzMongoDBProject -InputObject [-DefaultProfile ] + [] +``` + +## DESCRIPTION +Get a Project + +## EXAMPLES + +### Example 1: List all Projects under an Organization +```powershell +Get-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest +``` + +```output +Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType +---- ------------------- ------------------- ----------------------- +asdfsadf +mavarsh-test-1 +mavarsh-test2 +tesgin +``` + +Lists all projects that belong to the given organization in the resource group. + +### Example 2: Get a specific Project +```powershell +Get-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name mavarsh-test-1 | Format-List +``` + +```output +ClusterCount : 0 +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/mavarsh-test-1 +Name : mavarsh-test-1 +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a39281864733305129a1678 +ProjectName : mavarsh-test-1 +ProvisioningState : Succeeded +ResourceGroupName : sharmaanuTest +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : MongoDB.Atlas/organizations/projects +``` + +Gets the details of a single project by name. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: GetViaIdentityOrganization, Get +Aliases: ProjectName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: GetViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: List, Get +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: List, Get +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IProject + +## NOTES + +## RELATED LINKS diff --git a/src/MongoDB/MongoDB/help/Get-AzMongoDBProjectClusterTierRegion.md b/src/MongoDB/MongoDB/help/Get-AzMongoDBProjectClusterTierRegion.md new file mode 100644 index 000000000000..785e0bae0907 --- /dev/null +++ b/src/MongoDB/MongoDB/help/Get-AzMongoDBProjectClusterTierRegion.md @@ -0,0 +1,174 @@ +--- +external help file: Az.MongoDB-help.xml +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/get-azmongodbprojectclustertierregion +schema: 2.0.0 +--- + +# Get-AzMongoDBProjectClusterTierRegion + +## SYNOPSIS +List available regions by cluster tier for the project. + +## SYNTAX + +``` +Get-AzMongoDBProjectClusterTierRegion -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +List available regions by cluster tier for the project. + +## EXAMPLES + +### Example 1: List available regions per cluster tier for a Project +```powershell +Get-AzMongoDBProjectClusterTierRegion -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 | Format-List +``` + +```output +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a3d3a7fee32a7a117663313 +RegionsByTier : {{ + "tier": "FLEX", + "regions": [ "westeurope", "eastus2", "canadacentral", "westus", "northeurope", "centralindia", "eastasia" ] + }, { + "tier": "FREE", + "regions": [ "eastus2", "centralindia", "westeurope", "northeurope", "westus", "canadacentral", "eastasia" ] + }, { + "tier": "M10", + "regions": [ "westeurope", "eastasia", "brazilsoutheast", "malaysiawest", "chilecentral", "mexicocentral", "germanywestcentral", "norwaywest", "israelcentral", "centralus", "ukwest", "northeurope", "francecentral", "northcentralus", "westindia", "centralindia", "westus", "westus2", "koreasouth", "uaecentral", "polandcentral", "swedencentral", "francesouth", "australiasoutheast", "swedensouth", "southindia", "southafricawest", "norwayeast", "canadaeast", "southeastasia", "indonesiacentral", "eastus", "eastus2", "australiaeast", "spaincentral", "uaenorth", "newzealandnorth", "canadacentral", "germanynorth", "koreacentral", "qatarcentral", "japaneast", "southafricanorth", "brazilsouth", "japanwest", "italynorth", "uksouth", "australiacentral2", "southcentralus", "westus3", "australiacentral", "westcentralus", "switzerlandnorth", "switzerlandwest" ] + }, { + "tier": "M30", + "regions": [ "westeurope", "eastasia", "brazilsoutheast", "malaysiawest", "chilecentral", "mexicocentral", "germanywestcentral", "norwaywest", "israelcentral", "centralus", "ukwest", "northeurope", "francecentral", "northcentralus", "westindia", "centralindia", "westus", "westus2", "koreasouth", "uaecentral", "polandcentral", "swedencentral", "francesouth", "australiasoutheast", "swedensouth", "southindia", "southafricawest", "norwayeast", "canadaeast", "southeastasia", "indonesiacentral", "eastus", "eastus2", "australiaeast", "spaincentral", "uaenorth", "newzealandnorth", "canadacentral", "germanynorth", "koreacentral", "qatarcentral", "japaneast", "southafricanorth", "brazilsouth", "japanwest", "italynorth", "uksouth", "australiacentral2", "southcentralus", "westus3", "australiacentral", "westcentralus", "switzerlandnorth", "switzerlandwest" ] + }} +``` + +Returns the supported Azure regions for each cluster tier (FREE, FLEX, M10, M30) available to the given project. +Use this before calling `New-AzMongoDBCluster` to pick a valid `-RegionName` for the chosen `-ClusterTier`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectName +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IRegionsByTierResponse + +## NOTES + +## RELATED LINKS diff --git a/src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md b/src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md new file mode 100644 index 000000000000..5b4c86e8c123 --- /dev/null +++ b/src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md @@ -0,0 +1,208 @@ +--- +external help file: Az.MongoDB-help.xml +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/limit-azmongodbproject +schema: 2.0.0 +--- + +# Limit-AzMongoDBProject + +## SYNOPSIS +Check if tier limit is reached for the project. + +## SYNTAX + +### Limit (Default) +``` +Limit-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### LimitViaIdentityOrganization +``` +Limit-AzMongoDBProject -Name -OrganizationInputObject [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### LimitViaIdentity +``` +Limit-AzMongoDBProject -InputObject [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Check if tier limit is reached for the project. + +## EXAMPLES + +### Example 1: Check whether the cluster-tier limit has been reached +```powershell +Limit-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 | Format-List +``` + +```output +Current : 0 +IsReached : False +Maximum : 1 +Type : FREE +``` + +Queries the partner to find out, per cluster tier, how many clusters the project currently has, the per-tier maximum, and whether the limit has been reached. +Useful as a pre-flight check before `New-AzMongoDBCluster`. + +## PARAMETERS + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: LimitViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: Limit, LimitViaIdentityOrganization +Aliases: ProjectName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: LimitViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: Limit +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Limit +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Limit +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.ITierLimitReachedResponse + +## NOTES + +## RELATED LINKS diff --git a/src/MongoDB/MongoDB/help/New-AzMongoDBCluster.md b/src/MongoDB/MongoDB/help/New-AzMongoDBCluster.md new file mode 100644 index 000000000000..1825e1f95f32 --- /dev/null +++ b/src/MongoDB/MongoDB/help/New-AzMongoDBCluster.md @@ -0,0 +1,352 @@ +--- +external help file: Az.MongoDB-help.xml +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/new-azmongodbcluster +schema: 2.0.0 +--- + +# New-AzMongoDBCluster + +## SYNOPSIS +Create a Cluster + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-ClusterTier ] [-RegionName ] + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + +### CreateViaJsonString +``` +New-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityOrganizationExpanded +``` +New-AzMongoDBCluster -Name -ProjectName -OrganizationInputObject + [-ClusterTier ] [-RegionName ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityProjectExpanded +``` +New-AzMongoDBCluster -Name -ProjectInputObject [-ClusterTier ] + [-RegionName ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Create a Cluster + +## EXAMPLES + +### Example 1: Create a new FREE-tier Cluster +```powershell +New-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free -ClusterTier FREE -RegionName eastus2 | Format-List +``` + +```output +Backup : False +ClusterName : test-cluster-free +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1/clusters/test-cluster-free +MongoDbVersion : 8.0.24-patch-6a3992052eafe5000797a34e +Name : test-cluster-free +ProvisioningState : Succeeded +RegionName : eastus2 +ResourceGroupName : sharmaanuTest +State : IDLE +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Tier : FREE +Type : MongoDB.Atlas/organizations/projects/clusters +``` + +Creates a FREE-tier MongoDB Atlas cluster in `eastus2` under the given project. +Valid tiers are FREE, FLEX, M10, M30. +Use `Get-AzMongoDBProjectClusterTierRegion` first to confirm the chosen tier is available in the target region. + +### Example 2: Create a paid (M10) Cluster +```powershell +New-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-m10 -ClusterTier M10 -RegionName westus2 +``` + +Creates a dedicated M10 cluster. +M10/M30 tiers incur metered billing through the MongoDB Atlas marketplace offer linked to the organization. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ClusterTier +Cluster tier (FREE, FLEX, M10, M30). + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityOrganizationExpanded, CreateViaIdentityProjectExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Cluster resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ClusterName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: CreateViaIdentityOrganizationExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: CreateViaIdentityProjectExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath, CreateViaIdentityOrganizationExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RegionName +Azure region where the cluster is deployed. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaIdentityOrganizationExpanded, CreateViaIdentityProjectExpanded +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.ICluster + +## NOTES + +## RELATED LINKS diff --git a/src/MongoDB/MongoDB/help/New-AzMongoDBOrganization.md b/src/MongoDB/MongoDB/help/New-AzMongoDBOrganization.md index f79ce25e964c..c0a96ee71730 100644 --- a/src/MongoDB/MongoDB/help/New-AzMongoDBOrganization.md +++ b/src/MongoDB/MongoDB/help/New-AzMongoDBOrganization.md @@ -8,7 +8,7 @@ schema: 2.0.0 # New-AzMongoDBOrganization ## SYNOPSIS -create a OrganizationResource +Create a OrganizationResource ## SYNTAX @@ -21,25 +21,26 @@ New-AzMongoDBOrganization -Name -ResourceGroupName [-Subscript [-PartnerPropertyOrganizationId ] [-PartnerPropertyOrganizationName ] [-PartnerPropertyRedirectUrl ] [-Tag ] [-UserAssignedIdentity ] [-UserCompanyName ] [-UserEmailAddress ] [-UserFirstName ] [-UserLastName ] - [-UserPhoneNumber ] [-UserUpn ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] - [-Confirm] [] + [-UserPhoneNumber ] [-UserUpn ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonFilePath ``` New-AzMongoDBOrganization -Name -ResourceGroupName [-SubscriptionId ] - -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] - [] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ### CreateViaJsonString ``` New-AzMongoDBOrganization -Name -ResourceGroupName [-SubscriptionId ] - -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] + -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -create a OrganizationResource +Create a OrganizationResource ## EXAMPLES diff --git a/src/MongoDB/MongoDB/help/New-AzMongoDBProject.md b/src/MongoDB/MongoDB/help/New-AzMongoDBProject.md new file mode 100644 index 000000000000..188ba2c70f7b --- /dev/null +++ b/src/MongoDB/MongoDB/help/New-AzMongoDBProject.md @@ -0,0 +1,272 @@ +--- +external help file: Az.MongoDB-help.xml +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/new-azmongodbproject +schema: 2.0.0 +--- + +# New-AzMongoDBProject + +## SYNOPSIS +Create a Project + +## SYNTAX + +### CreateExpanded (Default) +``` +New-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaIdentityOrganizationExpanded +``` +New-AzMongoDBProject -Name -OrganizationInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Create a Project + +## EXAMPLES + +### Example 1: Create a new Project under an Organization +```powershell +New-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 | Format-List +``` + +```output +ClusterCount : 0 +Id : /subscriptions/61641157-140c-4b97-b365-30ff76d9f82e/resourceGroups/sharmaanuTest/providers/MongoDB.Atlas/organizations/KanedaTest/projects/test-project-1 +Name : test-project-1 +OrganizationId : 6a2b114e620de528f66a43eb +ProjectId : 6a3d3a7fee32a7a117663313 +ProjectName : test-project-1 +ProvisioningState : Succeeded +ResourceGroupName : sharmaanuTest +SystemDataCreatedAt : +SystemDataCreatedBy : +SystemDataCreatedByType : +SystemDataLastModifiedAt : +SystemDataLastModifiedBy : +SystemDataLastModifiedByType : +Type : MongoDB.Atlas/organizations/projects +``` + +Creates a new MongoDB Atlas project under the given organization. +Project name is the only required body parameter; the partner assigns the projectId. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonFilePath +Path of Json file supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Create operation + +```yaml +Type: System.String +Parameter Sets: CreateViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: ProjectName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: CreateViaIdentityOrganizationExpanded +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: CreateExpanded, CreateViaJsonString, CreateViaJsonFilePath +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IProject + +## NOTES + +## RELATED LINKS diff --git a/src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md b/src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md new file mode 100644 index 000000000000..621c534f0741 --- /dev/null +++ b/src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md @@ -0,0 +1,283 @@ +--- +external help file: Az.MongoDB-help.xml +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/remove-azmongodbcluster +schema: 2.0.0 +--- + +# Remove-AzMongoDBCluster + +## SYNOPSIS +Delete a Cluster + +## SYNTAX + +### Delete (Default) +``` +Remove-AzMongoDBCluster -Name -OrganizationName -ProjectName + -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentityProject +``` +Remove-AzMongoDBCluster -Name -ProjectInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentityOrganization +``` +Remove-AzMongoDBCluster -Name -ProjectName -OrganizationInputObject + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] +``` + +### DeleteViaIdentity +``` +Remove-AzMongoDBCluster -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Delete a Cluster + +## EXAMPLES + +### Example 1: Remove a Cluster +```powershell +Remove-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free +``` + +Deletes the MongoDB Atlas cluster. +The operation is asynchronous; the underlying partner cluster is also torn down. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Cluster resource. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityProject, DeleteViaIdentityOrganization +Aliases: ClusterName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ProjectInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentityProject +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -ProjectName +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS diff --git a/src/MongoDB/MongoDB/help/Remove-AzMongoDBOrganization.md b/src/MongoDB/MongoDB/help/Remove-AzMongoDBOrganization.md index ce5b4034c725..96ab28832f74 100644 --- a/src/MongoDB/MongoDB/help/Remove-AzMongoDBOrganization.md +++ b/src/MongoDB/MongoDB/help/Remove-AzMongoDBOrganization.md @@ -15,7 +15,8 @@ Delete a OrganizationResource ### Delete (Default) ``` Remove-AzMongoDBOrganization -Name -ResourceGroupName [-SubscriptionId ] - [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] + [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] [-WhatIf] + [-Confirm] [] ``` ### DeleteViaIdentity diff --git a/src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md b/src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md new file mode 100644 index 000000000000..14778b4121c7 --- /dev/null +++ b/src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md @@ -0,0 +1,246 @@ +--- +external help file: Az.MongoDB-help.xml +Module Name: Az.MongoDB +online version: https://learn.microsoft.com/powershell/module/az.mongodb/remove-azmongodbproject +schema: 2.0.0 +--- + +# Remove-AzMongoDBProject + +## SYNOPSIS +Delete a Project + +## SYNTAX + +### Delete (Default) +``` +Remove-AzMongoDBProject -Name -OrganizationName -ResourceGroupName + [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-PassThru] + [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentityOrganization +``` +Remove-AzMongoDBProject -Name -OrganizationInputObject [-DefaultProfile ] + [-AsJob] [-NoWait] [-PassThru] [-WhatIf] [-Confirm] [] +``` + +### DeleteViaIdentity +``` +Remove-AzMongoDBProject -InputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + +## DESCRIPTION +Delete a Project + +## EXAMPLES + +### Example 1: Remove a Project +```powershell +Remove-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 +``` + +Deletes the MongoDB Atlas project. +The operation is asynchronous; all clusters under the project must be deleted first. + +## PARAMETERS + +### -AsJob +Run the command as a job + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -DefaultProfile +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + +```yaml +Type: System.Management.Automation.PSObject +Parameter Sets: (All) +Aliases: AzureRMContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentity +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -Name +Name of the MongoDB Atlas Project resource. + +```yaml +Type: System.String +Parameter Sets: Delete, DeleteViaIdentityOrganization +Aliases: ProjectName + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NoWait +Run the command asynchronously + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -OrganizationInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity +Parameter Sets: DeleteViaIdentityOrganization +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -OrganizationName +Name of the Organization resource + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PassThru +Returns true when the command succeeds + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The name of the resource group. +The name is case insensitive. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SubscriptionId +The ID of the target subscription. +The value must be an UUID. + +```yaml +Type: System.String +Parameter Sets: Delete +Aliases: + +Required: False +Position: Named +Default value: (Get-AzContext).Subscription.Id +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.PowerShell.Cmdlets.MongoDB.Models.IMongoDbIdentity + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS From 0faae4628219f87b89db7a81685f6c99cb82e8ff Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 26 Jun 2026 01:45:36 +0530 Subject: [PATCH 2/8] Fix Limit-AzMongoDBProject example output to match recording --- .../MongoDB.Autorest/examples/Limit-AzMongoDBProject.md | 4 ++-- src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MongoDB/MongoDB.Autorest/examples/Limit-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/examples/Limit-AzMongoDBProject.md index 175096205f8c..6e6f3d7ce44a 100644 --- a/src/MongoDB/MongoDB.Autorest/examples/Limit-AzMongoDBProject.md +++ b/src/MongoDB/MongoDB.Autorest/examples/Limit-AzMongoDBProject.md @@ -4,8 +4,8 @@ Limit-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName Kaneda ``` ```output -Current : 0 -IsReached : False +Current : 1 +IsReached : True Maximum : 1 Type : FREE ``` diff --git a/src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md b/src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md index 5b4c86e8c123..8ab23e8008a7 100644 --- a/src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md +++ b/src/MongoDB/MongoDB/help/Limit-AzMongoDBProject.md @@ -42,8 +42,8 @@ Limit-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName Kaneda ``` ```output -Current : 0 -IsReached : False +Current : 1 +IsReached : True Maximum : 1 Type : FREE ``` From 033f60e28f560444790df3a54e5b6e8318836e0a Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 26 Jun 2026 01:52:39 +0530 Subject: [PATCH 3/8] Replace skipped Remove tests with -WhatIf smoke tests --- .../test/Remove-AzMongoDBCluster.Tests.ps1 | 22 +++++++------------ .../test/Remove-AzMongoDBProject.Tests.ps1 | 17 ++++++-------- 2 files changed, 15 insertions(+), 24 deletions(-) diff --git a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 index 6363965c10f8..cd46e691a8e2 100644 --- a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 +++ b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 @@ -15,19 +15,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzMongoDBCluster')) } Describe 'Remove-AzMongoDBCluster' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityProject' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityOrganization' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Delete-WhatIf' { + # Partner returns 405 (MethodNotAllowed) for cluster deletion. + # Use -WhatIf to validate parameter binding without calling the API. + Remove-AzMongoDBCluster -ResourceGroupName $env.ResourceGroupName ` + -OrganizationName $env.OrganizationName ` + -ProjectName $env.ClusterTestProjectName ` + -Name $env.ClusterName ` + -WhatIf } } diff --git a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 index 357028662f99..2ae5c22328ae 100644 --- a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 +++ b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 @@ -15,15 +15,12 @@ if(($null -eq $TestName) -or ($TestName -contains 'Remove-AzMongoDBProject')) } Describe 'Remove-AzMongoDBProject' { - It 'Delete' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentityOrganization' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } - - It 'DeleteViaIdentity' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw + It 'Delete-WhatIf' { + # Partner returns 405 (MethodNotAllowed) for project deletion. + # Use -WhatIf to validate parameter binding without calling the API. + Remove-AzMongoDBProject -ResourceGroupName $env.ResourceGroupName ` + -OrganizationName $env.OrganizationName ` + -Name $env.ProjectName ` + -WhatIf } } From 3edbd9e562d1a355ecfd2d967d572a36bbbde278 Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 26 Jun 2026 01:56:32 +0530 Subject: [PATCH 4/8] Add empty recordings and update Remove examples to use -WhatIf --- .../examples/Remove-AzMongoDBCluster.md | 10 +++++++--- .../examples/Remove-AzMongoDBProject.md | 10 +++++++--- .../test/Remove-AzMongoDBCluster.Recording.json | 1 + .../test/Remove-AzMongoDBProject.Recording.json | 1 + src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md | 12 ++++++++---- src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md | 12 ++++++++---- 6 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Recording.json create mode 100644 src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Recording.json diff --git a/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBCluster.md b/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBCluster.md index 389ad841965d..311990ab3955 100644 --- a/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBCluster.md +++ b/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBCluster.md @@ -1,6 +1,10 @@ -### Example 1: Remove a Cluster +### Example 1: Delete a MongoDB Atlas cluster (preview with -WhatIf) ```powershell -Remove-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free +Remove-AzMongoDBCluster -ResourceGroupName "myResourceGroup" -OrganizationName "myOrganization" -ProjectName "myProject" -Name "myCluster" -WhatIf ``` -Deletes the MongoDB Atlas cluster. The operation is asynchronous; the underlying partner cluster is also torn down. +```output +What if: Performing the operation "Remove-AzMongoDBCluster_Delete" on target "myCluster". +``` + +Previews the delete operation for a MongoDB Atlas cluster without executing it. Note: cluster deletion is not yet supported by the partner backend; use -WhatIf to validate parameters. diff --git a/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBProject.md index 446d299d5d8c..b64196e4c826 100644 --- a/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBProject.md +++ b/src/MongoDB/MongoDB.Autorest/examples/Remove-AzMongoDBProject.md @@ -1,6 +1,10 @@ -### Example 1: Remove a Project +### Example 1: Delete a MongoDB Atlas project (preview with -WhatIf) ```powershell -Remove-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 +Remove-AzMongoDBProject -ResourceGroupName "myResourceGroup" -OrganizationName "myOrganization" -Name "myProject" -WhatIf ``` -Deletes the MongoDB Atlas project. The operation is asynchronous; all clusters under the project must be deleted first. +```output +What if: Performing the operation "Remove-AzMongoDBProject_Delete" on target "myProject". +``` + +Previews the delete operation for a MongoDB Atlas project without executing it. Note: project deletion is not yet supported by the partner backend; use -WhatIf to validate parameters. diff --git a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Recording.json b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Recording.json new file mode 100644 index 000000000000..9e26dfeeb6e6 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Recording.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Recording.json b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Recording.json new file mode 100644 index 000000000000..9e26dfeeb6e6 --- /dev/null +++ b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Recording.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md b/src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md index 621c534f0741..16666bffe5d6 100644 --- a/src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md +++ b/src/MongoDB/MongoDB/help/Remove-AzMongoDBCluster.md @@ -43,13 +43,17 @@ Delete a Cluster ## EXAMPLES -### Example 1: Remove a Cluster +### Example 1: Delete a MongoDB Atlas cluster (preview with -WhatIf) ```powershell -Remove-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free +Remove-AzMongoDBCluster -ResourceGroupName "myResourceGroup" -OrganizationName "myOrganization" -ProjectName "myProject" -Name "myCluster" -WhatIf ``` -Deletes the MongoDB Atlas cluster. -The operation is asynchronous; the underlying partner cluster is also torn down. +```output +What if: Performing the operation "Remove-AzMongoDBCluster_Delete" on target "myCluster". +``` + +Previews the delete operation for a MongoDB Atlas cluster without executing it. +Note: cluster deletion is not yet supported by the partner backend; use -WhatIf to validate parameters. ## PARAMETERS diff --git a/src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md b/src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md index 14778b4121c7..b197fee7417f 100644 --- a/src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md +++ b/src/MongoDB/MongoDB/help/Remove-AzMongoDBProject.md @@ -36,13 +36,17 @@ Delete a Project ## EXAMPLES -### Example 1: Remove a Project +### Example 1: Delete a MongoDB Atlas project (preview with -WhatIf) ```powershell -Remove-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 +Remove-AzMongoDBProject -ResourceGroupName "myResourceGroup" -OrganizationName "myOrganization" -Name "myProject" -WhatIf ``` -Deletes the MongoDB Atlas project. -The operation is asynchronous; all clusters under the project must be deleted first. +```output +What if: Performing the operation "Remove-AzMongoDBProject_Delete" on target "myProject". +``` + +Previews the delete operation for a MongoDB Atlas project without executing it. +Note: project deletion is not yet supported by the partner backend; use -WhatIf to validate parameters. ## PARAMETERS From 5aeecc73bb878b069c65ed371d9d17f5fbb2078b Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 26 Jun 2026 01:59:18 +0530 Subject: [PATCH 5/8] Fix backslash in custom/README.md markdown link --- src/MongoDB/MongoDB.Autorest/custom/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MongoDB/MongoDB.Autorest/custom/README.md b/src/MongoDB/MongoDB.Autorest/custom/README.md index cc4dfb8ab337..619801e2bfcb 100644 --- a/src/MongoDB/MongoDB.Autorest/custom/README.md +++ b/src/MongoDB/MongoDB.Autorest/custom/README.md @@ -36,6 +36,6 @@ For processing the cmdlets, we've created some additional attributes: - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.DoNotExportAttribute` - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.MongoDB`. - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.InternalExportAttribute` - - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.MongoDB`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder. + - Used in C# cmdlets to route exported cmdlets to the `../internal`, which are *not exposed* by `Az.MongoDB`. For more information, see [README.md](../internal/README.md) in the `../internal` folder. - `Microsoft.Azure.PowerShell.Cmdlets.MongoDB.ProfileAttribute` - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules. \ No newline at end of file From b7dd92d85a56aa5b52e408eb6e20876db48f1bb5 Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 26 Jun 2026 02:09:20 +0530 Subject: [PATCH 6/8] Fix backslashes in READMEs and use correct env vars in Remove tests --- src/MongoDB/MongoDB.Autorest/docs/README.md | 4 ++-- src/MongoDB/MongoDB.Autorest/resources/README.md | 2 +- src/MongoDB/MongoDB.Autorest/test/README.md | 2 +- .../MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 | 2 +- .../MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/MongoDB/MongoDB.Autorest/docs/README.md b/src/MongoDB/MongoDB.Autorest/docs/README.md index 116b958ab82b..67bf8b7eeb1a 100644 --- a/src/MongoDB/MongoDB.Autorest/docs/README.md +++ b/src/MongoDB/MongoDB.Autorest/docs/README.md @@ -1,5 +1,5 @@ # Docs -This directory contains the documentation of the cmdlets for the `Az.MongoDB` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `..\examples` folder. +This directory contains the documentation of the cmdlets for the `Az.MongoDB` module. To run documentation generation, use the `generate-help.ps1` script at the root module folder. Files in this folder will *always be overridden on regeneration*. To update documentation examples, please use the `../examples` folder. ## Info - Modifiable: no @@ -8,4 +8,4 @@ This directory contains the documentation of the cmdlets for the `Az.MongoDB` mo - Packaged: yes ## Details -The process of documentation generation loads `Az.MongoDB` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `..\exports` folder. Additionally, when writing custom cmdlets in the `..\custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `..\examples` folder. \ No newline at end of file +The process of documentation generation loads `Az.MongoDB` and analyzes the exported cmdlets from the module. It recognizes the [help comments](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) that are generated into the scripts in the `../exports` folder. Additionally, when writing custom cmdlets in the `../custom` folder, you can use the help comments syntax, which decorate the exported scripts at build-time. The documentation examples are taken from the `../examples` folder. \ No newline at end of file diff --git a/src/MongoDB/MongoDB.Autorest/resources/README.md b/src/MongoDB/MongoDB.Autorest/resources/README.md index 937f07f8fec2..736492341e3d 100644 --- a/src/MongoDB/MongoDB.Autorest/resources/README.md +++ b/src/MongoDB/MongoDB.Autorest/resources/README.md @@ -1,5 +1,5 @@ # Resources -This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder. ## Info - Modifiable: yes diff --git a/src/MongoDB/MongoDB.Autorest/test/README.md b/src/MongoDB/MongoDB.Autorest/test/README.md index 7c752b4c8c43..1969200c6a09 100644 --- a/src/MongoDB/MongoDB.Autorest/test/README.md +++ b/src/MongoDB/MongoDB.Autorest/test/README.md @@ -1,5 +1,5 @@ # Test -This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `..\custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. +This directory contains the [Pester](https://www.powershellgallery.com/packages/Pester) tests to run for the module. We use Pester as it is the unofficial standard for PowerShell unit testing. Test stubs for custom cmdlets (created in `../custom`) will be generated into this folder when `build-module.ps1` is ran. These test stubs will fail automatically, to indicate that tests should be written for custom cmdlets. ## Info - Modifiable: yes diff --git a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 index cd46e691a8e2..85738a98bab1 100644 --- a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 +++ b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBCluster.Tests.ps1 @@ -18,7 +18,7 @@ Describe 'Remove-AzMongoDBCluster' { It 'Delete-WhatIf' { # Partner returns 405 (MethodNotAllowed) for cluster deletion. # Use -WhatIf to validate parameter binding without calling the API. - Remove-AzMongoDBCluster -ResourceGroupName $env.ResourceGroupName ` + Remove-AzMongoDBCluster -ResourceGroupName $env.ProjectResourceGroupName ` -OrganizationName $env.OrganizationName ` -ProjectName $env.ClusterTestProjectName ` -Name $env.ClusterName ` diff --git a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 index 2ae5c22328ae..32a94f38c54b 100644 --- a/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 +++ b/src/MongoDB/MongoDB.Autorest/test/Remove-AzMongoDBProject.Tests.ps1 @@ -18,7 +18,7 @@ Describe 'Remove-AzMongoDBProject' { It 'Delete-WhatIf' { # Partner returns 405 (MethodNotAllowed) for project deletion. # Use -WhatIf to validate parameter binding without calling the API. - Remove-AzMongoDBProject -ResourceGroupName $env.ResourceGroupName ` + Remove-AzMongoDBProject -ResourceGroupName $env.ProjectResourceGroupName ` -OrganizationName $env.OrganizationName ` -Name $env.ProjectName ` -WhatIf From d539dfcac8fca75730387ad876941ac60bd75ace Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 26 Jun 2026 02:17:06 +0530 Subject: [PATCH 7/8] Update docs/ Remove examples to use -WhatIf consistently --- .../MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md | 12 ++++++++---- .../MongoDB.Autorest/docs/Remove-AzMongoDBProject.md | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md b/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md index 61a90cc32089..83703fafbe91 100644 --- a/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md +++ b/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBCluster.md @@ -42,13 +42,17 @@ Delete a Cluster ## EXAMPLES -### Example 1: Remove a Cluster +### Example 1: Delete a MongoDB Atlas cluster (preview with -WhatIf) ```powershell -Remove-AzMongoDBCluster -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -ProjectName test-project-1 -Name test-cluster-free +Remove-AzMongoDBCluster -ResourceGroupName "myResourceGroup" -OrganizationName "myOrganization" -ProjectName "myProject" -Name "myCluster" -WhatIf ``` -Deletes the MongoDB Atlas cluster. -The operation is asynchronous; the underlying partner cluster is also torn down. +```output +What if: Performing the operation "Remove-AzMongoDBCluster_Delete" on target "myCluster". +``` + +Previews the delete operation for a MongoDB Atlas cluster without executing it. +Note: cluster deletion is not yet supported by the partner backend; use -WhatIf to validate parameters. ## PARAMETERS diff --git a/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBProject.md b/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBProject.md index 0d23683d6cae..bc2e1ad39b4f 100644 --- a/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBProject.md +++ b/src/MongoDB/MongoDB.Autorest/docs/Remove-AzMongoDBProject.md @@ -36,13 +36,17 @@ Delete a Project ## EXAMPLES -### Example 1: Remove a Project +### Example 1: Delete a MongoDB Atlas project (preview with -WhatIf) ```powershell -Remove-AzMongoDBProject -ResourceGroupName sharmaanuTest -OrganizationName KanedaTest -Name test-project-1 +Remove-AzMongoDBProject -ResourceGroupName "myResourceGroup" -OrganizationName "myOrganization" -Name "myProject" -WhatIf ``` -Deletes the MongoDB Atlas project. -The operation is asynchronous; all clusters under the project must be deleted first. +```output +What if: Performing the operation "Remove-AzMongoDBProject_Delete" on target "myProject". +``` + +Previews the delete operation for a MongoDB Atlas project without executing it. +Note: project deletion is not yet supported by the partner backend; use -WhatIf to validate parameters. ## PARAMETERS From de0683e448ec3bb1a7729c2c5b24f0dcc95e505d Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Fri, 26 Jun 2026 02:35:21 +0530 Subject: [PATCH 8/8] Fix Module Guid in docs/Az.MongoDB.md to match manifest --- src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md b/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md index 27fb9b24fd1a..07829a8804c5 100644 --- a/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md +++ b/src/MongoDB/MongoDB.Autorest/docs/Az.MongoDB.md @@ -1,6 +1,6 @@ --- Module Name: Az.MongoDB -Module Guid: 97fe2d21-7b64-4cee-b8b9-e39d12750776 +Module Guid: accceef6-8113-453a-a31c-4f2ce57893d6 Download Help Link: https://learn.microsoft.com/powershell/module/az.mongodb Help Version: 1.0.0.0 Locale: en-US