Skip to content

Commit

Permalink
Remove interação na execução do comando docker para desligar VM
Browse files Browse the repository at this point in the history
  • Loading branch information
gileadekelvin committed Jul 12, 2021
1 parent d0968b7 commit d9918de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure/stop_azure_vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ timestamp=$(date '+%d_%m_%Y_%H_%M_%S')
log_filepath="${LOG_FOLDERPATH}${timestamp}.txt"
exec > >(tee -a $log_filepath) 2>&1

docker run -it mcr.microsoft.com/azure-cli sh -c "az login --service-principal -u $APP_ID -p $APP_PASSWORD --tenant $APP_TENANT \
&& az vm deallocate -g $RESOURCE_GROUP -n $VM_NAME"
docker run mcr.microsoft.com/azure-cli sh -c "az login --service-principal -u $APP_ID -p $APP_PASSWORD --tenant $APP_TENANT \
&& az vm deallocate -g $RESOURCE_GROUP -n $VM_NAME"

0 comments on commit d9918de

Please sign in to comment.