Skip to content

Commit 1bbdc8e

Browse files
committed
add staging yml file
1 parent 15f6d56 commit 1bbdc8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/cosmos/cosmos-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
displayName: Clean up resources
4040
condition: always()
4141
inputs:
42-
ConnectedServiceNameARM: d71e80c4-c3df-4a27-9fc7-f25563bbb0d1
42+
ConnectedServiceNameARM: 136f7343-9f47-40ec-badb-d988cb1429a2
4343
ScriptType: InlineScript
4444
Inline: "$uri = New-Object System.Uri(\"$(ACCOUNT_HOST)\")\n\n$accountName = $uri.Host.Split('.')[0]\nWrite-Host \"Clean up databases from $accountName\"\n\n$res = Get-AzResource -Name $accountName -ResourceType \"Microsoft.DocumentDb/databaseAccounts\"\n\nif ($res -ne $null) {\n\n $account = Get-AzCosmosDBAccount -ResourceId $res.ResourceId\n\n $dbs = Get-AzCosmosDBSqlDatabase -ParentObject $account\n\n $dbs | Write-Output\n\n $dbs | Remove-AzCosmosDBSqlDatabase\n \n Write-Host \"$accountName is cleaned\"\n}\nelse {\n Write-Host \"Unable to find $accountName\"\n}"
4545
errorActionPreference: continue

0 commit comments

Comments
 (0)