Quantcast
Channel: Randy Riness @ SPSCC aggregator
Viewing all 3015 articles
Browse latest View live

MSDN Blogs: Developing Cloud Solutions with Azure Training Course

$
0
0

This five-day training course is designed to introduce students to developing cloud based applications using Microsoft Azure and the Azure .NET SDK. This course covers key compute technologies such as virtual machines, cloud services, and App Services, as well as teaches how to build a developer environment and compose new applications using platform-as-a-service (PaaS) components.

What You Will Learn:

  • Understand key capabilities of the Azure Platform
  • Understand how to build and secure an application that uses identity from Azure AD
  • Understand how to choose the right data platform
  • Understand how to choose the right compute platform
  • Understand how to build and deploy applications using Azure

Who this course is designed for:

  • Developers and Software Architects

Prerequisites:

  • Previous experience with C#, .NET framework and Visual Studio is highly recommended

Level:      Technical Level 300

Cost:       $599 AUD

Location / Date / Registration:

SYDNEY  28 November – 2 December

Melbourne 5 – 9 December

REGISTER HERE

Module 1: Introduction to Azure for Developers

This module introduces the student to the Azure platform and orientates them to a subset of Azure offerings relevant to enterprise developers that are just getting started with the platform. The course starts with an overview of Azure as a platform and then discusses core compute such as App Service, Batch, Cloud Services, and Service Fabric, and then covers several storage technologies such as SQL DB, Document DB, and Azure Storage. The course wraps up with an overview of services that can be used to connect various modules of your application in Azure.

Module 2: Azure Infrastructure as a Service (IaaS)

In this module students, will learn about Azure Virtual Machines, Virtual Networks and Azure Storage from the perspective of a developer.

Module 3: Azure Storage

In this module, students will learn about Azure Storage from the perspective of a developer. This module focuses on using blobs, tables, queues, and Azure files to build new or extend existing applications.

Module 4: Introduction to Azure SQL Database

This module is focused on exploring features Azure SQL Database. You will gain hands on knowledge in building your first web application integrated with SQL Database and Azure Active Directory.

Module 5: Developing and Deploying Azure Web Apps

In this course students, will be introduced to web apps with in Azure App Service. Students will learn about how to develop, deploy and configure web application to Microsoft Azure. Students will gain hands one experience of enabling Azure Active Directory authentication for web application. This course also covers monitoring, diagnosing of web applications.

Module 6: Managing Identity in the Cloud

In this module, you will learn about managing identities for web applications leveraging social identities as well as Active Directory Federation Services. You will gain hands-on knowledge in setting up web apps with Azure Active Directory authentication.

Module 7: Building and Monitoring Web Apps for Scale

This module explores technologies such as Traffic Manager, Redis Cache, and Content Deployment Network (CDN) to scale out a web app. This course also discusses using Azure’s Application Insights for the developers to monitor Applications and to enable them to detect and diagnose any issues in the application using Application Insights. The module walks you through how to enable Application Insight for an ASP.NET application and obtain various telemetry data including server side statistics, client side statistics, custom events & traces. The module also covers how to detect and diagnose issues in your application using Application Insight.

Module 8: Developing and Deploying Azure Cloud Services

In this module students, will be introduced to Azure Cloud Services. Students will learn about the architecture of cloud services, web roles & worker roles. They will gain hands on experience by developing an application which has a web role & worker role using queue based load levelling. Students will learn about developing, configuring, deploying, troubleshooting, diagnostics and monitoring of Cloud Services.

Module 9: Introduction to Messaging and Notifications

In this module, the student will be introduced to some of the core capabilities for building distribution solutions using Azure ServiceBus. Services will include Notification and Event Hubs, ServiceBus relay, as well as Queues, Topics and Hybrid Connections.


MSDN Blogs: Retrieving corrupted Git Repository in TFS 2015

$
0
0

Deepak Kumar Mishra, Support Engineer, EMEA TFS Team, brings this knowledge experience while working with one of his customers and this important piece of information might help a lot of users who are using Git repos in tfs and face with data corruption in Git repositories.

Issue Description:

Following a Windows Server unexpected shutdown, there was a problem accessing a specific TFS Git repository xxxx (all other repositories worked fine). The symptoms are:

While accessing the problematic repository xxxx, users are being asked for credentials each time (entering the credentials has no effect) & the following errors are encountered

VS Studio output:

Error encountered while cloning the remote repository: Response status code does not indicate success: 401 (Unauthorized).

&

Web portal:

TF401037: The Git index file contains invalid data.

Troubleshooting and resolution:

