Skip to content

Do have an example of using a managed identity #130

@stecullum

Description

@stecullum

Can you provide a simple appsettings.json that demonstrates a managed id.
I dont have access to the app-source just the appsettings.
Using a connectionString works but id rather use managedIdenties

I tried...

"Serilog": {
		"Using": [
			"Serilog.Sinks.Console",
			"Serilog.Sinks.AzureBlobStorage"
		],
		"MinimumLevel": "Debug",
		"WriteTo": [
			{
				"Name": "Console",
				"Args": {
					"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level}] {Message} {Properties}{NewLine}"
				}
			},
			{
				"Name": "AzureBlobStorage",
				"Args": {
					"managedIdentityClientId": "XXXXXX-XXXX-XXXX-XXXX-XXXXX",
					"storageAccountUri": "https://mystorageacct.blob.core.windows.net/",
					"storageContainerName": "mycontainer",
					"storageFileName": "envoyauth_{yyyy}{MM}{dd}_{HH}{mm}.log",
					"outputTemplate": "{Timestamp:yyyy-MM-dd HH:mm:ss} [{Level}] {Message} {Properties}{NewLine}",
					"rollingInterval": "Day",
					"period": "00:00:30",
					"batchPostingLimit": "50"
				}
			}
		],
		"Enrich": [
			"FromLogContext"
		]
	},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions