I am trying to get credentials for my Azure Kubernetes Cluster. Ran the script to fetch details on Azure cloud shell and got a .config file. I wonder if there is a way to download the file from my Azure Cloud Shell session?
When you use Azure Cloud Shell, you need to create an Azure File Share or use the existed. Cloud shell will mount File Share to the system. And the mount path you can use command mount
to take a look. The result will like this:
As I suggest, you can copy the .config file to the path like this: /home/RG/clouddrive/.cloudconsole
, then you can download the file from File Share.
For more details, you can take a look at another case here.
At the cloud shell prompt just type: download yourfilename
When you use Azure Cloud Shell, you need to create an Azure File Share or use the existed. Cloud shell will mount File Share to the system. And the mount path you can use command mount
to take a look. The result will like this:
As I suggest, you can copy the .config file to the path like this: /home/RG/clouddrive/.cloudconsole
, then you can download the file from File Share.
For more details, you can take a look at another case here.
- List your files
Azure Cloud Shell File listing
You may notice the clouddrive folder (check image link above). This folder is mounted to an Azure File Share, as specified here: https://learn.microsoft.com/en-us/azure/cloud-shell/persisting-shell-storage#how-cloud-shell-storage-works
- Get Azure File Share Information:
With the Get-CloudDrive command you obtain the Azure File Share metadata that will help you to find the download page for your files in Azure Portal. Alternatively you may use the df command
- Login to Azure Portal and locate the Azure File Share:
© 2022 - 2024 — McMap. All rights reserved.