diff --git a/packages/typespec-powershell/configuration.yaml b/packages/typespec-powershell/configuration.yaml index 997d785d06..be8de32cab 100644 --- a/packages/typespec-powershell/configuration.yaml +++ b/packages/typespec-powershell/configuration.yaml @@ -211,6 +211,9 @@ verb-mapping: Wipe: Clear Write: Write +# azure configurations +azure: true + # Folder configurations current-folder: "./" module-folder: "./generated" @@ -243,6 +246,19 @@ nuspec: "./{module-name}.nuspec" # misc configurations skip-model-cmdlets: false module-version: 0.1.0 +namespace: "Microsoft.Azure.PowerShell.Cmdlets.{service-name}" +use-namespace-folders: false +help-link-prefix: https://learn.microsoft.com/powershell/module/ +metadata: + authors: Microsoft Corporation + owners: Microsoft Corporation + description: 'Microsoft Azure PowerShell: {service-name} cmdlets' + copyright: Microsoft Corporation. All rights reserved. + tags: Azure ResourceManager ARM PSModule {service-name} + companyName: Microsoft Corporation + requireLicenseAcceptance: true + licenseUri: https://aka.ms/azps-license + projectUri: https://github.com/Azure/azure-powershell # License configurations header-definitions: diff --git a/packages/typespec-powershell/src/emitter.ts b/packages/typespec-powershell/src/emitter.ts index b29a1024cc..f29738e35a 100644 --- a/packages/typespec-powershell/src/emitter.ts +++ b/packages/typespec-powershell/src/emitter.ts @@ -31,7 +31,8 @@ function loadConfiguration(emitterOptions: Record): Record>(readFileSync(configPath, 'utf8'), configPath); // Define the values for interpolation const interpolationValues = { - 'module-name': emitterOptions['module-name'] + 'module-name': emitterOptions['module-name'], + 'service-name': emitterOptions['service-name'] }; interpolatePlaceholders(configuration, interpolationValues); // If there is overlap between the configuration and the emitter options, the emitter options will take precedence