You are here

Feed aggregator

Installing And Configuring PowerShell To Build Out a Linux-based High Performance Storage Infrastructure In The Cloud

MSDN Blogs - Sun, 01/25/2015 - 16:11

This post is about provisioning a Linux VM (Ubuntu) with Premium storage. Most posts focus on Windows but the customers I work with our 100% Linux based.

Microsoft has recently gone into preview with an amazingly fast storage infrastructure. I am very excited about this because I am working with a lot of companies who want the fastest possible on disk. It is called Azure premium storage.

I don't know if you've been paying attention but we have taken the lead when it comes to the fastest possible infrastructure running in a public cloud. I am working with companies who are experiencing even better performance than other leading public cloud providers.

Imagine the power of our G5 machine:

  1. 32 cores

  2. RAM = 448 GB

  3. Local SSD disk = 6,144 GB

  4. 64 attached 1 TB drives

  5. 64 x 500 IOPS or 32,000 IOPS

No other leading public cloud vendor today is offering a machine of this caliber in the public cloud.

And with our D series machines you can attach SSD drives. This is about low latency performance for applications that made superfast IO. How fast, you ask?

50,000 IOPS per VM at less than one millisecond latency for read operations is hard to beat.

There are numerous ways to provision resources in Azure. Some whose changes are coming down the pike, notably the Azure resource manager (ARM). It represents a declarative way to build your infrastructure, as opposed to the traditional way of imperatively building out your infrastructure, step-by-step.

The ARM will enable you to build out a JSON-based text file that defines such things as networking, virtual machines, storage, services, and anything that you can do today manually through the portal or through scripting.

You can read more about it here: Using Windows PowerShell with Resource Manager

There are two scripting environments that support the automation for provisioning Azure infrastructure:

  1. Windows PowerShell

  2. Cross-Platform CLI (xPlat CLI)

PowerShell is the most complete and thorough way to provision resources. Microsoft works hard instead keeping this scripting language the most up to date. Unfortunately, the Xplat CLI lags behind the supported feature set. So this post will focus on PowerShell because it's the most complete.

Installing PowerShell

Linux users won't be very thrilled to know that PowerShell is only supported on a Windows platform. I must confess that although I like all scripting languages, PowerShell is beautiful and elegant. It's very compact and easy to write. My view is to use the best tool for the job, and if it means learning something new, so be it.

This guidance here probably provides the easiest way to get PowerShell onto your Windows environment:

Many versions of Windows are supported I will be using Windows 8.1 for this post.

Installing the PowerShell Azure CmdLets

Once the scripting environment of PowerShell is installed, your next step is to install the Azure

How to install and configure Azure PowerShell

http://go.microsoft.com/fwlink/p/?LinkID=320552#

Once you have figured the Azure CmdLets, we are ready to start provisioning resources. For the moment, we will disregard the Azure resource manager, which hasn't been officially released at this time.

Running PowerShell

Once you have it installed, it's fairly simple to get the environment up and running. Let's begin by hitting the Windows key. You can also right mouse click on the Windows taskbar icon and select search . Type in PowerShell .

Figure 1: Starting PowerShell

Select Microsoft Azure PowerShell .

Figure 2: PowerShell Command Line

At the command prompt type in ISE .

Figure 3: Starting the PowerShell IDE

At this point the IDE will show up. This is a wonderful scripting environment that has a powerful help system built-in as well as integrated debugging.

Figure 4: The PowerShell IDE

Notice the various panes and a full debugging experience.

Background - Premium Resources

MS has built specialized machines with built in caching technology, optimized to provide low read latency. As you know, there are four categories of VMs:

(1) A Series

(2) D Series

(3) DS Series

(4) G Series

The DS Series are currently (as of 1/23/2015) the VMs that support Premium Storage. Note that they can also leverage standard storage, just like the other 3 types of VMs.

It goes without saying that you will need an Azure subscription to get started. To sign up for Premium Storage, you will need to go to the Azure Preview page, and sign up for the Microsoft Azure Premium Storage service using one or more of your subscriptions. As subscriptions are approved for the Premium Storage preview, you will get an email notifying you of the approval.

Once you get approved, you can then go to the Microsoft Azure Preview Portal and create a new Premium Storage account using the approved subscription.

You need to pay special attention to providing the right information when provisioning Premium Storage. For example, Premium Storage is not available in all regions. Currently, Premium Storage is available for preview in the following regions:

  • West US

  • East US 2

  • West Europe

Provisioning Resources

We have completed the following:

  1. Installed PowerShell

  2. Azure Cmdlets

  3. Started PowerShell and brought up the IDE

It is now time to use powershell to provision the appropriate VM and storage.

Making your Azure account and its subscriptions available in Windows PowerShell PowerShell Add-AzureAccount $cred = Get-Credential Add-AzureAccount -Credential $cred

The steps above authenticates through Windows Azure Active Directory and downloads associated subscriptions.

Creating a storage account

The following command creates a storage account. The storage account name is terkalystorage . ****

PowerShell New-AzureStorageAccount -StorageAccountName ?terkalystorage" ` -Location "East US 2" -Type "Premium_LRS" Creating a DS series VM with a storage account

We will now create a virtual machine to which we will attach our storage account. When you provision your virtual machine you specify the type of operating system you would like.

Getting a list of available operating systems (virtual machine types)

This is an awesome command that will list out list the available virtual machines from which you can choose. Notice that it outputs in grid format.

PowerShell Get-AzureVMImage | Select * | Out-Gridview ?Passthru

If you like to filter out only the Linux images:

PowerShell Get-AzureVMImage | Select * | Where-Object {$_.OS -eq 'Linux'} ` | Out-Gridview ?Passthru Associated the current storage account

I found this to be a little confusing and I'm not sure I still really fully understand it.

PowerShell Set-AzureSubscription ?SubscriptionName "Windows Azure Internal Consumption" ` -CurrentStorageAccount terkalystorage

Notice that the subscription name is easily obtained at the portal. Or you can use this command, which outputs the information to a text file:

PowerShell Get-AzureSubscription | out-file c:\temp\sub.txt

The terkalystorage part is based on the name you provided for your storage account in a previous step.

Let's get a list of available Linux VMs

In order to build a Linux (or Windows for that matter) vm, you will need the imagename . PowerShell can give you those image names pretty easily, even in a grid format.

Figure 5: PowerShell Output Grid

Notice in the code below we found the image name of 0b11de9248dd4d87b18621318e037d37__RightImage-Ubuntu-14.04-x64-v14.2.

The following commands creates a VM and associates the previously created storage account.

