azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Register-AzProviderFeature does not support -Force parameter

Open kwill-MSFT opened this issue 1 year ago • 0 comments

Description

Register-AzProviderFeature does not support the -Force parameter, making it inconsistent with the rest of the Az modules.

Issue script & Debug output

PS C:\Users\kwill\Source\FunctionsPowershell> Register-AzProviderFeature -ProviderNamespace "Microsoft.Cdn" -FeatureName "BypassCnameCheckForCustomDomainDeletion" -Force
Register-AzProviderFeature: A parameter cannot be found that matches parameter name 'Force'.

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.17.0                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     6.16.1                Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}

Error output

No response

kwill-MSFT avatar Apr 23 '24 14:04 kwill-MSFT