1. We checked and found that there was a clone for the repository xxxx available with one of the users. We tried to create a new Git repository in TFS web access and pushed the available clone to the server but found that we did not have all the ranches and code of xxxx. The git repository  QC-Connectors got corrupted due to automatic shutdown of the tfs server in the weekend

2.Then we checked and found that we had a tfs test server and also backup of tfs databases from the time the unexpected shutdown occurred. Then we restored the databases in test environment and performed a tfs cloning in the test environment. The cloning operation was successful and we were able to browse the Git repository xxxx successfully without any errors.

3.We did a bare clone of the xxxx git repository from the test tfs environment:

a

4. After the bare clone is successful, we change directory to xxxx.git from where we can do the push operation to the tfs server

b

5. Finally we did a Git mirror Push to the production tfs environment by first renaming the old existing corrupt repository to xxxx_corrupt and then create a new Git repo xxxx from the web access:

c

6. After successful push operation, we were able to successfully browse through all data in xxxx repository without any errors and this issue was resolved. We also removed the renamed git   repository xxxx_corrupt at the end.

Written by: Deepak Kumar Mishra

Reviewed by: Nitish Nagpal, Support Escalation Engineer

MSDN Blogs: V-next builds with a git tag can fail as it does not fetch new tags(annotated)

$
0
0

Deepak Kumar Mishra, Support Engineer, EMEA TFS Team, brings this knowledge experience while working with one of his customers and this important piece of information might help a lot of users who are using Git repos in tfs and build tags using TFS 2015 V-next builds.

Issue Description:
We create a tag using a following command for a git repo in TFS
Git tag -a testtag -m “message”

After this we push it to TFS server which triggers a vnext build with the tag as a part of continuous integration and then we get the following error:
Git push origin –tags

2016-09-15T07:44:15.3207410Z Starting fetch…

2016-09-15T07:44:16.2188308Z Checking out 53e2403076d27fd1476d1e4bffd453e3db146039 to C:Agent1_work6s

2016-09-15T07:44:16.2328322Z ##[error]No valid git object identified by ’53e2403076d27fd1476d1e4bffd453e3db146039′ exists in the repository.

2016-09-15T07:44:16.3678457Z ##[error]Prepare repository failed with exception.

The following are the screenshots of the build failure.

b1

b2

After this when we do a clone the v-next build succeeds.

Cause:
Libgit2sharp used to have problem while fetch annotated tags .This is a TFS bug with annotated tags which has been fixed in TFS 2016

Resolution:
1. We found that this is a bug in TFS 2015 and has been fixed in TFS 2016.
2. The workaround as of now is to use light-weight tags instead of annotated tags which solved the issue. Details of the light weight tags are available at https://git-scm.com/book/en/v2/Git-Basics-Tagging
3. The fix has been tested and it works well in TFS 2016.

Written by: Deepak Kumar Mishra

Reviewed by: Nitish Nagpal, Support Escalation Engineer

MSDN Blogs: Free Webinar: Ask Me Anything – Have Your Legal Questions Answered

$
0
0

Everyday LawPath receives a variety of questions from small businesses, startups and entrepreneurs about important aspects of their business.

What’s the difference between an employee and a contractor? How do I reactivate my ABN? Do I need a shareholders agreement?

To answer these questions and more, LawPath is running a FREE ‘Ask Me Anything’ webinar on the 7th December.

Join LawPath’s Head of Legal Dominic Woorlych as he answers your legal questions. This is a great opportunity to prepare your business and legals for 2017.

Simply sign up, submit your question, and attend the webinar.

http://try.lawpath.com.au/webinar-lawpath-ama/

MSDN Blogs: US Workshops, Webcasts, and Tech Talks – Nov/Dec 2016 Update

$
0
0

Teams struggle to keep up with the latest technology trends, so training and knowledge transfer are important investments to build the expertise required for optimal application and infrastructure.  It’s a great way to proactively stay in front of technical gaps that can manifest in the form of implementation delays, architectural problems, and/or costly production outages. 

Premier Support for Developers provides access to a wide range of advisory and training options that include most popular developer technologies.  Options range from onsite, instructor-led workshops to remote training, and even access to a distinguished team of Developer Consultants for specialized advisory needs.  Content frequently includes proven practices established through the support of Microsoft’s largest customers.

