Skip to content

Commit d1deed4

Browse files
authored
Merge pull request #191073 from mmacy/patch-4
simplify subscription ID command (no sed)
2 parents 67833c6 + f30ec4e commit d1deed4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/role-based-access-control/transfer-subscription.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ When you create a key vault, it is automatically tied to the default Azure Activ
250250
1. Use [az account show](/cli/azure/account#az_account_show) to get your subscription ID (in `bash`).
251251
252252
```azurecli
253-
subscriptionId=$(az account show --query id | sed -e 's/^"//' -e 's/"//' -e 's/\r$//')
253+
subscriptionId=$(az account show --output tsv --query id)
254254
```
255255
256256
1. Use the [az graph](/cli/azure/graph) extension to list other Azure resources with known Azure AD directory dependencies (in `bash`).

0 commit comments

Comments
 (0)