Skip to content

Files

Latest commit

7489007 · Jan 26, 2025

History

History

Portal.Autorest

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 26, 2025
Jan 26, 2025
Jan 26, 2025
Nov 16, 2023
Jan 26, 2025
Jan 26, 2025
Jan 26, 2025
Nov 16, 2023
Jan 26, 2025
Nov 16, 2023
Jan 26, 2025
Jan 26, 2025
Nov 16, 2023

README.md

Az.Portal

This directory contains the PowerShell module for the Portal service.


Info

  • Modifiable: yes
  • Generated: all
  • Committed: yes
  • Packaged: yes

Detail

This module was primarily generated via AutoRest using the PowerShell extension.

Module Requirements

Authentication

AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.

Development

For information on how to develop for Az.Portal, see how-to.md.

Run Generation

In this directory, run AutoRest:

autorest


AutoRest Configuration

see https://aka.ms/autorest

commit: 570ea717eb84ecf725399353d2b52a590353e589
require:
  - $(this-folder)/../../readme.azure.noprofile.md
input-file:
  - $(repo)/specification/portal/resource-manager/Microsoft.Portal/preview/2022-12-01-preview/portal.json

metadata:
  authors: Microsoft Corporation
  owners: Microsoft Corporation
  description: 'Microsoft Azure PowerShell: Portal Dashboard cmdlets'
  copyright: Microsoft Corporation. All rights reserved.
  tags: Azure ResourceManager ARM PSModule Portal Dashboard
  companyName: Microsoft Corporation
  requireLicenseAcceptance: true
  licenseUri: https://aka.ms/azps-license
  projectUri: https://github.com/Azure/azure-powershell
  releaseNotes: Initial release of Portal Dashboard cmdlets.

module-version: 0.1.0
title: Portal
subject-prefix: $(service-name)

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
  "@autorest/powershell": "3.x"

directive:
  - where: 
      verb: Set
      subject: Dashboard
    hide: true
  - where:
      verb: New
      subject: Dashboard
      variant: CreateViaIdentity|CreateViaIdentityExpanded
    remove: true
  - where:
      verb: Update
      subject: Dashboard
      variant: ^Update$|^UpdateViaIdentity$
    remove: true
  - from: swagger-document 
    where: $.definitions.DashboardPropertiesWithProvisioningState.properties.metadata
    transform: >-
      return {
          "type": "object",
          "additionalProperties": {"type": "object"},
          "description": "The dashboard metadata."
      }
  - from: swagger-document 
    where: $.definitions.DashboardProperties.properties.metadata
    transform: >-
      return {
          "type": "object",
          "additionalProperties": {"type": "object"},
          "description": "The dashboard metadata."
      }