Funktioner & verktyg för Azure Cloud ShellFeatures & tools for Azure Cloud Shell
Azure Cloud Shell är ett webbläsarbaserat gränssnitt som gör det möjligt att hantera och utveckla Azure-resurser.Azure Cloud Shell is a browser-based shell experience to manage and develop Azure resources.
Cloud Shell erbjuder en webbläsaraktiverade, förkonfigurerad gränssnitts upplevelse som kan användas för att hantera Azure-resurser utan att behöva installera, konfigurera och underhålla en dator själv.Cloud Shell offers a browser-accessible, pre-configured shell experience for managing Azure resources without the overhead of installing, versioning, and maintaining a machine yourself.
Cloud Shell etablerar datorer per begäran och att dator status inte bevaras mellan sessioner.Cloud Shell provisions machines on a per-request basis and as a result machine state will not persist across sessions. Eftersom Cloud Shell skapats för interaktiva sessioner avslutas gränssnitten automatiskt efter 20 minuters inaktivitet i gränssnittet.Since Cloud Shell is built for interactive sessions, shells automatically terminate after 20 minutes of shell inactivity.
Azure Cloud Shell körs på Ubuntu 16.04 LTS
.Azure Cloud Shell runs on Ubuntu 16.04 LTS
.
FunktionerFeatures
Säker automatisk autentiseringSecure automatic authentication
Cloud Shell säkert och autentiserar automatiskt konto åtkomst för Azure CLI och Azure PowerShell.Cloud Shell securely and automatically authenticates account access for the Azure CLI and Azure PowerShell.
$HOME beständighet mellan sessioner$HOME persistence across sessions
För att spara filer över flera sessioner, Cloud Shell vägleder dig genom att ansluta en Azure-filresurs vid första starten.To persist files across sessions, Cloud Shell walks you through attaching an Azure file share on first launch.
När den har slutförts ansluts Cloud Shell automatiskt lagringen (monterad som $HOME\clouddrive
) för alla kommande sessioner.Once completed, Cloud Shell will automatically attach your storage (mounted as $HOME\clouddrive
) for all future sessions.
Dessutom sparas din $HOME
katalog som en. img-fil i Azure-filresursen.Additionally, your $HOME
directory is persisted as an .img in your Azure File share.
Filer utanför $HOME
och dator status behålls inte mellan sessioner.Files outside of $HOME
and machine state are not persisted across sessions. Använd metod tips när du lagrar hemligheter som SSH-nycklar.Use best practices when storing secrets such as SSH keys. Tjänster som Azure Key Vault har självstudier för installation.Services like Azure Key Vault have tutorials for setup.
Läs mer om att spara filer i Cloud Shell.Learn more about persisting files in Cloud Shell.
Azure-enhet (Azure:)Azure drive (Azure:)
PowerShell i Cloud Shell tillhandahåller Azure-enheten ( Azure:
).PowerShell in Cloud Shell provides the Azure drive (Azure:
). Du kan växla till Azure-enheten med cd Azure:
och tillbaka till din arbets katalog med cd ~
.You can switch to the Azure drive with cd Azure:
and back to your home directory with cd ~
.
Med Azure-enheten kan du enkelt upptäcka och navigera i Azure-resurser, till exempel Compute, nätverk, lagring osv. liknar navigering i fil systemet.The Azure drive enables easy discovery and navigation of Azure resources such as Compute, Network, Storage etc. similar to filesystem navigation.
Du kan fortsätta att använda de bekanta Azure PowerShell-cmdletarna för att hantera dessa resurser oavsett vilken enhet du befinner dig i.You can continue to use the familiar Azure PowerShell cmdlets to manage these resources regardless of the drive you are in.
Alla ändringar som görs i Azure-resurserna, antingen direkt i Azure Portal eller genom Azure PowerShell-cmdletar, återspeglas i Azure-enheten.Any changes made to the Azure resources, either made directly in Azure portal or through Azure PowerShell cmdlets, are reflected in the Azure drive. Du kan köra dir -Force
för att uppdatera dina resurser.You can run dir -Force
to refresh your resources.
Hantera Exchange OnlineManage Exchange Online
PowerShell i Cloud Shell innehåller en privat version av Exchange Online-modulen.PowerShell in Cloud Shell contains a private build of the Exchange Online module. Kör Connect-EXOPSSession
för att hämta dina Exchange-cmdletar.Run Connect-EXOPSSession
to get your Exchange cmdlets.
Kör Get-Command -Module tmp_*
Run Get-Command -Module tmp_*
Anteckning
Modulnamnet ska börja med tmp_
, om du har installerat moduler med samma prefix, kommer deras cmdlets också att placeras på skärmen.The module name should begin with tmp_
, if you have installed modules with the same prefix, their cmdlets will also be surfaced.
Djupgående integrering med verktyg med öppen källkodDeep integration with open-source tooling
Cloud Shell innehåller förkonfigurerad autentisering för verktyg med öppen källkod, till exempel terraform, Ansible och chefs INSPEC.Cloud Shell includes pre-configured authentication for open-source tools such as Terraform, Ansible, and Chef InSpec. Prova genom gångs exemplet.Try it out from the example walkthroughs.
VerktygTools
KategoriCategory | NamnName |
---|---|
Linux-verktygLinux tools | bashbash zshzsh fsh tmuxtmux framdig |
Azure-verktygAzure tools | Azure CLI och Azure klassisk CLIAzure CLI and Azure classic CLI AzCopyAzCopy Azure Functions CLIAzure Functions CLI Service Fabric CLIService Fabric CLI Batch ShipyardBatch Shipyard blobxferblobxfer |
Text redigerareText editors | kod (Cloud Shell redigerare)code (Cloud Shell editor) vimvim nanonano emacsemacs |
KällkontrollSource control | gitgit |
ByggverktygBuild tools | makemake mavenmaven npmnpm –pip |
ContainrarContainers | Docker-datorDocker Machine KubectlKubectl HelmHelm DC/OS CLIDC/OS CLI |
DatabaserDatabases | MySQL-klientMySQL client PostgreSql-klientPostgreSql client sqlcmd-verktygsqlcmd Utility MSSQL – skriptaremssql-scripter |
ÖvrigtOther | iPython-klientiPython Client Cloud Foundry CLICloud Foundry CLI TerraformTerraform AnsibleAnsible Chefs INSPECChef InSpec Puppet-bultPuppet Bolt HashiCorp PackerHashiCorp Packer Office 365 CLIOffice 365 CLI |
Stöd för språkLanguage support
SpråkLanguage | VersionVersion |
---|---|
.NET Core.NET Core | 3.1.3023.1.302 |
GoGo | 1,91.9 |
JavaJava | 1.81.8 |
Node.jsNode.js | 8.16.08.16.0 |
PowerShellPowerShell | 7.0.07.0.0 |
PythonPython | 2,7 och 3,5 (standard)2.7 and 3.5 (default) |
Nästa stegNext steps
Bash i Cloud Shell snabb startBash in Cloud Shell Quickstart
PowerShell i Cloud Shell snabb startPowerShell in Cloud Shell Quickstart
Lär dig mer om Azure CLILearn about Azure CLI
Läs mer om Azure PowerShellLearn about Azure PowerShell