Skip to content

Latest commit

 

History

History
63 lines (56 loc) · 1.6 KB

File metadata and controls

63 lines (56 loc) · 1.6 KB

Azure PowerShell AutoRest Configuration

Values

azure: true
powershell: true
branch: stackadmin2
repo: https://github.com/Azure/azure-rest-api-specs/tree/$(branch)
metadata:
  authors: Microsoft Corporation
  owners: Microsoft Corporation
  copyright: Microsoft Corporation. All rights reserved.
  tags: AzureStack ResourceManager ARM PSModule
  companyName: Microsoft Corporation
  requireLicenseAcceptance: true
  licenseUri: https://aka.ms/azps-license
  projectUri: https://github.com/Azure/azurestack-powershell

Names

prefix: Azs
namespace: Microsoft.Azure.PowerShell.Cmdlets.$(service-name)
identity-correction-for-post: true

Folders

clear-output-folder: true
output-folder: .

Directives

directive:
  ## Remove cmdlets for /operations call
  - where:
      subject: Operation
    remove: true
  ## Set default parameter value
  - where:
      parameter-name: SubscriptionId
    set:
      default:
        script: '(Get-AzContext).Subscription.Id'
  - where:
      parameter-name: Location
    set:
      default:
        script: '(Get-AzLocation)[0].Location'
  ## variant removal (parameter InputObject) from all New cmdlets -- parameter sets CreateViaIdentity and CreateViaIdentityExpanded
  - where:
      verb: New
      variant: ^CreateViaIdentity(.*)
    remove: true
    

# PSD1 Changes for preview module
  - from: source-file-csharp
    where: $
    transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}\{Indent\}\{Indent\}Prerelease = \{previewVersion\}\"\);', 'sb.AppendLine\(\$@\"\{Indent\}\{Indent\}\{Indent\}Prerelease = \'\{previewVersion\}\'\"\);' );