Hi @ismcagdas,
I think you misunderstand, why do I have two or three parents for two or three children?
@raggadee
Try this link. https://dev.azure.com/nuageholdings/_git/Ionic%20app%20with%20Zero%20integration
If you need some third-party coding on this base let me know.
Hi @ismcagdas, I reached out to people how are better than me at this to no avail. Given my implementation of Zero (6.8.0) using aspnet framework 4.6 running dotnet core 2.2 I am concluding this is not possible. I understand your reluctance to support this framework so I'm closing this one. The solution is to upgrade my Zero version.
I'm on a very old version of Zero but I'll try help. Add nuget packages to Web.Host: Implement AI in Azure and get the instrumentation key and add to appsettings.production.json:
"ApplicationInsights": {
"InstrumentationKey": "f6898a23-ea45-40e9-a781-6084fce5621f"
},
Implement in StartUp.cs (Web.Host):
//BI 20191115 0.14.1
// The following line enables Application Insights telemetry collection.
services.AddApplicationInsightsTelemetry();
#if DEBUG
TelemetryConfiguration.Active.DisableTelemetry = true;
TelemetryDebugWriter.IsTracingDisabled = true;
#endif
I had to jump through hoops to get the SnapshotCollector to work but that's because my version of Zero is 6.8.0 on aspnet framework 4.6 running dotnetcore 2.2. Given my old version hopefully this should give you enough pointers to get started, I doubt it will work out of the box because it's simpler with more modern configurations.
Hi @ismacagdas, Thanks for getting back. Maybe I'm a little confused here and not looking at the correct thing. The iana value "Africa/Johannesburg" is currently two hours ahead of UTC, therefore I would expect a conversion of date value "2020-08-26 23:00:00" to be converted to "2020-08-27 01:00:00": However, after the conversion only one hour is added to give me "2020-08-27 00:00:00": Am I not understanding this correctly? The idea is that a tenant in South Africa would always see date times in "South Africa Standard Time" and a tenant in the UK would always see date times in "GMT Standard Time" regardless of browser or user settings. What am I missing? Strictly speaking this may not be a Zero so thanks for any pointers.
Hi @ismcagdas, Thanks for getting back. I'm going to reach out to our partner and Zero customer, Synapsis Software. How do I add a second developer account to Zero's github pages and forum?
Hi Guys,
Still banging my head against a wall with this one. I have a branch with all commits at [resolves #3217: Added Azure Vault Configuration Provider support](https://github.com/aspnetzero/aspnet-zero-core/commit/c9d3b3b8617d65a5a46e52740e97fe786f52bf6e).
My infrastructure guys have set me up with a Key Vault with all sensitive information and supplied me with the ClientId
and ClientSecret
.
My code hits AppAzureKeyVaultConfigurer
early in the startup process and successfully hits the following code block:
else if (azureKeyVaultConfiguration.UsesManagedIdentity())
{
builder.AddAzureKeyVault(
azureKeyVaultUrl,
azureKeyVaultConfiguration.ClientId,
azureKeyVaultConfiguration.ClientSecret, new DefaultKeyVaultSecretManager());
}
However, the return from ProjectnameConnectionStringResolver.GetNameOrConnectionString()
returns the value from appsettings.json
and not from the Key Vault. I am currently in the development environment, would this make a difference?
If so how do I test?
Any advice on what I should do or look out for from here?
@maliming, thanks. We are scripting to move to a new Azure tenant to give us front line support from Microsoft with support from ClearCloud. We have been advised to move to Azure Key Vault/Appconfig. We can't move to azure.appconfig because Volosoft have never updated from aspnet framework 4.6 and azure..appconfig requires a minimum of 4.7. I would very much appreciate any support you can give as we migrate from one Azure tenant to another and, at the same time, try to apply Key Vault. I will keep you updated and would appreciate your support whilst this migration is happening.
Excellent - it was this:
_settingManager.GetSettingValueForTenant(TimingSettingNames.TimeZone, tenantId)
that I was missing. Thanks.
@adam, In my case I charge per device connected to the system. A tenant must register via the web first and each device must be authorised so I can charge on a pro-rata basis for usage per day per month. Therefore the tenancyname is always known. Any user can use any device but the devices are carefully managed. I think the business case is probably different to yours but good luck with the project!