<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: API to retrieve if specific Azure resource type can be deployed in an Azure region in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4288359#M58306</link>
    <description>&lt;P&gt;Since this is an installer app, we don't want to list existing resources (because they don't exist yet and will be deployed by the installer app) but need to find out if the required resource type (for example Azure SQL, App Service, Storage Account) can be deployed in the selected region. For example, the installer fails when a specific region is selected (let's say useast) that doesn't support Azure SQL (just an example...)&lt;BR /&gt;This is a screenshot of the dropdown with Azure Locations. This list is currently hardcoded but we'd like to find a way to get current status of what can or can't be installed in a specific region to populate the dropdown with the latest information&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pascal_KTeam_0-1731913431539.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1201200iB3D42B5A25B23A3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pascal_KTeam_0-1731913431539.png" alt="Pascal_KTeam_0-1731913431539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 07:03:58 GMT</pubDate>
    <dc:creator>Pascal_KTeam</dc:creator>
    <dc:date>2024-11-18T07:03:58Z</dc:date>
    <item>
      <title>API to retrieve if specific Azure resource type can be deployed in an Azure region</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4286370#M58300</link>
      <description>&lt;P&gt;We're building an automated installer application for our Power BI Embedded solution. This installer allows users to select in which Azure region the needed Azure resources are being created. We want to make sure that users can only select Azure Regions where the needed Resources can be created to avoid the installer to fail.&lt;BR /&gt;There's a website (&lt;A href="https://azure.microsoft.com/en-gb/explore/global-infrastructure/products-by-region/" target="_blank" rel="noopener"&gt;https://azure.microsoft.com/en-gb/explore/global-infrastructure/products-by-region/&lt;/A&gt;) that shows which resources are available in which region but what we need is an API endpoint to programmatically get the latest information.&lt;BR /&gt;Anybody know about such endpoint...?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 16:03:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4286370#M58300</guid>
      <dc:creator>Pascal_KTeam</dc:creator>
      <dc:date>2024-11-15T16:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: API to retrieve if specific Azure resource type can be deployed in an Azure region</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4287726#M58302</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/174123"&gt;@Pascal_KTeam&lt;/a&gt;&amp;nbsp;, You can get information of latest resources and location via &lt;STRONG&gt;Resources - List API &lt;/STRONG&gt;the response yields&amp;nbsp;&lt;SPAN&gt;following properties:&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;location&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;resourceType&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;resourceGroup&lt;/STRONG&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;identity&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;identity/principalId&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;plan&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;plan/publisher&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;plan/product&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;plan/name&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;plan/version&lt;SPAN&gt;, and&amp;nbsp;&lt;/SPAN&gt;plan/promotionCode&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Attached the microsoft documentation below for getting endpoint url.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/resources/resources/list?view=rest-resources-2021-04-01" target="_self"&gt;https://learn.microsoft.com/en-us/rest/api/resources/resources/list?view=rest-resources-2021-04-01&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I answer your question ?. If yes, please mark my post as a solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jai&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 18:31:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4287726#M58302</guid>
      <dc:creator>Jai-Rathinavel</dc:creator>
      <dc:date>2024-11-17T18:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: API to retrieve if specific Azure resource type can be deployed in an Azure region</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4288167#M58305</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from&amp;nbsp;Jai-Rathinavel&amp;nbsp; please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/174123"&gt;@Pascal_KTeam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;The API mentioned by Jai-Rathinavel&amp;nbsp; is indeed a good solution.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;" lang="zh-CN"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Of course, you might also consider trying the following API:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/resources?api-version=2021-04-01&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;This API can retrieve all resources within a resource group. Below is a screenshot from the official documentation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1731906017698.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1201147i3635FB085447DE88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1731906017698.png" alt="vlinyulumsft_0-1731906017698.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For further details, please refer to:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/resources/resources/list-by-resource-group?view=rest-resources-2021-04-01" target="_blank"&gt;&lt;SPAN&gt;Resources - List By Resource Group - REST API (Azure Resource Management) | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;Additionally, there is another API:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HEAD https://management.azure.com/{resourceId}?api-version=2021-04-01
&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;This one checks whether a resource exists by its ID. Here’s a screenshot from the official documentation:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_1-1731906041225.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1201148iA11D285876FC8234/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_1-1731906041225.png" alt="vlinyulumsft_1-1731906041225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For more information, please refer to:&lt;/P&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/resources/resources/check-existence-by-id?view=rest-resources-2021-04-01" target="_blank"&gt;&lt;SPAN&gt;Resources - Check Existence By Id - REST API (Azure Resource Management) | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Of course, if you have any new discoveries or questions, please feel free to get in touch with us.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 05:01:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4288167#M58305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-18T05:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: API to retrieve if specific Azure resource type can be deployed in an Azure region</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4288359#M58306</link>
      <description>&lt;P&gt;Since this is an installer app, we don't want to list existing resources (because they don't exist yet and will be deployed by the installer app) but need to find out if the required resource type (for example Azure SQL, App Service, Storage Account) can be deployed in the selected region. For example, the installer fails when a specific region is selected (let's say useast) that doesn't support Azure SQL (just an example...)&lt;BR /&gt;This is a screenshot of the dropdown with Azure Locations. This list is currently hardcoded but we'd like to find a way to get current status of what can or can't be installed in a specific region to populate the dropdown with the latest information&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pascal_KTeam_0-1731913431539.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1201200iB3D42B5A25B23A3A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Pascal_KTeam_0-1731913431539.png" alt="Pascal_KTeam_0-1731913431539.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 07:03:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4288359#M58306</guid>
      <dc:creator>Pascal_KTeam</dc:creator>
      <dc:date>2024-11-18T07:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: API to retrieve if specific Azure resource type can be deployed in an Azure region</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4290192#M58331</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/174123"&gt;@Pascal_KTeam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your prompt response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;At present, I have not found a direct API to fulfil your requirements. However, I believe you can try using the following API to check whether it contains the resources you need for your installation:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;HEAD https://management.azure.com/{resourceId}?api-version=2021-04-01&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;For further details, please refer to:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/resources/resources/check-existence-by-id?view=rest-resources-2021-04-01" target="_blank"&gt;&lt;SPAN&gt;Resources - Check Existence By Id - REST API (Azure Resource Management) | Microsoft Learn&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;You can then use simple conditional statements to output the results.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;if ($availability) {
        Write-Host "$($location.displayName) supports $resourceType"
    } else {
        Write-Host "$($location.displayName) does NOT support $resourceType"
    }
&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Of course, if you have any new discoveries or questions, please feel free to get in touch with us.&lt;BR /&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider Accept it &lt;EM&gt;&lt;STRONG&gt;as the solution &lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 05:09:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-to-retrieve-if-specific-Azure-resource-type-can-be-deployed/m-p/4290192#M58331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-19T05:09:58Z</dc:date>
    </item>
  </channel>
</rss>

