Skip to content

Commit de7607d

Browse files
authored
Merge pull request #283082 from lbpudi/main
Control plane access and weather
2 parents 87002f8 + 6ad7767 commit de7607d

File tree

3 files changed

+5
-45
lines changed

3 files changed

+5
-45
lines changed

articles/data-manager-for-agri/concepts-byol-and-credentials.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ Add an access policy in the key vault for your Data Manager for Agriculture inst
8282
### Step 5: Invoke control plane API call
8383
Use the [API call](/rest/api/data-manager-for-agri/controlplane-version2023-06-01-preview/data-connectors) to specify connector credentials. Key vault URI/ key name/ key version can be found after creating secret as shown in the following figure.
8484
85+
> [!NOTE]
86+
>For making control plane calls, you need owner access on ADMA resource scope.
87+
8588
:::image type="content" source="./media/concepts-byol-and-credentials/details-key-vault.png" alt-text="Screenshot showing where key name and key version is available.":::
8689
8790
#### Following values should be used for the connectors while invoking above APIs:

articles/data-manager-for-agri/concepts-ingest-weather-data.md

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Here are some notes about the behavior of provider-agnostic APIs:
2424
* You can request weather data for up to 50 locations in a single call.
2525
* Forecast data isn't older than 15 minutes. Data for current conditions isn't older than 10 minutes.
2626
* After the initial call is made for a location, the data is cached for the defined time to live (TTL).
27-
* To keep the cache warm, you can use the `apiFreshnessTimeInMinutes` parameter in the weather extension. The platform keeps a job running for the defined amount of time and updates the cache. The default value is zero, which means the cache isn't kept warm by default.
2827

2928
The following sections provide the commands to fetch weather data and ingest it into Azure Data Manager for Agriculture.
3029

@@ -65,50 +64,6 @@ Here's sample output for the installation command:
6564

6665
After you finish installing the extension, you can ingest weather data.
6766

68-
If you want to update `apiFreshnessTimeInMinutes`, update the extension by using the following PowerShell command. Replace all values within angle brackets with your respective environment values.
69-
70-
```azurepowershell-interactive
71-
armclient put /subscriptions/<subscriptionid>/resourceGroups/<resource-group-name>/providers/Microsoft.AgFoodPlatform/farmBeats/<farmbeats-resource-name>/<extensionid>?api-version=2021-09-01-preview '{"additionalApiProperties": {""15-day-daily-forecast"": {"apiFreshnessTimeInMinutes": <time>}, ""currents-on-demand"": {"apiFreshnessTimeInMinutes": <time>},""15-day-hourly-forecast"":{"apiFreshnessTimeInMinutes": <time>}}}'
72-
```
73-
74-
The preceding update command merges patch operations. It updates freshness time for only the API mentioned in the command and retains the freshness time values for other APIs as they were before.
75-
76-
Here's sample output for the update command:
77-
78-
```json
79-
{
80-
"id": "/subscriptions/<subscriptionid>/resourceGroups/<resource-group-name>/providers/Microsoft.AgFoodPlatform/farmBeats/<farmbeats-resource-name>/extensions/<extensionid>",
81-
"type": "Microsoft.AgFoodPlatform/farmBeats/extensions",
82-
"systemData": {
83-
"createdBy": "50e74af5-3b8f-4a8c-9521-4f506b4e0c16",
84-
"createdByType": "User",
85-
"createdAt": "2022-10-10T21:28:05Z",
86-
"lastModifiedBy": "50e74af5-3b8f-4a8c-9521-4f506b4e0c16",
87-
"lastModifiedByType": "User",
88-
"lastModifiedAt": "2022-11-08T13:10:17Z"
89-
},
90-
"properties": {
91-
"extensionId": "provider",
92-
"extensionCategory": "Weather",
93-
"installedExtensionVersion": "2.0",
94-
"extensionApiDocsLink": "https://go.microsoft.com/fwlink/?linkid=2192974",
95-
"additionalApiProperties": {
96-
"15-day-daily-forecast": {
97-
"apiFreshnessTimeInMinutes": 1600
98-
},
99-
"currents-on-demand": {
100-
"apiFreshnessTimeInMinutes": 1600
101-
},
102-
"15-day-hourly-forecast": {
103-
"apiFreshnessTimeInMinutes": 1600
104-
}
105-
}
106-
},
107-
"eTag": "ea0261d0-0000-0700-0000-636a55390000",
108-
"name": "provider"
109-
}
110-
```
111-
11267
## Step 2: Fetch weather data
11368

11469
After you get the credentials that are required to access the APIs, you need to call the [Weather Data API](/rest/api/data-manager-for-agri/dataplane-version2022-11-01-preview/weather-data) to fetch weather data.

articles/data-manager-for-agri/how-to-set-up-audit-logs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ The following table lists the **operationName** values and corresponding REST AP
221221

222222
### ApplicationAuditLogs
223223
The write and delete logs present in other categories are also present in this category. The difference between the logs in this category and other categories for the same API call is that, ApplicationAuditLogs doesn't log the request-body, while in other categories the request-body is populated. Use the correlation-id to relate logs of two different categories to get more details. Some of the control plane operations that aren't part of the rest of the categories are listed below.
224+
> [!NOTE]
225+
>For making control plane calls, you need owner access on ADMA resource scope.
224226
225227
|operationName|
226228
| --- |

0 commit comments

Comments
 (0)