PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,536 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all i want use .bat file to create directory hierarchy in storage account via Azure CLI .bat file like this
#Create directory
az storage fs directory create --name root --file-system $storagecontainerName --account-name $accountName
az storage fs directory create --name root\hierarchya\hierarchya_1 --file-system $storagecontainerName --account-name $accountName
az storage fs directory create --name root\hierarchyb\hierarchyb_1\hierarchyb_101 --file-system $storagecontainerName --account-name $accountName
can everyone help me, please~ Thanks!
Hei @Niu, Chuang (Contractors) , Thank you for contacting Microsoft Community. As i understand, you want to run a bat file on the shell hosted on Azure portal. If this is the need, it can be achived as folllows: Upload the file to the shell Change permission for execution with "chmood +x <filename>" execute the file
If you feel like this helped, consider marking this as answer.