Quantcast
Channel: MSDN Blogs
Viewing all 29128 articles
Browse latest View live

Using a Service Principal for Azure PowerShell Authentication

$
0
0

The Azure PowerShell cmdlets support two authentication techniques: AAD and self-signed X.509 certificates. AAD authentication can be used for both the classic Azure Service Management (ASM) mode and the new Azure Resource Manager (ARM) mode of the Azure cmdlets. Certificate authentication can be used only for ASM mode. Although certificate authentication is the traditional way to authenticate there is no longer any need to use it since AAD authentication works in all modes of Azure PowerShell and provides role-based access control (RBAC) in ARM mode.

There were several presentations at //Build2015 and Microsoft Ignite indicating that, going forward, ARM is central to the consistent management layer for Azure and the Azure Stack. New cmdlets have been added to the Azure cmdlets to support the use of ARM for many Azure resource types - including VMs, Azure Storage and VNETs.

AAD authentication typically makes use of AAD users added either as a co-admin for ASM or to some role for ARM. This identification is normally done in the Production Portal and Preview Portal respectively. However, it is also possible to use a service principal for authentication in ARM mode. David Ebbo has a post showing how to configure a service principal, through the creation of a dummy application, in the Azure Active Directory section of the Production Portal. Max Vaughan has a post showing how to create a service principal using the Azure Active Directory (formerly MSOL) cmdlets. This post builds on these, and shows how to create a service principal and associate it with ARM roles only using PowerShell. Note that there is no portal support for service principals and they are not surfaced into the portal UI. Service principals can be managed through PowerShell.

AAD and Azure Cmdlets

The AAD cmdlets can be downloaded and installed from here. Note that the Microsoft Online Services Sign-In Assistant for IT Professionals must also be installed, and this can be downloaded from the same page. The Azure cmdlets can be downloaded directly from the GitHub release page.

The service principal is added to the AAD tenant using the AAD cmdlets and then given access to ARM mode using the Azure cmdlets. Consequently, the following must be done by a user who is a co-admin for ASM and in the Owner role for ARM. This user must be signed-in to both MSOL and Azure.

The following cmdlet is used to sign-in to Azure:

Add-AzureAccount

The following cmdlet is used to sign-in to MSOL:

Connect-MsolService

If necessary, the following Azure cmdlets can be used to select the desired subscription:

Get-AzureSubscription

Select-AzureSubscription -SubscriptionName "SomeSubscription"

Set-AzureSubscription -SubscriptionName "SomeSubscription " `
   -CurrentStorageAccountName "somestorageaccount"

The ARM mode of Azure PowerShell is selected using the following cmdlet:

Switch-AzureMode -Name AzureResourceManager

Service Principal Creation

The following AAD cmdlet is used to add the service principal:

New-MSolServicePrincipal -DisplayName "ServicePrincipalName" `
   -Type Password -Value "StrongPassword"

This cmdlet provides output like the following:

DisplayName           : TestServicePrincipal
ServicePrincipalNames : {f24663fe-52f4-4d02-a0f9-8a4138b870d9}
ObjectId              : 2824dc38-f543-4f4b-91a0-93b490141a18
AppPrincipalId        : f24663fe-52f4-4d02-a0f9-8a4138b870d9
TrustedForDelegation  : False
AccountEnabled        : True
Addresses             : {}
KeyType               : Password
KeyId                 : c754f373-e14c-4dae-9981-0b99666c15b9
StartDate             : 5/14/2015 6:50:20 AM
EndDate               : 5/14/2016 6:50:20 AM
Usage                 : Verify

The New-MSolServicePrincipal cmdlets has parameters allowing the StartDate and EndDate to be specified. The Get-MsolServicePrincipal cmdlet can be used to retrieve information on all the service principals configured for the tenant or for a specific service principal. For example:

Get-MsolServicePrincipal `
   -ServicePrincipalName "f24663fe-52f4-4d02-a0f9-8a4138b870d9"

ExtensionData         : System.Runtime.Serialization.ExtensionDataObject
AccountEnabled        : True
Addresses             : {}
AppPrincipalId        : f24663fe-52f4-4d02-a0f9-8a4138b870d9
DisplayName           : TestServicePrincipal
ObjectId              : 2824dc38-f543-4f4b-91a0-93b490141a18
ServicePrincipalNames : {f24663fe-52f4-4d02-a0f9-8a4138b870d9}
TrustedForDelegation  : False

Azure Role Assignment

The New-AzureRoleAssignment cmdlet is used to assign a service principal to a role. This is done at one of the three supported scopes: subscription, resource group or resource. The role assignment is inherited from subscription through resource group to resource. ARM supports three system roles (Owner, Contributor and Reader) as well as many resource-provider specific roles (Virtual Machine Contributor, Virtual Network Contributor, etc.). The Get-AzureRoleDefinition cmdlet can be used to retrieve the list of roles and their definition as follows:

Get-AzureRoleDefinition

The following assigns the service principal to the Virtual Network Contributor role for the WestUSDemo resource group:

New-AzureRoleAssignment `
   -ServicePrincipalName "f24663fe-52f4-4d02-a0f9-8a4138b870d9" `
   -RoleDefinitionName "Virtual Network Contributor" `
   -Scope "/subscriptions/27182818-405e-b406-284590452353/resourceGroups/WestUSDemo"

The Get-AzureRoleAssignment is used to retrieve the role assignments for all users and service principals. For example, the following retrieves the role assignments for the specified service principal:

