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

az security pricing create only enabled "Virtual Machines"

Open liammoat opened this issue 7 years ago • 5 comments

Describe the bug I am using az security pricing create to updates the Azure Security Center Pricing tier to "Standard" for a subscription.

As you can see, in the screen capture below, this only enables the pricing tier for the "Virtual Machine" resource type.

image

To Reproduce With a subscription that does not have "Standard" pricing tier enabled, run the following command:

az security pricing create --name default --tier "Standard" --subscription "<subscription-id>"

Expected behavior As there isn't an option to specify the desired resource types, I would expect this to be enabled for all resource types.

Environment summary Install Method - MSI Version - 2.0.55 Shell - cmd.exe OS Version - Windows 10

Additional context This may not be a bug. It may be by design. If this is the case, can we configure the selected "Resource Types" using the az.

liammoat avatar Apr 26 '19 09:04 liammoat

security

yonzhan avatar May 02 '20 13:05 yonzhan

Looking for the appropriate team contact for this issue

AddySanto avatar Nov 16 '20 11:11 AddySanto

'default' is a parameter used for old API version. the current CLI uses new API version which contains defender plan name(--name) and pricing tier(--tier) as mandatory parameters, here is the relevant documentation of the command az security pricing create: https://docs.microsoft.com/en-us/cli/azure/security/pricing?view=azure-cli-latest

amitbiton1988 avatar Nov 30 '20 08:11 amitbiton1988

@liammoat I believe you have received the information you are looking for and this issue can be closed. Please let us know.

SaurabhSharma-MSFT avatar Feb 15 '22 01:02 SaurabhSharma-MSFT

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Feb 22 '22 02:02 ghost