Skip to content

Commit 4ba3546

Browse files
committed
delete firwall rule to allow local ip to access the azure sql database after finishing local testing
Signed-off-by: Jianguo Ma <jiangma@microsoft.com>
1 parent 1a9c301 commit 4ba3546

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

articles/java/ee/howto-deploy-java-liberty-app-manual.md

+19
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,25 @@ You can now run and test the project locally before deploying to Azure. For conv
642642

643643
1. Press <kbd>Ctrl</kbd>+<kbd>C</kbd> to stop. Select `Y` if you're aksed to terminate batch job.
644644

645+
When you're finished, delete the firewall rule that allows your local IP address to access the Azure SQL Database by using the following command:
646+
647+
### [Bash](#tab/in-bash)
648+
649+
```azurecli
650+
az sql server firewall-rule delete \
651+
--resource-group $RESOURCE_GROUP_NAME \
652+
--server $SQL_SERVER_NAME \
653+
--name AllowLocalIP
654+
```
655+
656+
### [PowerShell](#tab/in-powershell)
657+
658+
```azurepowershell
659+
az sql server firewall-rule delete --resource-group $Env:RESOURCE_GROUP_NAME --server $Env:SQL_SERVER_NAME --name AllowLocalIP
660+
```
661+
662+
---
663+
645664
### Build the image for AKS deployment
646665

647666
You can now run the [az acr build](/cli/azure/acr#az-acr-build) command to build the image, as shown in the following example:

0 commit comments

Comments
 (0)