Get-AzureRoleAssignment `
   -ServicePrincipalName "f24663fe-52f4-4d02-a0f9-8a4138b870d9"

ServicePrincipalName : f24663fe-52f4-4d02-a0f9-8a4138b870d9
RoleAssignmentId     : /subscriptions/27182818-405e-b406-284590452353/resourceGroups/WestUSDemo/providers/Microsoft.Authorization/roleAssignments/66a4d61a-75ee-4532-8143-ba35c54bda28
DisplayName          : TestServicePrincipal
RoleDefinitionName   : Virtual Network Contributor
Actions              : {Microsoft.ClassicNetwork/virtualNetworks/*, Microsoft.Authorization/*/read, Microsoft.Resources/subscriptions/resources/read, Microsoft.Resources/subscriptions/resourceGroups/read...}
NotActions           : {}
Scope                : /subscriptions/27182818-405e-b406-284590452353/resourceGroups/WestUSDemo
ObjectId             : 2824dc38-f543-4f4b-91a0-93b490141a18

The service principal can be configured as an Azure PowerShell account as follows:

$tenantId = Get-AzureSubscription | `
   Where {$_.IsCurrent -eq "True"} | `
   Select TenantId

$securePassword = ConvertTo-SecureString "StrongPassword" -AsPlainText -Force

$secureCredential = `
   New-Object System.Management.Automation.PSCredential ("f24663fe-52f4-4d02-a0f9-8a4138b870d9", $securePassword)

Add-AzureAccount -ServicePrincipal -Tenant $tenantId -Credential $secureCredential

The Get-AzureSubscription, Select-AzureSubscription and Set-AzureSubscription cmdlets can be used as before to specify that the service principal is used as the account going forward.


Visual Studio Tip #7: Whole line editing

$
0
0

OK here is a quick simple one. How do I move or edit entire lines of code?

#1 Just don’t select anything.

If you don’t have anything selected in your code window then the commands for copy, cut and paste work as if the entire line of code was selected.

So if you need to quickly duplicate a line, don’t bother trying to get a whole line selected. Just put the cursor on the line then type Ctrl+C, Ctrl+V and you’ll see the new line pasted below the old line.

#2 Just move the line. Put your cursor on the line in question and use Alt+UpArrow or Alt+DownArrow to move the entire line up or down in your file.

This post is part of a series of Visual Studio tips. The first post in the series contains the whole list.

Hotfix Releases for Windows: May 2015

$
0
0

Here are the Windows hotfix releases for May 2015

 

KB3042839   Mstscax.dll file leaks handles on a Remote Desktop Protocol 8.1 client in Windows 7 or Windows Server 2008 R2

 

KB3045682   You cannot restore files and folders from Server Essentials Backup on a Windows-based computer

 

KB3050293   Cluster resources are not initialized correctly after Rhs.exe process crashes on a Windows Server 2008 SP2-based cluster

 

KB3051475   Cookies are not passed as part of a session when you make an HTTP connection in Windows 7 or Windows Server 2008 R2

 

KB3054251   Stop Error in Rdbss.sys and unsaved documents in Windows 7 SP1 or Windows Server 2008 R2 SP1

 

KB3056066   Backups fail for VMs with pre-existing software snapshots that use shadow storage set to a different drive in Windows 7 and Windows Server 2008 R2

 

KB2672277   Some services are preloaded unexpectedly on an IIS 7.5 server in Windows

 

KB3018489   "No host bus adapter is present" error when querying SAS cable issues in Windows Server 2012 R2 or Windows Server 2012

 

KB3025091   Shared Hyper-V virtual disk is inaccessible when it's located in Storage Spaces on a Windows Server 2012 R2-based computer

 

KB3033937   32-bit applications do not receive events when the WscRegisterForChanges function is used on 64-bit Windows 8.1

 

KB3036169   Reliability improvement update for Windows 8.1 and Windows Server 2012 R2: May 2015

 

KB3036614   "0x000000D1" Stop error when you fail over a cluster group in Windows Server 2012 or Windows Server 2012 R2

 

KB3041673   You cannot enter PIN on a PIN pad device after you insert a smart card into a Windows-based computer

 

KB3042534   the Sleep option is missing on a Windows 8.1-based computer that uses the Intel Skylake chipset

 

KB3042816   AD DS or AD LDS responds slowly to LDAP query that has an undefined attribute and an OR clause in Windows Server 2012

 

KB3042836   The Remote Desktop Active X control Mstscax.dll leaks thread handles in Windows 8.1

 

KB3044759   Black screen when you resume a laptop from hybrid shutdown in Windows

 

KB3045634   You cannot make a PPP connection after you reconnect a PLC device in Windows 8

 

KB3046394   WWAN device may disappear from charm bar on Intel BYT platform that is running Windows 8.1 or Windows Server 2012 R2

 

KB3046797   Single tunnel throughput drops after you install April 2014 update rollup on Windows Server 2012 R2

 

KB3046798   VPN gateway becomes unresponsive and a connection can't be established in Windows Server 2012 R2

 

KB3046799   Azure services overbill when you use point-to-site VPN service in Windows Server 2012 R2

 

KB3047280   "The URL cannot be resolved" error during network location server setup for a DirectAccess server in Windows Server 2012 R2

 

KB3047295   Virtual memory allocations for a 32-bit process fail in Windows Server 2012 R2

 

KB3048476   Application may not function correctly when it uses WMI queries in Windows

 

KB3048824   A w3wp.exe process crashes when a performance counter value is requested while the worker process shuts down

 

KB3049448   Resolution of external DNS records on a Windows Server 2012 R2 Hyper-V guest cluster fails through a Hyper-V Network Virtualization Gateway

 

KB3049605   Transparent graphic elements are filled when printed as XPS to a Windows 8.1 or Windows Server 2012 R2 Version 4 printer driver

 

KB3049843   You cannot access DPAPI data after an administrator resets your password on a Windows Server 2012-based domain controller

 

KB3050205   An IP Address Management error occurs in Windows Server 2012 R2 when a DNS record is deleted

 

KB3051395   No Wi-Fi connection if a Wi-Fi profile uses two or more SSIDs in Windows 8.1

 

KB3051472   DNS name resolution and DNSSEC validation fail in Windows Server 2012 R2

 

KB3051690   System becomes unresponsive when you use xcopy command to copy files in Windows Server 2012 R2

 

KB3053660   The ScriptShapeOpenType function returns bad data in the target array for the pwLogClust parameter in Windows

 

KB3053744   Applications play 5.1-channel audio content that uses only two channels in Windows

 

KB3054187   "Before you can print, you need to select a printer" error when you try to print from a 32-bit application in Windows 8.1 and Windows Server 2012 R2

 

KB3054249   Backup application that calls the VSS service becomes unresponsive when the DFSR service is running in Windows

 

KB3054290   Start screen and modern applications are displayed unexpectedly in German in Windows 8.1

 

KB3055292   Microsoft Hyper-V does not start on an AMD Carrizo-based computer that is running Windows 8.1 or Windows Server 2012 R2

 

KB3055343   Stop error code 0xD1, 0x139, or 0x3B and random crashes in Windows Server 2012 R2

 

KB3055778   Office 365 integration is unsuccessful if the Rights Management service is installed on Windows Server 2012 R2 Essentials

 

 

 

 

Follow us on Twitter, www.twitter.com/WindowsSDK

Windows 10 Insider Preview Build 10080 for Phone 公開

$
0
0

#wpdev_jp

Windows 10 Insider Preview Build 10080 for phone now available

Windows Phone に対応した Windows 10 の Insider Preview 10080が, Windows Insider プログラムの Fast Ring に対して公開されました。設定メニューで確認できるバージョン番号は 10.0.12562.84 になっています。

対応機種が増えました

前に公開された Technical Preview で既にほぼすべてのWindows Phone 8.1 が動作する Lumia には対応していましたが、今回は更にサポートしているデバイスが増えています。

  • Lumia 930 / Icon
  • Lumia 640/640 XL
  • HTC One (M8) for Phone

Technical Preview で問題があり対象外となっていた Lumia 930/Icon が対象に。そして新しく発売された 640シリーズも更新可能になりました。さらに初めて Lumia 以外で HTC One がサポートされました。うれしい。ただし、HTC One については Verizon のものでバージョンが 8.10.15143.154 のものについて今回はお勧めしない、という情報が出ています。(私のはもう少し前のバージョンでした。最新のROMが入っているやつは問題があるのかも)

これに絡んでか、Windows Phone Recovery Tool も HTC One に対応したようです。

追加された機能

Windows Store Beta for Phone:Windows 10 アプリに対応した新しいストアにアクセスできるようになりました。新しいストアでは今後音楽や動画もサポートする予定です。

Universal Office アプリ:Windows 10 で共通のOffice が搭載されました

XBox アプリ:Xbox One のアカウント管理やフレンドリストを参照できる XBOX One アプリが用意されています

Music Preview アプリ:新しいミュージックプレイヤーですね。One Drive に置いてある楽曲も再生できるようです。そのた各種機能も改善されてるようですね。

Video Preview アプリ:ビデオプレイヤーも更新。MKVを含む各種動画を再生可能です。XBOX Video からも動画を買えるようですが日本からもいけるかな?今後はPCとの連携なども可能になってくるとか。

新しいカメラアプリ:Windwos 10 用のカメラアプリを用意したのでぜひフィードバックをお寄せくださいとのこと。ただ、ハイエンドのLumia (1520、1020,930、830、640/XL)ではいくつかの機能がサポートされていないので注意です。なのでその場合は Lumia Camera アプリを使ってくださいとのこと。数週間のうちにフルバージョンのカメラアプリは用意できると思います、とのこと。とくに HDR、ビデオでの手ぶれ補正や、カメラのプレビュー画面での顔認識機能あたりは、ぜひ試してみてくださいと。

その他修正:メールの通知をタップするとちゃんとカレンダーではなくメールアプリが起動します。着信音もちゃんとなります。

現状の問題

  • この更新時にいくつかの問題が出ています。
    • 更新後、いくつかのアプリが2つ並んでしまう
    • いくつかのアプリが更新後、保留中表示となり反応しなくなる。再起動で保留中フラグが消えちゃんと動作する
    • SDカードにインストールしたアプリのデータが引き継がれず、また起動したり再度インストールができない。いったんアンインストールしてもう一度インストールを。
    • 古いメールアプリが更新後にアプリリストにError の名前で現れてしまい削除できない。またもし前にメールをタイルに置いていると、スタート画面にも表れてしまう。これはピン止めを外せばOK
  • Windows Phone 8.1 からこのビルドに挙げた場合、もし電話のデータ接続がオンになっていた場合も、更新後はOFFになってしまってしまっているので、手動でONにしてください
  • 海外では重要:MMSを受信できない。詳細は原文を
  • コルタナが可能な地域の場合、既定の言語にしてください。
  • 更新後アプリを削除してもアプリリストから消えないかもしれませんが、通常は再起動で解決されると思います
  • 動画やTVをみるとエラー0x8004c029になる。対処方法はこちら
  • 更新後、Twitter のア���リを起動するとクラッシュする。その場合はいったんアンインストールして再度インストールしてください
  • Sore Beta からインストールされたアプリは自動更新になっていませんので、手動で更新チェックが必要です
  • 10052から更新した場合、insider Hub が起動しませんが、WP8.1 から更新した場合は起動するはず

ちなみに、PC 用の Windows 10 はこの夏にリリースする予定とアナウンスがされていますが、先日のBuildで Phone はもう少し遅れるだろうとの話がありました。Windows は今後サービスとして扱われ、異なるデバイスやユーザーに対しては異なったタイミングでリリースされるようになると思っています。Phone に関しては、PCよりも遅れてWindows 10 は年内に(later this year ) は登場すると思います。

などなと、全文が知りたい人はこちらのリンクで。

Windows 10 Insider Preview Build 10080 for phone now available

そういば、1520にはついに中タイル4枚並ぶようになりました!タイルの透明度の調整、壁紙はタイル内、背景どちらも選べます。

Some consideration on TFS SETUP (or TFS ADMIN) account

$
0
0
  In earlier versions of the product the TFSSETUP (TFSSADMIN) account was explicitly referenced. It used to be a placeholder name for an account that a customer could use to do the installation of TFS. If you were installing TFS in a domain environment this had to be a domain account, and if TFS was getting deployed in a standalone/workgroup kind of environment it could be a workgroup account. Later versions of installation guide don’t explicitly call out a TFSSETUP/TFSADMIN account, other than...(read more)

Опубликованы записи выступлений с конференции в Новосибирске

$
0
0

22 апреля в Новосибирске состоялась конференция в рамках технологической экспедиции Microsoft по городам России, Белоруссии, Казахстана. 

Те, кто пропустил онлайн-трансляцию конференции в Новосибирске, могут ознакомиться со всеми докладами в записи, которые для вашего удобства доступны на различных платформах:

The Headless Cloud Nano Server

$
0
0
  Introduction It was nice to see Microsoft come out with the Server 2016 Preview CTP and the headless Nano server that goes along with it. You can download the preview image and extract the Nano server WIM image from it and then use it to actually create the Nano server. What’s the big deal about Nano Server The big deal is you have a highly modularized and if I may say so – a kernel-ized version of Windows – which is almost a bare server OS on top of bare metal. It is as low as you can go...(read more)

GDC Vault Highlight: Overcoming Analysis Paralysis

$
0
0
Part five in my series of highlighting free talks from Game Developers Conference 2015! What is the GDC Vault? The GDC Vault is a collection of (most of the) talks at various GDC events. Talks from last month's GDC 2015 are now online and you can watch them whenever you want! To see which lecture I recommend this time, click through on the link below! You can read more by going to the " GDC Vault Highlight: Overcoming Analysis Paralysis " post on Tobiah Marks blog....(read more)

IntelliTrace in Visual Studio Enterprise 2015 now supports attach!

$
0
0

If you haven’t done so already, check out the announcement of IntelliTrace in Visual Studio Enterprise 2015 which gives you an overview of IntelliTrace and its UI. Since the release of Visual Studio Enterprise 2015 RC, IntelliTrace supports the ability to attach to running processes.

image

As soon as Visual Studio has successfully attached to the selected process the Diagnostic Tools window will show up. If it doesn’t, it may be because you previously closed it. You can bring back, even after you have attached, by clicking on the menu item Debug > Show Diagnostic Tools.

The only current limitation is that IntelliTrace cannot collect calls information when attaching to a running process. This means that IntelliTrace cannot collect the list of every method call made. If you attempt to attach with that option enabled nothing bad will happen, you simply won’t have access to the data.

We are always looking for feedback and comments for our features. You can leave general comments & questions at the end of this blog post or via Send-a-Smile, and submit feature requests to our IntelliTrace UserVoice. You can also send us a tweet or visit the MSDN Diagnostics forums.

Reference missing errors when building coded UI projects with automation on VS 2013 for TFS 2012.

$
0
0
We had an interesting scenario where a customer was using automation with the coded UI projects they had. The customer was using the name space (System.Windows.Automation) for getting the classes like PropertyCondition and AutomationElement to solve his UI automation problems. What was weird in the customer’s case was that customer was using VS 2013 as his client, but the TFS server and the build server was still TFS 2012. Team builds started failing, since reference to the Automation namespace were...(read more)

Collect data from a windows service using the IntelliTrace Standalone Collector

$
0
0

In this blog post I am going to walk you through how to collect data from a windows service using the IntelliTrace Standalone Collector. For the purpose of this post I will be using a windows service I created called “MyWindowsService”.

Note: If you already have Visual Studio installed on the machine the windows service is running you don’t necessarily need to follow this guide because IntelliTrace now supports attach! Simply attach to the running windows service using Visual Studio and IntelliTrace will start collecting data and showing it in the Diagnostic Tools window just like it does when you debug using F5. The only caveat is that you cannot collect calls information when you are attaching, you can only collect events. If you want to collect calls information you’ll need to follow this guide instead.

Step 1 – Download the IntelliTrace Standalone Collector

Download the latest version of the IntelliTrace Standalone Collector. Don’t worry about the version of Visual Studio you have, it’s backwards compatible. What you get is a self-extracting .exe file and if you run it you will get an IntelliTraceCollection.cab file copied to a folder of your choice. I chose the folder C:\IntelliTrace. 

Step 2 – Extract the .cab file

Use the following command to expand the .cab file (yes, the dot at the end is necessary):
expand /f:* IntelliTraceCollection.cab .

I used the above command to extract everything into the directory C:\IntelliTrace. 

Step 3 – Configure your collection plan XML file

The collection plan is the compilation of all settings that tell IntelliTrace what data to collect while the windows service is running:

  1. What interesting events to collect
  2. Whether to collect method calls and parameters
  3. Whether to whitelist or blacklist certain assemblies

The .cab file contains two collection plans out of the box:

  • collection_plan.ASP.NET.trace.xml: Equates to the default IntelliTrace setting in Visual Studio, which means it will collect only events (not method calls) and not the complete list.
  • collection_plan.ASP.NET.default.xml: Equates to selecting “IntelliTrace events and call information” from the General tab of the IntelliTrace options in Visual Studio.

Pick whichever of the two files sounds like a good starting point and make whatever changes you need. I recommend starting with the first one since collecting both events and call information adds considerable overhead. You can make the changes either using a community tool or by editing the XML file manually

Step 4 – Specify the directory you want IntelliTrace to save its data in

You need to make one final edit to your collection plan that unfortunately has to be done manually by editing the XML file:

  1. Open the XML file in your editor of choice
  2. Find the XML element “LogFileDirectory”
  3. Give it a value, for example: <LogFileDirectory>C:\Logs</LogFileDirectory>

That’s the path to the directory in which IntelliTrace will save as an .itrace file all of the data it collects. You must make sure that the user the windows service is running as has read and write access to this directory. 

Step 5 – Register your Windows Service and make sure it starts

Register your Windows service on the target machine so that it shows up on the list of services available and make sure it can be started successfully:

clip_image002 

Step 6 – Edit the registry

Using RegEdit navigate to the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\MyWindowsService and create a new Multi-String Value called “Environment”

clip_image003

Double click on it and set its value to be the following:

COR_ENABLE_PROFILING=1
COR_PROFILER={2AA1AA98-2CAA-4FCF-86CE-EFA007737E83}
COR_PROFILER_PATH=<Path_where_collector_was_extracted>\Microsoft.IntelliTrace.Profiler.12.0.0.SC.dll
VSLOGGER_CPLAN=<Full_path_to_collection_plan_XML_file>

clip_image004

You must make sure that the user the windows service is running under has read and write access to both the directory the collector’s DLL is in, as well as the directory containing the collection plan XML file. As you can see in the screenshot above I used the directory C:\IntelliTrace for both. Also make sure the name of your collection plan XML file is correct, I used “CollectionPlan.xml”.

Step 7 – Restart your windows service

You are all set. As soon as you restart your windows service IntelliTrace will automatically start collecting data from it. As soon as you stop your service you will find one or more .itrace files in the log directory you specified during the previous step (I used C:\Logs). You can now open the .itrace file using File > Open > File... in Visual Studio to see what IntelliTrace has collected.

Wrapping up

We are always looking for feedback and comments for our features. You can leave general comments & questions at the end of this blog post or via Send-a-Smile, and submit feature requests to our IntelliTrace UserVoice. You can also send us a tweet or visit the MSDN Diagnostics forums.

Tired of entering passwords in git-bash? Read on

$
0
0
I have used git-bash for a long while and finally gotten sick of typing passwords all the time.. on Linux/Mac, It Just Works with the ssh-agent. Finally got bugged enough to do the research and found a solution.. See this... ...read more...(read more)

PinKit ( GR Peach )で.NET Micro Frameworkを動かす

$
0
0

ESEC2015で予約販売中のPinKit、勿論、.NET Micro Frameworkが動きます。

セットアップは簡単。

先ず、http://netmf.github.io  からリンクをたどって、.NET Micro Framework SDK 4.3(QFE2-RTM)をダウンロード&インストールします。

次に、http://netmf4mbed.codeplex.com/ の右上の”download"タブから最新版のファームウェアをダウンロードし、適当な場所に保存します。ダウンロードしたZIPファイルは、プロパティでブロックを外してから、解凍しておいてください。

GR PEACHの端のUSBポートにマイクロUSBケーブルをつないでPCに接続します。

すると、ファイルエクスプローラーが開きます。そこに、https://netmf4mbed.codeplex.com/からダウンロードしてきたZIPファイルの解凍後の中身をコピー&ペーストします。

これで完了。Windows 8.1以降のWindows PCならそのまま、GR PEACHの真ん中のUSBポートにつなぎかえれば、Visual Studioを使って、.NET Micro Framework上で動作する、C#、VBのプログラムを動かせます。

Wiindows 8.1より前のOSが入っているPCでは、http://aka.ms/IoTKitHoLPDDからZIPファイルをダウンロードし、ブロックを解除して、ZIPファイルを解凍。中に入っているINSTALL.cmdを実行してから、USBケーブルでPCに接続してください、

簡単ですね。作業が終わったら、http://aka.ms/IoTKitHoLをチャレンジ‼

 

USB tests in the Windows 10 Hardware Lab Kit (HLK)

$
0
0

The purpose of this blog post is to provide a resource with solutions to common problems encountered in the USB tests within the Windows 10 Hardware Lab Kit (HLK). This blog will be categorized into the following areas: “Recent/Upcoming Fixes”, “Known Issues” and “Common Questions.”

As you run these tests, please continue to provide feedback! This blog post will be updated as necessary with new guidance as it arises and old items will be phased out as test updates become widely available.

 

Common Questions

USB Internal Device Idle Test

Why is the USB Internal Device Idle Test failing? The system does not have internal devices or they are all suspended and the test still does not pass?

Please ensure that all external USB devices are unplugged from the system under test before scheduling the test. Failure to remove all external USB devices often results in a test failure indicating that a device or multiple devices failed to suspend. All internal devices should support suspend and go to suspend during a period of inactivity.

 

USB-IF Certification Validation Test (Device)

I ran the USB-IF compliance tests myself, do I need to submit the logs via the HLK?

This test records the status of USB-IF certification for the device under test. There are two ways to assert USB-IF certification. The first option is to get full certification from the USB-IF and submit the test ID (TID) supplied by the USB-IF. The second option is to download the USB-IF Compliance tools online (see test documentation for more details) and run them yourself on the device under test. If you have run and passed the required USB-IF tests yourself, then you will simply submit the following Test ID (TID) when scheduling the test in the HLK: SELF_TEST. Using this Test ID is an assertion that the device under test has completed and passed all required USB-IF testing.

 

Recent/Upcoming Fixes

USB Exposed Port Test

Had a bug handling non-contiguous xHCI root port numbers. Manifested as a crash in the TAEF framework. Fixed in release 10120, available 5/13.

image

USB3 Termination Test

1) Had a bug handling non-contiguous xHCI root port numbers. Manifested as an error stating that there was an “invalid string” encountered. Fixed in release 10120, available 5/13.

image

2) Unable to pass on systems without a user-connectable SuperSpeed capable USB port. The fix will be available in an upcoming release of the kit, estimated the week of 5/25.

 

USB Generic HID Test

This test requires a SuperMUTT. The version 43 firmware that shipped in an early release of the HLK caused this test to fail. Current version 44 of the firmware shipping in the latest EEAP release resolves the issue. Update to the latest HLK and from the system project, run the MUTT Firmware Update for Systems job with the SuperMUTT connected to the system, and the new firmware will be applied. Fixed in release 10108, available 4/30.

 

Known Issues

USB Serial Number Test

Problem

There is a known limitation in this test such that if the device under test provides a serial number, both instances must be in D0 for the test to correctly read the serial number strings. The failure pattern is an error statement saying that the serial number string was not NULL terminated, which is incorrect, the test actually wasn’t able to retrieve it at all.

image

Solution

Ensure that the device is in D0 when the test runs. The test run only takes a few seconds so this can be as simple as re-attaching in the devices immediately before scheduling the test so it executes before the suspend timeout occurs, or using the device during the test (move/click input device, access network, read/write files, etc.)

USB Device Connection S3 + S4 + Connected Standby

And USB Hardware Verifier Test

Problem

These tests may fail on some systems with incomplete xHCI port mapping reported by the system. This is a problem with the HLK client PC firmware, not with the device under test. The failure pattern is an error statement saying that “IOCTL_USB_GET_PORT_CONNECTOR_PROPERTIES returned invalid port number.”

image

Solution

Fortunately on common platforms we have seen with this issue, the problematic port mapping is only for a few of the ports, and other ports are properly mapped and able to fully support device level testing. To find a usable port, run USBView, and be sure the device under test is connected to a port with a non-zero “Companion Port Number”. Unfortunately some tests are dependent on the Device Instance ID so you cannot simply change ports during the middle of a test project, if for example the device does not support a unique serial number. If you find that the host platform has this port mapping problem, you may need to re-create the project with the device under test connected to one of the good ports.

 

USB xHCI Transfer Speed Test

And USB3 Termination Test

Problem

These are system level tests that fail for the same reason as USB Device Connection and USB Hardware Verifier tests: incomplete xHCI port mappings reported by the system. Since these are system tests, this is indeed a problem with the system under test that needs to be corrected. However the USB Exposed Port Test is specifically checking the port mappings and it is still valuable to validate the transfer speed and SuperSpeed terminations on these platforms. The failure pattern will manifest as an error stating that an “invalid” device or port was detected.

image

Solution

Attach the SuperSpeed device, for example a SuperMUTT, to a port on the system that is properly mapped. You can confirm in USBView if there is such a port on the system by checking the SuperSpeed port nodes for one where the “Companion Port Number” is non-zero.

 

Debugging CoronaCards local network sockets

$
0
0
From Instagram: http://ift.tt/1Hk8ry0 You can read more by going to the " Debugging CoronaCards local network sockets " post on Tobiah Marks blog....(read more)

Dynamics CRM 2015 Update 1 : リリースプレビューガイドと各種サービスのご案内

$
0
0

みなさん、こんにちは。

今回は、先日の Dynamics CRM Online 2015 Update 1 のリリースに伴い
提供されたリリースプレビューガイドと、導入の手助けとなるサービスを
紹介します。

リリースプレビューガイド

この資料では、以下の機能概要が紹介されています。

- Microsoft Dynamics CRM Online 2015 Update 1
- Microsoft Dynamics Marketing 2015 Update 1
- Microsoft Social Engagement 2015 Update 1
- Parature

ガイドは以下のリンクからダウンロードできます。

リリースプレビューガイド

テストドライブ体験ツアー

テストドライブ体験ツアーは「営業支援(SFA)」「カスタマーサービス」
「マーケティング」におけるCRMの活用例を見せるサービスです。
実際の画面を見せながら、ポップアップ表示で解説をします。

以下の手順でお試しください。

1. ブラウザで以下のリンクにアクセスします。
テストドライブ体験ツアー

2. 画面右下の「TestDrive をはじめる」をクリックします。後は流れに
そって操作を行ってください。

clip_image001

コンシェルジュサービス

Dynamics CRMを活用した「営業支援」「カスタマーサービス」シナリオ
を用意しました。お申込みいただくと、担当者がホテルのコンシェルジュ
のようにマンツーマンでご説明するサービスです。また説明時の環境を
そのまま30日間無料で利用していただけます。

申し込みは以下の手順で行えます。

1. ブラウザで以下のリンクにアクセスします。
顧客管理(CRM)製品デモのコンシェルジュサービス

2. 画面に必要な情報を入力して「申し込む」ボタンをクリックします。

clip_image001[6]

チャットサービス

チャットサービスは、サービスのご購入を検討されているお客様に
チャット形式で担当者が質問にお答えするサービスです。電話とWeb
フォームに加え、チャットも利用できることで、よりタイムリーに、
お問い合わせいただけます。

尚、「今すぐチャットする」ボタンは担当者が対応可能な時間に
表示される仕組みとなっております。

1. Web 閲覧時に以下の画面が表示されます。

image

2. もしくは以下のページ中央にある、「チャットする」ボタンを
クリックします。

http://www.microsoft.com/ja-jp/dynamics/crm.aspx

image

3. 以下画面にお名前と会社名を入力後、「チャットの開始」を
クリックします。

image

※上記に明記してある通り、技術サポートは行っておりませんので
予めにご了承ください。

FISC安全対策基準に対する CRM Online の対応状況リスト

「金融機関等コンピュータシステムの安全対策基準」(FISC安全対策基準)
に対する CRM Online の対応状況リストを以下リンクで公開しました。

「金融機関等コンピュータシステムの安全対策基準」に対する マイクロソフト クラウド サービス (Office 365、Microsoft Azure、Dynamics CRM Online) の対応状況リスト

是非、用途に合わせて各種サービスをご利用ください!

- 中村 憲一郎

[Sample Of May. 15] How to request a Token from Azure ACS via the OAuth v2 Protocol

$
0
0
May. 15 Sample : https://code.msdn.microsoft.com//How-to-request-a-Token-acc0c1c1 When your web applications and services handle authentication using ACS, the client must obtain a security token issued by ACS to log in to your application or service. In order to obtain this ACS-issued token (output token), the client must either authenticate directly with ACS or send ACS a security token issued by its identity provider (input token). ACS validates this input security token...(read more)

Equation Numbering in Office 2016

$
0
0

Word 2016 and PowerPoint 2016 join OneNote 2010 (and later) in offering a way to display equation numbers flushed to the right margin. To enter an equation number using the linear format (see Section 3.21), type the equation followed by a # (U+0023) followed by the desired equation number text and hit Enter. For example, E=mc^2#(30) ⏎ renders as

 

(30)

Internally this layout is created with an equation array in which the # character acts as a marker telling the LineServices math handler to flush what follows the # to the right margin. Because equation arrays allow you to align parts of multiple equations vertically, you can use a nested equation array with line breaks and appropriate &’s to get arbitrary inter-equation alignments as explained in the equation-array post.

Flushing the equation number to the right margin is key, but in addition, one needs a way to number the equations automatically and refer to them in the text. Chapter 6 of the book Creating Research and Scientific Documents using Microsoft Word gives a method for doing just that. The approach inserts a center tab before the equation and a right tab before the equation number. While this works well for simple equations, it currently forces the equation to use inline typography, for which integral signs and the like are small rather than large as in display-mode typography (TeX $...$ vs $$...$$). This behavior is illustrated in the earlier post. So for Word 2016, the book approach can be updated to use the equation array # option instead of the flush-right tab.

The book explains how to number equations in Word automatically using the Equation Caption, which is based on Word’s handy SEQ Equation field. The other Office applications don’t have this feature unfortunately. The way it works is as follows. On the REFERENCES ribbon tab

1)      Click on “Insert Caption”

2)      Choose the Equation label

3)      Check the “Exclude label from caption” box

4)      Hit the OK button

5)      Insert a ( in front of your equation number and a ) after the number

6)      Change the formatting as desired preferably using an equation style with the formatting you like

The book notes that some publishers don’t want parenthesized equation-number references, so it’s a good idea to have the parentheses outside of the field. You can copy/paste this parenthesized equation number to insert equation numbers for other equations in your paper. Word automatically numbers all such entries sequentially.

To refer to an equation number, you first need to bookmark it. Select its Equation Caption with or without the enclosing parentheses and in the INSERT ribbon tab click on Bookmark. Give the equation number a name starting with “eq” so that you can tell equation numbers apart from other kinds of bookmarks and click on Add.

Wherever you want to reference an equation number, insert a Cross reference to the equation number’s bookmark. Specifically, on the INSERT ribbon tab

1)      Click on the Cross-reference button

2)      In the Reference type box, choose Bookmark

3)      Select the bookmark you want to refer to

4)      Ensure the “Insert reference to:” box contains “Bookmark text”

5)      Click Insert

If the bookmark doesn’t include the parentheses and you want them in the cross reference, you can enclose the cross reference in parentheses. If you don’t need flexible publishing style requirements, it’s simpler to include the parentheses in the bookmark itself. To update the cross references, type ctrl+a to Select All and F9 to update all the fields.

If you want to include chapter numbers in the equation numbers, in the Insert Caption dialog, click on Numbering… and check the “Include chapter number” box. The dialog gives options for how the chapters are defined using heading styles.

The equation handlers used in Microsoft Office have an elegant layout mechanism for equation numbers using the math paragraph, which also supports automatic equation wrapping and flexible equation alignments. The equation numbers can be placed on the left side or the right side and positioned vertically in various ways. In this connection, it might be worth modifying Word to treat a math zone that fills the [soft] paragraph aside from an optional leading center tab and a trailing right tab followed by text (the equation caption) as a display math zone. This would allow equation wrapping, something that has to be done a bit by hand with the equation-array approach. This “tabbed” math zone could be a way to represent the basic math-paragraph equation-number functionality in files. Another nice feature would be if inserting a cross reference, you could use Equation instead of Bookmark and see the current equation numbers without any surrounding text so that you wouldn’t have to create bookmarks. Inserting a caption always wants to include extra text unless the equation number is alone on a line. The bookmark lets you select the precise text you want in the cross reference.

The equation-array approach can also have arbitrary equation wrapping and alignments, but line wrapping isn’t automatic and you may need to insert appropriate markers to get what you want. So it’d be nice to follow through with the math paragraph approach someday. The present approach does work well for most purposes and is pretty easy to use. Enjoy!

SharePoint 2013 May 2015 CU

$
0
0

Our SharePoint product group released the next monthly cumulative updates. How patching works for SharePoint 2013? Read more in the post from my colleague Stefan.

New since April 2015:

  • You need to have SP1 installed!
  • In case you have installed a SP1 slipstream version, please read the article from my colleague Stefan!!!
  • Search enabled Farm, please check as well this article.

