Skip to content

[Compute] Could not find member 'securityProfile' on object of type 'Properties #17904

@qwordy

Description

@qwordy

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

az cloud set -n AzureCloud --profile 2019-03-01-hybrid
az vm create -g fy -n vm --image win2016datacenter --admin-username clitester --admin-password PasswordPassword1!

returns

Could not find member 'securityProfile' on object of type 'Properties

The request body contains "securityProfile": {}. It appears that the old version of Compute does not accept this field even it is an empty dict. It will be fixed on 5/4/2021.

Similar code can be found in Azure CLI repository. It is of risk.

To Reproduce

Expected behavior

Environment summary

Additional context

Metadata

Metadata

Assignees

Labels

Computeaz vm/vmss/image/disk/snapshot

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions