Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs/documentation issues #3258

Open
wants to merge 2 commits into
base: docs/main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 28 additions & 25 deletions docs/dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,26 @@ _Secrets_ are used to fill in the login credentials to the cloud platform. You h

```json
{
"StorageAccount:ConnectionString": "<CONNECTION_STRING_STORAGE_ACCOUNT>",
"Azure:StorageAccount:ConnectionString": "<CONNECTION_STRING_STORAGE_ACCOUNT>",
"StorageAccount:BlobContainerName": "<BLOB_CONTAINER_NAME>",
"OIDC:Scope": "<SCOPE>",
"OIDC:MetadataUrl": "<METADATA_URL>",
"OIDC:ClientId": "<CLIENT_ID>",
"OIDC:Authority": "<AUTHORITY>",
"OIDC:ApiClientId": "<API_CLIENT_ID>",
"LoRaRegionRouterConfig:Url": "<LORA_WAN_ROUTER_CONFIGURATION_URL>",
"LoRaKeyManagement:Url": "<LORA_WAN_KEY_MANAGEMENT_URL>",
"LoRaKeyManagement:Code": "<LORA_WAN_KEY_MANAGEMENT_CODE>",
"Azure:LoRaKeyManagement:Url": "<LORA_WAN_KEY_MANAGEMENT_URL>",
"Azure:LoRaKeyManagement:Code": "<LORA_WAN_KEY_MANAGEMENT_CODE>",
"LoRaFeature:Enabled": "<TRUE_OR_FALSE>",
"Kestrel:Certificates:Development:Password": "<DEV_PASSWORD>",
"IoTHub:ConnectionString": "<IOT_HUB_CONNECTION_STRING>",
"IoTHub:EventHub:Endpoint": "<IOT_HUB_EVENT_HUB_ENDPOINT>",
"IoTHub:EventHub:ConsumerGroup": "<IOT_HUB_EVENT_HUB_CONSUMER_GROUP>",
"IoTDPS:ServiceEndpoint": "<SERVICE_END_POINT>",
"IoTDPS:LoRaEnrollmentGroup": "<LORA_WAN_ENROLLMENT_GROUP>",
"IoTDPS:DefaultEnrollmentGroup": "<LORA_WAN_DEFAULT_ENROLLMENT_GROUP>",
"IoTDPS:ConnectionString": "<IOT_DPS_CONNECTION_STRING>",
"Azure:IoTHub:ConnectionString": "<IOT_HUB_CONNECTION_STRING>",
"Azure:IoTHub:EventHub:Endpoint": "<IOT_HUB_EVENT_HUB_ENDPOINT>",
"Azure:IoTHub:EventHub:ConsumerGroup": "<IOT_HUB_EVENT_HUB_CONSUMER_GROUP>",
"Azure:IoTDPS:ServiceEndpoint": "<SERVICE_END_POINT>",
"Azure:IoTDPS:LoRaEnrollmentGroup": "<LORA_WAN_ENROLLMENT_GROUP>",
"Azure:IoTDPS:DefaultEnrollmentGroup": "<LORA_WAN_DEFAULT_ENROLLMENT_GROUP>",
"Azure:IoTDPS:ConnectionString": "<IOT_DPS_CONNECTION_STRING>",
"Azure:IoTDPS:IDScope": "<IOT_DPS_ID_SCOPE>",
"PostgreSQL:ConnectionString": "<POSTGRE_SQL_CONNECTION_STRING>"
}
```
Expand All @@ -105,13 +106,13 @@ Here are different settings that the user can configure:
* **OIDC__ClientId**: The OpenID Connect client ID for the Web UI.
* **OIDC__ApiClientId**: The OpenID Connect client ID for the API.
* **OIDC__Scope**: The OpenID Connect scope that represents the portal API.
* **IoTDPS__ServiceEndpoint**: The IoT Device Provisioning Service endpoint.
* **IoTDPS__IDScope**: The IoT Device Provisioning Service ID scope.
* **Azure__IoTDPS__ServiceEndpoint**: The IoT Device Provisioning Service endpoint.
* **Azure__IoTDPS__IDScope**: The IoT Device Provisioning Service ID scope.
* **LoRaFeature__Enabled**: Whether the LoRaWAN feature is enabled or not.
* **LoRaKeyManagement__Url**: The LoRa Key Management Facade URL.
* **Azure__LoRaKeyManagement__Url**: The LoRa Key Management Facade URL.
* **StorageAccount__BlobContainerName**: The name of the Azure Storage container where the device models images are stored.
* **IoTHub__EventHub__Endpoint**: The IotHub Event Hub compatible endpoint.
* **IoTHub__EventHub__ConsumerGroup**: (Default value `iothub-portal`) The name of the consumer group used to to pull data from the IoT Hub (Automatically created by the Bicep/ARM deployement)
* **Azure__IoTHub__EventHub__Endpoint**: The IotHub Event Hub compatible endpoint.
* **Azure__IoTHub__EventHub__ConsumerGroup**: (Default value `iothub-portal`) The name of the consumer group used to to pull data from the IoT Hub (Automatically created by the Bicep/ARM deployement)
* **ASPNETCORE_ENVIRONMENT**: Built-in environment variable, used to target the configuration provided by a specific environment. Two accepted values:
* `Development`: On this environment, logs are produced up to `Debug` level.
* `Production`: Default value if ASPNETCORE_ENVIRONMENT is not set. On this environment, logs are produced up to `Information` level.
Expand All @@ -127,10 +128,10 @@ Here are different settings that the user can configure:

Here are different connection strings that the user can configure:

* **IoTHub__ConnectionString**: The connection string to the IoT Hub.
* **IoTDPS__ConnectionString**: The connection string to the Azure IoT Device Provisioning Service.
* **StorageAccount__ConnectionString**: The connection string to the Azure Storage account.
* **LoRaKeyManagement__Code**: The LoRa Key Management Facade code.
* **Azure__IoTHub__ConnectionString**: The connection string to the IoT Hub.
* **Azure__IoTDPS__ConnectionString**: The connection string to the Azure IoT Device Provisioning Service.
* **Azure__StorageAccount__ConnectionString**: The connection string to the Azure Storage account.
* **Azure__LoRaKeyManagement__Code**: The LoRa Key Management Facade code.
* **PostgreSQL__ConnectionString**: The connection string allowing the connection to the PostgreSQL database.

> Note: For a production environment, an Azure Key Vault is advised to store the connection strings.
Expand Down Expand Up @@ -346,16 +347,18 @@ Follow the next steps to create EF migration:
dotnet ef migrations add "<nameofyourmigration>" -p ..\IoTHub.Portal.Postgres\ -v -- --DbProvider PostgreSQL
```

1. Execute this command for MySQL provider

```console
dotnet ef migrations add "<nameofyourmigration>" -p ..\IoTHub.Portal.MySql\ -v -- --DbProvider MySQL
```

1. Open the created migration and follow the following steps:

1. Move the using directive into the namespace directive

1. Add "_ =" before each statement of the Up and Down methods

1. Add the CGI copyright to the top of the file

1. Execute this command for MySQL provider

```console
dotnet ef migrations add "<nameofyourmigration>" -p ..\IoTHub.Portal.MySql\ -v -- --DbProvider MySQL
```

1. Open the newly created migration for MySQL and repeat step 3
1 change: 1 addition & 0 deletions docs/dev-guide/migrations/v4-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ You have to add also `Azure__` prefix in all setting to the portal web app.
| `Azure__IoTDP__LoRaEnrollmentGroup` | Application setting | The name of the IotDPS LoRa Enrollment group |
| `Azure__IoTDPS__DefaultEnrollmentGroup` | Application setting | The name of the default IotDPS Enrollment group |
| `Azure__IoTDPS__ConnectionString` | Connection string | The IotDPS Connection String |
| `Azure__IoTDPS__IDScope` | Application setting | The IotDPS Scope ID |
| `Azure__StorageAccount__ConnectionString` | Connection string | The Storage Account Connection String |
Loading