Azure / Azure/azure-cli

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

Open
#26,656 5 comments 0 reactions 1 assignee Claimed by @bavneetsingh16 View on GitHub
act-observability-squad AKS Auto-Assign Auto-Resolve bug Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.