Get connected to azure storage using azure storage explorer to see the local d365 blob content

To get azure account name and key from D365FO, create following runnable class:
using Microsoft.Dynamics.Clx.ServicesWrapper;
class VKGetAzureBlobStorageAccount
{
    public static void main(Args _args)
    {
        info('CsuStorageConnectionString = ' + CloudInfrastructure::GetCsuStorageConnectionString());
        info('CsuClientCertificateThumbprint = ' + CloudInfrastructure::GetCsuClientCertificateThumbprint());
    }
}
Get AccountName and AccountKey from the infolog:
CsuStorageConnectionString = AccountName=011af4e4854917d;AccountKey=j7asdrf3uP3IJ9Ym5K0xrVC4yRJLLg+oZApucdCDHz25SyRDB/7+46ioGeM3jG1nhYNR5ZjpIfpehcChNesog==;DefaultEndpointsProtocol=https;EndpointSuffix=core.windows.net
UPD 18-09-2024. Will be deprecated soon: https://portal.changepilot.cloud/MC869863
New tenants created after August 19, 2024, will no longer have access to storage connection string. This change will not affect existing tenants as all existing tenants are onboarded with a flight so they will not be impacted by this change.

To enable to flight:
INSERT INTO SYSFLIGHTING (FLIGHTNAME, ENABLED, FLIGHTSERVICEID) VALUES('EnableSharingOfValidStorageConnectionString', 1, 12719367)

Error Message:
"EnableSharingOfValidStorageConnectionString is false. Fetching a valid storage connection string has been disabled".

To browse the storage:
- Storage account or service
- Account name and key
- populate Display name, Account name, Account key

 

Search

About

DaxOnline.org is free platform that allows you to quickly store and reuse snippets, notes, articles related to Dynamics AX.

Authors are allowed to set their own AdSense units and "buy me a coffee" link.
Join us.

Blog Tags