зеркало из https://github.com/Azure/AzureDSVM.git
Use new existsRG().
This commit is contained in:
Родитель
8e8f77b890
Коммит
83d15d68f5
|
@ -82,16 +82,8 @@ context <- createAzureContext(tenantID=TID, clientID=CID, authKey=KEY)
|
||||||
# Check if the resource group already exists. Take note this script
|
# Check if the resource group already exists. Take note this script
|
||||||
# will not remove the resource group if it pre-existed.
|
# will not remove the resource group if it pre-existed.
|
||||||
|
|
||||||
context %>%
|
rg_pre_exists <- existsRG(context, RG, LOC)
|
||||||
azureListRG() %>%
|
|
||||||
filter(name == RG) %>%
|
|
||||||
select(name, location) %T>%
|
|
||||||
print() %>%
|
|
||||||
nrow() %>%
|
|
||||||
equals(0) %>%
|
|
||||||
not() %T>%
|
|
||||||
print() ->
|
|
||||||
rg_pre_exists
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Delete the Resource Group
|
# Delete the Resource Group
|
||||||
|
|
Загрузка…
Ссылка в новой задаче