microsoftarchive / BatchAI

Repo for publishing code Samples and CLI samples for BatchAI service
MIT License
125 stars 62 forks source link

Test of ressource group existence is not taken into account #61

Closed huguespoiget closed 6 years ago

huguespoiget commented 6 years ago

Hello !

I encountered a problem trying to execute the wizard script setup.sh on a ubuntu machine:

hugues@duncan:~/BatchAI/recipes$ az group exists --name unkwnonseofisoihf
false
hugues@duncan:~/BatchAI/recipes$ echo $?
0

So the test in setup.sh listed below is always true:

if az group exists --name $resource_group
then
    echo "Resource group already exists so skipping creation."
else
    az group create -l $location -n $resource_group -o table
fi
llidev commented 6 years ago

@huguespoiget we've updated the setup script to fix the resource group creation issue.