From 64d0c92a05984d51bcb842cedbacfa4d90867603 Mon Sep 17 00:00:00 2001 From: Donald Liu <32778916+PakDLiu@users.noreply.github.com> Date: Wed, 4 Nov 2020 23:46:49 -0800 Subject: [PATCH] Updated Examples for Provider instances (#11505) --- .../examples/ProviderInstances_Create.json | 10 +++++----- .../examples/ProviderInstances_Get.json | 4 ++-- .../examples/ProviderInstances_List.json | 18 ++++++++++++++---- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json index 3fcdd421d459..fc68352648d3 100644 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json @@ -8,7 +8,7 @@ "providerInstanceParameter": { "properties": { "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\",\"dbPassword\":\"PASSWORD\"}", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\",\"dbPassword\":\"PASSWORD\"}", "metadata": "{\"key\":\"value\"}" } } @@ -20,8 +20,8 @@ "name": "myProviderInstance", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "SapHana", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\"}", "metadata": "{\"key\":\"value\"}", "provisioningState": "Accepted" } @@ -33,8 +33,8 @@ "name": "myProviderInstance", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "SapHana", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\"}", "metadata": "{\"key\":\"value\"}", "provisioningState": "Accepted" } diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Get.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Get.json index 5193d6e9aaa8..8beb352e5c67 100644 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Get.json +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Get.json @@ -13,8 +13,8 @@ "name": "myProviderInstance", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "SapHana", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\"}", "metadata": "{\"key\":\"value\"}" } } diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_List.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_List.json index 4a01efc99c4d..7efc4dc4ea10 100644 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_List.json +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_List.json @@ -14,8 +14,8 @@ "name": "myProviderInstance1", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "SapHana", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\"}", "metadata": "{\"key\":\"value\"}" } }, @@ -24,8 +24,18 @@ "name": "myProviderInstance2", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.11\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "PrometheusHaCluster", + "properties": "{\"prometheusUrl\":\"http://10.0.0.21:9664/metrics\"}", + "metadata": "{\"key\":\"value\"}" + } + }, + { + "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor/providerInstances/myProviderInstance2", + "name": "myProviderInstance2", + "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", + "properties": { + "type": "MsSqlServer", + "properties": "{\"sqlHostname\":\"10.0.0.6\",\"sqlPort\":1433,\"sqlUsername\":\"sqladmin\"}", "metadata": "{\"key\":\"value\"}" } }