Time Weighted Average and Value in Azure Data Explorer

Time Weighted Average and Value in Azure Data Explorer

This article is contributed. See the original author and article here.

Azure Data Explorer (ADX) supports time series aggregation at scale, either by the summarize operator that keeps the aggregated data in tabular format or by the make-series operator that transforms it to a set of dynamic arrays. There are multiple aggregation functions, out of them avg() is one of the most popular. ADX calculates it by grouping the samples into fixed time bins and applying simple average of all samples inside each time bin, regardless of their specific location inside the bin. This is the standard time bin aggregation as done by SQL and other databases. However, there are scenarios where simple average doesn’t accurately represent the time bin value. For example, IoT devices sending data commonly emits metric values in an asynchronous way, only upon change, to conserve bandwidth. In that case we need to calculate Time Weighted Average (TWA), taking into consideration the exact timestamp and duration of each value inside the time bin. ADX doesn’t have native aggregation functions to calculate time weighted average, still we have just added few User Defined Functions, part of the Functions Library, supporting it:



Here is a query comparing the original & interpolated values, standard average by the summarize operator, twa using fill forward and twa using linear interpolation:

let tbl = datatable(ts:datetime,  val:real, key:string) [
    datetime(2021-04-26 00:00), 100, 'D1',
    datetime(2021-04-26 00:45), 300, 'D1',
    datetime(2021-04-26 01:15), 200, 'D1',
];
let stime=datetime(2021-04-26 00:00);
let etime=datetime(2021-04-26 01:15);
let dt = 1h;
//
tbl
| where ts between (stime..etime)
| summarize val=avg(val) by bin(ts, dt), key
| project-rename _ts=ts, _key=key
| extend orig_val=0
| extend _key = strcat(_key, '-SUMMARIZE'), orig_val=0
| union (tbl
| invoke time_weighted_val_fl('ts', 'val', 'key', stime, etime, dt)
| project-rename val = _twa_val
| extend _key = strcat(_key, '-SAMPLES'))
| union (tbl
| invoke time_weighted_avg_fl('ts', 'val', 'key', stime, etime, dt)
| project-rename val = tw_avg
| extend _key = strcat(_key, '-TWA-FF'), orig_val=0)
| union (tbl
| invoke time_weighted_avg2_fl('ts', 'val', 'key', stime, etime, dt)
| project-rename val = tw_avg
| extend _key = strcat(_key, '-TWA-LI'), orig_val=0)
| order by _key asc, _ts asc
// use anomalychart just to show original data points as bold dots
| render anomalychart with (anomalycolumns=orig_val, title='Time Wighted Average, Fill Forward & Linear interpolation')

 


adieldar_0-1727624993177.png


 


Explaining the results:































 



2021-04-26 00:00



2021-04-26 00:00



Interpolated value



100



(300+200)/2=250



Average by summarize



(100+300)/2=200



200



Fill forward TWA



(45m*100 + 15m*300)/60m = 150



(15m*300 + 45m*200)/60m = 225



Linear interpolation TWA



45m*(100+300)/2 + 15m*(300+250)/2)/60m = 218.75



15m*(250+200)/2 + 45m*200)/60m = 206.25



 


Note that all functions work on multiple time series, partitioned by supplied key.


You are welcome to try these functions and share your feedback!

[Azure AI Search] Internal Server Error when creating CMK encrypted objects

This article is contributed. See the original author and article here.

Scenario


Customers follow the Microsoft doc to create CMK encrypted objects (data source, index etc.), but get the 500 Internal Server Error:


