protected void SetDataCollectionProfile(bool enable) { var profile = GetDataCollectionProfile(); profile.EnableAzureDataCollection = enable; SaveDataCollectionProfile(); } }