Skip to content

Latest commit

 

History

History
144 lines (98 loc) · 2.4 KB

README.md

File metadata and controls

144 lines (98 loc) · 2.4 KB

Azure

Links

Related

Glossary

  • Team Foundation Version Control (TFVC)

Azure Compute

  • Virtual Machines
  • App Services
  • Containers
  • Serverless

Tools

CLI

Links

Installation

Homebrew

brew install azure-cli

Chocolatey

choco install azure-cli

Commands

az -h

Initialize

#
az extension add -n init

#
az init

#
az config get core.output
az config set defaults.location=eastus

#
cat ~/.azure/config

Authenticate

Notes: Get Directory ID

#
az login
# or, set Directory ID
az login \
  --allow-no-subscriptions \
  --tenant '<directory-id>'

Issues

Missing Subscription

(SubscriptionNotFound) The subscription '<UUID>' could not be found.
Code: SubscriptionNotFound
Message: The subscription '<UUID>' could not be found.

Make sure you have the Azure Account set up.

Uninstall

#
brew uninstall azure-cli

#
rm -fR ~/.azure

Tips

Visual Studio Code

#
code --install-extension ms-vscode.vscode-node-azure-pack

#
jq '."recommendations" += ["ms-vscode.vscode-node-azure-pack"]' "$PWD"/.vscode/extensions.json | sponge "$PWD"/.vscode/extensions.json