PowerShell $storageAccount = "terkalystorage" $adminName = "YOUMAKETHISUP" $adminPassword = "THISISYOURSECRET" $vmName = "terkalyfastvm" $location = "East US 2" $imageName = "0b11de9248dd4d87b18621318e037d37__RightImage-Ubuntu-14.04-x64-v14.2" $vmSize = "Standard_DS2" $OSDiskPath = "https://" + $storageAccount + ".blob.core.windows.net/vhds/" + ` $vmName + "_OS_PIO.vhd" $vm = New-AzureVMConfig -Name $vmName -ImageName $imageName ` -InstanceSize $vmSize -MediaLocation $OSDiskPath Add-AzureProvisioningConfig -Linux -VM $vm -LinuxUser ` $adminName -Password $adminPassword New-AzureVM -ServiceName $vmName -VMs $VM -Location $location

Figure 6: Provisioning the VM and linking Premium Storage

Summary

We are done. Here is what we've created.

Figure 7: What we built

Here is what it looks like in the portal.

Figure 8: Verifying the VM at the Portal

And here is the storage account.

Figure 9: Verifying Storage at the portal

RStudio Keyboard Shortcuts

MSDN Blogs - Sun, 01/25/2015 - 08:30
RStudio Keyboard Shortcuts Console DescriptionWindows & LinuxMac Move cursor to Console Ctrl+2 Ctrl+2 Clear console Ctrl+L Command+L Move cursor to beginning of line Home Command+Left Move cursor to end of line End Command+Right Navigate command history Up/Down Up/Down Popup command history Ctrl+Up Command+Up Interrupt currently executing command Esc Esc Change working directory Ctrl+Shift+H Ctrl+Shift+H   Source DescriptionWindows & LinuxMac Goto File/Function Ctrl+. Ctrl+. Move cursor to Source Editor Ctrl+1 Ctrl+1 New document (except on Chrome/Windows) Ctrl+Shift+N Command+Shift+N New document (Chrome only) Ctrl+Alt+Shift+N Command+Shift+Alt+N Open document Ctrl+O Command+O Save active document Ctrl+S Command+S Close active document (except on Chrome) Ctrl+W Command+W Close active document (Chrome only) Ctrl+Alt+W Command+Option+W Close all open documents Ctrl+Shift+W Command+Shift+W Preview HTML (Markdown and HTML) Ctrl+Shift+Y Command+Shift+Y Knit Document (knitr) Ctrl+Shift+K Command+Shift+K Compile Notebook Ctrl+Shift+K Command+Shift+K Compile PDF (TeX and Sweave) Ctrl+Shift+I Command+Shift+I Insert chunk (Sweave and Knitr) Ctrl+Alt+I Command+Option+I Insert code section Ctrl+Shift+R Command+Shift+R Run current line/selection Ctrl+Enter Command+Enter Re-run previous region Ctrl+Shift+P Command+Shift+P Run current document Ctrl+Alt+R Command+Option+R Run from document beginning to current line Ctrl+Alt+B Command+Option+B Run from current line to document end Ctrl+Alt+E Command+Option+E Run the current function definition Ctrl+Alt+F Command+Option+F Run the current code section Ctrl+Alt+T Command+Option+T Run previous Sweave/Rmd code Ctrl+Alt+P Command+Option+P Run the current Sweave/Rmd chunk Ctrl+Alt+C Command+Option+C Run the next Sweave/Rmd chunk Ctrl+Alt+N Command+Option+N Source a file Ctrl+Shift+O Command+Shift+O Source the current document Ctrl+Shift+S Command+Shift+S Source the current document (with echo) Ctrl+Shift+Enter Command+Shift+Enter Fold Selected Alt+L Cmd+Option+L Unfold Selected Shift+Alt+L Cmd+Shift+Option+L Fold All Alt+O Cmd+Option+O Unfold All Shift+Alt+O Cmd+Shift+Option+O Go to line Shift+Alt+G Cmd+Shift+Option+G Jump to Shift+Alt+J Cmd+Shift+Option+J Switch to tab Ctrl+Alt+Down Ctrl+Option+Down Previous tab Win: Ctrl+Alt+Left, Linux: Ctrl+PageUp Ctrl+Option+Left Next tab Win: Ctrl+Alt+Right, Linux: Ctrl+PageDown Ctrl+Option+Right First tab Ctrl+Shift+Alt+Left Ctrl+Shift+Option+Left Last tab Ctrl+Shift+Alt+Right Ctrl+Shift+Option+Right Navigate back Ctrl+F9 Cmd+F9 Navigate forward Ctrl+F10 Cmd+F10 Extract function from selection Ctrl+Alt+X Command+Option+X Extract variable from selection Ctrl+Alt+V Command+Option+V Reindent lines Ctrl+I Command+I Comment/uncomment current line/selection Ctrl+Shift+C Command+Shift+C Reflow Comment Ctrl+Shift+/ Command+Shift+/ Transpose Letters   Ctrl+T Move Lines Up/Down Alt+Up/Down Option+Up/Down Copy Lines Up/Down Shift+Alt+Up/Down Command+Option+Up/Down Jump to Matching Brace/Paren Ctrl+P Ctrl+P Find and Replace Ctrl+F Command+F Find Next Win: F3, Linux: Ctrl+G Command+G Find Previous Win: Shift+F3, Linux: Ctrl+Shift+G Command+Shift+G Use Selection for Find Ctrl+F3 Command+E Replace and Find Ctrl+Shift+J Command+Shift+J Find in Files Ctrl+Shift+F Command+Shift+F Check Spelling F7 F7   Editing (Console and Source) DescriptionWindows & LinuxMac Undo Ctrl+Z Command+Z Redo Ctrl+Shift+Z Command+Shift+Z Cut Ctrl+X Command+X Copy Ctrl+C Command+C Paste Ctrl+V Command+V Select All Ctrl+A Command+A Jump to Word Ctrl+Left/Right Option+Left/Right Jump to Start/End Ctrl+Home/End or Ctrl+Up/Down Command+Home/End or Command+Up/Down Delete Line Ctrl+D Command+D Select Shift+[Arrow] Shift+[Arrow] Select Word Ctrl+Shift+Left/Right Option+Shift+Left/Right Select to Line Start Alt+Shift+Left Command+Shift+Left Select to Line End Alt+Shift+Right Command+Shift+Right Select Page Up/Down Shift+PageUp/PageDown Shift+PageUp/Down Select to Start/End Ctrl+Shift+Home/End or Shift+Alt+Up/Down Command+Shift+Up/Down Delete Word Left Ctrl+Backspace Option+Backspace or Ctrl+Option+Backspace Delete Word Right   Option+Delete Delete to Line End   Ctrl+K Delete to Line Start   Option+Backspace Indent Tab (at beginning of line) Tab (at beginning of line) Outdent Shift+Tab Shift+Tab Yank line up to cursor Ctrl+U Ctrl+U Yank line after cursor Ctrl+K Ctrl+K Insert currently yanked text Ctrl+Y Ctrl+Y Insert assignment operator Alt+- Option+- Insert pipe operator Ctrl+Shift+M Cmd+Shift+M Show help for function at cursor F1 F1 Show source code for function at cursor F2 F2   Completions (Console and Source) DescriptionWindows & LinuxMac Attempt completion Tab or Ctrl+Space Tab or Command+Space Navigate candidates Up/Down Up/Down Accept selected candidate Enter, Tab, or Right Enter, Tab, or Right Dismiss completion popup Esc Esc   Views DescriptionWindows & LinuxMac Move focus to Source Editor Ctrl+1 Ctrl+1 Move focus to Console Ctrl+2 Ctrl+2 Move focus to Help Ctrl+3 Ctrl+3 Show History Ctrl+4 Ctrl+4 Show Files Ctrl+5 Ctrl+5 Show Plots Ctrl+6 Ctrl+6 Show Packages Ctrl+7 Ctrl+7 Show Environment Ctrl+8 Ctrl+8 Show Git/SVN Ctrl+9 Ctrl+9 Show Build Ctrl+0 Ctrl+0 Sync Editor & PDF Preview Ctrl+F8 Cmd+F8 Show Keyboard Shortcut Reference Alt+Shift+K Option+Shift+K   Build DescriptionWindows & LinuxMac Build and Reload Ctrl+Shift+B Cmd+Shift+B Load All (devtools) Ctrl+Shift+L Cmd+Shift+L Test Package (Desktop) Ctrl+Shift+T Cmd+Shift+T Test Package (Web) Ctrl+Alt+F7 Cmd+Alt+F7 Check Package Ctrl+Shift+E Cmd+Shift+E Document Package Ctrl+Shift+D Cmd+Shift+D   Debug DescriptionWindows & LinuxMac Toggle Breakpoint Shift+F9 Shift+F9 Execute Next Line F10 F10 Continue Shift+F5 Shift+F5 Stop Debugging Shift+F8 Shift+F8   Plots DescriptionWindows & LinuxMac Previous plot Ctrl+Shift+PageUp Command+Shift+PageUp Next plot Ctrl+Shift+PageDown Command+Shift+PageDown   Git/SVN DescriptionWindows & LinuxMac Diff active source document Ctrl+Alt+D Ctrl+Option+D Commit changes Ctrl+Alt+M Ctrl+Option+M Scroll diff view Ctrl+Up/Down Ctrl+Up/Down Stage/Unstage (Git) Spacebar Spacebar Stage/Unstage and move to next (Git) Enter Enter   Session DescriptionWindows & LinuxMac Quit Session (desktop only) Ctrl+Q Command+Q Restart R Session Ctrl+Shift+F10 Command+Shift+F10  

微軟併購Revolution Analytics

MSDN Blogs - Sun, 01/25/2015 - 06:58

兩天前,Revolution Analytics的CCO(Chief Community Officer)David Smith和微軟的Machine Learning CVP Joseph Sirosh同時在各自公司的Blog宣布雙方合併的消息(1, 2)。

RA的說法重點整理:
 
(沒有提到ParallelR,看來以後應該是不會再繼續開發)

MS的說法重點整理:
 

Turtle Maze Challenge

MSDN Blogs - Sun, 01/25/2015 - 06:42

One of January's challenges was to create a maze to be solved using the Turtle:

Game Challenge

  • Write a maze game that is navigated by the turtle, using arrow keys.
  • Perhaps add a timer to see how quickly the player can navigate the maze.
  • The trickiest bit will be preventing the turtle cross maze boundaries - perhaps share suggestions for this bit.

Here are some of the solutions:

By LitDev (Import QLM846)

By Jibba Jabba (Import NFV721-1)

By Nonki Takahashi (Import PNC833-17)

These contain many useful ideas and bits of code that could be used for other maze based games.

Amazing...

Microsoft Dynamics AX 2012 Reporting Services - Issue deploying OLAP SSRS reports on SharePoint 2013

MSDN Blogs - Sun, 01/25/2015 - 00:19

 

Problem: When you try to view a Dynamics AX 2012 R2/R3 SSRS report which is deployed on SharePoint 2013, you may receive the following error message:

The report server cannot process the report or shared dataset. The shared data source 'DynamicsAXOLAP' for the report server or SharePoint site is not valid. Browse to the server or site and select a shared data source.

In this situation, you find that the data source link for this report is empty on SharePoint 2013.

This is due to deploying all reports in SharePoint integrated mode fails to set the shared data source link correctly for all OLAP reports causing them to fail when executed.

Solution: The following PowerShell script was proposed to publish the OLAP SSRS reports to SharePoint.

--------------------------------------Script Starts---------------------------------------

function ImportAXModule($axModuleName, $disableNameChecking, $isFile)
{
    try
    {
        $outputmessage = "Importing " + $axModuleName
        Write-Output $outputmessage
 
        if($isFile -eq $true)
        {
            $dynamicsSetupRegKey = Get-Item "HKLM:\SOFTWARE\Microsoft\Dynamics\6.0\Setup"
            $sourceDir = $dynamicsSetupRegKey.GetValue("InstallDir")
            $axModuleName = "ManagementUtilities\" + $axModuleName + ".dll"
            $axModuleName = join-path $sourceDir $axModuleName
        }
        if($disableNameChecking -eq $true)
        {
            import-module $axModuleName -DisableNameChecking
        }
        else
        {
            import-module $axModuleName
        }
    }
    catch
    {
        $outputmessage = "Could not load file " + $axModuleName
        Write-Output $outputmessage
    }
}
 
$dynamicsSetupRegKey = Get-Item "HKLM:\SOFTWARE\Microsoft\Dynamics\6.0\Setup"
$sourceDir = $dynamicsSetupRegKey.GetValue("InstallDir")
$dynamicsAXModulesPath = join-path $sourceDir "ManagementUtilities\Modules"
 
$env:PSModulePath = $env:PSModulePath + ";" + $dynamicsAXModulesPath
 
ImportAXModule "AxUtilLib" $false $true
 
#AxUtil uses "Optimize" verb.
#Therefore we use -DisableNameChecking to suppress warning about uncommon verb being used.
ImportAXModule "AxUtilLib.PowerShell" $true $false
 
ImportAXModule "Microsoft.Dynamics.Administration" $false $false
ImportAXModule "Microsoft.Dynamics.AX.Framework.Management" $false $false

cls

Start-Transcript c:\temp\CaptureSSRSDeploymentLog.txt


Publish-AxReport -ReportName VendPurchasePastXPeriods
Publish-AxReport -ReportName CreditAndCollectionOperationalEfficiency
Publish-AxReport -ReportName CustExpectedCashNextXDays
Publish-AxReport -ReportName CustRecivableClassificationPeriodWebpart
Publish-AxReport -ReportName CustSalesPastPeriodChart
Publish-AxReport -ReportName CustTopCustomersbyYTDSales
Publish-AxReport -ReportName TreasurerAssetAnalysis
Publish-AxReport -ReportName TreasurerLiabilitiesAnalysis
Publish-AxReport -ReportName SalesAnalysis
Publish-AxReport -ReportName SalesVsTarget
Publish-AxReport -ReportName smmCampaignMonthDetails
Publish-AxReport -ReportName smmLeadsAnalysis
Publish-AxReport -ReportName smmNewLeadsTrend
Publish-AxReport -ReportName smmPipelineAnalysis
Publish-AxReport -ReportName smmPipelineByProcessStage
Publish-AxReport -ReportName smmPipelineMonthOverMonthClosingTrend
Publish-AxReport -ReportName smmPipelineWinAnalysis
Publish-AxReport -ReportName smmSalesDetails
Publish-AxReport -ReportName TS_PercentVendorsInvoicedAmountDetail
Publish-AxReport -ReportName TS_PercentVendorsInvoicedAmountWebpart
Publish-AxReport -ReportName AccountantInvestmentAnalysis
Publish-AxReport -ReportName AccountantLongTermSolvency
Publish-AxReport -ReportName AccountantOperationalEfficiency
Publish-AxReport -ReportName AccountantProfitabilityAnalysis
Publish-AxReport -ReportName AccountantShortTermSolvency
Publish-AxReport -ReportName AccountingManagerInvestmentAnalysis
Publish-AxReport -ReportName AccountingManagerLongTermSolvency
Publish-AxReport -ReportName AccountingManagerOperationalEfficiency
Publish-AxReport -ReportName AccountingManagerProfitabilityAnalysis
Publish-AxReport -ReportName AccountingManagerShortTermSolvency
Publish-AxReport -ReportName CFOInvestmentAnalysis
Publish-AxReport -ReportName CFOLongTermSolvency
Publish-AxReport -ReportName CFOOperationalEfficiency
Publish-AxReport -ReportName CFOProfitabilityAnalysis
Publish-AxReport -ReportName CFOShortTermSolvency
Publish-AxReport -ReportName ControllerInvestmentAnalysis
Publish-AxReport -ReportName ControllerLongTermSolvency
Publish-AxReport -ReportName ControllerOperationalEfficiency
Publish-AxReport -ReportName ControllerProfitabilityAnalysis
Publish-AxReport -ReportName ControllerShortTermSolvency
Publish-AxReport -ReportName LedgerCashInflowvsCashOutflow
Publish-AxReport -ReportName LedgerControllerActivityAnalysis
Publish-AxReport -ReportName LedgerControllerRatios
Publish-AxReport -ReportName LedgerGrossProfitinthePastXPeriods
Publish-AxReport -ReportName LedgerTotalAcctReceivablesPastXPeriods
Publish-AxReport -ReportName LedgerTotalAcctsPayablePastXPeriod
Publish-AxReport -ReportName LedgerTotalExpensesByPeriod
Publish-AxReport -ReportName OutstandingDebtByPeriod
Publish-AxReport -ReportName ProdBusinessOverviewWebpart
Publish-AxReport -ReportName ProdDefectRatioDetail
Publish-AxReport -ReportName ProdDefectRatioWebpart
Publish-AxReport -ReportName ProdEfficiencyDetail
Publish-AxReport -ReportName ProdLeadTimeDetail
Publish-AxReport -ReportName ProdOnTimeProdRateDetail
Publish-AxReport -ReportName ProdPlannedVsActualDetail
Publish-AxReport -ReportName ProdPlannedVsActualWebpart
Publish-AxReport -ReportName EMSEnergyConsumption
Publish-AxReport -ReportName EMSEnergyConsumptionDetail
Publish-AxReport -ReportName EMSEnergyCost
Publish-AxReport -ReportName EMSEnergyCostGraph
Publish-AxReport -ReportName EMSGreenhouseGasEmissions
Publish-AxReport -ReportName EMSGreenhouseGasEmissionsByProcess
Publish-AxReport -ReportName TS_InvoicedPurchaseAmountDetail
Publish-AxReport -ReportName TS_InvoicedPurchaseAmountWebpart
Publish-AxReport -ReportName TS_PurchaseReturnsDetail
Publish-AxReport -ReportName TS_PurchaseReturnsWebPart
Publish-AxReport -ReportName ProjKPI
Publish-AxReport -ReportName ProjTotalBudgetCost
Publish-AxReport -ReportName ProjTotalBudgetCostDetail
Publish-AxReport -ReportName ProjTotalBudgetCostProject
Publish-AxReport -ReportName ProjTotalBudgetCostProjectDetail
Publish-AxReport -ReportName ProjUtilizationEfficiency
Publish-AxReport -ReportName ProjUtilizationEfficiencyDetail
Publish-AxReport -ReportName CustReceivablePeriodDetailReport
Publish-AxReport -ReportName YearToYearExpensesByPeriod
Publish-AxReport -ReportName RetailBottom10Products
Publish-AxReport -ReportName RetailGMROIIByCategory
Publish-AxReport -ReportName RetailGMROIIByProducts
Publish-AxReport -ReportName RetailSalesByCategoryByStore
Publish-AxReport -ReportName RetailSalesByHour
Publish-AxReport -ReportName RetailSalesByRetailCategory
Publish-AxReport -ReportName RetailSalesByRetailCategoryEP
Publish-AxReport -ReportName RetailSalesByStaff
Publish-AxReport -ReportName RetailSalesByStore
Publish-AxReport -ReportName RetailSalesByStoreRoleCenter
Publish-AxReport -ReportName RetailSalesByTerminal
Publish-AxReport -ReportName RetailSalesPerformanceByProduct
Publish-AxReport -ReportName RetailSalesPerformanceByProductEP
Publish-AxReport -ReportName RetailSalesRetailCategoryRoleCenter
Publish-AxReport -ReportName RetailSalesYearOverYear
Publish-AxReport -ReportName RetailStoreMetrics
Publish-AxReport -ReportName RetailTop10Products
Publish-AxReport -ReportName RetailTop10Stores
Publish-AxReport -ReportName RetailTrendByChannel
Publish-AxReport -ReportName RetailYoYByChannel
Publish-AxReport -ReportName TS_NetsalesVsCOGSDetail
Publish-AxReport -ReportName TS_NetsalesVsCOGSWebpart
Publish-AxReport -ReportName TS_SIFOTDetailed
Publish-AxReport -ReportName TS_SIFOTDetailedPerProduct
Publish-AxReport -ReportName TS_DeliveryPerformanceDetail
Publish-AxReport -ReportName TS_DeliveryPerformanceWebpart
Publish-AxReport -ReportName TS_TopTenReturnedItemsWebPart
Publish-AxReport -ReportName TS_TopTenVendHighReturnsRateWebpart
Publish-AxReport -ReportName TS_TopTenVendorInvoicedAmount
Publish-AxReport -ReportName TS_VendorPerformanceByProduct
Publish-AxReport -ReportName TS_VendorPerformanceDetail
Publish-AxReport -ReportName TS_VendorPerformanceTimeDetail
Publish-AxReport -ReportName TS_VendorPerformanceTimeWebpart
Publish-AxReport -ReportName VendSpendCategory
Publish-AxReport -ReportName VendSpendCategoryDiversity
Publish-AxReport -ReportName VendSpendCategoryInvoice
Publish-AxReport -ReportName VendSpendCategoryYears
Publish-AxReport -ReportName VendSpendDiversity
Publish-AxReport -ReportName VendSpendLocation
Publish-AxReport -ReportName VendSpendOptimization
Publish-AxReport -ReportName VendSpendReviewByCategory
Publish-AxReport -ReportName VendSpendReviewByCompany
Publish-AxReport -ReportName VendSpendReviewByInvoiceType
Publish-AxReport -ReportName VendSpendReviewByTopVendor
Publish-AxReport -ReportName VendSpendReviewByVendorType
Publish-AxReport -ReportName VendSpendTopInvoice
Publish-AxReport -ReportName VendSpendVendorLE
Publish-AxReport -ReportName VendTopXVendorsByYTDPurchases
Publish-AxReport -ReportName WorkflowAutomationReport
Publish-AxReport -ReportName WorkflowElementsAutomationReport
Publish-AxReport -ReportName WorkflowElementsPerformanceReport
Publish-AxReport -ReportName WorkflowParticipantPerformanceReport
Publish-AxReport -ReportName WorkflowPerformanceReport

Stop-Transcript

--------------------------------------Script Ends--------------------------------------

Disclaimer: The sample scripts are not supported under any Microsoft standard support program or service. The sample scripts are provided AS IS without warranty of any kind. Microsoft further disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample scripts and documentation remains with you. In no event shall Microsoft, its authors, or anyone else involved in the creation, production, or delivery of the scripts be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample scripts or documentation, even if Microsoft has been advised of the possibility of such damages.

-- Author: Fred Shen

-- Date:     25/Jan/2015

Fred is a Technical Architect from Microsoft Dynamics Global Practice team

Hiring for VS Online and Team Foundation Server

MSDN Blogs - Sun, 01/25/2015 - 00:18

Microsoft has an extensive recruiting effort.  But we recently decided to try something new to try to find more people who might want to help build VS Online and Team Foundation Server.  We added a Jobs page to visualstudio.com.  It has a little info on what we do and links to job postings on the Microsoft careers site and some information about who we are.  We've got quite a few positions open right now and are hoping to fill them as quickly as we can.

This is a bit of an experiment.  If it works well, we will probably expand it to include other parts of Visual Studio.

Brian

 

從 Azure Machine Learning 開始進入機器學習

MSDN Blogs - Sat, 01/24/2015 - 19:38
什麼是機器學習?

Machine Learning(機器學習)不是什麼新技術,至少我在十幾年前(遠目)在大學時修這門課是就已經是發展一段時間的領域,而用最簡單的說法來解釋「機器學習」,就是讓機器擁有學習能力,能夠建立自己的「智慧」,進而在真實世界中進行推論(預測)、分類或是分群等動作,當然,就像我們人類學習一樣,要嘛是讀書破萬卷,要嘛是從師長口中、生活當中得到經驗,然後把這些內容、經驗歸納出自己的智慧,機器要學習也需要大量的資料才能進行學習,而之所以最近會成為一個熱門的話題,自然也是因為資通訊的發達後,人們開始想從大量資料(Big Data)中找出商業智慧或是利用這些資產來建立智慧,於是爭相開始討論機器學習。

具體來說,到底機器學習的是什麼呢?科學家們將學習的模型分成幾種類型,以上圖為例,它是一種學習「分類」(classification) 的問題,透過合適的學習方法(學習演算法)建立起來的模型,就像圖中的虛線一樣,能夠判斷哪些資料是哪一個類別。以現實生活來舉例,郵件伺服器可以透過機器學習來學會判斷一封信是否為垃圾郵件,學習的資料就是過往大量的郵件,以及導師(例如你手動標記哪些信是垃圾信)標記哪些信是垃圾信,讓郵件伺服器愈來愈有能力主動地判斷一封新信件是否為垃圾郵件,這就是機器學習的應用之一。所以我們可以知道,機器學習是讓機器(當然包含軟體)有能力對於未來的事物或情境採取行動的方式。

Azure Machine Learning

Azure machine learning overview from Lin-Chieh Shangkuan

Azure 機器學習(Azure ML)是 Microsoft Azure 平台上其中一個服務,這個服務為想要進行機器學習的開發團隊,提供了處理大數據的基礎建設機器學習的演算法硬體運算資源、以及將模型變成 Web Service 等服務,讓開發團隊可以專注在資料的蒐集、要解決的問題、判斷要「學習」什麼問題,其它運算的工作就讓 Azure 機器學習這個平台來完成。在這個服務下,不管你的資料放在哪裡(放在 Azure 上或不在 Azure 上),都可以拉進 Azure ML 來進行學習的工作,這裡我們以實際的操作來做說明。

上圖是 Azure Machine Learning Studio 的首頁,可以看到一些影片介紹,如果想要立刻免費體驗 Azure ML(是的,有免費方案),可以點右上角的 Sign In 連結,使用 Microsoft 帳號(也就是之前的 Windows Live ID、MSN 帳號等)登入,就會進入 Azure ML Studio 的操作畫面(或是你要稱它為實驗室也可以):

在這個 Studio 中,Machine Learning 的操作都是稱作「實驗」(experiments),你可以在一個實驗裡訓練一個或多個模型。

進入實驗的操作畫面,你可以看到中間的區域可以讓你排列組織資料流的動線,還有要使用的資料操作、演算法、驗證模型等等,而這些區塊都是從左側的面板拖拉進來的,像是選擇適用的學習演算法:

這樣就可以把 Bayesian Linear Regression 的演算法拉進來,再與其它的資料操作流程來連接。而右邊的面板就是針對不同的區塊進行設定:

在訓練模型之前,你可能會想到先整理一下資料(data cleansing),像是刪掉一些不用的欄位、或是只拿其中幾個欄位來進行學習,這些都可以在 Azure ML Studio 中拖拉操作,如果有必要的話,也可以套入 R script 來自己寫 code 處理:

除了可以處理資料之中,訓練模型也可以使用由微軟研究院研發多年的演算法模組來使用,你只要調整這些演算法的參數即可,如同這個例子想要做「預測」的學習,就可以直接套用 Regression 類的演算法,這裡我選了用 Linear Regression。

而訓練好的模型也不是只有在實驗室裡可以玩而已,可以直接設定 input/output 後,發佈成 Web Service:

看到這裡你也想玩一下 Azure ML 了嗎?如同前面提到的,現在可以免費體驗 Azure ML,而 Azure 官方網站也提供了一些 Lab 讓你感受一下 Machine Learning 以及 Azure ML 提供的模組,可以到這裡試試看!

常見問題
  • Q: Machine Learning 很神嗎?

    A: 機器學習其實跟我們人類學習一樣,你餵給它什麼資料它就學什麼,學習資料夠不夠多、學習方法(學習演算法)好不好、是否有抓到重點(選擇訓練的資料欄位)等等都會影響學習的成果,機器學習只是可以大量、快速學習,不代表它就一定會完全正確喔。

  • Q: 用 Azure ML 需要事先安裝軟體嗎?還是限定作業系統呢?

    A: Azure ML Studio 是一個完全以 HTML 技術開發的平台,只要在瀏覽器中就可以操作。

  • Q: 我的資料一定要放在 Azure 上才能學習嗎?

    A: 在 Azure ML Studio 中的 Data Reader 或 Hive Query 都可以讓您從各個地方將資料透過 HTTP 匯入,並不限制一定得放在 Azure 上。不過 Azure HDInsight、Azure SQL Database 或是 Azure Storage 都很適合處理大數據,也很方便整合。

參考資源

從 Azure Machine Learning 開始進入機器學習

MSDN Blogs - Sat, 01/24/2015 - 19:38
什麼是機器學習?

Machine Learning(機器學習)不是什麼新技術,至少我在十幾年前(遠目)在大學時修這門課是就已經是發展一段時間的領域,而用最簡單的說法來解釋「機器學習」,就是讓機器擁有學習能力,能夠建立自己的「智慧」,進而在真實世界中進行推論(預測)、分類或是分群等動作,當然,就像我們人類學習一樣,要嘛是讀書破萬卷,要嘛是從師長口中、生活當中得到經驗,然後把這些內容、經驗歸納出自己的智慧,機器要學習也需要大量的資料才能進行學習,而之所以最近會成為一個熱門的話題,自然也是因為資通訊的發達後,人們開始想從大量資料(Big Data)中找出商業智慧或是利用這些資產來建立智慧,於是爭相開始討論機器學習。

具體來說,到底機器學習的是什麼呢?科學家們將學習的模型分成幾種類型,以上圖為例,它是一種學習「分類」(classification) 的問題,透過合適的學習方法(學習演算法)建立起來的模型,就像圖中的虛線一樣,能夠判斷哪些資料是哪一個類別。以現實生活來舉例,郵件伺服器可以透過機器學習來學會判斷一封信是否為垃圾郵件,學習的資料就是過往大量的郵件,以及導師(例如你手動標記哪些信是垃圾信)標記哪些信是垃圾信,讓郵件伺服器愈來愈有能力主動地判斷一封新信件是否為垃圾郵件,這就是機器學習的應用之一。所以我們可以知道,機器學習是讓機器(當然包含軟體)有能力對於未來的事物或情境採取行動的方式。

Azure Machine Learning

Azure machine learning overview from Lin-Chieh Shangkuan

Azure 機器學習(Azure ML)是 Microsoft Azure 平台上其中一個服務,這個服務為想要進行機器學習的開發團隊,提供了處理大數據的基礎建設機器學習的演算法硬體運算資源、以及將模型變成 Web Service 等服務,讓開發團隊可以專注在資料的蒐集、要解決的問題、判斷要「學習」什麼問題,其它運算的工作就讓 Azure 機器學習這個平台來完成。在這個服務下,不管你的資料放在哪裡(放在 Azure 上或不在 Azure 上),都可以拉進 Azure ML 來進行學習的工作,這裡我們以實際的操作來做說明。

上圖是 Azure Machine Learning Studio 的首頁,可以看到一些影片介紹,如果想要立刻免費體驗 Azure ML(是的,有免費方案),可以點右上角的 Sign In 連結,使用 Microsoft 帳號(也就是之前的 Windows Live ID、MSN 帳號等)登入,就會進入 Azure ML Studio 的操作畫面(或是你要稱它為實驗室也可以):

在這個 Studio 中,Machine Learning 的操作都是稱作「實驗」(experiments),你可以在一個實驗裡訓練一個或多個模型。

進入實驗的操作畫面,你可以看到中間的區域可以讓你排列組織資料流的動線,還有要使用的資料操作、演算法、驗證模型等等,而這些區塊都是從左側的面板拖拉進來的,像是選擇適用的學習演算法:

這樣就可以把 Bayesian Linear Regression 的演算法拉進來,再與其它的資料操作流程來連接。而右邊的面板就是針對不同的區塊進行設定:

在訓練模型之前,你可能會想到先整理一下資料(data cleansing),像是刪掉一些不用的欄位、或是只拿其中幾個欄位來進行學習,這些都可以在 Azure ML Studio 中拖拉操作,如果有必要的話,也可以套入 R script 來自己寫 code 處理:

除了可以處理資料之中,訓練模型也可以使用由微軟研究院研發多年的演算法模組來使用,你只要調整這些演算法的參數即可,如同這個例子想要做「預測」的學習,就可以直接套用 Regression 類的演算法,這裡我選了用 Linear Regression。

而訓練好的模型也不是只有在實驗室裡可以玩而已,可以直接設定 input/output 後,發佈成 Web Service:

看到這裡你也想玩一下 Azure ML 了嗎?如同前面提到的,現在可以免費體驗 Azure ML,而 Azure 官方網站也提供了一些 Lab 讓你感受一下 Machine Learning 以及 Azure ML 提供的模組,可以到這裡試試看!

常見問題
  • Q: Machine Learning 很神嗎?

    A: 機器學習其實跟我們人類學習一樣,你餵給它什麼資料它就學什麼,學習資料夠不夠多、學習方法(學習演算法)好不好、是否有抓到重點(選擇訓練的資料欄位)等等都會影響學習的成果,機器學習只是可以大量、快速學習,不代表它就一定會完全正確喔。

  • Q: 用 Azure ML 需要事先安裝軟體嗎?還是限定作業系統呢?

    A: Azure ML Studio 是一個完全以 HTML 技術開發的平台,只要在瀏覽器中就可以操作。

  • Q: 我的資料一定要放在 Azure 上才能學習嗎?

    A: 在 Azure ML Studio 中的 Data Reader 或 Hive Query 都可以讓您從各個地方將資料透過 HTTP 匯入,並不限制一定得放在 Azure 上。不過 Azure HDInsight、Azure SQL Database 或是 Azure Storage 都很適合處理大數據,也很方便整合。

參考資源 原始文章發佈於「開發者之魂」部落格

BETT 2015: Day 3 video recap – MIE Experts in the Microsoft Theatre

MSDN Blogs - Sat, 01/24/2015 - 06:40

As we tread the boards at the ExCel today for one last time during BETT 2015, let’s take a brief look back at what happened on and around the Microsoft stand yesterday:

Anyone attending our Theatre sessions will have heard from one of our Microsoft Innovative Educators, and in the clip above we’ve asked a couple of them to talk a little bit about what they’ve been presenting on the stand at BETT 2015 and how they are using technology and best practices in their classrooms every day.

(Anthony Lees, Mike Tholfsen, Ari Schorr, Emma Hicks and Mandeep Atwal)

If you weren’t able to attend BETT 2015 or didn't make it to the session you wanted to then do not fret – we’ll be publishing a series of follow up blog posts detailing each of the presentations that were given on our stand. We’re exceptionally grateful for all of the help our MIE community members have given us, not just over the last few days, but throughout the entirety of their participation in the programme… Long may the relationship continue!

BETT 2015: Day 3 video recap – MIE Experts in the Microsoft Theatre

MSDN Blogs - Sat, 01/24/2015 - 06:40

As we tread the boards at the ExCel today for one last time during BETT 2015, let’s take a brief look back at what happened on and around the Microsoft stand yesterday:

Anyone attending our Theatre sessions will have heard from one of our Microsoft Innovative Educators, and in the clip above we’ve asked a couple of them to talk a little bit about what they’ve been presenting on the stand at BETT 2015 and how they are using technology and best practices in their classrooms every day.

(Anthony Lees, Mike Tholfsen, Ari Schorr, Emma Hicks and Mandeep Atwal)

If you weren’t able to attend BETT 2015 or didn't make it to the session you wanted to then do not fret – we’ll be publishing a series of follow up blog posts detailing each of the presentations that were given on our stand. We’re exceptionally grateful for all of the help our MIE community members have given us, not just over the last few days, but throughout the entirety of their participation in the programme… Long may the relationship continue!

BETT 2015: Day 3 video recap – MIE Experts in the Microsoft Theatre

MSDN Blogs - Sat, 01/24/2015 - 06:40

As we tread the boards at the ExCel today for one last time during BETT 2015, let’s take a brief look back at what happened on and around the Microsoft stand yesterday:

Anyone attending our Theatre sessions will have heard from one of our Microsoft Innovative Educators, and in the clip above we’ve asked a couple of them to talk a little bit about what they’ve been presenting on the stand at BETT 2015 and how they are using technology and best practices in their classrooms every day.

(Anthony Lees, Mike Tholfsen, Ari Schorr, Emma Hicks and Mandeep Atwal)

If you weren’t able to attend BETT 2015 or didn't make it to the session you wanted to then do not fret – we’ll be publishing a series of follow up blog posts detailing each of the presentations that were given on our stand. We’re exceptionally grateful for all of the help our MIE community members have given us, not just over the last few days, but throughout the entirety of their participation in the programme… Long may the relationship continue!

Cumulative Update 22 for Microsoft Dynamics NAV 2013 has been released

MSDN Blogs - Sat, 01/24/2015 - 03:00

Cumulative Update 22 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions: 

  • AU - Australia
  • AT - Austria
  • BE - Belgium
  • CH - Switzerland
  • DE - Germany
  • DK - Denmark
  • ES - Spain
  • FI - Finland
  • FR - France
  • IS - Iceland
  • IT - Italy
  • NA - North America
  • NL - Netherlands
  • NO - Norway
  • NZ - New Zealand
  • SE - Sweden
  • UK - United Kingdom
Where to find Cumulative Update 22

You can download the cumulative update from KB 3024895 - Cumulative Update 22 for Microsoft Dynamics NAV 2013 (Build 39369).

Additional Information

For a list of all cumulative updates for this version, see Released Cumulative Updates for Microsoft Dynamics NAV 2013

For a list of all hotfixes included in cumulative updates for this version, see the following CustomerSource and PartnerSource pages:

CustomerSource:

PartnerSource:

Cumulative Update 15 for Microsoft Dynamics NAV 2013 R2 has been released

MSDN Blogs - Sat, 01/24/2015 - 02:59

Cumulative Update 15 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2013 R2.

 The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

  •   AU - Australia
  •   AT - Austria
  •   BE - Belgium
  •   CH – Switzerland
  •   CZ – Czech Republic
  •   DE - Germany
  •   DK - Denmark
  •   ES - Spain
  •   FI  - Finland
  •   FR - France
  •   IS - Iceland
  •   IT - Italy
  •   NA - North America
  •   NL - Netherlands
  •   NO - Norway
  •   NZ - New Zealand
  •   RU – Russia
  •   SE - Sweden
  •   UK - United Kingdom
Where to find Cumulative Update 15

You can download the cumulative update from KB 3024898  – Cumulative Update 15 for Microsoft Dynamics NAV 2013 R2 (Build 39354). 

Additional Information

For more information about cumulative updates for this version, see Announcement of update rollups for Microsoft Dynamics NAV 2013 R2.

For a list of all cumulative updates for this version, see Released Cumulative Updates for Microsoft Dynamics NAV 2013 R2

For a list of all hotfixes included in cumulative updates for this version, see the following CustomerSource and PartnerSource pages:

CustomerSource:

PartnerSource

Cumulative Update 3 for Microsoft Dynamics NAV 2015 has been released

MSDN Blogs - Sat, 01/24/2015 - 02:58

Cumulative Update 3 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2015. 

 The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

  •   AU - Australia
  •   AT - Austria
  •   BE - Belgium
  •   CH – Switzerland
  •   DE - Germany
  •   DK - Denmark
  •   ES - Spain
  •   FI  - Finland
  •   FR - France
  •   IS - Iceland
  •   IT - Italy
  •   NA - North America
  •   NL - Netherlands
  •   NO - Norway
  •   NZ - New Zealand
  •   RU – Russia
  •   SE - Sweden
  •   UK - United Kingdom
Where to find Cumulative Update 3

You can download the cumulative update from KB 3024901  – Cumulative Update 3 for Microsoft Dynamics NAV 2015 (Build 39368). 

Additional Information

For information about how to install the cumulative update, see How to Install a Microsoft Dynamics NAV 2015 Cumulative Update

For information about how to work around a recent process change, see How to Get Back the 'Hotfix Directories' from NAV 2015 Cumulative Update 1.

For a list of all cumulative updates for this version, see Released Cumulative Updates for Microsoft Dynamics NAV 2015.  

[Sample Of Jan. 24] Create a three-tier ASP.NET web application with Entity Framework and Self Track

MSDN Blogs - Sat, 01/24/2015 - 00:50
Jan. 24 Sample : https://code.msdn.microsoft.com//Create-a-three-tier-ASPNET-a742cee5 The sample code demonstrates how to build a simple 3-tier Asp.net Web Role, which uses Entity Framework (SQL Azure database) as the Data Access Layer. This sample also shows how to implement a User Session Handling (With Azure Cache Service). You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample...(read more)

Issues with Cloud Load Testing - 1/24

MSDN Blogs - Fri, 01/23/2015 - 22:55

Initial Update: Saturday 1/24/2015 06:51 AM UTC

We have identified an issue with Cloud-based Load Testing Service where customer load test runs will be stuck in the queued state. Our DevOps are actively engaged & investigating the issue. We will post an update as we have more information.

We apologize for the inconvenience.

Sincerely
 VS Online Service Delivery team

DIXF サービスが起動に失敗するとWindowsが再起動する問題

MSDN Blogs - Fri, 01/23/2015 - 18:38

Microsoft Dynamics AX Data Import/Export Framework Service (DIXFサービス)のレジストリ値ErrorControl

がデフォルトで3に設定されているため、Windows起動時にDIXFサービスが起動に失敗すると、Windows

が再起動する場合がございます。

この問題を防ぐために以下のレジストリ値を1に設定頂くことをお勧めいたします。

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Microsoft.Dynamics.AX.DMF.SSISHelpService.exe\ErrorControl

次期メジャーバージョン(AX7)では、ErrorControl=1に変更される予定です。

 

< ErrorControl>

https://technet.microsoft.com/en-us/library/cc963244.aspx

Now available: Videos for the release of Microsoft Dynamics Marketing 2015 Update

MSDN Blogs - Fri, 01/23/2015 - 17:53

These videos feature key components of Microsoft Dynamics Marketing 2015 Update.

Check out these new videos that provide a comprehensive overview of the capabilities we have delivered in Microsoft Dynamics Marketing 2015 Update in the recent autumn release. We've created some very informative videos for your viewing pleasure. Please check them out!

Microsoft Dynamics Marketing 2015 Update

Marketing Calendar in Microsoft Dynamics Marketing

Webinar Enablement in Microsoft Dynamics Marketing

AB Testing in Microsoft Dynamics Marketing

Visual Approval Workflow in Microsoft Dynamics Marketing

Seller Collaboration Panel in Microsoft Dynamics Marketing

2015 Update Overview of Microsoft Dynamics Marketing

Social Integration in Microsoft Dynamics Marketing

Enhanced Email Editor in Microsoft Dynamics Marketing

Campaign Management Offers in Microsoft Dynamics Marketing

Enhanced extensibility and segmentation in Microsoft Dynamics Marketing

OData Feed in in Microsoft Dynamics Marketing

Also, we created a curated page for CRM and related products on YouTube and Facebook, so that you can more easily find the videos we are creating for you about our releases.

Access the YouTube page here: Dynamics CRM 

Access the Facebook App here: Dynamics CRM

  • This app is mobile optimized.
  • You can also discover this tab either directly via URL or through the Dynamics CRM option under More.

Do let us know if they are helpful—we’d love your comments!
Happy viewing,

Shilpa Sinha
Senior Program Manager

Diagnostics configuration requires diagnostics.wadcfgx; configuration in code is no longer supported

MSDN Blogs - Fri, 01/23/2015 - 15:32

While preparing for tests starting on Monday I submitted some files to my Service Bus Queue and looked at the traces that was output in my Azure Table Storage. To my surprise only the errors were logged, no Information logs could be found. But I had configured tracing in my code using the code below (which is somewhat simplified in this post):

DiagnosticMonitorConfiguration config = DiagnosticMonitor.GetDefaultInitialConfiguration();
config.Logs.ScheduledTransferLogLevelFilter = Microsoft.WindowsAzure.Diagnostics.LogLevel.Verbose;
DiagnosticMonitor.StartWithConnectionString("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString", config);

It took me a while to realize what was going on! Just before leaving for Christmas vacation I had updated to Azure SDK 2.5 and only since then I had not looked at the traces much. The cause for my problem was that Azure SDK 2.5 has breaking changes which disable setting diagnistics settings using code, instead you need to use an XML config file which is deployed to Azure. See https://msdn.microsoft.com/en-us/library/azure/dn873976.aspx#BKMK_breaking for details and links to samples.

First I downloaded the diagnostics XML file from Azure using: Get-AzureServiceDiagnosticsExtension -ServiceName <<service name>>

Then I (almost) got the file below. Almost, because for some reason it was mssing the PublicConfig element and I had to add it manually to be able to upload it back to Azure.  I changed the scheduledTransferLogLevelFilter to Information, that is all.

<?xml version="1.0" encoding="utf-8" ?>
<PublicConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration">
<WadCfg>
  <DiagnosticMonitorConfiguration overallQuotaInMB="4096">
    <DiagnosticInfrastructureLogs scheduledTransferLogLevelFilter="Error" />
    <Directories scheduledTransferPeriod="PT1M">
      <IISLogs containerName="wad-iis-logfiles" />
      <FailedRequestLogs containerName="wad-failedrequestlogs" />
    </Directories>
    <WindowsEventLog scheduledTransferPeriod="PT1M">
      <DataSource name="Application!*" />
    </WindowsEventLog>
    <CrashDumps>
      <CrashDumpConfiguration processName="WaIISHost.exe" />
      <CrashDumpConfiguration processName="WaWorkerHost.exe" />
      <CrashDumpConfiguration processName="w3wp.exe" />
    </CrashDumps>
    <Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Information" />
  </DiagnosticMonitorConfiguration>
</WadCfg>
</PublicConfig> 

To upload the file back to Azure I used these simple Powershell commands:

Add-AzureAccount
$storage = New-AzureStorageContext -StorageAccountName <<storage Account name>> -StorageAccountKey <<key>>
Set-AzureServiceDiagnosticsExtension -ServiceName <<service name>> -StorageContext $storage -Role <<role name>> -Slot Production -DiagnosticsConfigurationPath <<full path to XML config file>>

Debugging like a Boss in Visual Studio!

MSDN Blogs - Fri, 01/23/2015 - 15:07

TODO

Pages

Subscribe to Randy Riness @ SPSCC aggregator
Drupal 7 Appliance - Powered by TurnKey Linux