Skip to content

az storage container immutability-policy create fails with error Parameter 'resource_group_name' can not be None. #19972

@Kumar-Ashwin-Hubert

Description

@Kumar-Ashwin-Hubert

Describe the bug

The azure storage immutable-policy creation command throws parameter cannot be none error when optional parameter "resource-group" is not provided. Issue occurring from azure-cli 2.29.1 onwards and didn't occur in previous versions.
Immutable-policy creation documentation clearly shows the --resource-group as an optional parameter, and was working as expected for previous azure-cli versions.

Command Name
az storage container immutability-policy create

Errors:

Parameter 'resource_group_name' can not be None.

To Reproduce:

Steps to reproduce the behavior.

  • az storage container immutability-policy create --account-name {} --container-name {} --period {}

Expected Behavior

The az storage container immutability-policy create command should create the immutable policy as expected even without passing the optional resource-group parameter.

Environment Summary

Installer: MSI

azure-cli 2.29.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions