Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Controllers/ResourceGroupsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ private async Task<List<AzureManagementGroup>> GetAzureManagementGroups()
foreach (var managementGroup in managementGroupsElement.EnumerateArray())
{
var name = managementGroup.GetProperty("properties").GetProperty("displayName").GetString();
//var name = managementGroup. .GetProperty("displayName").GetString();
var id = managementGroup.GetProperty("id").GetString();
var type = managementGroup.GetProperty("type").GetString();
azureManagementGroups.Add(new AzureManagementGroup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ public string? Url
}
}
}

public class AzureMapsWeatherForecast{
public string? Date { get; set; }
public string? TemperatureC { get; set; }
public string? Summary { get; set; }
}


public class Subscription
{
public string SubscriptionId { get; set; }
Expand Down
14 changes: 12 additions & 2 deletions Views/ResourceGroups/ManagementGroups.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,18 @@
<h2>Management groups:</h2>

<ul>
@foreach (var group in Model)
@if (Model != null && Model.Count > 0)
{
foreach (var managementGroup in Model)
{
<li><a href="@Url.Action("Details", "ManagementGroups", new { name = managementGroup.Name })">
@managementGroup.Name </a> - @managementGroup.Type
</li>
}
}
else
{
<li>@group.Name - @group.Type</li>
<li>No management groups found.</li>
}

</ul>
1 change: 1 addition & 0 deletions rest.http
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GET https://atlas.microsoft.com/weather/currentConditions/json?subscription-key={{map-key}}&api-version=1.1&query=47.641268,-122.125679
Loading
Loading