Online sessions for popular technologies are continuously offered by Premier in the following formats:

  • Tech-Talks are 60 minute online presentations with 30 minutes of Q/A.
  • Webcasts are 90 minute online sessions with 30 minutes of Q/A.
  • Remote Workshops are typically multi-day, instructor-led online events.
  • Ramp-Up is a collection of 20+ webcasts, ~90-min in duration EACH, covering the fundamentals of development and a broad range of programming languages and applications. Customers gain access for 90 days to consume all the content.
  • Productivity Series provides 1 month of access to user-level training on various Microsoft technologies. Any number of users from an organization can access the content during the 1 month.

Upcoming Remote Workshops and Webcasts (United States and Canada)

Webcasts_NovDec2016

June-RampUp_thumb1

DevRampUp_Sept2016

July_PSRampUp_thumb1

Through a Premier Support relationship, ADMs can often recommend high value proactive services based on the support trends and activity of your organization.  Contact your TAM/ADM for more information –or- to register for any upcoming event listed above.

For a list of regional workshop titles and advisory options on any Microsoft technology, contact your TAM/ADM or email us to learn how Premier Support for Developers can help you.

MSDN Blogs: Office Developer: Which build of Microsoft Office do I need in order to get that cool API or requirement set?

$
0
0

 

 

 

 

This is one of the regular query raised by various developer customers, “Which build of Office do I need in order to get that cool API or requirement set?”. 

Ok, here is the published guidance that addresses that question.

Check out these topics:

Keep visit our Office Dev center, to see more updated API ref topics to cross-link to each requirement set page.

Happy Office developer guidance Smile

MSDN Blogs: Cumulative Update package 5 for BizTalk Server 2013 R2 is available

$
0
0
This cumulative update package for Microsoft BizTalk Server 2013 R2 is available to download.

We recommend that you test hotfixes before you deploy them in a production environment. Because the builds are cumulative, each new update release contains all the hotfixes and all the security updates that were included in the previous BizTalk Server 2013 R2 update release. We recommend that you consider applying the most recent BizTalk Server 2013 R2 update release.. You may experience performance issues if you run mismatched versions.

More information

This cumulative update package is a rollup update that contains the following items:

  • All new hotfixes that were released for BizTalk Server 2013 R2
  • Some hotfixes for Microsoft BizTalk Server 2013 and BizTalk Server 2010
  • Other fixes that improve the product
You can get a hold of the latest CU by going to this site

Hotfixes that are included in cumulative update package 5 for BizTalk Server 2013 R2

BizTalk Server Adapter

BizTalk Server EDIAS2

BizTalk Server Administration Tools and Management APIs

MSDN Blogs: Training: Developing Cloud Solutions with Azure Training Course

$
0
0

I found this interesting five-day training course is designed for Software Developers & Architects. It’s aimed to introduce the students to developing cloud based applications using Microsoft Azure and the Azure .NET SDK. This course covers key compute technologies such as virtual machines, cloud services, and App Services, as well as teaches how to build a developer environment and compose new applications using platform-as-a-service (PaaS) components.

What You Will Learn:

  • Understand key capabilities of the Azure Platform
  • Understand how to build and secure an application that uses identity from Azure AD
  • Understand how to choose the right data platform
  • Understand how to choose the right compute platform
  • Understand how to build and deploy applications using Azure

For more reference, please check  https://blogs.msdn.microsoft.com/auspartners/2016/11/14/developing-cloud-solutions-with-azure-training-course/

 


MSDN Blogs: Application Insights Planned Maintenance – 11/14 – Initial Notice

$
0
0
Planned Maintenance: 17:00 UTC, 21 November 2016 – 01:00 UTC, 24 November 2016

The Application Insights team will be performing planned maintenance on Availability Web Test feature. During the maintenance window we will be installing necessary updates on underlying infrastructure.

During this timeframe some customers may experience very short availability data gaps in one test location at a time. We will make every effort to limit the amount of impact to customer availability tests, but customers should ensure their availability tests are running from at least three locations to ensure redundant coverage through maintenance. Please refer to the following article on how to configure availability web tests: https://azure.microsoft.com/en-us/documentation/articles/app-insights-monitor-web-app-availability/

We apologize for any inconvenience.

-Vitaliy

MSDN Blogs: Azure SQL Data Warehouse (SQL DW) の分散クエリプランをひも解いてみよう

$
0
0

SQL Server を利用するアプリ開発やデータベース管理に携わる方々の中には、SQL Server のチューニング プロセスの中で、クエリー プランを確認してチューニング指針を立てたというご経験のある方が多いのではないでしょうか。

そのプロセスでは SQL Server Management Studio (SSMS) を用いてクエリ プランを表示させ、アクセス パスを確認することが一般的だったと思います。

