Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obsolete command #29839

Open
rapope36 opened this issue Sep 4, 2024 · 2 comments
Open

Obsolete command #29839

rapope36 opened this issue Sep 4, 2024 · 2 comments
Assignees
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@rapope36
Copy link

rapope36 commented Sep 4, 2024

Describe the bug

I am building latest azure-cli:2.64.0 in docker with some additional steps and it seems some commands don't work anymore although it used to work until azure-cli:2.56.0 (the latest version I was using).

2.63.0 works fine as well :)

Related command

addgroup

Errors

/bin/sh: line 1: addgroup: command not found

Issue script & Debug output

Dockerfile:
FROM mcr.microsoft.com/azure-cli:2.64.0

Configure users and groups for non-privileged use

RUN addgroup user -g 1000 && adduser -h /home/user -s /bin/bash -G user -u 1000 -D user
&& addgroup vsts -g 1001 && adduser -h /home/vsts -s /bin/bash -G vsts -u 1001 -D vsts

Expected behavior

Adding the group and user.

Environment Summary

azure-cli 2.63.0 *

core 2.63.0 *
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.30.0
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Extensions directory '/home/cloudtest/.azure/cliextensions'

Python (Linux) 3.11.8 (main, Jul 31 2024, 03:39:39) [GCC 11.4.0]

Additional context

Did you happen to change the kernel...I assume there are more commands that have been replaced, correct?

@rapope36 rapope36 added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Sep 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Sep 4, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Sep 4, 2024

Thank you for opening this issue, we will look into it.

@yonzhan yonzhan added the Service Attention This issue is responsible by Azure service team. label Sep 4, 2024
@yonzhan yonzhan added this to the Backlog milestone Sep 4, 2024
@bebound
Copy link
Contributor

bebound commented Sep 9, 2024

The base OS is changed to Azure Linux in 2.64.0
Please run tdnf install shadow-utils before using addgroup

PS: We'll move to Azure Linux 3 later and I don't know how to do this in Azure Linux 3. Please create an issue in https://github.com/microsoft/azurelinux/issues

Ref: microsoft/azurelinux#3239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants