

<!-- DFS ActiveDisclosure(SM) XBRL Linkbase Document - http://www.dfsco.com/financial-services/ -->
<!-- Creation Date      : 2019-01-29T13:38:30.5631580+00:00 -->
<!-- Version            : 3.3.6957.35136 -->
<!-- Package ID         : 893b63d8c29342e380c75af11e212c05 -->
<!-- Copyright (c) 2019 Donnelley Financial, LLC. All Rights Reserved. -->
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" arcroleURI="http://xbrl.org/int/dim/arcrole/all" />
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" />
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" />
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" />
  <arcroleRef xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" />
  <roleRef xlink:type="simple" xlink:href="msft-20181231.xsd#TemplateLink" roleURI="http://www.microsoft.com/20181231/role/TemplateLink" />
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/StatementINCOMESTATEMENTS" xlink:href="msft-20181231.xsd#Role_StatementINCOMESTATEMENTS" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/StatementINCOMESTATEMENTS">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" xlink:type="locator" xlink:label="us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" xlink:type="locator" xlink:label="us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" xlink:type="locator" xlink:label="us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareDiluted" xlink:type="locator" xlink:label="us-gaap_EarningsPerShareDiluted" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasic" xlink:type="locator" xlink:label="us-gaap_EarningsPerShareBasic" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareAbstract" xlink:type="locator" xlink:label="us-gaap_EarningsPerShareAbstract" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:type="locator" xlink:label="us-gaap_NetIncomeLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:type="locator" xlink:label="us-gaap_IncomeTaxExpenseBenefit" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" xlink:type="locator" xlink:label="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonoperatingIncomeExpense" xlink:type="locator" xlink:label="us-gaap_NonoperatingIncomeExpense" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:type="locator" xlink:label="us-gaap_OperatingIncomeLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:type="locator" xlink:label="us-gaap_GeneralAndAdministrativeExpense" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SellingAndMarketingExpense" xlink:type="locator" xlink:label="us-gaap_SellingAndMarketingExpense" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:type="locator" xlink:label="us-gaap_ResearchAndDevelopmentExpense" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GrossProfit" xlink:type="locator" xlink:label="us-gaap_GrossProfit" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfGoodsAndServicesSold" xlink:type="locator" xlink:label="us-gaap_CostOfGoodsAndServicesSold" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="locator" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ServiceOtherMember" xlink:type="locator" xlink:label="us-gaap_ServiceOtherMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProductMember" xlink:type="locator" xlink:label="us-gaap_ProductMember" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:type="locator" xlink:label="srt_ProductsAndServicesDomain" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:type="locator" xlink:label="srt_ProductsAndServicesDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:type="locator" xlink:label="srt_ProductOrServiceAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:type="locator" xlink:label="us-gaap_StatementTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:type="locator" xlink:label="us-gaap_StatementLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="10110.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="srt_ProductOrServiceAxis" order="10140.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_ProductOrServiceAxis" xlink:to="srt_ProductsAndServicesDomain_2" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_ProductOrServiceAxis" xlink:to="srt_ProductsAndServicesDomain" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="us-gaap_ProductMember" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="us-gaap_ServiceOtherMember" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" order="10280.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CostOfGoodsAndServicesSold" order="10520.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_GrossProfit" order="10760.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ResearchAndDevelopmentExpense" order="10840.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_SellingAndMarketingExpense" order="10920.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_GeneralAndAdministrativeExpense" order="11000.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OperatingIncomeLoss" order="11080.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NonoperatingIncomeExpense" order="11160.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesMinorityInterestAndIncomeLossFromEquityMethodInvestments" order="11240.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_IncomeTaxExpenseBenefit" order="11320.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NetIncomeLoss" order="11400.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_EarningsPerShareAbstract" order="11480.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EarningsPerShareAbstract" xlink:to="us-gaap_EarningsPerShareBasic" order="11640.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EarningsPerShareAbstract" xlink:to="us-gaap_EarningsPerShareDiluted" order="11720.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" order="11800.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" xlink:to="us-gaap_WeightedAverageNumberOfSharesOutstandingBasic" order="11960.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_WeightedAverageNumberOfSharesOutstandingAbstract" xlink:to="us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding" order="12040.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/StatementSTOCKHOLDERSEQUITYSTATEMENTS" xlink:href="msft-20181231.xsd#Role_StatementSTOCKHOLDERSEQUITYSTATEMENTS" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/StatementSTOCKHOLDERSEQUITYSTATEMENTS">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockDividendsPerShareDeclared" xlink:type="locator" xlink:label="us-gaap_CommonStockDividendsPerShareDeclared" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquityOther" xlink:type="locator" xlink:label="us-gaap_StockholdersEquityOther" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" xlink:type="locator" xlink:label="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification" xlink:type="locator" xlink:label="us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:type="locator" xlink:label="us-gaap_StockRepurchasedDuringPeriodValue" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DividendsCommonStockCash" xlink:type="locator" xlink:label="us-gaap_DividendsCommonStockCash" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:type="locator" xlink:label="us-gaap_NetIncomeLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodValueNewIssues" xlink:type="locator" xlink:label="us-gaap_StockIssuedDuringPeriodValueNewIssues" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:type="locator" xlink:label="us-gaap_StockholdersEquity" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsMember" xlink:type="locator" xlink:label="us-gaap_RetainedEarningsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember" xlink:type="locator" xlink:label="us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:type="locator" xlink:label="us-gaap_EquityComponentDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:type="locator" xlink:label="us-gaap_EquityComponentDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:type="locator" xlink:label="us-gaap_StatementEquityComponentsAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:type="locator" xlink:label="us-gaap_StatementTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:type="locator" xlink:label="us-gaap_StatementLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_StatementEquityComponentsAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_CommonStockIncludingAdditionalPaidInCapitalMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_RetainedEarningsMember" order="10290.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeMember" order="10430.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockholdersEquity" order="10700.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockIssuedDuringPeriodValueNewIssues" order="10780.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NetIncomeLoss" order="10860.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" order="10940.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_DividendsCommonStockCash" order="11020.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockRepurchasedDuringPeriodValue" order="11100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification" order="11180.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue" order="11260.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StockholdersEquityOther" order="11340.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_CommonStockDividendsPerShareDeclared" order="13180.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureOTHERINCOMEEXPENSENETTables" xlink:href="msft-20181231.xsd#Role_DisclosureOTHERINCOMEEXPENSENETTables" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureOTHERINCOMEEXPENSENETTables">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnInvestmentsTextBlock" xlink:type="locator" xlink:label="us-gaap_GainLossOnInvestmentsTextBlock" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RealizedGainLossOnInvestmentsTableTextBlock" xlink:type="locator" xlink:label="us-gaap_RealizedGainLossOnInvestmentsTableTextBlock" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock" xlink:type="locator" xlink:label="us-gaap_ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesMember" xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:type="locator" xlink:label="us-gaap_StatementTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:type="locator" xlink:label="us-gaap_StatementLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_InvestmentTypeAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_DebtSecuritiesMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_EquitySecuritiesMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ScheduleOfOtherNonoperatingIncomeExpenseTableTextBlock" order="10180.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_RealizedGainLossOnInvestmentsTableTextBlock" order="10230.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_GainLossOnInvestmentsTextBlock" order="10280.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureDERIVATIVESTables" xlink:href="msft-20181231.xsd#Role_DisclosureDERIVATIVESTables" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureDERIVATIVESTables">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock" xlink:type="locator" xlink:label="us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock" xlink:type="locator" xlink:label="us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock" xlink:type="locator" xlink:label="us-gaap_ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NondesignatedMember" xlink:type="locator" xlink:label="us-gaap_NondesignatedMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:type="locator" xlink:label="us-gaap_CashFlowHedgingMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:type="locator" xlink:label="us-gaap_FairValueHedgingMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:type="locator" xlink:label="us-gaap_HedgingRelationshipDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:type="locator" xlink:label="us-gaap_HedgingRelationshipDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:type="locator" xlink:label="us-gaap_StatementTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:type="locator" xlink:label="us-gaap_StatementLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:to="us-gaap_HedgingRelationshipDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:to="us-gaap_HedgingRelationshipDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingRelationshipDomain" xlink:to="us-gaap_FairValueHedgingMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingRelationshipDomain" xlink:to="us-gaap_CashFlowHedgingMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_HedgingDesignationAxis" order="10160.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_HedgingDesignationAxis" xlink:to="us-gaap_HedgingDesignationDomain_2" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_HedgingDesignationAxis" xlink:to="us-gaap_HedgingDesignationDomain" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingDesignationDomain" xlink:to="us-gaap_NondesignatedMember" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ScheduleOfNotionalAmountsOfOutstandingDerivativePositionsTableTextBlock" order="10240.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ScheduleOfDerivativeInstrumentsInStatementOfFinancialPositionFairValueTextBlock" order="10290.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ScheduleOfDerivativeInstrumentsGainLossInStatementOfFinancialPerformanceTextBlock" order="10400.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureBUSINESSCOMBINATIONSTables" xlink:href="msft-20181231.xsd#Role_DisclosureBUSINESSCOMBINATIONSTables" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureBUSINESSCOMBINATIONSTables">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetsByMajorClassTextBlock" xlink:type="locator" xlink:label="us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetsByMajorClassTextBlock" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock" xlink:type="locator" xlink:label="us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock" />
    <loc xlink:href="msft-20181231.xsd#msft_GitHubIncMember" xlink:type="locator" xlink:label="msft_GitHubIncMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAcquireeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAcquireeDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:type="locator" xlink:label="us-gaap_StatementTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:type="locator" xlink:label="us-gaap_StatementLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_StatementTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_StatementTable" xlink:to="us-gaap_BusinessAcquisitionAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_BusinessAcquisitionAxis" xlink:to="us-gaap_BusinessAcquisitionAcquireeDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BusinessAcquisitionAxis" xlink:to="us-gaap_BusinessAcquisitionAcquireeDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionAcquireeDomain" xlink:to="msft_GitHubIncMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTextBlock" order="10180.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_StatementLineItems" xlink:to="us-gaap_ScheduleOfAcquiredFiniteLivedIntangibleAssetsByMajorClassTextBlock" order="10230.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureAccountingPoliciesAdditionalInformationDetail" xlink:href="msft-20181231.xsd#Role_DisclosureAccountingPoliciesAdditionalInformationDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureAccountingPoliciesAdditionalInformationDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherAssetsCurrent" xlink:type="locator" xlink:label="us-gaap_OtherAssetsCurrent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxLiabilitiesNoncurrent" xlink:type="locator" xlink:label="us-gaap_DeferredTaxLiabilitiesNoncurrent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredTaxAssetsNetNoncurrent" xlink:type="locator" xlink:label="us-gaap_DeferredTaxAssetsNetNoncurrent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:type="locator" xlink:label="us-gaap_RetainedEarningsAccumulatedDeficit" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountsReceivableNetNoncurrent" xlink:type="locator" xlink:label="us-gaap_AccountsReceivableNetNoncurrent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccountingStandardsUpdate201616Member" xlink:type="locator" xlink:label="us-gaap_AccountingStandardsUpdate201616Member" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:type="locator" xlink:label="us-gaap_TypeOfAdoptionMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TypeOfAdoptionMember" xlink:type="locator" xlink:label="us-gaap_TypeOfAdoptionMember_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:type="locator" xlink:label="us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_SignificantAccountingPoliciesTable" xlink:type="locator" xlink:label="msft_SignificantAccountingPoliciesTable" />
    <loc xlink:href="msft-20181231.xsd#msft_SignificantAccountingPoliciesLineItems" xlink:type="locator" xlink:label="msft_SignificantAccountingPoliciesLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_SignificantAccountingPoliciesLineItems" xlink:to="msft_SignificantAccountingPoliciesTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_SignificantAccountingPoliciesTable" xlink:to="us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:to="us-gaap_TypeOfAdoptionMember_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_AdjustmentsForNewAccountingPronouncementsAxis" xlink:to="us-gaap_TypeOfAdoptionMember" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TypeOfAdoptionMember" xlink:to="us-gaap_AccountingStandardsUpdate201616Member" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_SignificantAccountingPoliciesLineItems" xlink:to="us-gaap_AccountsReceivableNetNoncurrent" order="10120.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_SignificantAccountingPoliciesLineItems" xlink:to="us-gaap_RetainedEarningsAccumulatedDeficit" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_SignificantAccountingPoliciesLineItems" xlink:to="us-gaap_DeferredTaxAssetsNetNoncurrent" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_SignificantAccountingPoliciesLineItems" xlink:to="us-gaap_DeferredTaxLiabilitiesNoncurrent" order="10230.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_SignificantAccountingPoliciesLineItems" xlink:to="us-gaap_OtherAssetsCurrent" order="10250.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureNetRecognizedGainsLossesOnDebtInvestmentsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureNetRecognizedGainsLossesOnDebtInvestmentsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureNetRecognizedGainsLossesOnDebtInvestmentsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnInvestments" xlink:type="locator" xlink:label="us-gaap_GainLossOnInvestments" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairmentOfInvestments" xlink:type="locator" xlink:label="us-gaap_ImpairmentOfInvestments" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGain" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleRealizedGain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGainLossOnInvestmentsTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfGainLossOnInvestmentsTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:type="locator" xlink:label="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_ScheduleOfGainLossOnInvestmentsTable" order="10040.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsTable" xlink:to="us-gaap_InvestmentTypeAxis" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" order="10100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_DebtSecuritiesMember" order="10120.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleRealizedGain" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleRealizedLoss" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_ImpairmentOfInvestments" order="10330.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_GainLossOnInvestments" order="10410.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureNetRecognizedGainsLossesOnEquityInvestmentsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureNetRecognizedGainsLossesOnEquityInvestmentsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureNetRecognizedGainsLossesOnEquityInvestmentsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnInvestments" xlink:type="locator" xlink:label="us-gaap_GainLossOnInvestments" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ImpairmentOfInvestments" xlink:type="locator" xlink:label="us-gaap_ImpairmentOfInvestments" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss" xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesFvNiRealizedGainLoss" xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesFvNiRealizedGainLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesMember" xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGainLossOnInvestmentsTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfGainLossOnInvestmentsTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:type="locator" xlink:label="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_ScheduleOfGainLossOnInvestmentsTable" order="10040.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsTable" xlink:to="us-gaap_InvestmentTypeAxis" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" order="10100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_EquitySecuritiesMember" order="10120.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_EquitySecuritiesFvNiRealizedGainLoss" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_EquitySecuritiesFvNiUnrealizedGainLoss" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_ImpairmentOfInvestments" order="10330.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ScheduleOfGainLossOnInvestmentsIncludingMarketableSecuritiesAndInvestmentsHeldAtCostIncomeStatementReportedAmountsSummaryLineItems" xlink:to="us-gaap_GainLossOnInvestments" order="10410.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureInvestmentComponentsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureInvestmentComponentsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureInvestmentComponentsDetail">
    <loc xlink:href="msft-20181231.xsd#msft_CashCashEquivalentsAndInvestments" xlink:type="locator" xlink:label="msft_CashCashEquivalentsAndInvestments" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermInvestments" xlink:type="locator" xlink:label="us-gaap_LongTermInvestments" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermInvestments" xlink:type="locator" xlink:label="us-gaap_ShortTermInvestments" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:type="locator" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:type="locator" xlink:label="us-gaap_DerivativeAssets" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Cash" xlink:type="locator" xlink:label="us-gaap_Cash" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesFvNi" xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesFvNi" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:type="locator" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtSecurities" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:type="locator" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:type="locator" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:type="locator" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeMember" xlink:type="locator" xlink:label="us-gaap_DerivativeMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashMember" xlink:type="locator" xlink:label="us-gaap_CashMember" />
    <loc xlink:href="msft-20181231.xsd#msft_OtherMeasurementMember" xlink:type="locator" xlink:label="msft_OtherMeasurementMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:type="locator" xlink:label="us-gaap_MeasurementInputTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeDomain" xlink:type="locator" xlink:label="us-gaap_MeasurementInputTypeDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MeasurementInputTypeAxis" xlink:type="locator" xlink:label="us-gaap_MeasurementInputTypeAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesMember" xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel3Member" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel1Member" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel2Member" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:type="locator" xlink:label="us-gaap_FairValueByFairValueHierarchyLevelAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:type="locator" xlink:label="us-gaap_USStatesAndPoliticalSubdivisionsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_CorporateDebtSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_AssetBackedSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignGovernmentDebtSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_ForeignGovernmentDebtSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USGovernmentAgenciesDebtSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_USGovernmentAgenciesDebtSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasurySecuritiesMember" xlink:type="locator" xlink:label="us-gaap_USTreasurySecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CertificatesOfDepositMember" xlink:type="locator" xlink:label="us-gaap_CertificatesOfDepositMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPaperMember" xlink:type="locator" xlink:label="us-gaap_CommercialPaperMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:type="locator" xlink:label="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByAssetClassAxis" xlink:type="locator" xlink:label="us-gaap_FairValueByAssetClassAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_CashCashEquivalentsAndInvestmentsTable" xlink:type="locator" xlink:label="msft_CashCashEquivalentsAndInvestmentsTable" />
    <loc xlink:href="msft-20181231.xsd#msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:type="locator" xlink:label="msft_CashCashEquivalentsAndInvestmentsLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="msft_CashCashEquivalentsAndInvestmentsTable" order="10070.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_CashCashEquivalentsAndInvestmentsTable" xlink:to="us-gaap_FairValueByAssetClassAxis" order="10100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByAssetClassAxis" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain_2" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByAssetClassAxis" xlink:to="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueAssetsMeasuredOnRecurringBasisUnobservableInputReconciliationByAssetClassDomain" xlink:to="us-gaap_DebtSecuritiesMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_CashCashEquivalentsAndInvestmentsTable" xlink:to="us-gaap_InvestmentTypeAxis" order="10340.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" order="10370.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_CommercialPaperMember" order="10390.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_CertificatesOfDepositMember" order="10410.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_USTreasurySecuritiesMember" order="10430.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_USGovernmentAgenciesDebtSecuritiesMember" order="10450.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_ForeignGovernmentDebtSecuritiesMember" order="10470.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_AssetBackedSecuritiesMember" order="10490.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_CorporateDebtSecuritiesMember" order="10510.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_USStatesAndPoliticalSubdivisionsMember" order="10550.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_CashCashEquivalentsAndInvestmentsTable" xlink:to="us-gaap_FairValueByFairValueHierarchyLevelAxis" order="10560.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain_2" order="10570.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" order="10590.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel2Member" order="10610.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel1Member" order="10650.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel3Member" order="10750.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_EquitySecuritiesMember" order="10830.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_CashCashEquivalentsAndInvestmentsTable" xlink:to="us-gaap_MeasurementInputTypeAxis" order="10940.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_MeasurementInputTypeAxis" xlink:to="us-gaap_MeasurementInputTypeDomain_2" order="10950.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_MeasurementInputTypeAxis" xlink:to="us-gaap_MeasurementInputTypeDomain" order="10970.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_MeasurementInputTypeDomain" xlink:to="msft_OtherMeasurementMember" order="10990.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_CashMember" order="11050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_DerivativeMember" order="11110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" order="12260.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" order="12660.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" order="13060.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtSecurities" order="13460.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_EquitySecuritiesFvNi" order="13860.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_Cash" order="14260.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_DerivativeAssets" order="14660.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue" order="15060.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_ShortTermInvestments" order="15460.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="us-gaap_LongTermInvestments" order="15860.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_CashCashEquivalentsAndInvestmentsLineItems" xlink:to="msft_CashCashEquivalentsAndInvestments" order="21180.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureInvestmentsAdditionalInformationDetail" xlink:href="msft-20181231.xsd#Role_DisclosureInvestmentsAdditionalInformationDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureInvestmentsAdditionalInformationDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SecuritiesReceivedAsCollateral" xlink:type="locator" xlink:label="us-gaap_SecuritiesReceivedAsCollateral" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" xlink:type="locator" xlink:label="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:type="locator" xlink:label="us-gaap_USTreasuryAndGovernmentMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeAxis" />
    <loc xlink:href="https://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentTable" xlink:type="locator" xlink:label="invest_InvestmentTable" />
    <loc xlink:href="https://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentLineItems" xlink:type="locator" xlink:label="invest_InvestmentLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="invest_InvestmentLineItems" xlink:to="invest_InvestmentTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="invest_InvestmentTable" xlink:to="us-gaap_InvestmentTypeAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_USTreasuryAndGovernmentMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentLineItems" xlink:to="us-gaap_EquitySecuritiesWithoutReadilyDeterminableFairValueAmount" order="10140.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="invest_InvestmentLineItems" xlink:to="us-gaap_SecuritiesReceivedAsCollateral" order="10210.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureUnrealizedLossesOnDebtInvestmentsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureUnrealizedLossesOnDebtInvestmentsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureUnrealizedLossesOnDebtInvestmentsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" xlink:type="locator" xlink:label="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USStatesAndPoliticalSubdivisionsMember" xlink:type="locator" xlink:label="us-gaap_USStatesAndPoliticalSubdivisionsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_CorporateDebtSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AssetBackedSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_AssetBackedSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignGovernmentDebtSecuritiesMember" xlink:type="locator" xlink:label="us-gaap_ForeignGovernmentDebtSecuritiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:type="locator" xlink:label="us-gaap_USTreasuryAndGovernmentMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeCategorizationMember" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeCategorizationMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InvestmentTypeAxis" xlink:type="locator" xlink:label="us-gaap_InvestmentTypeAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_InvestmentsUnrealizedLossPositionTable" xlink:type="locator" xlink:label="msft_InvestmentsUnrealizedLossPositionTable" />
    <loc xlink:href="msft-20181231.xsd#msft_InvestmentsUnrealizedLossPositionLineItems" xlink:type="locator" xlink:label="msft_InvestmentsUnrealizedLossPositionLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_InvestmentsUnrealizedLossPositionLineItems" xlink:to="msft_InvestmentsUnrealizedLossPositionTable" order="10050.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_InvestmentsUnrealizedLossPositionTable" xlink:to="us-gaap_InvestmentTypeAxis" order="10080.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_InvestmentTypeAxis" xlink:to="us-gaap_InvestmentTypeCategorizationMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_USTreasuryAndGovernmentMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_ForeignGovernmentDebtSecuritiesMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_AssetBackedSecuritiesMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_CorporateDebtSecuritiesMember" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_InvestmentTypeCategorizationMember" xlink:to="us-gaap_USStatesAndPoliticalSubdivisionsMember" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_InvestmentsUnrealizedLossPositionLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months" order="10380.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_InvestmentsUnrealizedLossPositionLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss" order="10560.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_InvestmentsUnrealizedLossPositionLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger" order="10740.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_InvestmentsUnrealizedLossPositionLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss" order="10920.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_InvestmentsUnrealizedLossPositionLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition" order="11100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_InvestmentsUnrealizedLossPositionLineItems" xlink:to="us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss" order="11280.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureDerivativesAdditionalInformationDetail" xlink:href="msft-20181231.xsd#Role_DisclosureDerivativesAdditionalInformationDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureDerivativesAdditionalInformationDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months" xlink:type="locator" xlink:label="us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeLiability" xlink:type="locator" xlink:label="us-gaap_DerivativeFairValueOfDerivativeLiability" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeFairValueOfDerivativeAsset" xlink:type="locator" xlink:label="us-gaap_DerivativeFairValueOfDerivativeAsset" />
    <loc xlink:href="msft-20181231.xsd#msft_FinancialInstrumentCovenantMinimumLiquidity" xlink:type="locator" xlink:label="msft_FinancialInstrumentCovenantMinimumLiquidity" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentCreditRating" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentCreditRating" />
    <loc xlink:href="msft-20181231.xsd#msft_FinancialInstrumentCovenantMinimumLiquidityRequirement" xlink:type="locator" xlink:label="msft_FinancialInstrumentCovenantMinimumLiquidityRequirement" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnsecuredDebtMember" xlink:type="locator" xlink:label="us-gaap_UnsecuredDebtMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:type="locator" xlink:label="us-gaap_LongtermDebtTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeDomain" xlink:type="locator" xlink:label="us-gaap_LongtermDebtTypeDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongtermDebtTypeAxis" xlink:type="locator" xlink:label="us-gaap_LongtermDebtTypeAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeTable" xlink:type="locator" xlink:label="us-gaap_DerivativeTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLineItems" xlink:type="locator" xlink:label="us-gaap_DerivativeLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DerivativeLineItems" xlink:to="us-gaap_DerivativeTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeTable" xlink:to="us-gaap_LongtermDebtTypeAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LongtermDebtTypeAxis" xlink:to="us-gaap_LongtermDebtTypeDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LongtermDebtTypeAxis" xlink:to="us-gaap_LongtermDebtTypeDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LongtermDebtTypeDomain" xlink:to="us-gaap_UnsecuredDebtMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeLineItems" xlink:to="msft_FinancialInstrumentCovenantMinimumLiquidityRequirement" order="10120.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeLineItems" xlink:to="us-gaap_DebtInstrumentCreditRating" order="10160.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeLineItems" xlink:to="msft_FinancialInstrumentCovenantMinimumLiquidity" order="10200.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeLineItems" xlink:to="us-gaap_DerivativeFairValueOfDerivativeAsset" order="10270.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeLineItems" xlink:to="us-gaap_DerivativeFairValueOfDerivativeLiability" order="10310.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeLineItems" xlink:to="us-gaap_ForeignCurrencyCashFlowHedgeGainLossToBeReclassifiedDuringNext12Months" order="10380.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureNotionalAmountsOfOutstandingDerivativeInstrumentsMeasuredInUSDollarEquivalentsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureNotionalAmountsOfOutstandingDerivativeInstrumentsMeasuredInUSDollarEquivalentsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureNotionalAmountsOfOutstandingDerivativeInstrumentsMeasuredInUSDollarEquivalentsDetail">
    <loc xlink:href="https://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_DerivativeNotionalAmount" xlink:type="locator" xlink:label="invest_DerivativeNotionalAmount" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortMember" xlink:type="locator" xlink:label="us-gaap_ShortMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongMember" xlink:type="locator" xlink:label="us-gaap_LongMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PositionDomain" xlink:type="locator" xlink:label="us-gaap_PositionDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PositionDomain" xlink:type="locator" xlink:label="us-gaap_PositionDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PositionAxis" xlink:type="locator" xlink:label="us-gaap_PositionAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherContractMember" xlink:type="locator" xlink:label="us-gaap_OtherContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityContractMember" xlink:type="locator" xlink:label="us-gaap_EquityContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:type="locator" xlink:label="us-gaap_ForeignExchangeContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:type="locator" xlink:label="us-gaap_DerivativeContractTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:type="locator" xlink:label="us-gaap_DerivativeContractTypeDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentRiskAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NondesignatedMember" xlink:type="locator" xlink:label="us-gaap_NondesignatedMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:type="locator" xlink:label="us-gaap_DesignatedAsHedgingInstrumentMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeTable" xlink:type="locator" xlink:label="us-gaap_DerivativeTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLineItems" xlink:type="locator" xlink:label="us-gaap_DerivativeLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DerivativeLineItems" xlink:to="us-gaap_DerivativeTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeTable" xlink:to="us-gaap_HedgingDesignationAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_HedgingDesignationAxis" xlink:to="us-gaap_HedgingDesignationDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingDesignationDomain" xlink:to="us-gaap_DesignatedAsHedgingInstrumentMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingDesignationDomain" xlink:to="us-gaap_NondesignatedMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeTable" xlink:to="us-gaap_DerivativeInstrumentRiskAxis" order="10240.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_DerivativeInstrumentRiskAxis" xlink:to="us-gaap_DerivativeContractTypeDomain_2" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DerivativeInstrumentRiskAxis" xlink:to="us-gaap_DerivativeContractTypeDomain" order="10270.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_ForeignExchangeContractMember" order="10290.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_EquityContractMember" order="10370.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_OtherContractMember" order="10390.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeTable" xlink:to="us-gaap_PositionAxis" order="10440.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_PositionAxis" xlink:to="us-gaap_PositionDomain_2" order="10450.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_PositionAxis" xlink:to="us-gaap_PositionDomain" order="10470.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PositionDomain" xlink:to="us-gaap_LongMember" order="10490.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_PositionDomain" xlink:to="us-gaap_ShortMember" order="10510.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeLineItems" xlink:to="invest_DerivativeNotionalAmount" order="10660.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureFairValuesOfDerivativeInstrumentsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureFairValuesOfDerivativeInstrumentsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureFairValuesOfDerivativeInstrumentsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilities" xlink:type="locator" xlink:label="us-gaap_DerivativeLiabilities" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralObligationToReturnCash" xlink:type="locator" xlink:label="us-gaap_DerivativeCollateralObligationToReturnCash" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossAsset" xlink:type="locator" xlink:label="us-gaap_DerivativeLiabilityFairValueGrossAsset" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement" xlink:type="locator" xlink:label="us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssets" xlink:type="locator" xlink:label="us-gaap_DerivativeAssets" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeCollateralRightToReclaimCash" xlink:type="locator" xlink:label="us-gaap_DerivativeCollateralRightToReclaimCash" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossLiability" xlink:type="locator" xlink:label="us-gaap_DerivativeAssetFairValueGrossLiability" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement" xlink:type="locator" xlink:label="us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel3Member" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel2Member" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:type="locator" xlink:label="us-gaap_FairValueInputsLevel1Member" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:type="locator" xlink:label="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:type="locator" xlink:label="us-gaap_FairValueByFairValueHierarchyLevelAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoncurrentLiabilitiesMember" xlink:type="locator" xlink:label="us-gaap_OtherNoncurrentLiabilitiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCurrentLiabilitiesMember" xlink:type="locator" xlink:label="us-gaap_OtherCurrentLiabilitiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueHedgingMember" xlink:type="locator" xlink:label="us-gaap_FairValueHedgingMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashFlowHedgingMember" xlink:type="locator" xlink:label="us-gaap_CashFlowHedgingMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingRelationshipDomain" xlink:type="locator" xlink:label="us-gaap_HedgingRelationshipDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherContractMember" xlink:type="locator" xlink:label="us-gaap_OtherContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityContractMember" xlink:type="locator" xlink:label="us-gaap_EquityContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:type="locator" xlink:label="us-gaap_ForeignExchangeContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:type="locator" xlink:label="us-gaap_DerivativeContractTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentRiskAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NondesignatedMember" xlink:type="locator" xlink:label="us-gaap_NondesignatedMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:type="locator" xlink:label="us-gaap_DesignatedAsHedgingInstrumentMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoncurrentAssetsMember" xlink:type="locator" xlink:label="us-gaap_OtherNoncurrentAssetsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCurrentAssetsMember" xlink:type="locator" xlink:label="us-gaap_OtherCurrentAssetsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermInvestmentsMember" xlink:type="locator" xlink:label="us-gaap_ShortTermInvestmentsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:type="locator" xlink:label="us-gaap_BalanceSheetLocationDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:type="locator" xlink:label="us-gaap_BalanceSheetLocationDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:type="locator" xlink:label="us-gaap_BalanceSheetLocationAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:type="locator" xlink:label="us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativesFairValueLineItems" xlink:type="locator" xlink:label="us-gaap_DerivativesFairValueLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" order="10070.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:to="us-gaap_BalanceSheetLocationAxis" order="10100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain_2" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_ShortTermInvestmentsMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_OtherCurrentAssetsMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_OtherNoncurrentAssetsMember" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:to="us-gaap_HedgingDesignationAxis" order="10200.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_HedgingDesignationAxis" xlink:to="us-gaap_HedgingDesignationDomain" order="10230.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingDesignationDomain" xlink:to="us-gaap_DesignatedAsHedgingInstrumentMember" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingDesignationDomain" xlink:to="us-gaap_NondesignatedMember" order="10290.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:to="us-gaap_DerivativeInstrumentRiskAxis" order="10340.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DerivativeInstrumentRiskAxis" xlink:to="us-gaap_DerivativeContractTypeDomain" order="10370.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_ForeignExchangeContractMember" order="10390.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_EquityContractMember" order="10450.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_OtherContractMember" order="10470.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:to="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" order="10480.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipAxis" xlink:to="us-gaap_HedgingRelationshipDomain" order="10510.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingRelationshipDomain" xlink:to="us-gaap_CashFlowHedgingMember" order="10530.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingRelationshipDomain" xlink:to="us-gaap_FairValueHedgingMember" order="10550.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_OtherCurrentLiabilitiesMember" order="10610.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_OtherNoncurrentLiabilitiesMember" order="10630.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FairValuesDerivativesBalanceSheetLocationByDerivativeContractTypeByHedgingDesignationTable" xlink:to="us-gaap_FairValueByFairValueHierarchyLevelAxis" order="11000.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:to="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" order="11030.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel1Member" order="11050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel2Member" order="11070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:to="us-gaap_FairValueInputsLevel3Member" order="11090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_DerivativeAssetFairValueGrossAssetIncludingNotSubjectToMasterNettingArrangement" order="11120.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_DerivativeAssetFairValueGrossLiability" order="11360.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_DerivativeCollateralRightToReclaimCash" order="11400.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_DerivativeAssets" order="11440.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_DerivativeLiabilityFairValueGrossLiabilityIncludingNotSubjectToMasterNettingArrangement" order="11670.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_DerivativeLiabilityFairValueGrossAsset" order="11910.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_DerivativeCollateralObligationToReturnCash" order="11950.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativesFairValueLineItems" xlink:to="us-gaap_DerivativeLiabilities" order="11990.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureGainsLossesOnFairValueHedgesAndRelatedHedgedItemsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureGainsLossesOnFairValueHedgesAndRelatedHedgedItemsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureGainsLossesOnFairValueHedgesAndRelatedHedgedItemsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossFromComponentsExcludedFromAssessmentOfFairValueHedgeEffectivenessNet" xlink:type="locator" xlink:label="us-gaap_GainLossFromComponentsExcludedFromAssessmentOfFairValueHedgeEffectivenessNet" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GainLossOnFairValueHedgeIneffectivenessNet" xlink:type="locator" xlink:label="us-gaap_GainLossOnFairValueHedgeIneffectivenessNet" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1" xlink:type="locator" xlink:label="us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1" xlink:type="locator" xlink:label="us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityContractMember" xlink:type="locator" xlink:label="us-gaap_EquityContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:type="locator" xlink:label="us-gaap_ForeignExchangeContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:type="locator" xlink:label="us-gaap_DerivativeContractTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentRiskAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" order="10030.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="us-gaap_DerivativeInstrumentRiskAxis" order="10060.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DerivativeInstrumentRiskAxis" xlink:to="us-gaap_DerivativeContractTypeDomain" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_ForeignExchangeContractMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_EquityContractMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_ChangeInUnrealizedGainLossOnFairValueHedgingInstruments1" order="10260.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_ChangeInUnrealizedGainLossOnHedgedItemInFairValueHedge1" order="10340.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_GainLossOnFairValueHedgeIneffectivenessNet" order="10420.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_GainLossFromComponentsExcludedFromAssessmentOfFairValueHedgeEffectivenessNet" order="10740.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureGainsLossesRelatedToCashFlowHedgesDetail" xlink:href="msft-20181231.xsd#Role_DisclosureGainsLossesRelatedToCashFlowHedgesDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureGainsLossesRelatedToCashFlowHedgesDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNetAbstract" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNetAbstract" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCurrencyCashFlowHedgeGainLossReclassifiedToEarningsNet" xlink:type="locator" xlink:label="us-gaap_ForeignCurrencyCashFlowHedgeGainLossReclassifiedToEarningsNet" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" />
    <loc xlink:href="msft-20181231.xsd#msft_GainLossOnCashFlowHedgeEffectivenessNetAbstract" xlink:type="locator" xlink:label="msft_GainLossOnCashFlowHedgeEffectivenessNetAbstract" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:type="locator" xlink:label="us-gaap_ForeignExchangeContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:type="locator" xlink:label="us-gaap_DerivativeContractTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentRiskAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:type="locator" xlink:label="us-gaap_DesignatedAsHedgingInstrumentMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="us-gaap_HedgingDesignationAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_HedgingDesignationAxis" xlink:to="us-gaap_HedgingDesignationDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingDesignationDomain" xlink:to="us-gaap_DesignatedAsHedgingInstrumentMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="us-gaap_DerivativeInstrumentRiskAxis" order="10140.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DerivativeInstrumentRiskAxis" xlink:to="us-gaap_DerivativeContractTypeDomain" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_ForeignExchangeContractMember" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="msft_GainLossOnCashFlowHedgeEffectivenessNetAbstract" order="10260.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_GainLossOnCashFlowHedgeEffectivenessNetAbstract" xlink:to="us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodNetOfTax" order="10420.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_GainLossOnCashFlowHedgeEffectivenessNetAbstract" xlink:to="us-gaap_ForeignCurrencyCashFlowHedgeGainLossReclassifiedToEarningsNet" order="10500.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNetAbstract" order="10580.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNetAbstract" xlink:to="us-gaap_DerivativeInstrumentsGainLossRecognizedInIncomeIneffectivePortionAndAmountExcludedFromEffectivenessTestingNet" order="10740.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureGainsLossesRelatedToCashFlowHedgesParentheticalDetail" xlink:href="msft-20181231.xsd#Role_DisclosureGainsLossesRelatedToCashFlowHedgesParentheticalDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureGainsLossesRelatedToCashFlowHedgesParentheticalDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax" xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:type="locator" xlink:label="us-gaap_ForeignExchangeContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:type="locator" xlink:label="us-gaap_DerivativeContractTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentRiskAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DesignatedAsHedgingInstrumentMember" xlink:type="locator" xlink:label="us-gaap_DesignatedAsHedgingInstrumentMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationDomain" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_HedgingDesignationAxis" xlink:type="locator" xlink:label="us-gaap_HedgingDesignationAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="us-gaap_HedgingDesignationAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_HedgingDesignationAxis" xlink:to="us-gaap_HedgingDesignationDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_HedgingDesignationDomain" xlink:to="us-gaap_DesignatedAsHedgingInstrumentMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="us-gaap_DerivativeInstrumentRiskAxis" order="10100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DerivativeInstrumentRiskAxis" xlink:to="us-gaap_DerivativeContractTypeDomain" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_ForeignExchangeContractMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeUnrealizedGainLossOnDerivativesArisingDuringPeriodTax" order="10180.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureNonDesignatedDerivativeGainsLossesDetail" xlink:href="msft-20181231.xsd#Role_DisclosureNonDesignatedDerivativeGainsLossesDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureNonDesignatedDerivativeGainsLossesDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherContractMember" xlink:type="locator" xlink:label="us-gaap_OtherContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityContractMember" xlink:type="locator" xlink:label="us-gaap_EquityContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignExchangeContractMember" xlink:type="locator" xlink:label="us-gaap_ForeignExchangeContractMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeContractTypeDomain" xlink:type="locator" xlink:label="us-gaap_DerivativeContractTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentRiskAxis" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentRiskAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:type="locator" xlink:label="us-gaap_DerivativeInstrumentsGainLossLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DerivativeInstrumentsGainLossByHedgingRelationshipByIncomeStatementLocationByDerivativeInstrumentRiskTable" xlink:to="us-gaap_DerivativeInstrumentRiskAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DerivativeInstrumentRiskAxis" xlink:to="us-gaap_DerivativeContractTypeDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_ForeignExchangeContractMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_EquityContractMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeContractTypeDomain" xlink:to="us-gaap_OtherContractMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DerivativeInstrumentsGainLossLineItems" xlink:to="us-gaap_DerivativeInstrumentsNotDesignatedAsHedgingInstrumentsGainLossNet" order="10160.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureBusinessCombinationsAdditionalInformationDetail" xlink:href="msft-20181231.xsd#Role_DisclosureBusinessCombinationsAdditionalInformationDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureBusinessCombinationsAdditionalInformationDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NumberOfBusinessesAcquired" xlink:type="locator" xlink:label="us-gaap_NumberOfBusinessesAcquired" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCosts" xlink:type="locator" xlink:label="us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCosts" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireBusinessesGross" xlink:type="locator" xlink:label="us-gaap_PaymentsToAcquireBusinessesGross" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationConsiderationTransferred1" xlink:type="locator" xlink:label="us-gaap_BusinessCombinationConsiderationTransferred1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SeriesOfIndividuallyImmaterialBusinessAcquisitionsMember" xlink:type="locator" xlink:label="us-gaap_SeriesOfIndividuallyImmaterialBusinessAcquisitionsMember" />
    <loc xlink:href="msft-20181231.xsd#msft_GitHubIncMember" xlink:type="locator" xlink:label="msft_GitHubIncMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAcquireeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:to="us-gaap_BusinessAcquisitionAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BusinessAcquisitionAxis" xlink:to="us-gaap_BusinessAcquisitionAcquireeDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionAcquireeDomain" xlink:to="msft_GitHubIncMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionAcquireeDomain" xlink:to="us-gaap_SeriesOfIndividuallyImmaterialBusinessAcquisitionsMember" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_BusinessAcquisitionEffectiveDateOfAcquisition1" order="10300.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_BusinessCombinationConsiderationTransferred1" order="10320.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_PaymentsToAcquireBusinessesGross" order="10340.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAdditionalDisclosuresAcquisitionCosts" order="10390.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_NumberOfBusinessesAcquired" order="10460.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureMajorClassesOfAssetsAndLiabilitiesAllocatedPurchasePriceDetail" xlink:href="msft-20181231.xsd#Role_DisclosureMajorClassesOfAssetsAndLiabilitiesAllocatedPurchasePriceDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureMajorClassesOfAssetsAndLiabilitiesAllocatedPurchasePriceDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet" xlink:type="locator" xlink:label="us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet" />
    <loc xlink:href="msft-20181231.xsd#msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities" xlink:type="locator" xlink:label="msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities" />
    <loc xlink:href="msft-20181231.xsd#msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets" xlink:type="locator" xlink:label="msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:type="locator" xlink:label="us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:type="locator" xlink:label="us-gaap_Goodwill" />
    <loc xlink:href="msft-20181231.xsd#msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashCashEquivalentsAndShortTermInvestments" xlink:type="locator" xlink:label="msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashCashEquivalentsAndShortTermInvestments" />
    <loc xlink:href="msft-20181231.xsd#msft_GitHubIncMember" xlink:type="locator" xlink:label="msft_GitHubIncMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAcquireeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionLineItems" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" order="10060.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfBusinessAcquisitionsByAcquisitionTable" xlink:to="us-gaap_BusinessAcquisitionAxis" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BusinessAcquisitionAxis" xlink:to="us-gaap_BusinessAcquisitionAcquireeDomain" order="10120.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionAcquireeDomain" xlink:to="msft_GitHubIncMember" order="10140.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedCashCashEquivalentsAndShortTermInvestments" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_Goodwill" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherAssets" order="10230.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="msft_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedOtherLiabilities" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionLineItems" xlink:to="us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredGoodwillAndLiabilitiesAssumedNet" order="10270.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureAcquiredIntangibleAssetsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureAcquiredIntangibleAssetsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureAcquiredIntangibleAssetsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" xlink:type="locator" xlink:label="us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:type="locator" xlink:label="us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractualRightsMember" xlink:type="locator" xlink:label="us-gaap_ContractualRightsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketingRelatedIntangibleAssetsMember" xlink:type="locator" xlink:label="us-gaap_MarketingRelatedIntangibleAssetsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TechnologyBasedIntangibleAssetsMember" xlink:type="locator" xlink:label="us-gaap_TechnologyBasedIntangibleAssetsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:type="locator" xlink:label="us-gaap_CustomerRelationshipsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_GitHubIncMember" xlink:type="locator" xlink:label="msft_GitHubIncMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAcquireeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAcquiredAsPartOfBusinessCombinationTable" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAcquiredAsPartOfBusinessCombinationTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems" xlink:type="locator" xlink:label="us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAcquiredAsPartOfBusinessCombinationTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FiniteLivedIntangibleAssetsAcquiredAsPartOfBusinessCombinationTable" xlink:to="us-gaap_BusinessAcquisitionAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BusinessAcquisitionAxis" xlink:to="us-gaap_BusinessAcquisitionAcquireeDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionAcquireeDomain" xlink:to="msft_GitHubIncMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_FiniteLivedIntangibleAssetsAcquiredAsPartOfBusinessCombinationTable" xlink:to="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" order="10100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_2" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_CustomerRelationshipsMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_TechnologyBasedIntangibleAssetsMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_MarketingRelatedIntangibleAssetsMember" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_ContractualRightsMember" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" order="10240.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AcquiredFiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife" order="10360.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureCarryingAmountOfGoodwillDetail" xlink:href="msft-20181231.xsd#Role_DisclosureCarryingAmountOfGoodwillDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureCarryingAmountOfGoodwillDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillOtherIncreaseDecrease" xlink:type="locator" xlink:label="us-gaap_GoodwillOtherIncreaseDecrease" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillAcquiredDuringPeriod" xlink:type="locator" xlink:label="us-gaap_GoodwillAcquiredDuringPeriod" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:type="locator" xlink:label="us-gaap_Goodwill" />
    <loc xlink:href="msft-20181231.xsd#msft_MorePersonalComputingMember" xlink:type="locator" xlink:label="msft_MorePersonalComputingMember" />
    <loc xlink:href="msft-20181231.xsd#msft_IntelligentCloudMember" xlink:type="locator" xlink:label="msft_IntelligentCloudMember" />
    <loc xlink:href="msft-20181231.xsd#msft_ProductivityAndBusinessProcessesMember" xlink:type="locator" xlink:label="msft_ProductivityAndBusinessProcessesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:type="locator" xlink:label="us-gaap_SegmentDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:type="locator" xlink:label="us-gaap_SegmentDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:type="locator" xlink:label="us-gaap_StatementBusinessSegmentsAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfGoodwillTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:type="locator" xlink:label="us-gaap_GoodwillLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_GoodwillLineItems" xlink:to="us-gaap_ScheduleOfGoodwillTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfGoodwillTable" xlink:to="us-gaap_StatementBusinessSegmentsAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_ProductivityAndBusinessProcessesMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_IntelligentCloudMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_MorePersonalComputingMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_GoodwillLineItems" xlink:to="us-gaap_Goodwill" order="10160.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_GoodwillLineItems" xlink:to="us-gaap_GoodwillAcquiredDuringPeriod" order="10260.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_GoodwillLineItems" xlink:to="us-gaap_GoodwillOtherIncreaseDecrease" order="10360.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureCarryingAmountOfGoodwillParentheticalDetail" xlink:href="msft-20181231.xsd#Role_DisclosureCarryingAmountOfGoodwillParentheticalDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureCarryingAmountOfGoodwillParentheticalDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Goodwill" xlink:type="locator" xlink:label="us-gaap_Goodwill" />
    <loc xlink:href="msft-20181231.xsd#msft_GitHubIncMember" xlink:type="locator" xlink:label="msft_GitHubIncMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAcquireeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfGoodwillTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfGoodwillTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GoodwillLineItems" xlink:type="locator" xlink:label="us-gaap_GoodwillLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_GoodwillLineItems" xlink:to="us-gaap_ScheduleOfGoodwillTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfGoodwillTable" xlink:to="us-gaap_BusinessAcquisitionAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BusinessAcquisitionAxis" xlink:to="us-gaap_BusinessAcquisitionAcquireeDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionAcquireeDomain" xlink:to="msft_GitHubIncMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_GoodwillLineItems" xlink:to="us-gaap_Goodwill" order="10120.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureFiniteLivedIntangibleAssetsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureFiniteLivedIntangibleAssetsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureFiniteLivedIntangibleAssetsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsNet" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsNet" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsGross" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsGross" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractualRightsMember" xlink:type="locator" xlink:label="us-gaap_ContractualRightsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MarketingRelatedIntangibleAssetsMember" xlink:type="locator" xlink:label="us-gaap_MarketingRelatedIntangibleAssetsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CustomerRelationshipsMember" xlink:type="locator" xlink:label="us-gaap_CustomerRelationshipsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TechnologyBasedIntangibleAssetsMember" xlink:type="locator" xlink:label="us-gaap_TechnologyBasedIntangibleAssetsMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" order="10030.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:to="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" order="10060.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis" xlink:to="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_TechnologyBasedIntangibleAssetsMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_CustomerRelationshipsMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_MarketingRelatedIntangibleAssetsMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain" xlink:to="us-gaap_ContractualRightsMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_FiniteLivedIntangibleAssetsGross" order="10200.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization" order="10340.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_FiniteLivedIntangibleAssetsNet" order="10480.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureFiniteLivedIntangibleAssetsParentheticalDetail" xlink:href="msft-20181231.xsd#Role_DisclosureFiniteLivedIntangibleAssetsParentheticalDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureFiniteLivedIntangibleAssetsParentheticalDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" xlink:type="locator" xlink:label="us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" />
    <loc xlink:href="msft-20181231.xsd#msft_GitHubIncMember" xlink:type="locator" xlink:label="msft_GitHubIncMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAcquireeDomain" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAcquireeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BusinessAcquisitionAxis" xlink:type="locator" xlink:label="us-gaap_BusinessAcquisitionAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:type="locator" xlink:label="us-gaap_FiniteLivedIntangibleAssetsLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable" xlink:to="us-gaap_BusinessAcquisitionAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BusinessAcquisitionAxis" xlink:to="us-gaap_BusinessAcquisitionAcquireeDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BusinessAcquisitionAcquireeDomain" xlink:to="msft_GitHubIncMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_FiniteLivedIntangibleAssetsLineItems" xlink:to="us-gaap_BusinessCombinationRecognizedIdentifiableAssetsAcquiredAndLiabilitiesAssumedIntangibles" order="10120.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureLongTermDebtDetail" xlink:href="msft-20181231.xsd#Role_DisclosureLongTermDebtDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureLongTermDebtDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentInterestRateEffectivePercentage" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentInterestRateStatedPercentage" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentFaceAmount" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentMaturityDate" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentMaturityDate" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointFivePercentDueFebruarySixTwentyFiftySevenMember" xlink:type="locator" xlink:label="msft_NotesFourPointFivePercentDueFebruarySixTwentyFiftySevenMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointNineFivePercentDueAugustEightTwentyFiftySixMember" xlink:type="locator" xlink:label="msft_NotesThreePointNineFivePercentDueAugustEightTwentyFiftySixMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointSevenFivePercentDueNovemberThreeTwentyFiftyFiveMember" xlink:type="locator" xlink:label="msft_NotesFourPointSevenFivePercentDueNovemberThreeTwentyFiftyFiveMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPercentDueFebruaryTwelveTwentyFiftyFiveMember" xlink:type="locator" xlink:label="msft_NotesFourPercentDueFebruaryTwelveTwentyFiftyFiveMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointTwoFivePercentDueFebruarySixTwentyFortySevenMember" xlink:type="locator" xlink:label="msft_NotesFourPointTwoFivePercentDueFebruarySixTwentyFortySevenMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointSevenPercentDueAugustEightTwentyFortySixMember" xlink:type="locator" xlink:label="msft_NotesThreePointSevenPercentDueAugustEightTwentyFortySixMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointFourFivePercentDueNovemberThreeTwentyFortyFiveMember" xlink:type="locator" xlink:label="msft_NotesFourPointFourFivePercentDueNovemberThreeTwentyFortyFiveMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointSevenFivePercentDueFebruaryTwelveTwentyFortyFiveMember" xlink:type="locator" xlink:label="msft_NotesThreePointSevenFivePercentDueFebruaryTwelveTwentyFortyFiveMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointEightSevenFivePercentDueDecemberFifteenTwentyFortyThreeMember" xlink:type="locator" xlink:label="msft_NotesFourPointEightSevenFivePercentDueDecemberFifteenTwentyFortyThreeMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointSevenFivePercentDueMayOneTwentyFortyThreeMember" xlink:type="locator" xlink:label="msft_NotesThreePointSevenFivePercentDueMayOneTwentyFortyThreeMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointFivePercentDueNovemberFifteenTwentyFortyTwoMember" xlink:type="locator" xlink:label="msft_NotesThreePointFivePercentDueNovemberFifteenTwentyFortyTwoMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFivePointThreePercentDueFebruaryEightTwentyFortyOneMember" xlink:type="locator" xlink:label="msft_NotesFivePointThreePercentDueFebruaryEightTwentyFortyOneMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointFivePercentDueOctoberOneTwentyFortyMember" xlink:type="locator" xlink:label="msft_NotesFourPointFivePercentDueOctoberOneTwentyFortyMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFivePointTwoPercentDueJuneOneTwentyThirtyNineMember" xlink:type="locator" xlink:label="msft_NotesFivePointTwoPercentDueJuneOneTwentyThirtyNineMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointOnePercentDueFebruarySixTwentyThirtySevenMember" xlink:type="locator" xlink:label="msft_NotesFourPointOnePercentDueFebruarySixTwentyThirtySevenMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointFourFivePercentDueAugustEightTwentyThirtySixMember" xlink:type="locator" xlink:label="msft_NotesThreePointFourFivePercentDueAugustEightTwentyThirtySixMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointTwoPercentDueNovemberThreeTwentyThirtyFiveMember" xlink:type="locator" xlink:label="msft_NotesFourPointTwoPercentDueNovemberThreeTwentyThirtyFiveMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointFivePercentDueFebruaryTwelveTwentyThirtyFiveMember" xlink:type="locator" xlink:label="msft_NotesThreePointFivePercentDueFebruaryTwelveTwentyThirtyFiveMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointSixTwoFivePercentDueMayTwoTwentyThirtyThreeMember" xlink:type="locator" xlink:label="msft_NotesTwoPointSixTwoFivePercentDueMayTwoTwentyThirtyThreeMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointOneTwoFivePercentDueDecemberSixTwentyTwentyEightMember" xlink:type="locator" xlink:label="msft_NotesThreePointOneTwoFivePercentDueDecemberSixTwentyTwentyEightMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointThreePercentDueFebruarySixTwentyTwentySevenMember" xlink:type="locator" xlink:label="msft_NotesThreePointThreePercentDueFebruarySixTwentyTwentySevenMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointFourPercentDueAugustEightTwentyTwentySixMember" xlink:type="locator" xlink:label="msft_NotesTwoPointFourPercentDueAugustEightTwentyTwentySixMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointOneTwoFivePercentDueNovemberThreeTwentyTwentyFiveMember" xlink:type="locator" xlink:label="msft_NotesThreePointOneTwoFivePercentDueNovemberThreeTwentyTwentyFiveMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointSevenPercentDueFebruaryTwelveTwentyTwentyFiveMember" xlink:type="locator" xlink:label="msft_NotesTwoPointSevenPercentDueFebruaryTwelveTwentyTwentyFiveMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointEightSevenFivePercentDueFebruarySixTwentyTwentyFourMember" xlink:type="locator" xlink:label="msft_NotesTwoPointEightSevenFivePercentDueFebruarySixTwentyTwentyFourMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointSixTwoFivePercentDueDecemberFifteenTwentyTwentyThreeMember" xlink:type="locator" xlink:label="msft_NotesThreePointSixTwoFivePercentDueDecemberFifteenTwentyTwentyThreeMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointZeroPercentDueAugustEightTwentyTwentyThreeMember" xlink:type="locator" xlink:label="msft_NotesTwoPointZeroPercentDueAugustEightTwentyTwentyThreeMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointThreeSevenFivePercentDueMayOneTwentyTwentyThreeMember" xlink:type="locator" xlink:label="msft_NotesTwoPointThreeSevenFivePercentDueMayOneTwentyTwentyThreeMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointOneTwoFivePercentDueNovemberFifteenTwentyTwentyTwoMember" xlink:type="locator" xlink:label="msft_NotesTwoPointOneTwoFivePercentDueNovemberFifteenTwentyTwentyTwoMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointSixFivePercentDueNovemberThreeTwentyTwentyTwoMember" xlink:type="locator" xlink:label="msft_NotesTwoPointSixFivePercentDueNovemberThreeTwentyTwentyTwoMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointThreeSevenFivePercentDueFebruaryTwelveTwentyTwentyTwoMember" xlink:type="locator" xlink:label="msft_NotesTwoPointThreeSevenFivePercentDueFebruaryTwelveTwentyTwentyTwoMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointFourPercentDueFebruarySixTwentyTwentyTwoMember" xlink:type="locator" xlink:label="msft_NotesTwoPointFourPercentDueFebruarySixTwentyTwentyTwoMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointOneTwoFivePercentDueDecemberSixTwentyTwentyOneMember" xlink:type="locator" xlink:label="msft_NotesTwoPointOneTwoFivePercentDueDecemberSixTwentyTwentyOneMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesOnePointFiveFivePercentDueAugustEightTwentyTwentyOneMember" xlink:type="locator" xlink:label="msft_NotesOnePointFiveFivePercentDueAugustEightTwentyTwentyOneMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointZeroPercentDueFebruaryEightTwentyTwentyOneMember" xlink:type="locator" xlink:label="msft_NotesFourPointZeroPercentDueFebruaryEightTwentyTwentyOneMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesTwoPointZeroPercentDueNovemberThreeTwentyTwentyMember" xlink:type="locator" xlink:label="msft_NotesTwoPointZeroPercentDueNovemberThreeTwentyTwentyMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesThreePointZeroPercentDueOctoberOneTwentyTwentyMember" xlink:type="locator" xlink:label="msft_NotesThreePointZeroPercentDueOctoberOneTwentyTwentyMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesOnePointEightFivePercentDueFebruaryTwelveTwentyTwentyMember" xlink:type="locator" xlink:label="msft_NotesOnePointEightFivePercentDueFebruaryTwelveTwentyTwentyMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesOnePointEightFivePercentDueFebruarySixTwentyTwentyMember" xlink:type="locator" xlink:label="msft_NotesOnePointEightFivePercentDueFebruarySixTwentyTwentyMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesZeroPointFivePercentDueNovemberOneTwentyNineteenMember" xlink:type="locator" xlink:label="msft_NotesZeroPointFivePercentDueNovemberOneTwentyNineteenMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesOnePointOnePercentDueAugustEightTwentyNineteenMember" xlink:type="locator" xlink:label="msft_NotesOnePointOnePercentDueAugustEightTwentyNineteenMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesFourPointTwoPercentDueJuneOneTwentyNineteenMember" xlink:type="locator" xlink:label="msft_NotesFourPointTwoPercentDueJuneOneTwentyNineteenMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesOnePointSixTwoFivePercentDueDecemberSixTwentyEighteenMember" xlink:type="locator" xlink:label="msft_NotesOnePointSixTwoFivePercentDueDecemberSixTwentyEighteenMember" />
    <loc xlink:href="msft-20181231.xsd#msft_NotesOnePointThreeZeroPercentDueNovemberThreeTwentyEighteenMember" xlink:type="locator" xlink:label="msft_NotesOnePointThreeZeroPercentDueNovemberThreeTwentyEighteenMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentNameDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentNameDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:type="locator" xlink:label="us-gaap_DebtInstrumentLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_DebtInstrumentLineItems" xlink:to="us-gaap_DebtInstrumentTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_DebtInstrumentTable" xlink:to="us-gaap_DebtInstrumentAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_DebtInstrumentAxis" xlink:to="us-gaap_DebtInstrumentNameDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesOnePointThreeZeroPercentDueNovemberThreeTwentyEighteenMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesOnePointSixTwoFivePercentDueDecemberSixTwentyEighteenMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointTwoPercentDueJuneOneTwentyNineteenMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesOnePointOnePercentDueAugustEightTwentyNineteenMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesZeroPointFivePercentDueNovemberOneTwentyNineteenMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesOnePointEightFivePercentDueFebruarySixTwentyTwentyMember" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesOnePointEightFivePercentDueFebruaryTwelveTwentyTwentyMember" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointZeroPercentDueOctoberOneTwentyTwentyMember" order="10230.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointZeroPercentDueNovemberThreeTwentyTwentyMember" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointZeroPercentDueFebruaryEightTwentyTwentyOneMember" order="10270.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesOnePointFiveFivePercentDueAugustEightTwentyTwentyOneMember" order="10290.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointOneTwoFivePercentDueDecemberSixTwentyTwentyOneMember" order="10310.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointFourPercentDueFebruarySixTwentyTwentyTwoMember" order="10330.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointThreeSevenFivePercentDueFebruaryTwelveTwentyTwentyTwoMember" order="10350.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointSixFivePercentDueNovemberThreeTwentyTwentyTwoMember" order="10370.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointOneTwoFivePercentDueNovemberFifteenTwentyTwentyTwoMember" order="10390.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointThreeSevenFivePercentDueMayOneTwentyTwentyThreeMember" order="10410.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointZeroPercentDueAugustEightTwentyTwentyThreeMember" order="10430.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointSixTwoFivePercentDueDecemberFifteenTwentyTwentyThreeMember" order="10450.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointEightSevenFivePercentDueFebruarySixTwentyTwentyFourMember" order="10470.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointSevenPercentDueFebruaryTwelveTwentyTwentyFiveMember" order="10490.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointOneTwoFivePercentDueNovemberThreeTwentyTwentyFiveMember" order="10510.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointFourPercentDueAugustEightTwentyTwentySixMember" order="10530.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointThreePercentDueFebruarySixTwentyTwentySevenMember" order="10550.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointOneTwoFivePercentDueDecemberSixTwentyTwentyEightMember" order="10570.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesTwoPointSixTwoFivePercentDueMayTwoTwentyThirtyThreeMember" order="10590.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointFivePercentDueFebruaryTwelveTwentyThirtyFiveMember" order="10610.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointTwoPercentDueNovemberThreeTwentyThirtyFiveMember" order="10630.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointFourFivePercentDueAugustEightTwentyThirtySixMember" order="10650.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointOnePercentDueFebruarySixTwentyThirtySevenMember" order="10670.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFivePointTwoPercentDueJuneOneTwentyThirtyNineMember" order="10690.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointFivePercentDueOctoberOneTwentyFortyMember" order="10710.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFivePointThreePercentDueFebruaryEightTwentyFortyOneMember" order="10730.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointFivePercentDueNovemberFifteenTwentyFortyTwoMember" order="10750.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointSevenFivePercentDueMayOneTwentyFortyThreeMember" order="10770.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointEightSevenFivePercentDueDecemberFifteenTwentyFortyThreeMember" order="10790.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointSevenFivePercentDueFebruaryTwelveTwentyFortyFiveMember" order="10810.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointFourFivePercentDueNovemberThreeTwentyFortyFiveMember" order="10830.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointSevenPercentDueAugustEightTwentyFortySixMember" order="10850.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointTwoFivePercentDueFebruarySixTwentyFortySevenMember" order="10870.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPercentDueFebruaryTwelveTwentyFiftyFiveMember" order="10890.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointSevenFivePercentDueNovemberThreeTwentyFiftyFiveMember" order="10910.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesThreePointNineFivePercentDueAugustEightTwentyFiftySixMember" order="10930.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentNameDomain" xlink:to="msft_NotesFourPointFivePercentDueFebruarySixTwentyFiftySevenMember" order="10950.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentLineItems" xlink:to="us-gaap_DebtInstrumentMaturityDate" order="12820.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentLineItems" xlink:to="us-gaap_DebtInstrumentFaceAmount" order="14730.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentLineItems" xlink:to="us-gaap_DebtInstrumentInterestRateStatedPercentage" order="16610.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_DebtInstrumentLineItems" xlink:to="us-gaap_DebtInstrumentInterestRateEffectivePercentage" order="17550.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail" xlink:href="msft-20181231.xsd#Role_DisclosureIncomeTaxesAdditionalInformationDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccruedIncomeTaxesNoncurrent" xlink:type="locator" xlink:label="us-gaap_AccruedIncomeTaxesNoncurrent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxReconciliationChangeInEnactedTaxRate" xlink:type="locator" xlink:label="us-gaap_IncomeTaxReconciliationChangeInEnactedTaxRate" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxReconciliationRepatriationOfForeignEarnings" xlink:type="locator" xlink:label="us-gaap_IncomeTaxReconciliationRepatriationOfForeignEarnings" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExpenseBenefit" xlink:type="locator" xlink:label="us-gaap_IncomeTaxExpenseBenefit" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:type="locator" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:type="locator" xlink:label="us-gaap_EffectiveIncomeTaxRateContinuingOperations" />
    <loc xlink:href="msft-20181231.xsd#msft_IncomeTaxContingenciesAndOtherIncomeTaxLiabilitiesMember" xlink:type="locator" xlink:label="msft_IncomeTaxContingenciesAndOtherIncomeTaxLiabilitiesMember" />
    <loc xlink:href="msft-20181231.xsd#msft_TaxCutsAndJobsActMember" xlink:type="locator" xlink:label="msft_TaxCutsAndJobsActMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_IncomeTaxesTable" xlink:type="locator" xlink:label="msft_IncomeTaxesTable" />
    <loc xlink:href="msft-20181231.xsd#msft_IncomeTaxesLineItems" xlink:type="locator" xlink:label="msft_IncomeTaxesLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_IncomeTaxesLineItems" xlink:to="msft_IncomeTaxesTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_IncomeTaxesTable" xlink:to="us-gaap_IncomeTaxAuthorityAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeTaxAuthorityAxis" xlink:to="us-gaap_IncomeTaxAuthorityDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeTaxAuthorityAxis" xlink:to="us-gaap_IncomeTaxAuthorityDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityDomain" xlink:to="msft_TaxCutsAndJobsActMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityDomain" xlink:to="msft_IncomeTaxContingenciesAndOtherIncomeTaxLiabilitiesMember" order="10310.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_IncomeTaxesLineItems" xlink:to="us-gaap_EffectiveIncomeTaxRateContinuingOperations" order="10340.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_IncomeTaxesLineItems" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" order="10450.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_IncomeTaxesLineItems" xlink:to="us-gaap_IncomeTaxExpenseBenefit" order="10560.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_IncomeTaxesLineItems" xlink:to="us-gaap_IncomeTaxReconciliationRepatriationOfForeignEarnings" order="10710.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_IncomeTaxesLineItems" xlink:to="us-gaap_IncomeTaxReconciliationChangeInEnactedTaxRate" order="10780.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_IncomeTaxesLineItems" xlink:to="us-gaap_AccruedIncomeTaxesNoncurrent" order="10890.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationRegardingExaminationsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureIncomeTaxesAdditionalInformationRegardingExaminationsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureIncomeTaxesAdditionalInformationRegardingExaminationsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OpenTaxYear" xlink:type="locator" xlink:label="us-gaap_OpenTaxYear" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExaminationYearUnderExamination" xlink:type="locator" xlink:label="us-gaap_IncomeTaxExaminationYearUnderExamination" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ForeignCountryMember" xlink:type="locator" xlink:label="us-gaap_ForeignCountryMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityDomain" xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityAxis" xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LatestTaxYearMember" xlink:type="locator" xlink:label="us-gaap_LatestTaxYearMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarliestTaxYearMember" xlink:type="locator" xlink:label="us-gaap_EarliestTaxYearMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:type="locator" xlink:label="us-gaap_TaxPeriodDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TaxPeriodDomain" xlink:type="locator" xlink:label="us-gaap_TaxPeriodDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_TaxPeriodAxis" xlink:type="locator" xlink:label="us-gaap_TaxPeriodAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InternalRevenueServiceIRSMember" xlink:type="locator" xlink:label="us-gaap_InternalRevenueServiceIRSMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityNameDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityNameDomain" xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityNameDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxAuthorityNameAxis" xlink:type="locator" xlink:label="us-gaap_IncomeTaxAuthorityNameAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExaminationTable" xlink:type="locator" xlink:label="us-gaap_IncomeTaxExaminationTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeTaxExaminationLineItems" xlink:type="locator" xlink:label="us-gaap_IncomeTaxExaminationLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_IncomeTaxExaminationLineItems" xlink:to="us-gaap_IncomeTaxExaminationTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_IncomeTaxExaminationTable" xlink:to="us-gaap_IncomeTaxAuthorityNameAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeTaxAuthorityNameAxis" xlink:to="us-gaap_IncomeTaxAuthorityNameDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeTaxAuthorityNameAxis" xlink:to="us-gaap_IncomeTaxAuthorityNameDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityNameDomain" xlink:to="us-gaap_InternalRevenueServiceIRSMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_IncomeTaxExaminationTable" xlink:to="us-gaap_TaxPeriodAxis" order="10120.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_TaxPeriodAxis" xlink:to="us-gaap_TaxPeriodDomain_2" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_TaxPeriodAxis" xlink:to="us-gaap_TaxPeriodDomain" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TaxPeriodDomain" xlink:to="us-gaap_EarliestTaxYearMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_TaxPeriodDomain" xlink:to="us-gaap_LatestTaxYearMember" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_IncomeTaxExaminationTable" xlink:to="us-gaap_IncomeTaxAuthorityAxis" order="10200.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeTaxAuthorityAxis" xlink:to="us-gaap_IncomeTaxAuthorityDomain" order="10230.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxAuthorityDomain" xlink:to="us-gaap_ForeignCountryMember" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxExaminationLineItems" xlink:to="us-gaap_IncomeTaxExaminationYearUnderExamination" order="10360.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeTaxExaminationLineItems" xlink:to="us-gaap_OpenTaxYear" order="10540.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureUnearnedRevenueBySegmentDetail" xlink:href="msft-20181231.xsd#Role_DisclosureUnearnedRevenueBySegmentDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureUnearnedRevenueBySegmentDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ContractWithCustomerLiability" xlink:type="locator" xlink:label="us-gaap_ContractWithCustomerLiability" />
    <loc xlink:href="msft-20181231.xsd#msft_MorePersonalComputingMember" xlink:type="locator" xlink:label="msft_MorePersonalComputingMember" />
    <loc xlink:href="msft-20181231.xsd#msft_IntelligentCloudMember" xlink:type="locator" xlink:label="msft_IntelligentCloudMember" />
    <loc xlink:href="msft-20181231.xsd#msft_ProductivityAndBusinessProcessesMember" xlink:type="locator" xlink:label="msft_ProductivityAndBusinessProcessesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:type="locator" xlink:label="us-gaap_SegmentDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:type="locator" xlink:label="us-gaap_StatementBusinessSegmentsAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_ContractWithCustomerLiabilityTable" xlink:type="locator" xlink:label="msft_ContractWithCustomerLiabilityTable" />
    <loc xlink:href="msft-20181231.xsd#msft_ContractWithCustomerLiabilityLineItems" xlink:type="locator" xlink:label="msft_ContractWithCustomerLiabilityLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_ContractWithCustomerLiabilityLineItems" xlink:to="msft_ContractWithCustomerLiabilityTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_ContractWithCustomerLiabilityTable" xlink:to="us-gaap_StatementBusinessSegmentsAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_ProductivityAndBusinessProcessesMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_IntelligentCloudMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_MorePersonalComputingMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ContractWithCustomerLiabilityLineItems" xlink:to="us-gaap_ContractWithCustomerLiability" order="10160.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureUnearnedRevenueRemainingPerformanceObligationAdditionalInformationDetail" xlink:href="msft-20181231.xsd#Role_DisclosureUnearnedRevenueRemainingPerformanceObligationAdditionalInformationDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureUnearnedRevenueRemainingPerformanceObligationAdditionalInformationDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1" xlink:type="locator" xlink:label="us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:type="locator" xlink:label="us-gaap_RevenueRemainingPerformanceObligationPercentage" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis" xlink:type="locator" xlink:label="us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_ContractWithCustomerLiabilityTable" xlink:type="locator" xlink:label="msft_ContractWithCustomerLiabilityTable" />
    <loc xlink:href="msft-20181231.xsd#msft_ContractWithCustomerLiabilityLineItems" xlink:type="locator" xlink:label="msft_ContractWithCustomerLiabilityLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_ContractWithCustomerLiabilityLineItems" xlink:to="msft_ContractWithCustomerLiabilityTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_ContractWithCustomerLiabilityTable" xlink:to="us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ContractWithCustomerLiabilityLineItems" xlink:to="us-gaap_RevenueRemainingPerformanceObligationPercentage" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ContractWithCustomerLiabilityLineItems" xlink:to="us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1" order="10090.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureUnearnedRevenueRemainingPerformanceObligationAdditionalInformationDetailDefault" xlink:href="msft-20181231.xsd#Role_DisclosureUnearnedRevenueRemainingPerformanceObligationAdditionalInformationDetailDefault" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureUnearnedRevenueRemainingPerformanceObligationAdditionalInformationDetailDefault">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1" xlink:type="locator" xlink:label="us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage" xlink:type="locator" xlink:label="us-gaap_RevenueRemainingPerformanceObligationPercentage" />
    <loc xlink:href="msft-20181231.xsd#msft_ContractWithCustomerLiabilityTable" xlink:type="locator" xlink:label="msft_ContractWithCustomerLiabilityTable" />
    <loc xlink:href="msft-20181231.xsd#msft_ContractWithCustomerLiabilityLineItems" xlink:type="locator" xlink:label="msft_ContractWithCustomerLiabilityLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_ContractWithCustomerLiabilityLineItems" xlink:to="msft_ContractWithCustomerLiabilityTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ContractWithCustomerLiabilityLineItems" xlink:to="us-gaap_RevenueRemainingPerformanceObligationPercentage" order="10020.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ContractWithCustomerLiabilityLineItems" xlink:to="us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1" order="10030.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureLeasesAdditionalInformationDetail" xlink:href="msft-20181231.xsd#Role_DisclosureLeasesAdditionalInformationDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureLeasesAdditionalInformationDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeFinanceLeaseLeaseNotYetCommencedTermOfContract1" xlink:type="locator" xlink:label="us-gaap_LesseeFinanceLeaseLeaseNotYetCommencedTermOfContract1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1" xlink:type="locator" xlink:label="us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount" xlink:type="locator" xlink:label="us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount" />
    <loc xlink:href="msft-20181231.xsd#msft_LesseeOperatingAndFinanceLeasesOptionsToTerminateLeasesTerm" xlink:type="locator" xlink:label="msft_LesseeOperatingAndFinanceLeasesOptionsToTerminateLeasesTerm" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeFinanceLeaseRenewalTerm1" xlink:type="locator" xlink:label="us-gaap_LesseeFinanceLeaseRenewalTerm1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LesseeOperatingLeaseRenewalTerm" xlink:type="locator" xlink:label="us-gaap_LesseeOperatingLeaseRenewalTerm" />
    <loc xlink:href="msft-20181231.xsd#msft_LesseeOperatingAndFinanceLeasesRemainingLeaseTerm" xlink:type="locator" xlink:label="msft_LesseeOperatingAndFinanceLeasesRemainingLeaseTerm" />
    <loc xlink:href="msft-20181231.xsd#msft_FinanceLeaseMember" xlink:type="locator" xlink:label="msft_FinanceLeaseMember" />
    <loc xlink:href="msft-20181231.xsd#msft_OperatingLeaseMember" xlink:type="locator" xlink:label="msft_OperatingLeaseMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseArrangementTypeDomain" xlink:type="locator" xlink:label="us-gaap_LeaseArrangementTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseArrangementTypeDomain" xlink:type="locator" xlink:label="us-gaap_LeaseArrangementTypeDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseArrangementTypeAxis" xlink:type="locator" xlink:label="us-gaap_LeaseArrangementTypeAxis" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:type="locator" xlink:label="srt_MaximumMember" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:type="locator" xlink:label="srt_MinimumMember" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:type="locator" xlink:label="srt_RangeMember" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:type="locator" xlink:label="srt_RangeMember_2" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:type="locator" xlink:label="srt_RangeAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_LeasesTable" xlink:type="locator" xlink:label="msft_LeasesTable" />
    <loc xlink:href="msft-20181231.xsd#msft_LeasesLineItems" xlink:type="locator" xlink:label="msft_LeasesLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_LeasesLineItems" xlink:to="msft_LeasesTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_LeasesTable" xlink:to="srt_RangeAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_RangeAxis" xlink:to="srt_RangeMember" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MinimumMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_RangeMember" xlink:to="srt_MaximumMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_LeasesTable" xlink:to="us-gaap_LeaseArrangementTypeAxis" order="10260.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_LeaseArrangementTypeAxis" xlink:to="us-gaap_LeaseArrangementTypeDomain_2" order="10270.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LeaseArrangementTypeAxis" xlink:to="us-gaap_LeaseArrangementTypeDomain" order="10290.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LeaseArrangementTypeDomain" xlink:to="msft_OperatingLeaseMember" order="10310.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LeaseArrangementTypeDomain" xlink:to="msft_FinanceLeaseMember" order="10330.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="msft_LesseeOperatingAndFinanceLeasesRemainingLeaseTerm" order="10360.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="us-gaap_LesseeOperatingLeaseRenewalTerm" order="10400.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="us-gaap_LesseeFinanceLeaseRenewalTerm1" order="10420.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="msft_LesseeOperatingAndFinanceLeasesOptionsToTerminateLeasesTerm" order="10440.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount" order="10490.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1" order="10690.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="us-gaap_LesseeFinanceLeaseLeaseNotYetCommencedTermOfContract1" order="10790.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureSupplementalBalanceSheetInformationRelatedToLeasesDetail" xlink:href="msft-20181231.xsd#Role_DisclosureSupplementalBalanceSheetInformationRelatedToLeasesDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureSupplementalBalanceSheetInformationRelatedToLeasesDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent" xlink:type="locator" xlink:label="us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent" xlink:type="locator" xlink:label="us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent" />
    <loc xlink:href="msft-20181231.xsd#msft_WeightedAverageDiscountRateAbstract" xlink:type="locator" xlink:label="msft_WeightedAverageDiscountRateAbstract" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1" xlink:type="locator" xlink:label="us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1" xlink:type="locator" xlink:label="us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1" />
    <loc xlink:href="msft-20181231.xsd#msft_WeightedAverageRemainingLeaseTermAbstract" xlink:type="locator" xlink:label="msft_WeightedAverageRemainingLeaseTermAbstract" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FinanceLeaseLiability" xlink:type="locator" xlink:label="us-gaap_FinanceLeaseLiability" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentNet" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:type="locator" xlink:label="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:type="locator" xlink:label="us-gaap_PropertyPlantAndEquipmentGross" />
    <loc xlink:href="msft-20181231.xsd#msft_FinanceLeaseAbstract" xlink:type="locator" xlink:label="msft_FinanceLeaseAbstract" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:type="locator" xlink:label="us-gaap_OperatingLeaseLiability" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:type="locator" xlink:label="us-gaap_OperatingLeaseRightOfUseAsset" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeasesOperatingAbstract" xlink:type="locator" xlink:label="us-gaap_LeasesOperatingAbstract" />
    <loc xlink:href="msft-20181231.xsd#msft_FinanceLeaseMember" xlink:type="locator" xlink:label="msft_FinanceLeaseMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseArrangementTypeDomain" xlink:type="locator" xlink:label="us-gaap_LeaseArrangementTypeDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LeaseArrangementTypeAxis" xlink:type="locator" xlink:label="us-gaap_LeaseArrangementTypeAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNoncurrentLiabilitiesMember" xlink:type="locator" xlink:label="us-gaap_OtherNoncurrentLiabilitiesMember" />
    <loc xlink:href="msft-20181231.xsd#msft_OperatingLeaseLiabilitiesMember" xlink:type="locator" xlink:label="msft_OperatingLeaseLiabilitiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherCurrentLiabilitiesMember" xlink:type="locator" xlink:label="us-gaap_OtherCurrentLiabilitiesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:type="locator" xlink:label="us-gaap_BalanceSheetLocationDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:type="locator" xlink:label="us-gaap_BalanceSheetLocationAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_LeasesTable" xlink:type="locator" xlink:label="msft_LeasesTable" />
    <loc xlink:href="msft-20181231.xsd#msft_LeasesLineItems" xlink:type="locator" xlink:label="msft_LeasesLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_LeasesLineItems" xlink:to="msft_LeasesTable" order="10030.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_LeasesTable" xlink:to="us-gaap_BalanceSheetLocationAxis" order="10060.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_BalanceSheetLocationAxis" xlink:to="us-gaap_BalanceSheetLocationDomain" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_OtherCurrentLiabilitiesMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="msft_OperatingLeaseLiabilitiesMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_BalanceSheetLocationDomain" xlink:to="us-gaap_OtherNoncurrentLiabilitiesMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_LeasesTable" xlink:to="us-gaap_LeaseArrangementTypeAxis" order="10180.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_LeaseArrangementTypeAxis" xlink:to="us-gaap_LeaseArrangementTypeDomain" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LeaseArrangementTypeDomain" xlink:to="msft_FinanceLeaseMember" order="10230.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="us-gaap_LeasesOperatingAbstract" order="10300.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LeasesOperatingAbstract" xlink:to="us-gaap_OperatingLeaseRightOfUseAsset" order="10380.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_LeasesOperatingAbstract" xlink:to="us-gaap_OperatingLeaseLiability" order="10420.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="msft_FinanceLeaseAbstract" order="10540.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_FinanceLeaseAbstract" xlink:to="us-gaap_PropertyPlantAndEquipmentGross" order="10620.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_FinanceLeaseAbstract" xlink:to="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" order="10660.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_FinanceLeaseAbstract" xlink:to="us-gaap_PropertyPlantAndEquipmentNet" order="10700.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_FinanceLeaseAbstract" xlink:to="us-gaap_FinanceLeaseLiability" order="10740.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="msft_WeightedAverageRemainingLeaseTermAbstract" order="10860.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_WeightedAverageRemainingLeaseTermAbstract" xlink:to="us-gaap_OperatingLeaseWeightedAverageRemainingLeaseTerm1" order="10940.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_WeightedAverageRemainingLeaseTermAbstract" xlink:to="us-gaap_FinanceLeaseWeightedAverageRemainingLeaseTerm1" order="10980.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_LeasesLineItems" xlink:to="msft_WeightedAverageDiscountRateAbstract" order="11020.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_WeightedAverageDiscountRateAbstract" xlink:to="us-gaap_OperatingLeaseWeightedAverageDiscountRatePercent" order="11100.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_WeightedAverageDiscountRateAbstract" xlink:to="us-gaap_FinanceLeaseWeightedAverageDiscountRatePercent" order="11140.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureStockholdersEquityAdditionalInformationDetail" xlink:href="msft-20181231.xsd#Role_DisclosureStockholdersEquityAdditionalInformationDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureStockholdersEquityAdditionalInformationDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1" xlink:type="locator" xlink:label="us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchaseProgramAuthorizedAmount1" xlink:type="locator" xlink:label="us-gaap_StockRepurchaseProgramAuthorizedAmount1" />
    <loc xlink:href="msft-20181231.xsd#msft_ShareRepurchaseProgramTwentySixteenMember" xlink:type="locator" xlink:label="msft_ShareRepurchaseProgramTwentySixteenMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:type="locator" xlink:label="us-gaap_ShareRepurchaseProgramDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:type="locator" xlink:label="us-gaap_ShareRepurchaseProgramDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:type="locator" xlink:label="us-gaap_ShareRepurchaseProgramAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_ShareRepurchasesTable" xlink:type="locator" xlink:label="msft_ShareRepurchasesTable" />
    <loc xlink:href="msft-20181231.xsd#msft_ShareRepurchasesLineItems" xlink:type="locator" xlink:label="msft_ShareRepurchasesLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_ShareRepurchasesLineItems" xlink:to="msft_ShareRepurchasesTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_ShareRepurchasesTable" xlink:to="us-gaap_ShareRepurchaseProgramAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_ShareRepurchaseProgramAxis" xlink:to="us-gaap_ShareRepurchaseProgramDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ShareRepurchaseProgramAxis" xlink:to="us-gaap_ShareRepurchaseProgramDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareRepurchaseProgramDomain" xlink:to="msft_ShareRepurchaseProgramTwentySixteenMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ShareRepurchasesLineItems" xlink:to="us-gaap_StockRepurchaseProgramAuthorizedAmount1" order="10160.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ShareRepurchasesLineItems" xlink:to="us-gaap_StockRepurchaseProgramRemainingAuthorizedRepurchaseAmount1" order="10180.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureShareRepurchasesDetail" xlink:href="msft-20181231.xsd#Role_DisclosureShareRepurchasesDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureShareRepurchasesDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodValue" xlink:type="locator" xlink:label="us-gaap_StockRepurchasedDuringPeriodValue" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockRepurchasedDuringPeriodShares" xlink:type="locator" xlink:label="us-gaap_StockRepurchasedDuringPeriodShares" />
    <loc xlink:href="msft-20181231.xsd#msft_ShareRepurchaseProgramTwentySixteenMember" xlink:type="locator" xlink:label="msft_ShareRepurchaseProgramTwentySixteenMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramDomain" xlink:type="locator" xlink:label="us-gaap_ShareRepurchaseProgramDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareRepurchaseProgramAxis" xlink:type="locator" xlink:label="us-gaap_ShareRepurchaseProgramAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_ShareRepurchasesTable" xlink:type="locator" xlink:label="msft_ShareRepurchasesTable" />
    <loc xlink:href="msft-20181231.xsd#msft_ShareRepurchasesLineItems" xlink:type="locator" xlink:label="msft_ShareRepurchasesLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_ShareRepurchasesLineItems" xlink:to="msft_ShareRepurchasesTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_ShareRepurchasesTable" xlink:to="us-gaap_ShareRepurchaseProgramAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_ShareRepurchaseProgramAxis" xlink:to="us-gaap_ShareRepurchaseProgramDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_ShareRepurchaseProgramDomain" xlink:to="msft_ShareRepurchaseProgramTwentySixteenMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ShareRepurchasesLineItems" xlink:to="us-gaap_StockRepurchasedDuringPeriodShares" order="10160.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ShareRepurchasesLineItems" xlink:to="us-gaap_StockRepurchasedDuringPeriodValue" order="10220.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureSummaryOfChangesInAccumulatedOtherComprehensiveIncomeLossByComponentDetail" xlink:href="msft-20181231.xsd#Role_DisclosureSummaryOfChangesInAccumulatedOtherComprehensiveIncomeLossByComponentDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureSummaryOfChangesInAccumulatedOtherComprehensiveIncomeLossByComponentDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification" xlink:type="locator" xlink:label="us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent" xlink:type="locator" xlink:label="us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax" xlink:type="locator" xlink:label="us-gaap_ReclassificationFromAociCurrentPeriodTax" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent" xlink:type="locator" xlink:label="us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent" xlink:type="locator" xlink:label="us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockholdersEquity" xlink:type="locator" xlink:label="us-gaap_StockholdersEquity" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonoperatingIncomeExpenseMember" xlink:type="locator" xlink:label="us-gaap_NonoperatingIncomeExpenseMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SalesMember" xlink:type="locator" xlink:label="us-gaap_SalesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:type="locator" xlink:label="us-gaap_IncomeStatementLocationDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:type="locator" xlink:label="us-gaap_IncomeStatementLocationDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:type="locator" xlink:label="us-gaap_IncomeStatementLocationAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember" xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeMember" />
    <loc xlink:href="msft-20181231.xsd#msft_AccumulatedTranslationAdjustmentAndOtherMember" xlink:type="locator" xlink:label="msft_AccumulatedTranslationAdjustmentAndOtherMember" />
    <loc xlink:href="msft-20181231.xsd#msft_AccumulatedNetUnrealizedGainLossOnInvestmentMember" xlink:type="locator" xlink:label="msft_AccumulatedNetUnrealizedGainLossOnInvestmentMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember" xlink:type="locator" xlink:label="us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:type="locator" xlink:label="us-gaap_EquityComponentDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:type="locator" xlink:label="us-gaap_StatementEquityComponentsAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" order="10050.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:to="us-gaap_StatementEquityComponentsAxis" order="10080.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="msft_AccumulatedNetUnrealizedGainLossOnInvestmentMember" order="10270.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="msft_AccumulatedTranslationAdjustmentAndOtherMember" order="10430.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeMember" order="10490.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:to="us-gaap_IncomeStatementLocationAxis" order="10500.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain_2" order="10510.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_IncomeStatementLocationAxis" xlink:to="us-gaap_IncomeStatementLocationDomain" order="10530.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_SalesMember" order="10550.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_IncomeStatementLocationDomain" xlink:to="us-gaap_NonoperatingIncomeExpenseMember" order="10570.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_StockholdersEquity" order="10600.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent" order="10680.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodBeforeTaxAttributableToParent" order="10760.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodTax" order="10840.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent" order="10920.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent" order="11000.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_NewAccountingPronouncementOrChangeInAccountingPrincipleEffectOfAdoptionQuantification" order="11080.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureSummaryOfChangesInAccumulatedOtherComprehensiveIncomeLossByComponentParentheticalDetail" xlink:href="msft-20181231.xsd#Role_DisclosureSummaryOfChangesInAccumulatedOtherComprehensiveIncomeLossByComponentParentheticalDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureSummaryOfChangesInAccumulatedOtherComprehensiveIncomeLossByComponentParentheticalDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1" xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax" xlink:type="locator" xlink:label="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax" />
    <loc xlink:href="msft-20181231.xsd#msft_AccumulatedTranslationAdjustmentAndOtherMember" xlink:type="locator" xlink:label="msft_AccumulatedTranslationAdjustmentAndOtherMember" />
    <loc xlink:href="msft-20181231.xsd#msft_AccumulatedNetUnrealizedGainLossOnInvestmentMember" xlink:type="locator" xlink:label="msft_AccumulatedNetUnrealizedGainLossOnInvestmentMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember" xlink:type="locator" xlink:label="us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EquityComponentDomain" xlink:type="locator" xlink:label="us-gaap_EquityComponentDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementEquityComponentsAxis" xlink:type="locator" xlink:label="us-gaap_StatementEquityComponentsAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:type="locator" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossTable" xlink:to="us-gaap_StatementEquityComponentsAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementEquityComponentsAxis" xlink:to="us-gaap_EquityComponentDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="us-gaap_AccumulatedNetGainLossFromDesignatedOrQualifyingCashFlowHedgesMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="msft_AccumulatedNetUnrealizedGainLossOnInvestmentMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EquityComponentDomain" xlink:to="msft_AccumulatedTranslationAdjustmentAndOtherMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax" order="10200.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_AccumulatedOtherComprehensiveIncomeLossLineItems" xlink:to="us-gaap_OtherComprehensiveIncomeLossTaxPortionAttributableToParent1" order="10360.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureSegmentRevenueDetail" xlink:href="msft-20181231.xsd#Role_DisclosureSegmentRevenueDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureSegmentRevenueDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="locator" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <loc xlink:href="msft-20181231.xsd#msft_MorePersonalComputingMember" xlink:type="locator" xlink:label="msft_MorePersonalComputingMember" />
    <loc xlink:href="msft-20181231.xsd#msft_IntelligentCloudMember" xlink:type="locator" xlink:label="msft_IntelligentCloudMember" />
    <loc xlink:href="msft-20181231.xsd#msft_ProductivityAndBusinessProcessesMember" xlink:type="locator" xlink:label="msft_ProductivityAndBusinessProcessesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:type="locator" xlink:label="us-gaap_SegmentDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:type="locator" xlink:label="us-gaap_StatementBusinessSegmentsAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:type="locator" xlink:label="us-gaap_SegmentReportingInformationLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:to="us-gaap_StatementBusinessSegmentsAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_ProductivityAndBusinessProcessesMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_IntelligentCloudMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_MorePersonalComputingMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" order="10160.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureOperatingIncomeLossBySegmentDetail" xlink:href="msft-20181231.xsd#Role_DisclosureOperatingIncomeLossBySegmentDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureOperatingIncomeLossBySegmentDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:type="locator" xlink:label="us-gaap_OperatingIncomeLoss" />
    <loc xlink:href="msft-20181231.xsd#msft_MorePersonalComputingMember" xlink:type="locator" xlink:label="msft_MorePersonalComputingMember" />
    <loc xlink:href="msft-20181231.xsd#msft_IntelligentCloudMember" xlink:type="locator" xlink:label="msft_IntelligentCloudMember" />
    <loc xlink:href="msft-20181231.xsd#msft_ProductivityAndBusinessProcessesMember" xlink:type="locator" xlink:label="msft_ProductivityAndBusinessProcessesMember" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentDomain" xlink:type="locator" xlink:label="us-gaap_SegmentDomain" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementBusinessSegmentsAxis" xlink:type="locator" xlink:label="us-gaap_StatementBusinessSegmentsAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SegmentReportingInformationLineItems" xlink:type="locator" xlink:label="us-gaap_SegmentReportingInformationLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfSegmentReportingInformationBySegmentTable" xlink:to="us-gaap_StatementBusinessSegmentsAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="us-gaap_StatementBusinessSegmentsAxis" xlink:to="us-gaap_SegmentDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_ProductivityAndBusinessProcessesMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_IntelligentCloudMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentDomain" xlink:to="msft_MorePersonalComputingMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_SegmentReportingInformationLineItems" xlink:to="us-gaap_OperatingIncomeLoss" order="10160.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureRevenueClassifiedByMajorGeographicAreasDetail" xlink:href="msft-20181231.xsd#Role_DisclosureRevenueClassifiedByMajorGeographicAreasDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureRevenueClassifiedByMajorGeographicAreasDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="locator" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NonUsMember" xlink:type="locator" xlink:label="us-gaap_NonUsMember" />
    <loc xlink:href="http://xbrl.sec.gov/country/2017/country-2017-01-31.xsd#country_US" xlink:type="locator" xlink:label="country_US" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:type="locator" xlink:label="srt_SegmentGeographicalDomain" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_SegmentGeographicalDomain" xlink:type="locator" xlink:label="srt_SegmentGeographicalDomain_2" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_StatementGeographicalAxis" xlink:type="locator" xlink:label="srt_StatementGeographicalAxis" />
    <loc xlink:href="msft-20181231.xsd#msft_GeographicInformationTable" xlink:type="locator" xlink:label="msft_GeographicInformationTable" />
    <loc xlink:href="msft-20181231.xsd#msft_GeographicInformationLineItems" xlink:type="locator" xlink:label="msft_GeographicInformationLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="msft_GeographicInformationLineItems" xlink:to="msft_GeographicInformationTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="msft_GeographicInformationTable" xlink:to="srt_StatementGeographicalAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_StatementGeographicalAxis" xlink:to="srt_SegmentGeographicalDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="country_US" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_SegmentGeographicalDomain" xlink:to="us-gaap_NonUsMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_GeographicInformationLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" order="10140.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureRevenueClassifiedBySignificantProductAndServiceOfferingsDetail" xlink:href="msft-20181231.xsd#Role_DisclosureRevenueClassifiedBySignificantProductAndServiceOfferingsDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureRevenueClassifiedBySignificantProductAndServiceOfferingsDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="locator" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <loc xlink:href="msft-20181231.xsd#msft_OtherProductsAndServicesMember" xlink:type="locator" xlink:label="msft_OtherProductsAndServicesMember" />
    <loc xlink:href="msft-20181231.xsd#msft_EnterpriseServicesMember" xlink:type="locator" xlink:label="msft_EnterpriseServicesMember" />
    <loc xlink:href="msft-20181231.xsd#msft_DevicesMember" xlink:type="locator" xlink:label="msft_DevicesMember" />
    <loc xlink:href="msft-20181231.xsd#msft_LinkedInCorporationMember" xlink:type="locator" xlink:label="msft_LinkedInCorporationMember" />
    <loc xlink:href="msft-20181231.xsd#msft_SearchAdvertisingMember" xlink:type="locator" xlink:label="msft_SearchAdvertisingMember" />
    <loc xlink:href="msft-20181231.xsd#msft_GamingMember" xlink:type="locator" xlink:label="msft_GamingMember" />
    <loc xlink:href="msft-20181231.xsd#msft_WindowsMember" xlink:type="locator" xlink:label="msft_WindowsMember" />
    <loc xlink:href="msft-20181231.xsd#msft_ServerProductsAndCloudServicesMember" xlink:type="locator" xlink:label="msft_ServerProductsAndCloudServicesMember" />
    <loc xlink:href="msft-20181231.xsd#msft_OfficeProductsAndCloudServicesMember" xlink:type="locator" xlink:label="msft_OfficeProductsAndCloudServicesMember" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:type="locator" xlink:label="srt_ProductsAndServicesDomain" />
    <loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:type="locator" xlink:label="srt_ProductOrServiceAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" xlink:type="locator" xlink:label="us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" xlink:to="us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" xlink:to="srt_ProductOrServiceAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="srt_ProductOrServiceAxis" xlink:to="srt_ProductsAndServicesDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_OfficeProductsAndCloudServicesMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_ServerProductsAndCloudServicesMember" order="10110.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_WindowsMember" order="10130.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_GamingMember" order="10150.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_SearchAdvertisingMember" order="10170.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_LinkedInCorporationMember" order="10190.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_DevicesMember" order="10210.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_EnterpriseServicesMember" order="10230.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="srt_ProductsAndServicesDomain" xlink:to="msft_OtherProductsAndServicesMember" order="10250.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" order="10280.00" priority="2" use="optional" />
  </definitionLink>
  <roleRef roleURI="http://www.microsoft.com/20181231/taxonomy/role/DisclosureRevenueClassifiedBySignificantProductAndServiceOfferingsParentheticalDetail" xlink:href="msft-20181231.xsd#Role_DisclosureRevenueClassifiedBySignificantProductAndServiceOfferingsParentheticalDetail" xlink:type="simple" />
  <definitionLink xlink:type="extended" xlink:role="http://www.microsoft.com/20181231/taxonomy/role/DisclosureRevenueClassifiedBySignificantProductAndServiceOfferingsParentheticalDetail">
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" xlink:type="locator" xlink:label="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" />
    <loc xlink:href="msft-20181231.xsd#msft_CommercialCloudMember" xlink:type="locator" xlink:label="msft_CommercialCloudMember" />
    <loc xlink:href="msft-20181231.xsd#msft_ProductsOrServicesNameSecondaryCategorizationDomain" xlink:type="locator" xlink:label="msft_ProductsOrServicesNameSecondaryCategorizationDomain" />
    <loc xlink:href="msft-20181231.xsd#msft_ProductsOrServicesNameSecondaryCategorizationDomain" xlink:type="locator" xlink:label="msft_ProductsOrServicesNameSecondaryCategorizationDomain_2" />
    <loc xlink:href="msft-20181231.xsd#msft_ProductsOrServicesSecondaryCategorizationAxis" xlink:type="locator" xlink:label="msft_ProductsOrServicesSecondaryCategorizationAxis" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" xlink:type="locator" xlink:label="us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" />
    <loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" xlink:type="locator" xlink:label="us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" xlink:to="us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" order="10010.00" priority="2" use="optional" xbrldt:contextElement="segment" xbrldt:closed="true" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="us-gaap_ScheduleOfEntityWideInformationRevenueFromExternalCustomersByProductsAndServicesTable" xlink:to="msft_ProductsOrServicesSecondaryCategorizationAxis" order="10040.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="msft_ProductsOrServicesSecondaryCategorizationAxis" xlink:to="msft_ProductsOrServicesNameSecondaryCategorizationDomain_2" order="10050.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="msft_ProductsOrServicesSecondaryCategorizationAxis" xlink:to="msft_ProductsOrServicesNameSecondaryCategorizationDomain" order="10070.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="msft_ProductsOrServicesNameSecondaryCategorizationDomain" xlink:to="msft_CommercialCloudMember" order="10090.00" priority="2" use="optional" />
    <definitionArc xlink:type="arc" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="us-gaap_EntityWideInformationRevenueFromExternalCustomerLineItems" xlink:to="us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax" order="10120.00" priority="2" use="optional" />
  </definitionLink>
</linkbase>





