Download presentation
Presentation is loading. Please wait.
Published byMaike Schäfer Modified over 6 years ago
1
Azure CLI Jason R. Shaver Senior Program Manager
12/7/2018 7:08 PM THR1040 Azure CLI Jason R. Shaver Senior Program Manager Azure Developer Experience (ADX) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2
Azure CLI and Azure PowerShell?
Object model Built up and send .NET extensibility Opinionated for .NET Azure CLI 2.0 Text streams Atomic actions Cross-platform Opinionated for OSS Choose based on your platform, team preferences and skills, tooling support, etc.
3
Demo Jason R. Shaver 12/7/2018 7:08 PM
© Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4
Managed Service Identity
12/7/2018 7:08 PM Managed Service Identity # Give your VM an identity: az vm assign-identity -g MyRG -n MyVM2 # Look up your VM's identity: spID=$(az resource list -n MyVM2 --out tsv \ --query [*].identity.principalId) # Give rights to that identity: az role assignment create --assignee $spID \ --role 'Reader' –scope /subscriptions/db5e[…]cce5 # On your VM, log in: az login --msi © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
5
Azure Backup and Restore
# Create a backup vault az backup vault create -g BackupsGroup -n MyVault -l westus # Add a policy to your VM az backup protection enable-for-vm -g BackupsGroup --vault-name MyVault --vm DevVM --policy-name DefaultPolicy # Start a backup az backup protection backup-now -g BackupsGroup --vault-name MyVault --container-name DevVM --item-name DevVM --retain-until # View the status of a backup az backup job list -g BackupsGroup --vault-name MyVault # View backups az backup recoverypoint list -g BackupsGroup --vault-name MyVault --container-name DevVM --item-name DevVM
6
Tips and Tricks # More info about deployments az vm create --verbose
# Extract values into an environment variable myVar=$(az vm list --query "[0].[id]" --out tsv) # Get help with queries (download jpterm) az vm list --out json | jpterm # Interactive preview az interactive
7
Please evaluate this session
Tech Ready 15 12/7/2018 Please evaluate this session From your Please expand notes window at bottom of slide and read. Then Delete this text box. PC or tablet: visit MyIgnite Phone: download and use the Microsoft Ignite mobile app Your input is important! © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
8
12/7/2018 7:08 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.