diff --git a/README.md b/README.md index dca67dd..b4748b4 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,13 @@ Oracle Database@Azure brings Oracle's best databases - Exadata and Autonomous Da * Deploy a new Oracle Autonomous Database * [Using the Azure Portal](https://youtu.be/QOCvRr5CfeQ) * [Using Terraform scripts](https://github.com/oci-landing-zones/terraform-oci-multicloud-azure/tree/main) - * [Using the Azure CLI](azure-cli/create-adb.md) + * [Using the Azure CLI](azure-cli/README.md) * Connect to your Autonomous Database * [Learn about connectivity options](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/connect-preparing.html) * Use these great VS Code extensions that help you develop and debug your database apps * SQL Developer for VS Code ([Learn More](https://www.oracle.com/database/sqldeveloper/vscode/) | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Oracle.sql-developer)) * Oracle Developer Tools for VS Code ([Learn More](https://docs.oracle.com/en/database/oracle/developer-tools-for-vscode/getting-started/gettingstarted.html) | [Marketplace](https://marketplace.visualstudio.com/items?itemName=Oracle.oracledevtools)) -* [Sample SQL code](./sql/sql-scripts.md) +* [Sample SQL code](./sql/README.md) * Create a database user and add sample data * Work with data in Azure Storage * Get started with Select AI diff --git a/azure-cli/create-adb.md b/azure-cli/README.md similarity index 100% rename from azure-cli/create-adb.md rename to azure-cli/README.md diff --git a/azure-cli/config b/azure-cli/config index 5ae5540..0008bd3 100644 --- a/azure-cli/config +++ b/azure-cli/config @@ -9,16 +9,13 @@ ADB_NAME="quickstart" ## NETWORKING # database VNET_NAME="dev-vnet" -#VNET_PREFIX="192.168.0.0/16" VNET_PREFIX="19x.xxx.0.0/16" # subnet for the database SUBNET_NAME="dev-sn-db" -#SUBNET_PREFIX="192.168.1.0/24" SUBNET_PREFIX="19x.xxx.1.0/24" # client subnet SUBNET2_NAME="dev-sn-client" -#SUBNET2_PREFIX="192.168.2.0/24" SUBNET2_PREFIX="19x.xxx.2.0/24" #network security group @@ -37,4 +34,5 @@ STORAGE_CONTAINER_NAME="adb-sample" ## IDENTITIES # This identity will be used for your VM. The password will also be used for the database ADMIN user USER_NAME="adb" -USER_PASSWORD="your-complex-password" \ No newline at end of file +# The password must be between 12 and 30 characters long and must include at least one uppercase letter, one lowercase letter, and one numeric character. +USER_PASSWORD="" \ No newline at end of file diff --git a/azure-cli/deploy-adb.md b/azure-cli/deploy-adb.md deleted file mode 100644 index 4dd1c1b..0000000 --- a/azure-cli/deploy-adb.md +++ /dev/null @@ -1,52 +0,0 @@ -# Oracle Database@Azure: Create an Autonomous Database -The steps below show how to create an Autonomous Database using the Azure CLI. You will need to [install the Azure CLI](https://learn.microsoft.com/en-us/cli/azure/) prior to running thru this example. - -Run the examples below at a command prompt. - -> [!NOTE] -> See the [details for onboarding Autonomous Database](https://learn.microsoft.com/en-us/azure/oracle/oracle-db/onboard-oracle-database) - -## Deploy your Autonomous Database -Start by logging into Azure: -```bash -az login -``` - -Edit the [config file](./config) based on your deployment. These variables will be used by the Azure CLI. -```bash -LOCATION="eastus" -RESOURCE_GROUP="resource-group-name-goes-here" -VNET_ID="vnet-resource-name-goes-here" -SUBNET_ID="subnet-resource-name-goes-here" -ADB_NAME="adb-name-goes-here" -``` -The VNET and SUBNET IDs must be fully qualified IDs. For example: -* **VNET_ID=**`"/subscriptions/99d4fb0e-ac2.../resourceGroups/your-resource-group/providers/Microsoft.Network/virtualNetworks/your-vnet"` -* **SUBNET_ID=**`"/subscriptions/99d4fb0e-ac2.../resourceGroups/your-resource-group/providers/Microsoft.Network/virtualNetworks/your-vnet/subnets/your-subnet"` - -After updating the config file, create a new Autonomous Database by running [`./deploy-adb.sh`](./deploy-adb.sh) from the command line. You can also modify other database properties by editing the deployment script. - -The script will prompte you for the Autonomous Database **ADMIN** user password. Enter a complex password. - -After a few minutes, review your newly created database: -```bash -az oracle-database autonomous-database show \ ---autonomousdatabasename $ADB_NAME \ ---resource-group $RESOURCE_GROUP -``` - -## Delete an Autonomous Database -You can run the following command to an Autonomous Database: - -```bash -az oracle-database autonomous-database delete \ ---autonomousdatabasename $ADB_NAME \ ---resource-group $RESOURCE_GROUP \ ---no-wait false -``` - - - -