An Azure account
Some document to help you start with azurecli
Navigate to your workspace folder, then run:
devops-toolkit-cli init demo_azcli01
devops-toolkit-cli run demo_azcli01
# You now in the container terminal. Execute the az command normally
az --version
It will mount the workspace code to container and you then can execute desired scripts inside the devops-toolkit
container.
To use the existing container instead of creating one, use docker exec
command instead of docker run
docker exec -it my_devops_toolkit /bin/bash
For instructions on common run modes, visit DevOps Toolkit Common Run Mode.
docker run --rm -it -v ~/.dtc:/dtc tungbq/devops-toolkit:latest
# Login with AZ CLI
az login --use-device-code
### To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code <SHOWN_IN_SCREEN> to authenticate
# List all resource groups
az group list
Sample Result
root@f097467db632:~# az group list
[
{
"id": "/subscriptions/xxxxxxxx-yyyy-zzzz-ttttttttt/resourceGroups/your_resource_group",
"location": "centralindia",
"managedBy": null,
"name": "your_resource_group",
"properties": {
"provisioningState": "Succeeded"
},
"tags": null,
"type": "Microsoft.Resources/resourceGroups"
},
...
]
- For any issues, check this reference