具体的には、SSMS のツール バーで推定実行プランの表示実際の実行を含めるボタンを押下しておくことでクエリ プランを簡単にグラフィカルに表示させることができました。

Azure SQL Data Warehouse (以降 Azure SQL DW と略します)の場合には、このクエリプランの確認方法がちょっと変ってきます。

Azure SQL DW にはEXPLAIN という Transact-SQL ステートメントが用意されています。

Transact-SQL ステートメントなので SSMS で実行することもできるのですが、EXPLAIN は結果を XML テキストとして返すので、これを表示・分析するには SQL Server Data Tools Visual Studio で実行するのが便利です。ちょっと残念なのは、クエリ プランをグラフィカルに表示させることはできません。

下のスクリーン ショットでは、1 行目 EXPLAIN ステートメントがあり、そのあとにクエリプランを表示させたい SQL ステートメントが続いています。ところで、EXPAIN で表示するクエリ プランは、正確には Azure SQL DW の分散クエリのクエリ プランになるのですが、この分散クエリという言葉の意味については後ほど説明しましょう。

 

1-1


さて、結果ペインの
XML をクリックすると、XML エディタが表示されます。

 

2


上のスクリーン ショット
12 行目に total_cost としてクエリの推定コスト 3846 が表示されています。SQL Server と同じく、コストの値に単位はなく、大きいか小さいかの相対指標として用います。この値を小さくするチューニングを施すことで、実際のクエリの実行時間も短縮されることになります。

<dsql_operations total_cost=”3846.37034857954″ total_number_operations=”29″>


またこの行には、
total_number_operations として、クエリが 29 の処理から成り立っていることも表示されています。この処理は XML エディタでoperation_typeを検索するとハイライト表示させることができます。

 

3


チューニングすべきポイントに到達するように、重要ではない処理は
XML エディタ上で折りたたんでしまいましょう。

まず RND_ID という処理では、一時オブジェクトを作成する際のランダム ID を取得しているだけなので折りたたんでしまいましょう。

また operation_type=”ON” という処理は、これから処理される Transact-SQL ステートメントを示しますが、ほとんどの場合一時テーブルを作成するクエリ ステートメントを示しているだけなので、やはり折りたたんでしまいましょう。(上のスクリーン ショットだと 19行目に CREATE TABLE ステートメントが見えています)

4


そうすると見やすくなったので、残った処理の中から
operation_cost の大きい処理を探します。

今回の例では、上のスクリーン ショット 65 行目の処理の operation_cost 値が 3840 を示しており、全体のクエリコスト 3846 の 99.8% をこの処理に費やしていることが分かります。

さて、これでチューニング対象が決まりました。

チューニングを進めるには、上のスクリーン ショット 64 行目の operation_type=”BROADCAST_MOVE” の意味を知る必要があります。

Operation_type に現れる処理の中で、クエリ コストが大きくなる可能性のある処理を下表の一覧にまとめました。BROADCAST_MOVE の説明として、結合処理のためにテーブルのレプリカを全ての計算ノードに作成しますとありますが、これはいったいどういう意味でしょうか?

 

処理の表記説明
SHUFFLE_MOVE結合処理のためにそれぞれの計算ノードに分散したデータを特定の列のハッシュ計算結果にしたがって再配置します
PARTITION_MOVECOUNT(*) のような集計結果を計算ノードから制御ノードへ渡します
BROADCAST_MOVE結合処理のためにテーブルのレプリカを全ての計算ノードに作成します
TRIM_MOVE外部結合に必要なデータを計算ノードにコピーします
MOVEいったん制御ノードに集められたデータが、後続の処理のために計算ノードに戻されます
ROUNDROBIN_MOVEデータをラウンド ロビンで再配置します


この意味を理解するために、そして上表の説明を理解するために、
Azure SQL DW のアーキテクチャにつて見てみましょう。

 

5

https://azure.microsoft.com/ja-jp/documentation/articles/sql-data-warehouse-overview-what-is/


Azure SQL DW
は、1 つの制御ノードと複数の計算ノードから構成される MPP アーキテクチャを採用しています。この MPP アーキテクチャを採用することで、計算ノードを追加するだけで、それに比例するコンピュート パワーを使えるようになりました。

