Azure / azure-cli

Azure Command-Line Interface
MIT License
4.01k stars 2.99k forks source link

aks command invoke: evalsymlink failure on '/command-files/https:/github.com/ #23165

Open bhandariakshay1601 opened 2 years ago

bhandariakshay1601 commented 2 years ago

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

Related command

az aks command invoke --resource-group <> --name <> --command "kubectl kustomize ." --file

Describe the bug When trying to deploy aks periscope via aks command invoke, I am seeing the following error Error: rawResources failed to read Resources: Load from path https://github.com/azure/aks-periscope//deployment/base?ref=v0.9 failed: evalsymlink failure on '/command-files/https:/github.com/azure/aks-periscope/deployment/base?ref=v0.9' : lstat /command-files/https:: no such file or directory

To Reproduce

If we run this command on any aks cluster az aks command invoke --resource-group <> --name <> --command "kubectl kustomize ." --file

we will be able to reproduce kustomization.YAML

resources:

images:

secretGenerator:

Expected behavior

COmmand should have been successful

Environment summary

Additional context

bhandariakshay1601 commented 2 years ago

sorry, why is this put in backlog

yonzhan commented 2 years ago

route to CXP team

ghost commented 2 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

Issue Details
> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62 **Related command** az aks command invoke --resource-group <> --name <> --command "kubectl kustomize ." --file **Describe the bug** When trying to deploy aks periscope via aks command invoke, I am seeing the following error Error: rawResources failed to read Resources: Load from path https://github.com/azure/aks-periscope//deployment/base?ref=v0.9 failed: evalsymlink failure on '/command-files/https:/github.com/azure/aks-periscope/deployment/base?ref=v0.9' : lstat /command-files/https:: no such file or directory **To Reproduce** If we run this command on any aks cluster az aks command invoke --resource-group <> --name <> --command "kubectl kustomize ." --file we will be able to reproduce kustomization.YAML resources: - https://github.com/azure/aks-periscope//deployment/base?ref=v0.9 images: - name: periscope-linux newName: mcr.microsoft.com/aks/periscope newTag: 0.0.9 - name: periscope-windows newName: mcr.microsoft.com/aks/periscope-win newTag: 0.0.9 secretGenerator: - name: azureblob-secret behavior: replace literals: - AZURE_BLOB_ACCOUNT_NAME=<> - AZURE_BLOB_CONTAINER_NAME=<> - AZURE_BLOB_SAS_KEY=?<> **Expected behavior** COmmand should have been successful **Environment summary** **Additional context**
Author: bhandariakshay1601
Assignees: -
Labels: `Service Attention`, `AKS`, `customer-reported`, `Installation`, `Auto-Assign`
Milestone: Backlog
FumingZhang commented 2 years ago

Hi @bhandariakshay1601, if the current directory is used as the environment where the configuration file is located, per my understanding, this command should be used like az aks command invoke --resource-group <> --name <> --command "kubectl kustomize" --file "."