{‘error’:{‘code’:”,’message’:’Could not use key vault key to wrap/unwrap the encryption key. {‘Message’:’An error has occurred.’}’}



Possible Causes



  • The key vault host is incorrect, e.g. incorrect key vault domain.

    • Action: check the keyVaultUri in the Json payload.



  • The key vault host is inaccessible to search. For example, the key vault has public network access disabled but does not have a shared private link (SPL) configured from search. 

    • Action: check the SPL configurations or create a SPL. 




Note that if the key vault Uri is correct or accessible, the error message due to a wrong key vault key name or version in the JSON payload is slightly different. The error message has the complete key vault key path.


{
“error”: {
“code”: “”,
“message”: “Could not use key vault key https://keyvaultname.vault.azure.net:443/keys/wrongkeyname to wrap/unwrap the encryption key. The key vault key cannot be found.”
}
}

Introducing Copilot in OneDrive: Now Generally Available

Introducing Copilot in OneDrive: Now Generally Available

This article is contributed. See the original author and article here.

We’re thrilled to announce that Copilot is now available1 on OneDrive for the web to all our Copilot licensed commercial users2, marking a significant milestone in the way you work with files in OneDrive. Copilot brings the power of AI right into OneDrive to help you work more efficiently and effectively. Let’s take a look at how Copilot can transform the way you work with your files. 


 


What Can You Do with Copilot in OneDrive? 


Copilot isn’t just a tool; it’s a productivity companion that works alongside you, making everyday tasks easier and empowering you to achieve more. Here are some of the exciting ways you can take advantage of Copilot’s capabilities: 


 


Generate Summaries for Large Documents 
No more scanning through long documents to find the key points. With Copilot, you can quickly generate a concise summary of a single document or up to 5 files3 at a time, allowing you to easily get insights and focus on what matters most.  


arjuntomar_0-1727124636815.png


 


 


Compare Differences Between Multiple Documents 
Whether you’re working with contracts, financial reports, or job applications, sometimes all you’re looking for are meaningful differences between files. With Copilot you can now save time by quickly comparing up to 5 files, highlighting the key differences between them in an easy-to-read table view, without even opening these files. 


arjuntomar_1-1727124636816.png


 


 


Answer Complex Questions Using Files 
Need insights from multiple documents? Copilot can analyze the content of your OneDrive files and answer complex questions by pulling the right information from across your stored data -turning your file storage into a valuable source of knowledge and insight. 


 


Generate Ideas for New Documents 
If you’re stuck and need inspiration, Copilot can help you get started by suggesting outlines, ideas, or even a draft based on the files stored in OneDrive. For example, you can select relevant docs in your OneDrive and ask Copilot to generate drafts of a sales proposal, marketing strategy, or a project plan. 


 


How to Get Started with Copilot in OneDrive 


Getting started with Copilot in OneDrive is easy. Simply hover over a supported file in your OneDrive and click on the Copilot button to choose from a menu of suggested actions or ask your own question. You can also select up to 5 files and click the Copilot button in the command bar to get started. Whether you’re summarizing a report or need an insight from a file, Copilot is just a click away. 


 


If you’re new to Copilot or want to learn more, check out our getting started guide for detailed instructions and tips on how to make the most of this powerful new tool. If you need more answers, visit our FAQs. 


 


A Smarter, More Efficient Future with OneDrive 


With the full availability of Copilot in OneDrive, we’re excited to see how you leverage this AI-powered assistant to transform the way you work. And we have a lot more exciting Copilot features coming your way soon. Start exploring Copilot in OneDrive today and discover how it can help you achieve more! 


 


Join us on October 8th for our exciting OneDrive digital event: AI Innovations for the New Era of Work and Home


 


Please give us your feedback 


We’d love to hear your thoughts—don’t forget to provide feedback directly in Copilot by using thumbs up or thumbs down feature. Your input helps us improve our experience! 



  1. Copilot in OneDrive requires a Microsoft Copilot for Microsoft 365 license. 

  2. Copilot in OneDrive is currently available on OneDrive for web and for our commercial users only. 

  3. For a list of currently supported file formats, please visit our FAQs. 


 


About the author 


Arjun is a Principal Product Manager on the OneDrive web team. His main focus is to bring the power of AI to files experiences in OneDrive and across other M365 apps. Outside work, he enjoys dining out, traveling, and playing cricket whenever possible. 

Optimizing ERP Security Configuration and Licensing within Microsoft Dynamics 365

Optimizing ERP Security Configuration and Licensing within Microsoft Dynamics 365

This article is contributed. See the original author and article here.

Boost visibility, streamline role management, and enhance compliance  

In today’s digital landscape, managing security, roles, and licensing within ERP systems is increasingly complex. As organizations scale, the need for robust governance, efficient user management, and cost-effective licensing strategies becomes paramount. To address these challenges, Microsoft Dynamics 365 is introducing a set of new capabilities in our ERP portfolio. These new capabilities enhance security and governance, offering significant benefits to IT professionals and business leaders alike. 

A critical aspect of the upcoming security features is how they will help prepare for compliance certifications, including Sarbanes-Oxley (SOX). With regulatory standards becoming more stringent, achieving compliance is essential. More than ever, companies need to mitigate risks associated with fraud, reporting errors, and security breaches. As new AI technologies are adopted, security becomes even more top of mind. Robust governance frameworks safeguard sensitive data and ensure ethical AI deployment. The enhanced governance features will ensure that you can maintain rigorous control over financial processes, role management, and security protocols. These features provide visibility and a transparent audit trail, significantly easing the certification process. Additionally, they reduce the likelihood of non-compliance, protecting your organization from financial and reputational risks. 

“Bringing additional transparency and simplicity to our ERP customers for managing security, licensing and roles is a critical step in helping organizations meet their compliance and governance goals while saving costs.” – George Glantsching, VP, Microsoft Dynamics

Bringing new features to customers faster

Microsoft is delivering advanced security and role management features which will empower organizations to apply precise role management, advanced audit capabilities, and comprehensive license optimization tools, while maintaining a seamless user experience in Microsoft Dynamics 365. This ensures that you can access these critical features faster, enhancing security and operational efficiency. 

Simplify role management while reducing costs

We’ve listened to our customers and are introducing advanced features to the Dynamics 365 ERP portfolio, focusing on security management and licensing. This capability will simplify role management, providing you with tools to create, manage, and optimize roles within the ERP environment. The precise role and duty management feature, powered by tailored automations, allows organizations to define duties based on specific processes or tasks. This ensures role access aligns accurately with each team’s operational needs, leading to more accurate control over access permissions. Cost savings are driven by ensuring that licenses are scoped to each user’s specific needs. By refining role management in this way, these advanced features ensure organizations can scale with confidence while optimizing both governance and cost efficiency. 

Ensure compliance with role-based access control

Another critical feature is the segregation of duties (SoD) validation. This control mechanism ensures no single system user controls all aspects of any critical business process, reducing fraud and error risks. System administrators will be able to easily define incompatible tasks, ensuring that critical operations are not compromised. This feature is essential for leaders aiming to meet stringent regulatory requirements and maintain high levels of internal security. With integrated SoD validation, your business can minimize exposure to risk and better prepare for audits or regulatory reviews. 

Gain greater control with advanced security features

The new features coming to Dynamics 365 will include several advanced security controls giving system administrators greater visibility and control over their environments. The role audit trail will provide a non-removable history of permission changes, making it easier to track and audit role modifications over time. Security versioning and snapshot capabilities will allow security snapshots at specific points, enabling easy comparison or restoration if needed. The temporary role assignment feature will be invaluable for managing employee absences, allowing roles to be reassigned while maintaining strict control over access. These capabilities will provide peace of mind for business leaders that require agile, yet secure, role management. 

Control elevated privileges and secure sensitive data

A critical addition to the upcoming security features is the Elevated privilege management. (This is often referred to as super user privilege management (SPM) or ‘FireFighter’ in ERP world.) It provides the ability to manage and monitor elevated privileges for super users or administrators requiring temporary critical system access. Significantly reduce the risk of misuse or security breaches by restricting elevated access to specific, time-limited periods and tracking all super-user activities. This advanced control ensures only authorized personnel have access to sensitive systems, when necessary, further enhancing compliance and internal governance. 

Optimize costs with detailed licensing insights

The upcoming license report based on the new licensing model allows organizations to see exactly what license levels are applied to each user, calculate the total cost of ownership (TCO), and validate license accuracy. This report, alongside others like role components with license indicators and duty components with license indicators, provides a comprehensive view of license usage, helping optimize license costs effectively. These tools empower better licensing management, ensuring customers only pay for what they need and maximizing the value of their ERP investments. 

Looking ahead: the future of ERP security

As Microsoft Dynamics 365 ERP portfolio evolves, these new features mark a significant step forward in ERP security and governance. For system administrators, these tools will provide enhanced control, reduced risk, and greater efficiency in managing complex ERP environments. Integrating these features into daily operations ensures ERP systems are secure and aligned with latest industry standards and best practices. 

Stay tuned for more updates as we continue to innovate, enhancing the Microsoft Dynamics 365 ERP portfolio. We look forward to delivering tools that empower you to excel in today’s dynamic business landscape. 

The post Optimizing ERP Security Configuration and Licensing within Microsoft Dynamics 365 appeared first on Microsoft Dynamics 365 Blog.

Brought to you by Dr. Ware, Microsoft Office 365 Silver Partner, Charleston SC.

Microsoft’s Perspective on the Ecosystem: Join the Ultimate Partner Executive Summit

Microsoft’s Perspective on the Ecosystem: Join the Ultimate Partner Executive Summit

This article is contributed. See the original author and article here.

Sandy Gupta.jpg


As a Microsoft Partner, are you still determining what events to attend this fall?


Ultimate Partner LIVE – Executive Summit ’24, is your chance to elevate your Microsoft partnership and take your business to the next level. It’s about exclusive insights, personal connections, and real strategies for success. If you’re serious about growth in this ecosystem, you don’t want to miss this executive summit October 22-23, 2024, in Dallas, TX.


 


A key focus of the Summit will be understanding how an ecosystem approach enables partners to align with Microsoft, reach more customers and accelerate growth.   


 


Sandy Gupta, Global VP for ISV at Microsoft will join Vince Menzione, Ultimate Partner CEO, for an exclusive strategic conversation to discuss Microsoft’s perspective on the ecosystem. 


 


During this fireside chat you will learn:



  • Where cloud, AI, and digital transformation are headed, and what that means for your business.  Jay McBain, Chief Analyst at Canalys, has predicted that GenAI will be a US$158 billion opportunity for the channel ecosystem by 2028.  Sandy will discuss how the Microsoft partner ecosystem is aligning for this opportunity.

  • Real-world, actionable insights to position your software company to win in this ecosystem and unlock new growth opportunities.  Microsoft recently commissioned a global study through IDC, “Microsoft Partners: Driving Economic Value and AI Maturity”.  Key findings from the study show for every $1 of Microsoft revenue, partners who develop software generate $11.

  • About Sandy’s career path at Microsoft and how his unique viewpoint will shape Microsoft’s ISV strategy in FY25


 


Meet and ask questions to leaders like Sandy and his team during this event!  Build deep, meaningful connections with other senior executives from leading Microsoft Partners and VP/GM Microsoft leaders from ISV, GSI, and CSP.


 


At Ultimate Partner, we bring the most important leaders, industry experts, and the Ultimate Partner Workshops to provide you a masterclass in two solid days.


 


Secure your ticket today, as they’re selling fast. Don’t miss out on driving your business forward with Microsoft’s latest innovations!


I can’t wait to host you in Dallas, where we will spark the ecosystem together.


Register now.