いっぽう、テーブルのデータはというと、それぞれの計算ノードが担当するストレージに分散された状態になるので、各計算ノードで実行されるクエリが、必要に応じて相互にデータを融通しあうことがあります。(クエリが分散して処理される形態を分散クエリと呼びます
データを融通しあうには、ノード間のデータ移動と一時テーブルへの
I/O が発生するので、その量が大きいとき、それはオーバー ヘッドとなってしまいます。なお、テーブルのデータが分散されるそれぞれのストレージを、ディストリビューションと呼びますので覚えておいてくださいね。

ここまでくると、operation_type=”BROADCAST_MOVE”が、そのデータの移動が発生している状態であることにもう気づかれたのではないでしょうか?

上表の説明では、「結合処理のためにテーブルのレプリカを全ての計算ノードに作成」とあるので、今問題にしているクエリの結合処理を確認してみましょう。

上の XML エディターのスクリーン ショット 66 行目から 71 行目をよく見てみてみると、一時テーブルの列名に s_suppkey n_nationkey といった列名がみられます。

 

SELECT [T1_1].[s_suppkey] AS [s_suppkey]
FROM   (SELECT [T2_1].[s_suppkey] AS [s_suppkey]
FROM   [tpch].[dbo].[supplier] AS T2_1
INNER JOIN
[tempdb].[dbo].[TEMP_ID_15] AS T2_2
ON ([T2_1].[s_nationkey] = [T2_2].[n_nationkey])) AS T1_1


これらの列名は、それぞれ
supplier テーブルと nation テーブルの列名から採られているので、この二つのテーブルの結合処理でデータの移動が多く発生しているのではないかと推測できます。

では、これらのテーブルの分散方式はどうなっているのでしょうか?

テーブルの分散方式は、CREATE TABLE ステートメントの WITH 句の中で、ハッシュ (HASH) なのかラウンド ロビン (ROUND_ROBIN) なのかを指定します。下の表にその特徴をまとめました。

 

分散方式特徴
HASH
  • ハッシュアルゴリズムにしたがってデータを分散させます
  • ハッシュアルゴリズムによって同じ値にハッシュされた行は、同じディストリビューションに配置されます
  • データが特定のディストリビューションに偏ることがあり、その場合、偏ったディストリビューションを担当する計算ノードの処理が重たくなることがあります
ROUND_ROBIN
  • 列値に関係なくデータを順番に分散させます
  • 結果としてデータはディストリビューションに均等に配置されます


既存のテーブルの分散方式は、
SSMS Visual Studio (または SSDT) で簡単に確認することができます。オブジェクト エクスプローラーでテーブルを展開すると、アイコンに 2 種類あるのに気づきます。左上から右下にかけて帯が見えるのがラウンド ロビンテーブルで、上下に分かれたように見えるのがハッシュ テーブルです。

supplier テーブルも nation テーブルもラウンド ロビンで分散されているのが分かりますね。

 

6


ラウンド ロビンの特徴に「列値に関係なくデータを順番に分散」とあること、そして、クエリ コストの大きかった
BROADCAST_MOVE の説明に「結合処理のためにテーブルのレプリカを全ての計算ノードに作成」とあることから、二つのテーブルの分散方式をラウンド ロビンからハッシュへ変更することで、データの移動を小さく抑えられないでしょうか?

実際、HASH の説明には「ハッシュ アルゴリズムによって同じ値にハッシュされた行は同じディストリビューションに配置」とあるので、結合列のデータで同じ値をもつ行が同じディストリビューションにみつかるように感じますね。

では supplier テーブルと nation テーブルをハッシュ分散に変更した supplier_hash テーブルと nation_hash テーブルで EXPLAIN を表示させましょう。

 

7


上のスクリーン ショットのとおり
total_cost 3846 から 30.46 に下がりました。
下のスクリーン ショットから、問題だった部分の operation_cost 3840 から 30.36 に下がっているのが分かります。

 

8


実際のクエリ実行時間を
計測してみると、ハッシュ テーブルに変更する前が 1 52 秒だったのに対し、変更後は 42 秒にまで縮まりました。(推定クエリコストの値は、クエリ処理の実測値と直接比例関係にありませんので、その点ご注意ください)

いかがでしたか?

ちょっとややこしかったかもしれませんが、EXPLAIN の内容をひも解くことで、クエリの実行時間をチューニングできることが分かりました。

今回の例ではデータの移動を改善することでクエリをチューニングしましたが、実際に計算ノードで処理されるクエリのプランを確認するのは、また次の機会にいたしましょう。

N

関連記事
SQL Data Warehouse のテーブルの分散

SPSCC Posts & Announcements: Men's soccer players and coach honored by NWAC

$
0
0

Clipper Athletics and SPSCC celebrate as the Northwest Athletic Conference (NWAC) awarded the men’s soccer team with three distinguished awards at the close of the 2016 season.  Awards include a region all-star, all-academic award, and co-coach of the year selections.

Juan Vega, forward, selected for South-West All-Star Team.

MSDN Blogs: PowerPivotPro and Microsoft help displaced workers with near-free Power BI Training Dec 7th

$
0
0

Eight years ago my father-in-law started having heart trouble and we decided to move back to the US from Australia to be closer to our families. Little did we know how tough the job market was and my wife was unemployed for 6 months after we returned.  While my wife had the table-stakes skills like Word and Excel she didn’t have in-demand skills to set her apart from the rest of the workforce.  Unfortunately this is an all too common occurrence in today’s economy.  To help our Armed Forces Veterans looking to improve their resume or the work-displaced find their next career, PowerPivotPro and Microsoft are teaming up to provide a near-free day of training on Data Analytics with Power BI (See Forbes article: “Why “Data Scientist” Is The Best Job To Pursue In 2016”). 

There will be a $1.11 fee to register (the smallest amount Eventbrite allows and all the proceeds will go to the Veterans fund). As space is limited, the purpose of this nominal fee is to reduce the number of no-shows.

clip_image001

This training will be December 7th starting 8:30am and will run all day until 5pm.

To register please see: https://avisingh.eventbrite.com

More information about the training can be found here: http://www.avising.com/blog/give-power-bi/

Looking forward to seeing you there!

Thanks

Charles Sterling

MSDN Blogs: Contact Support now available to Insider Slow and Fast users

$
0
0

We are happy to announce that Contact Support is now expanded to Insider (Slow), which means that all Insiders users (both Slow and Fast) will have the option to seek 1:1 support within Outlook for Mac.

Through the new in-app support feature, you can report issues and/or provide feedback directly to our support engineers and the product team. Our support team will answer your questions via email and troubleshoot any Mac Outlook issues with you in a timely manner.

 

Where can I get Contact Support?

Simply click on Help> Contact Support from the Outlook menu to send the feedback or report an issue.

contact-support

Do I have to update Outlook?

You don’t have to update Outlook to see Contact Support– it is already enabled on the latest released builds. If you’ve just joined the Insider program, we recommend you wait for at least 1-2 hours to re-launch, and you should be able to see Contact Support.

You can find more details for joining the Insider program here: Be an Office Insider.

 

What if I would like to make a feature request or suggestion?

If you would like to suggest a new feature or peruse existing community suggestions, check out Suggest a Feature under the Help menu. This will bring you to the Outlook for Mac UserVoice website where you can cast your vote on feature requests.

 

MSDN Blogs: Performance issues with Visual Studio Team Services – 11/15 – Mitigated

$
0
0

Update: Tuesday, 15 November 2016 01:11 UTC

We had connectivity issues on a SQL Database causing performance issues in North Central US region. We are actively working on a Root cause analysis.

This issue is already mitigated and customers shouldn’t see any issue currently.

  • Impact Start Time: 2016-11-14 22:52 UTC.
  • Impact End Time: 2016-11-14 23:16 UTC.

We understand that customers rely on VS Team Services as a critical service and apologize for any impact this incident caused.


Sincerely,
Bapayya


MSDN Blogs: Office Developer: Request from Office for Apps going to ajax.aspnetcdn.com getting a 502 error?

$
0
0

In recent times, i was working with this customer where they created an Outlook add-in (Office for Apps/Office.js). They noticed that a request from Office for Apps going to ajax.aspnetcdn.com getting HTTP 502 error. During debugging (network sniffs) we noticed that issue happens that the URLs were blocked by their AV, Proxy Server settings. On fixing them, it worked as expected.

In such scenario, make sure to validate the following:

– Internet Explorer 9 or later must be installed on client computers.

– Please make sure that the affected users/computers must have external Internet access. They must be able to access the following URLs for the respective Office apps to load correctly.

o https://appsforoffice.microsoft.com/lib/x.x/hosted/office.js

o https://ajax.aspnetcdn.com/ajax/x.x/MicrosoftAjax.js

– Any anti-virus solutions or network solution is not blocking the Office.js URLs.

–  Make sure that both the URL’s are accessible from IE without any problem – it’s a pre-requisite to start with.

Hope this helps.


MSDN Blogs: Visual Studio Extensions – So much support from the community Haskell, Java, MarkDown, Latex and much more..

$
0
0

Today we are proud to announce that all 7000+ Visual Studio extensions have been migrated from the Visual Studio Gallery to the Marketplace, finally making us the one stop for all extensions of the Visual Studio Product Family. Starting today users can browse, search, filter, rate, review and download extensions right from the Marketplace.

Check out https://marketplace.visualstudio.com/

So Fancy adding Haskell Support to Visual Studio Code for Example

image

or Java

 

image

 

or Markdown

image

or Latex

image

So why not make Visual Studio code your default editor… Or if your if your you need something else why not build your own

Checklist to building extensions

1. Familiarize yourself with an overview of our platform and what’s possible with it

a. Team Services extensions overview

b. Visual Studio Code Extension

c. Developer docs and references

2. Learn to build your first extension or check out our full set of Tutorials and Samples

a. Build your first extension

b. Tutorials

c. Samples

3. Familiarize yourself with our RESTful APIs. If you’re integrating from a 3rd party app or service, you’ll also want to check out our Service Hooks

a. REST APIs

b. Service Hooks

4. Once your extension is ready, you’ll want to package it up, publish it to the marketplace, and we hope you’ll share it with the community!

a. Package, publish, and install your extension

b. Package and publish your integration with an external app or service

c. Share your work publicly with the entire community

Helpful Links

· Marketplace: https://marketplace.visualstudio.com/VSTS

· Publisher Page: https://marketplace.visualstudio.com/manage

MSDN Blogs: Unable to drop a user in a database

$
0
0

A user called in for help because he wasn’t able to drop a user from a database.  The error message is below

Msg 15136, Level 16, State 1, Line 2
The database principal is set as the execution context of one or more procedures, functions, or event notifications and cannot be dropped.

From the error, the logical starting point is sys.sql_modules because functions, stored procedures have entries in this catalog view.  Additionally, it has a column called execute_as_principal_id

image

 

So I looked there but found no entries whose execute_as_principal_id is the same user id of the user this customer tried to drop. Next I started to look at source code and found out this error is raised in a couple of other places.  It gave me the clue that I didn’t have to do source code research, TSQL is all I needed to solve the problem.

First I used the following to identify all the system views that have execute_as_principal_id.

select object_name(object_id) ‘view name’ from sys.system_views
where object_definition (object_id) like ‘%execute_as_principal_id%’

The query produced the following:

image

Then I had customer run the following queries based on the output from above

select user_name(execute_as_principal_id) ‘execute as user’, * from sys.system_sql_modules where execute_as_principal_id is not null
select user_name(execute_as_principal_id) ‘execute as user’, *  from sys.service_queues where execute_as_principal_id is not null
select user_name(execute_as_principal_id) ‘execute as user’, * from sys.assembly_modules where execute_as_principal_id is not null
select user_name(execute_as_principal_id) ‘execute as user’, * from sys.sql_modules where execute_as_principal_id is not null
select user_name(execute_as_principal_id) ‘execute as user’, * from sys.server_assembly_modules where execute_as_principal_id is not null
select user_name(execute_as_principal_id) ‘execute as user’, * from sys.server_sql_modules where execute_as_principal_id is not null

Eventually, we discovered that customer had some CLR triggers (sys.assembly_modules ) that used the particular user in “EXECUTE AS” clause.

 

Jack Li |Senior Escalation Engineer | Microsoft SQL Server

twitter| pssdiag |Sql Nexus

MSDN Blogs: Azure SQL Database で拡張イベントを使ってみよう

$
0
0

 

 

Microsoft Japan Data Platform Tech Sales Team

坂本 禎尚

 

 

Azure SQL Database で拡張イベントを使う方法は、他の方の Blog でも取り上げられていますが、今回はできるだけ GUI を使い最小限のシンプルな手順で、クエリ一つ一つの実行時間を取得するというところまでをご紹介します。

Azure SQL Database では、SQL Server でおなじみの SQL Server プロファイラー、SQL Server トレースが現時点ではサポートされておりません。したがって、アプリケーションから実行された SQL 文の各々の実行時間等を取得する際にはプロファイラーやトレースの代わりに拡張イベントを使う必要があります。

実は Azure SQL Database における拡張イベントは 2015 年 10 月に Public Preview になって未だ GA はしていない状況なのですが、近いうちに GA されることを願いつつ今回の記事をお届けします。

以下は、手順の概要です。

  1. Azure のポータルで、拡張イベントの出力先となる Blob コンテナへの接続先情報を取得します。
  2. 1 で取得した情報をもとに、Azure SQL Database から Blob コンテナに接続する為の資格情報を作成します。
  3. 拡張イベントの設定を実施します。
  4. 拡張イベントを開始し、イベント ファイルを取得します。その後、イベント ファイルを使って、クエリの実行時間を特定します。

 

1.Azure のポータルで、拡張イベントの出力先となる Blob コンテナへの接続先情報を取得します。

拡張イベント出力先の Blob コンテナの URL と SAS(Shared Access Signature)を Azure のポータルから取得します。

 

image

 

2.  1 で取得した情報をもとに、Azure SQL Database から Blob コンテナに接続する為の資格情報を作成します。

SQL Server Management Studio を開き、クエリを実行します。(ここだけ唯一 GUI では設定できない部分です)

※今回使用している SQL Server Management Studio のバージョンは 13.0.15900.1 です。バージョンの確認は、[ヘルプ]ー[バージョン情報]で確認可能です。

 

image

 

3.  拡張イベントの設定を実施します。

SQL Server Management Studio を使って実施していきます。

image

 

image

  • sp_statement_completed : ストアド プロシージャ内のステートメントが完了した時に発生するイベント
  • sql_statement_completed : Transact-SQL ステートメントが完了した時に発生するイベント

 

image

 

image

 

image

 

4. 拡張イベントを開始し、イベント ファイルを取得します。その後、イベント ファイルを使って、クエリの実行時間を特定します。

 

image

 

image

 

拡張イベントは SQL Server でも、SQL Server 2008 以降で使える大変便利な情報収集ツールです。

是非これを機会に使い方をマスターして、SQL Server でもご利用下さい。

MSDN Blogs: HLK Compatibility Program Playlist and Additional Qualification Update for November 15th, 2016

$
0
0

The Windows Hardware Compatibility Program uses an official playlist to determine which tests must be successfully completed for devices and systems to be compatible with Windows 10 and Windows Server 2016. The latest playlist can be downloaded at https://sysdev.microsoft.com/en-US/Hardware/compatibilityplaylists.

This playlist is optional for the next 90 days, after which it will be required by the Hardware Developer Portal, and previous playlists will no longer be accepted. Published playlists can be used for submissions for 90 days after the next playlist update.

 

Note: This playlist must be used with version 1607 of the Windows HLK.

 

Jobs removed from the playlist:

  • Camera Driver Test –  Video Capture (Record) – Record 30 seconds of 480p Video from Capture pin to H264 file (Video Only)
  • Camera Driver Test – Video Capture (Record) – Record 30 seconds of 720p Video from Capture pin to H264 file (Video Only)

 

New Additional Qualifications for Windows Server 2016

With this playlist, two new Additional Qualifications (AQs) can be earned and are described below. For these AQs, the Windows Server Catalog will display the appropriate designations on devices or systems that pass the associated tests.

  1. Firmware Update Capable
    Disk Drives that can update firmware while running without requiring a power cycle.
    SAS, SATA, and NVMe Storage devices may be optionally tested for Firmware Update Capability. If this AQ is sought for SAS devices, you must manually add the If Implemented Device.Storage.Hd.FirmwareUpdate feature to run the corresponding test.
  2. Nano Server Capable
    Devices and systems that are verified to run Nano Server, the new very-small footprint installation option for Windows Server 2016.
    Network adapters, Storage adapters, USB components and “Other” (a.k.a. Unclassified) products can be optionally tested running Nano Server. To receive the Nano Server AQ, you must manually add the If Implemented DevFund.Server.Nano feature, which will avoid having unneeded tests scheduled.

 

This playlist enables these new tests:

Note: For Windows Server 2016 certification, Quick Path offerings, Software Defined Data Center (SDDC) Standard or Premium certifications, or Azure Stack certification testing, Microsoft recommends that this playlist be used along with the latest October Update (10D) update (https://support.microsoft.com/en-us/kb/3197954) to Windows Server 2016.

 

Additional references:

The policies and processes for certification testing, product submission and business requirements can be found at http://go.microsoft.com/fwlink/p/?LinkID=615222.

The HLK requirements can be found at https://msdn.microsoft.com/en-us/windows/hardware/commercialize/design/compatibility/index.

MSDN Blogs: Application Insights Planned Maintenance – 11/15 – Initial Notice

$
0
0
Planned Maintenance: 14:00 – 20:00 UTC, 18 November 2016

Network team will be performing a planned network maintenance, which will affect Application Insights Availability Web Test feature in Moscow location. During the maintenance window, network team will be replacing a component of physical hardware.

During this timeframe customers will experience availability data gaps in Moscow location. We will take every effort to limit the amount of impact to customer availability tests, but customers should ensure their availability tests are running from at least three locations to ensure redundant coverage through maintenance. Please refer to the following article on how to configure availability web tests: https://azure.microsoft.com/en-us/documentation/articles/app-insights-monitor-web-app-availability/

We apologize for any inconvenience.

-Vitaliy

Viewing all 3015 articles
Browse latest View live