Great Video - would've been nice to mention you need to manually install Microsoft Azure CLI onto your system before the Azure CLU commands work. Would've taken you 30 secs to mention, and saved me 30 mins troubleshooting,,
Only 30mins? I've been trawling the internet for two days trying to figure this out. Yes, if people who demo this stuff would mention where they get CLI from, it would be a huge time saver. It never occurred to me that I would have to install Microsoft Azure on to my system. I thought it was all online.
Hi Adam. Great Content! What are the example commands for creating, viewing, and deleting work items on Azure Board? Have this example using curl? thanks
Fantastic video! This way looks so much faster than the Portal's web pages if you know what you're doing. Thanks to you, I'm learning more. Sone things I'm unsure of is if you can specify the cpu size easily, like Standard_B1s or NC24s_v2, or does doing that require more things to write? Same with making a Spot VM. Can I add just --priority Spot? Or is there more I have to include? Thank you so much!
Thank you kindly! Instance size is enough for most machines, but I would always check the docs as the technology and tools change when new options appear. For example, go to docs.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest#az-vm-create and ctrl+f for spot, you will see some extra options you can configure. If not then they will take default values.
Hi I am new to cli have a task have to generate and store key1 (after creating storage account through cloud shell in a variable for future use can you list the commands please
Check this out docs.microsoft.com/en-us/cli/azure/storage/account/keys?view=azure-cli-latest#az-storage-account-keys-renew and then use docs.microsoft.com/en-us/cli/azure/storage/account/keys?view=azure-cli-latest#az-storage-account-keys-list with --query "[?keyName=='key1'].value" --output tsv parameters
Fist of all : thank you so much about your course, it really highly useful. And one question: how long is azure cli session active, before you should need to re-login again ?
and one more thing: may be you need little bit better theme in your terminal :) (because dark blue and black in one place are not really readable) imgur.com/9mzAT3b
I often try to use tools that look familiar to people that's why. I use different color themes myself too. But I agree default windows terminal color scheme is terrible for CLI JSONC formatting.
@@AdamMarczakYT many thanks adam. Let me clarify my question.as I watch your cloud shell tutorial i understood the the cli work from a linux container that is created withing my azure storage a account. Is the a way to me to run ps1 commands from my laptop which has an linux os install on it ? Again many thanks for your Amazing UA-cam videos
Hi Adam, Thanks for providing such a great session :) , just had a question can we create a script using Azure CLI commands and then execute that script via powershell ?
Hey, thanks for watching and commenting. The answer would be yes you can, you could potentially even mix them in one script,. Although not recommended to mix them because it's harder to read the code and harder to maintain it.
Azure CLI is to manage Azure not Microsoft Teams so it doesn't have commands for teams. But it's possible using AZ REST (http requests) command with graph api docs.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
While I am trying "az login"in windows command prompt. I got this below error az login 'az' is not recognized as an internal or external command, operable program or batch file. Can you help me in this?
Hello Adam i have two doubts 1.is azure CLI is just creating azure resources in command line by writing acronym with azure name right 2. Is azure CLI is used to create commands and objects..
Type in "az --help" to learn which services are supported. For the second question. CLI is just SDK with commands written in Python. if you need to write code and create scripts either use Linux Bash or Python or PowerShell. CLI is just a tool, not a scripting language.
Please remember that Microsoft has very good documentation. If you search in google the first link will return this result showing examples of what you asked docs.microsoft.com/en-us/cli/azure/storage/entity?view=azure-cli-latest
how to > list of multifactor disabled AD accounts > list of all storage accounts and access details > list of app registrations and their current state > list of vnets, IP ranges, VMs > list of resigned users with active accounts > list of admin users > all role assignments >resource usage and identify unused resourcesEdited
Hi I am new and learning cli I have been given a task of getting the keys for storage selecting the first key and storing it in a variable for future use I am stuck here I get the keys but how do i store KEY1 in a variable for future use?
Hey, this depends on the shell you are using, whenever this is windows batch or linux bash. But in general use --query parameter in CLI to get only values from response you need. This js JMESPath format which you can check more about in here: jmespath.org/tutorial.html
@@AdamMarczakYT Hi was able to isolate the output using az storage account keys list -n sanyal --query "[?keyName=='key1'].value" --output tsv however when i try to store this value in a variable called key1 using key1="$( az storage account keys list -n sanyal --query "[?keyName=='key1'].value" --output tsv)I just get >> continuously..
Rana you have a typo in your code. key1=" the " should not be there. Please note that I don't don't have capacity to help with coding exercises normally, I can point you in the right direction though. Hope this helps.
Please check the docs for more azure login examples. docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli?view=azure-cli-latest for automation service principal approach is recommended.
Why would you want to downgrade it? Everything should work in the latest version and Microsoft always recommends using the latest because latest is always available in tools like Azure DevOps and Azure Cloud Shell. So you should use latest for compatibility reasons.
Like your videos. Not sure if you are still working on this. I just started with Azure automation, would like to see a video about Azure Python SDK. A lot of samples are not working properly, not sure why: docs.microsoft.com/en-us/azure/developer/python/azure-sdk-overview
Hi Adam, A Very good tutorial on Azure CLI, as well as on any other topic actually =) I'm trying to create a script to Create VM and login to it from CMD, for that I need to pass IP as a variable to mstsc command. How can I create and use variables in the Azure CLI environment? Thanks a lot!
This is absolutely all you need to learn CLI. Thank you Adam
Good session .. I'm using cli for quite sometime .. never heard of interactive mode .. really helpful material ..
Thanks. Glad you found it helpful. :)
I was very impresed with the ease of understandability of ths tutorial/demo. Good flow in logic for teaching a noob and enjoyable to follow.
Excellent explanation, never seen before in such a simple and concise manner. Thanks a lot SIR! 👏
Most welcome!
Great tutorial! I learnt a lot and your explanations/comments were great. Ubuntu is a Zulu word and your pronunciation was on point! Well done.
Haha! I didn't know that, awesome :) Thanks!
Excellent tutorial, clearly explained. This channel needs to get more subscribers!!
Much appreciated! Glad you think so :)
creating a resource group using Gui is beautiful and pleasing.
Hi Adam!
Actually i found your tutorial accidentally. But its amazing man! Thank you!
Happy to hear that! Thanks for stopping by 😀
Your English is very good if is not native tongue. Helpful - The second ‘a’ in array is really important. Ah-rAy ❤❤
I think this guy makes the best azure videos
Dzieki Adam, interaktywny tryb jest mega na poczatek !
Super! Tez lubie wiec pokazuje na lewo i prawo bo idealny do nauki tez jest. Dzieki!
Thanks Adam.. you have given so many small small tips.. thanks.
Happy to help!
This was an excellent demo on azure CLI. Thanks
Cheers mate! :)
Great Video - would've been nice to mention you need to manually install Microsoft Azure CLI onto your system before the Azure CLU commands work. Would've taken you 30 secs to mention, and saved me 30 mins troubleshooting,,
Only 30mins? I've been trawling the internet for two days trying to figure this out. Yes, if people who demo this stuff would mention where they get CLI from, it would be a huge time saver. It never occurred to me that I would have to install Microsoft Azure on to my system. I thought it was all online.
Nice explanation. I am expecting more videos like this.
Thanks!
Much helpful. Also Please make a session on powershell
Thanks Aaron. It will be most likely Azure Synapse Analytics or PowerShell next week, stay tuned :)
Very well explained!!
Hi Adam. Great Content! What are the example commands for creating, viewing, and deleting work items on Azure Board? Have this example using curl? thanks
very nice and to the point
Thanks :)
Very good session and much useful ...
Thank you :) stay for more!
Well done! Nice tutorial!
Awesome, thanks!
Great Video! Thanks!!!!
Glad you liked it!
Thanks Adam! You are a good teacher.
I have a question: What is a RI? (6.54min into video).
haha, It's not RI, it's ARRAY 😂😁 Those two are pronounced the same :) Thanks for watching and commenting :)
Legend. Subscribed
Thanks :D
very helpful man, thanks a lot for the vid!
Thank you bro your video helped me in creating a vm in azure terminal
Glad I could help :)
Really helpful Thank you for this video
Glad it was helpful!
Fantastic video! This way looks so much faster than the Portal's web pages if you know what you're doing. Thanks to you, I'm learning more. Sone things I'm unsure of is if you can specify the cpu size easily, like Standard_B1s or NC24s_v2, or does doing that require more things to write? Same with making a Spot VM. Can I add just --priority Spot? Or is there more I have to include? Thank you so much!
Thank you kindly! Instance size is enough for most machines, but I would always check the docs as the technology and tools change when new options appear.
For example, go to docs.microsoft.com/en-us/cli/azure/vm?view=azure-cli-latest#az-vm-create and ctrl+f for spot, you will see some extra options you can configure. If not then they will take default values.
Hi Adam.
Great stuff.
Are you going to release a AZ-104 preparation videos/course?
Thanks :) Not sure yet on az-104, but stay tuned :)
Hii I completed modules in ms learn but in self learning page it shows in progress only, could u please tell what can I do
Hi I am new to cli have a task have to generate and store key1 (after creating storage account through cloud shell in a variable for future use can you list the commands please
Check this out docs.microsoft.com/en-us/cli/azure/storage/account/keys?view=azure-cli-latest#az-storage-account-keys-renew and then use docs.microsoft.com/en-us/cli/azure/storage/account/keys?view=azure-cli-latest#az-storage-account-keys-list with --query "[?keyName=='key1'].value" --output tsv parameters
Good video Brother, thanks for sharing it.
Thank you! :)
Fist of all : thank you so much about your course, it really highly useful. And one question: how long is azure cli session active, before you should need to re-login again ?
and one more thing: may be you need little bit better theme in your terminal :) (because dark blue and black in one place are not really readable) imgur.com/9mzAT3b
I often try to use tools that look familiar to people that's why. I use different color themes myself too. But I agree default windows terminal color scheme is terrible for CLI JSONC formatting.
@@AdamMarczakYT and what about question : how long is azure cli session active, before you should need to re-login again ?
@@AdamMarczakYT also, about theme case : may be the good idea to use some "theme switcher" for night/day theme on your web-site
Dear Amazing Adam.
Can I run powershell scripts from Azure cli that install in ubonto?
Yes! Check out my cloud shell tutorial, it's an ubuntu container for free with Azure CLI and PowerShell
@@AdamMarczakYT many thanks adam.
Let me clarify my question.as I watch your cloud shell tutorial i understood the the cli work from a linux container that is created withing my azure storage a account.
Is the a way to me to run ps1 commands from my laptop which has an linux os install on it ?
Again many thanks for your Amazing UA-cam videos
Yea, just install Azure CLI and/or PowerShell Core and Modules
docs.microsoft.com/en-us/cli/azure/install-azure-cli?WT.mc_id=AZ-MVP-5003556
docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-5.0.0&WT.mc_id=AZ-MVP-5003556
@@AdamMarczakYT Million thanks !
Hi Adam, Thanks for providing such a great session :) , just had a question can we create a script using Azure CLI commands and then execute that script via powershell ?
Hey, thanks for watching and commenting. The answer would be yes you can, you could potentially even mix them in one script,. Although not recommended to mix them because it's harder to read the code and harder to maintain it.
Nice video. Thank you!
Thank you :)!
I really Love you man !
Thank youuuu! :)
Thank you Adam ,thank you sooooooooooo much
Hi Adam, can we run powershell script from azure CLI?
You can, both can are command line tools, although it's not recommended to mix as it makes things hard to maintain.
@@AdamMarczakYT is there any restriction on Linux VM to run PS script on azure CLI?
Hi Adam
What command would you use to create a MS teams channel and a contact person using azure cli? :)
Azure CLI is to manage Azure not Microsoft Teams so it doesn't have commands for teams. But it's possible using AZ REST (http requests) command with graph api docs.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
@@AdamMarczakYT Great thank you I will try it out! :-)
Thank you!
You bet!
While I am trying "az login"in windows command prompt. I got this below error
az login
'az' is not recognized as an internal or external command, operable program or batch file.
Can you help me in this?
You need to install AZ CLI.
Hello Adam i have two doubts
1.is azure CLI is just creating azure resources in command line by writing acronym with azure name right
2. Is azure CLI is used to create commands and objects..
Type in "az --help" to learn which services are supported. For the second question. CLI is just SDK with commands written in Python. if you need to write code and create scripts either use Linux Bash or Python or PowerShell. CLI is just a tool, not a scripting language.
@@AdamMarczakYT thanks adam for explanation and making me understand..
Can you tell me the command related manage the azure table like create entity add, remove, delete, add some datasets in table. Thankx
using azure cli plz
Please remember that Microsoft has very good documentation. If you search in google the first link will return this result showing examples of what you asked docs.microsoft.com/en-us/cli/azure/storage/entity?view=azure-cli-latest
how to
> list of multifactor disabled AD accounts
> list of all storage accounts and access details
> list of app registrations and their current state
> list of vnets, IP ranges, VMs
> list of resigned users with active accounts
> list of admin users
> all role assignments
>resource usage and identify unused resourcesEdited
Good One :-)
Thanks 🙂
Nice video.. can you please make video on AAD and datalake store gen2
Thank you. AAD and ADLSv2 are definitely on the list. There will be another one on Azure identity in general too. :)
Excellent
Thanks Azhar! :)
i have created the VM as a demo by you, however when i try to login in i am getting timed out , any suggestion..!!
Not sure, try again or check if your firewall or router or ISP maybe block SSH ports.
Thank you! 🔥
Hi I am new and learning cli I have been given a task of getting the keys for storage selecting the first key and storing it in a variable for future use I am stuck here I get the keys but how do i store KEY1 in a variable for future use?
Hey, this depends on the shell you are using, whenever this is windows batch or linux bash. But in general use --query parameter in CLI to get only values from response you need. This js JMESPath format which you can check more about in here: jmespath.org/tutorial.html
@@AdamMarczakYT Hi was able to isolate the output using
az storage account keys list -n sanyal --query "[?keyName=='key1'].value" --output tsv however when i try to store this value in a variable called key1 using key1="$( az storage account keys list -n sanyal --query "[?keyName=='key1'].value" --output tsv)I just get >> continuously..
Rana you have a typo in your code. key1=" the " should not be there.
Please note that I don't don't have capacity to help with coding exercises normally, I can point you in the right direction though. Hope this helps.
why can't anyone start with installing this azurecli
Can we use powershell for these commands ?
Why not use Azure PowerShell then?
Please
Do videos for az 104
Full course
Good
thanks
How to login to azure non-interactively using Azure Cli?
Please check the docs for more azure login examples. docs.microsoft.com/en-us/cli/azure/authenticate-azure-cli?view=azure-cli-latest for automation service principal approach is recommended.
how to change my CMD settings from eg dir to ls or from azure to az ?
try azure could shell if you don't have WSL (windows subsystem for linux) or don't want to install az modules ua-cam.com/video/If4g2vVaiYk/v-deo.html
@@AdamMarczakYT Thanks man I got the problem my msi was an old version so i updated it
How do you skip the step where you install Azure CLI on the OS? lol
how to downgrade the cli version?
Why would you want to downgrade it? Everything should work in the latest version and Microsoft always recommends using the latest because latest is always available in tools like Azure DevOps and Azure Cloud Shell. So you should use latest for compatibility reasons.
Like your videos. Not sure if you are still working on this. I just started with Azure automation, would like to see a video about Azure Python SDK. A lot of samples are not working properly, not sure why: docs.microsoft.com/en-us/azure/developer/python/azure-sdk-overview
Hi Adam,
A Very good tutorial on Azure CLI, as well as on any other topic actually =)
I'm trying to create a script to Create VM and login to it from CMD, for that I need to pass IP as a variable to mstsc command. How can I create and use variables in the Azure CLI environment?
Thanks a lot!
Good
Thanks.