The format how we are providing the Cumulative Update packages has changed this cy, means you can find all packages on our Download Center.

When you reached the download website, it is independent which language you chose, the packages are the same.

SharePoint Foundation 2013
3039747 The full server package for SharePoint Foundation 2013
http://support.microsoft.com/KB/3039747

Download link: http://www.microsoft.com/en-us/download/details.aspx?id=47238

SharePoint Server 2013
3039780 The full server package for SharePoint Server 2013 and contains also the SharePoint Foundation 2013 fixes so you need only this package.
http://support.microsoft.com/KB/3039780

Download link: http://www.microsoft.com/en-us/download/details.aspx?id=47213

You will see three downloadable packages:

image

You need to download these three and put it into the same folder, before you start the installation.

Office Web Apps Server 2013
3039748 Microsoft Office Web Apps Server 2013 hotfix package    
http://support.microsoft.com/KB/3039748

Download link: http://www.microsoft.com/en-us/download/details.aspx?id=47124

Project Server 2013
3039753 The full server package for Project Server 2013 and contains also the SharePoint Server and Foundation 2013 fixes so you need only this package.
http://support.microsoft.com/KB/3039753

Download link: http://www.microsoft.com/en-us/download/details.aspx?id=47215

You will see three downloadable packages:

image

You need to download these three and put it into the same folder, before you start the installation.

Important for all Server Applications listed above:
After applying the preceding updates, run the SharePoint Products and Technologies Configuration Wizard or “psconfig –cmd upgrade –inplace b2b -wait” in command line. This needs to be done on all servers in the farm with SharePoint installed. You can run psconfig in parallel on all SharePoint machines.

You might have you own strategy to run psconfig because it depends on the farm structure and what makes sense to reduce the downtime.

Related Info:

Update Center for Microsoft Office, Office Servers, and Related Products
Common Question: What is the difference between a PU, a CU and a COD?

How to: install update packages on a SharePoint 2013 farm where search component and high availability search topologies are enabled

CHANGE: SharePoint 2013 Rollup Update for the December 2013 Cumulative Update Packaging

How to: install update packages on a SharePoint 2013 farm where search component and high availability search topologies are enabled

SQL Server 2014 and SharePoint Server 2013

Security Fixes for this month
May 2015 Office Update Release

Logging SQL Server JDBC driver operations for Java application related cloud service

$
0
0

To enable the logging of JDBC driver, please follow these steps -

1. Select your cloud service on Azure portal and open the Instances tab.

2. Select the instance and click on the connect button to initiate the remote desktop session.

 

3. You can use the existing logging.properties file from default location or you can create a new one and use it for logging.

 

Using the existing default logging.properties file -

1. Once you log in to your virtual machine, open the file explorer and traverse to JRE/lib in your environment.

2. You should find the logging.properties file. Just open it and edit it according to your logging needs. Sample properties file shown below.

 

Using your own logging.properties file -

1. Create a new logging.properties and place in the folder of your choice. Make sure the folder has required permission for access.

2. Add the JVM parameter "-Djava.util.logging.config.file=<drive>:<your folder path>/logging.properties" in your server configuration for launching.

 

After enabling these settings, you should see logs on console or a new log file is getting generated in your specified directory (default directory is your home directory. eg C:\Users\<your login name>\), depending on the handler that you enabled in the properties file.

 

Sample logging.properties file (Log file related settings are highlighted) -  

# The set of handlers to be loaded upon startup.

# Comma-separated list of class names.

handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler

 

# Default global logging level.

# Loggers and Handlers may override this level

.level=ALL

 

# Loggers

# ------------------------------------------

# Loggers are usually attached to packages.

# Here, the level for each package is specified.

# The global level is used by default, so levels

# specified here simply act as an override.

# myapp.ui.level=ALL

 

# Handlers

# -----------------------------------------

# --- ConsoleHandler ---

# Override of global logging level

java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

 

# --- FileHandler ---

# Override of global logging level

java.util.logging.FileHandler.level=ALL

 

# Naming style for the output file:

# (The output file is placed in the directory

# defined by the "user.home" System property.)

java.util.logging.FileHandler.pattern=%h/java%u.log

 

# Limiting size of output file in bytes:

java.util.logging.FileHandler.limit=50000

 

# Number of output files to cycle through, by appending an

# integer to the base file name:

java.util.logging.FileHandler.count=5

 

# Style of output (Simple or XML):

java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter

 

 

Sample Output -  

May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.Util parseUrl
FINE: Property:serverName Value:<your Server name>
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.Util parseUrl
FINE: Property:portNumber Value:1433
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.Util parseUrl
FINE: Property:databaseName Value:<your db name>
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.Util parseUrl
FINE: Property:encrypt Value:true
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.Util parseUrl
FINE: Property:hostNameInCertificate Value:*.net
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.Util parseUrl
FINE: Property:loginTimeout Value:30
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.SQLServerConnection <init>
FINE: ConnectionID:1 created by (SQLServerDriver:1)
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.SQLServerConnection login
FINE: ConnectionID:1 This attempt server name: <your Server name> port: 1433 InstanceName: null useParallel: false
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.SQLServerConnection login
FINE: ConnectionID:1 This attempt endtime: 1431634968867
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.SQLServerConnection login
FINE: ConnectionID:1 This attempt No: 0
May 14, 2015 3:22:18 PM com.microsoft.sqlserver.jdbc.SQLServerConnection connectHelper
FINE: ConnectionID:1 Connecting with server: <your Server name> port: 1433 Timeout slice: 30000 Timeout Full: 30
May 14, 2015 3:22:19 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin
FINE: ConnectionID:1 ClientConnectionId: e655dbf0-203e-4700-8b46-36a5de29039f Server returned major version:11

 

Viewing all 29128 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>