v
This directory contains the PowerShell module for the DnsResolver service.
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes
This module was primarily generated via AutoRest using the PowerShell extension.
- Az.Accounts module, version 2.7.5 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.DnsResolver, see how-to.md.
This directory contains the PowerShell module for the DnsResolver service.
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes
This module was primarily generated via AutoRest using the PowerShell extension.
For information on how to develop for DnsResolver, see how-to.md.
Use of the beta version of autorest.powershell generator requires the following:
- NodeJS LTS (10.15.x LTS preferred)
- Note: It will not work with Node < 10.x. Using 11.x builds may cause issues as they may introduce instability or breaking changes.
If you want an easy way to install and update Node, NVS - Node Version Switcher or NVM - Node Version Manager is recommended.
- AutoRest v3 beta
npm install -g autorest@beta
- PowerShell 6.0 or greater
- If you don't have it installed, you can use the cross-platform npm package
npm install -g pwsh
- If you don't have it installed, you can use the cross-platform npm package
- .NET Core SDK 2.0 or greater
- If you don't have it installed, you can use the cross-platform npm package
npm install -g dotnet-sdk-2.2
- If you don't have it installed, you can use the cross-platform npm package
In this directory, run AutoRest:
autorest
commit: 988a85a29bc5836c3f255d61e266d3905770bbac
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/dnsresolver.json
- $(repo)/specification/dnsresolver/resource-manager/Microsoft.Network/stable/2025-05-01/dnsresolverpolicy.json
module-version: 0.3.0
title: DnsResolver
subject-prefix: DnsResolver
inlining-threshold: 50
# If there are post APIs for some kinds of actions in the RP, you may need to
# uncomment following line to support viaIdentity for these post APIs
# identity-correction-for-post: true
# 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: DnsResolverPolicyVirtualNetworkLink
set:
subject-prefix: ''
- where:
subject: DnsResolverPolicy
set:
subject-prefix: ''
- where:
subject: DnsResolverDomainList
set:
subject-prefix: ''
- where:
subject: DnsSecurityRule
set:
subject-prefix: 'DnsResolverPolicy'
- where:
subject: ^(ForwardingRule|VirtualNetworkLink)$
set:
subject-prefix: DnsForwardingRuleset
- where:
subject: DnsForwardingRuleset
set:
subject-prefix: ''
# Following is two common directive which are normally required in all the RPs
# 1. Remove the unexpanded parameter set
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
remove: true
# Remove the set-* cmdlet
- where:
verb: Set
remove: true