PS D:\azure-sdk-for-net\sdk\cosmosdb\Microsoft.Azure.Management.CosmosDB\src> Import-Module C:\Users\ajparule\Documents\WindowsPowerShell\Modules\CodeGenerationModules\AutoRestCodeGenerationModule
PS D:\azure-sdk-for-net\sdk\cosmosdb\Microsoft.Azure.Management.CosmosDB\src> .\generate.ps1
Installing AutoRest version: v2

> autorest@2.0.4413 preinstall C:\Users\ajparule\AppData\Roaming\npm\node_modules\autorest
> node ./preinstall-check

C:\Users\ajparule\AppData\Roaming\npm\autorest -> C:\Users\ajparule\AppData\Roaming\npm\node_modules\autorest\dist\app.js
+ autorest@2.0.4413
updated 1 package in 1.503s

AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cosmos-db/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\azure-sdk-for-net\sdk
Autorest CSharp Version: 2.3.82
AutoRest code generation utility [version: 2.0.4413; node: v14.17.6]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest

There is a new version of AutoRest available (3.4.0).
 > You can install the newer version with with npm install -g autorest@latest

   Loading AutoRest core      'C:\Users\ajparule\.autorest\@microsoft.azure_autorest-core@2.0.4421\node_modules\@microsoft.azure\autorest-core\dist' (2.0.4421)
   Loading AutoRest extension '@microsoft.azure/autorest.csharp' (~2.3.79->2.3.82)
   Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55->2.3.55)

2021-09-27 05:54:13 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch:      main
Commit:      58aed9918a6147cedafb9733856bfde63939a64a
AutoRest information
Requested version: v2
Bootstrapper version:    autorest@2.0.4413