I have reproduced the problem by creating environments named azure and azure-1. Destroying azure deletes azure-1 also. Note if the experiment uses environments named azure-1 and azure-2 then the problem is not reproduced.
After the destroy-environment, 'juju status -e azure-1' does not terminate and all cloud services and virtual machines are no longer shown in the Azure dashboard.
Here is what I saw:
bac@chuleta:~/bzr/azure-test$ juju switch
azure-1
bac@chuleta:~/bzr/azure-test$ juju status
environment: azure-1
machines:
"0":
agent-state: started
agent-version: 1.20.13
dns-name: juju-azure-1-vahumlx6ii.cloudapp.net
instance-id: juju-azure-1-vahumlx6ii-jujuxu2b0ao0ahdzctlpv2f48t94z8pf6shb18vbf85s79cp33
instance-state: ReadyRole
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
state-server-member-status: has-vote
services: {}
bac@chuleta:~/bzr/azure-test$ juju status -e azure
environment: azure
machines:
"0":
agent-state: started
agent-version: 1.20.13
dns-name: juju-azure-t8bv2yyz60.cloudapp.net
instance-id: juju-azure-t8bv2yyz60-jujuk7433f0hnbqzzmavzogs1tbwaedtjik3ldgbcoon42mcjp
instance-state: ReadyRole
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
state-server-member-status: has-vote
services: {}
bac@chuleta:~/bzr/azure-test$ ls environments
azure-1.jenv azure-2.jenv azure.jenv
bac@chuleta:~/bzr/azure-test$ juju destroy-environment azure
WARNING! this command will destroy the "azure" environment (type: azure)
This includes all machines, services, data and other resources.
I have reproduced the problem by creating environments named azure and azure-1. Destroying azure deletes azure-1 also. Note if the experiment uses environments named azure-1 and azure-2 then the problem is not reproduced.
After the destroy- environment, 'juju status -e azure-1' does not terminate and all cloud services and virtual machines are no longer shown in the Azure dashboard.
Here is what I saw:
bac@chuleta: ~/bzr/azure- test$ juju switch ~/bzr/azure- test$ juju status 1-vahumlx6ii. cloudapp. net 1-vahumlx6ii- jujuxu2b0ao0ahd zctlpv2f48t94z8 pf6shb18vbf85s7 9cp33 server- member- status: has-vote ~/bzr/azure- test$ juju status -e azure t8bv2yyz60. cloudapp. net t8bv2yyz60- jujuk7433f0hnbq zzmavzogs1tbwae dtjik3ldgbcoon4 2mcjp server- member- status: has-vote ~/bzr/azure- test$ ls environments ~/bzr/azure- test$ juju destroy-environment azure
azure-1
bac@chuleta:
environment: azure-1
machines:
"0":
agent-state: started
agent-version: 1.20.13
dns-name: juju-azure-
instance-id: juju-azure-
instance-state: ReadyRole
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
state-
services: {}
bac@chuleta:
environment: azure
machines:
"0":
agent-state: started
agent-version: 1.20.13
dns-name: juju-azure-
instance-id: juju-azure-
instance-state: ReadyRole
series: trusty
hardware: arch=amd64 cpu-cores=1 mem=1792M root-disk=130048M
state-
services: {}
bac@chuleta:
azure-1.jenv azure-2.jenv azure.jenv
bac@chuleta:
WARNING! this command will destroy the "azure" environment (type: azure)
This includes all machines, services, data and other resources.
Continue [y/N]? y