This directory contains the PowerShell module for the CustomProviders service.
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes
This module was primarily generated via AutoRest using the PowerShell extension.
- Az.Accounts module, version 1.8.1 or greater
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
For information on how to develop for Az.CustomProviders
, see how-to.md.
In this directory, run AutoRest:
autorest
commit: 0dd49a444195fef7f3555cad038cb7665cbd928c
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/customproviders/resource-manager/Microsoft.CustomProviders/preview/2018-09-01-preview/customproviders.json
metadata:
authors: Microsoft Corporation
owners: Microsoft Corporation
description: 'Microsoft Azure PowerShell: Custom Providers cmdlets'
copyright: Microsoft Corporation. All rights reserved.
tags: Azure ResourceManager ARM PSModule CustomProviders
companyName: Microsoft Corporation
requireLicenseAcceptance: true
licenseUri: https://aka.ms/azps-license
projectUri: https://github.com/Azure/azure-powershell
releaseNotes: Initial release of CustomProviders cmdlets.
module-version: 0.1.0
title: CustomProviders
subject-prefix: ''
# 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:
subject: CustomResourceProvider
set:
subject: CustomProvider
- where:
subject: Association
set:
subject: CustomProviderAssociation
- where:
verb: New
subject: ^CustomProvider.*$
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Create$
remove: true
- where:
verb: Set
subject: CustomProviderAssociation
variant: ^Update$|^UpdateViaIdentity$
remove: true
- where:
verb: Set
subject: ^CustomProvider$
remove: true
- where:
verb: Update
subject: CustomProvider
variant: ^Update$|^UpdateViaIdentity$
remove: true
- where:
verb: Set
subject: CustomProviderAssociation
remove: true
# Parameter renames
- where:
subject: ^CustomProvider$
parameter-name: ResourceProviderName
set:
parameter-name: Name
alias: ResourceProviderName
# Make ResourceId validation case insensitive
- from: source-file-csharp
where: $
transform: $ = $.replace(/var _match = new global\:\:System\.Text\.RegularExpressions\.Regex\(\"([^\"]+)\"\).Match\(viaIdentity\);/g, 'var _match = new global\:\:System.Text.RegularExpressions.Regex\(\"$1\", global\:\:System\.Text\.RegularExpressions\.RegexOptions\.IgnoreCase\).Match\(viaIdentity\);');
# Fix issue with delete LRO operations
- from: source-file-csharp
where: $
transform: $ = $.replace(/var _finalUri = _response.GetFirstHeader\(\@\"Location\"\);/g, 'var _finalUri = \"\";');