Skip to content

az k8s-extension create doesn't have tags parameter, it's a blocker for companies with Azure Policy in-place that requires tags. #26656

Description

@Welasco

Describe the bug

az k8s-extension create doesn't have tags parameter, it's a blocker for companies with Azure Policy in-place that requires tags.

Related command

az k8s-extension create --name azuremonitor-containers --cluster-name xxx --resource-group xxx --cluster-type connectedClusters --extension-type Microsoft.AzureMonitor.Containers --configuration-settings amalogs.logsettings.custommountpath=/home/data/docker --version 3.1.5

Errors

(RequestDisallowedByPolicy) Resource 'xxx' was disallowed by policy.
Code: RequestDisallowedByPolicy

Customers that has policy tag requirements can't execute the command with the above error.

Issue script & Debug output

(RequestDisallowedByPolicy) Resource 'xxx' was disallowed by policy.
Code: RequestDisallowedByPolicy

Expected behavior

We should have the --tags parameters in the command line.

Environment Summary

❯ az --version
azure-cli 2.47.0 *

core 2.47.0 *
telemetry 1.0.8

Extensions:
aks-preview 0.5.128
appservice-kube 0.1.9
azure-firewall 0.6.2
azure-iot 0.10.8
connectedk8s 1.3.17
customlocation 0.1.3
front-door 1.0.16
functionapp 0.1.1
healthcareapis 0.4.0
k8s-configuration 1.7.0
k8s-extension 1.4.0
log-analytics 0.2.1
log-analytics-solution 0.1.1

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

Additional context

No response

Metadata

Metadata

Labels

AKSaz aks/acs/openshiftAuto-AssignAuto assign by botAuto-ResolveAuto resolve by botService AttentionThis issue is responsible by Azure service team.act-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions