[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-AzVMSqlServerExtension does not have a Force parameter. #24030

Open
YanaXu opened this issue Jan 24, 2024 · 3 comments
Open

Remove-AzVMSqlServerExtension does not have a Force parameter. #24030

YanaXu opened this issue Jan 24, 2024 · 3 comments
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute - Extensions Service Attention This issue is responsible by Azure service team.

Comments

@YanaXu
Copy link
Contributor
YanaXu commented Jan 24, 2024

Description

When I try to run Remove-AzVMSqlServerExtension, it will prompt a "shouldContinue" message like below.

>Remove-AzVMSqlServerExtension -ResourceGroupName 'kknrgcleuy' -VMName 'qigslrtyeb' -Name 'ivlqxmcnua'

Virtual machine extension removal operation
This cmdlet will remove the specified virtual machine extension. Do you want to continue?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"):

Cmdlet Remove-AzVMSqlServerExtension does not have a parameter Force, which should not be.
Please add the necessary parameters.

Issue script & Debug output

N/A

Environment data

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.11
PSEdition                      Core
GitCommitId                    7.3.11
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

> Get-Module Az.*

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.13.2                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     6.3.0                 Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnattendContent, Add-AzVMDataDisk…}

Error output

No response

@YanaXu YanaXu added bug This issue requires a change to an existing behavior in the product in order to be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Jan 24, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jan 24, 2024
@YanaXu YanaXu changed the title Remove-AzVMSqlServerExtension do not have a Force parameter. Remove-AzVMSqlServerExtension does not have a Force parameter. Jan 24, 2024
@isra-fel
Copy link
Member

According to the design guidelines of Azure PowerShell (this section: Some cmdlets required additional confirmation...) cmdlet that utilizes ShouldContinue() for extra confirmation should also implement a -Force switch parameter to allow bypassing, otherwise it will block automation environments.

@isra-fel isra-fel added Compute - Extensions Service Attention This issue is responsible by Azure service team. labels Jan 24, 2024
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TravisCragg-MSFT, @GabstaMSFT.

@GabstaMSFT
Copy link

Assigning to @SeliuMSFT for assistance on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. Compute - Extensions Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants