Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions generated/Compute/Compute.Autorest/Az.Compute.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
<ItemGroup>
<PackageReference Update="Azure.Core" Version="1.50.0" />
</ItemGroup>
</Project>
3 changes: 3 additions & 0 deletions generated/KeyVault/KeyVault.Autorest/Az.KeyVault.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
<ItemGroup>
<PackageReference Update="Azure.Core" Version="1.50.0" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.autorest.props" />
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />
<ItemGroup>
<PackageReference Update="Azure.Core" Version="1.50.0" />
</ItemGroup>
</Project>
4 changes: 4 additions & 0 deletions src/Compute/Compute.AlcWrapper/Compute.AlcWrapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<PackageReference Include="Azure.Storage.Blobs" Version="12.13.0" />
</ItemGroup>

<ItemGroup>
<PackageReference Update="Azure.Core" Version="1.50.0" />
</ItemGroup>

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

</Project>
4 changes: 4 additions & 0 deletions src/Compute/Compute.Helpers/Compute.Helpers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

<ItemGroup>
<PackageReference Update="Azure.Core" Version="1.50.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@

<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory).., build.proj))\src\Az.Post.props" />

<ItemGroup>
<PackageReference Update="Azure.Core" Version="1.50.0" />
</ItemGroup>

</Project>
24 changes: 24 additions & 0 deletions src/Compute/Compute.Management.Sdk/Compute.Management.Sdk.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.2.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Compute.Management.Sdk", "Compute.Management.Sdk.csproj", "{4D5D485F-DB24-A55D-D626-74B523D84797}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4D5D485F-DB24-A55D-D626-74B523D84797}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D5D485F-DB24-A55D-D626-74B523D84797}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D5D485F-DB24-A55D-D626-74B523D84797}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D5D485F-DB24-A55D-D626-74B523D84797}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9BD3E99F-41C6-4076-BEEF-CAD959DCC74E}
EndGlobalSection
EndGlobal
Comment on lines +1 to +24
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a new solution file (.sln) appears to be unnecessary as the project is already part of the main repository build system. Solution files are typically not added for individual modules in this repository. This file should likely be removed to maintain consistency with the repository structure.

Suggested change
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.2.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Compute.Management.Sdk", "Compute.Management.Sdk.csproj", "{4D5D485F-DB24-A55D-D626-74B523D84797}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4D5D485F-DB24-A55D-D626-74B523D84797}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4D5D485F-DB24-A55D-D626-74B523D84797}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4D5D485F-DB24-A55D-D626-74B523D84797}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4D5D485F-DB24-A55D-D626-74B523D84797}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9BD3E99F-41C6-4076-BEEF-CAD959DCC74E}
EndGlobalSection
EndGlobal

Copilot uses AI. Check for mistakes.
12 changes: 6 additions & 6 deletions src/Compute/Compute.Management.Sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ title: ComputeManagementClient
payload-flattening-threshold: 1

input-file:
- ./Rest-api-specs/types.json
- ./Rest-api-specs/common.json
- ./Rest-api-specs/ComputeRP.json
- ./Rest-api-specs/DiskRP.json
- ./Rest-api-specs/GalleryRP.json
- ./Rest-api-specs/skus.json
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/common-types/resource-management/v3/types.json
- https://github.com/Azure/azure-rest-api-specs/blob/main/specification/compute/resource-manager/Microsoft.Compute/common-types/v1/common.json
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/ComputeRP.json
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2025-01-02/DiskRP.json
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/GalleryRP.json
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/Skus/stable/2021-07-01/skus.json
Comment on lines +30 to +33
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URLs in the input-file section use GitHub tree paths (e.g., /tree/main/) which are browser URLs, not raw file URLs. AutoRest requires either local file paths or raw GitHub URLs. These should be changed to use /blob/main/ followed by the full path to the JSON file, or consider using raw.githubusercontent.com URLs. For example:

  • https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/ComputeRP.json

Also, API version 2025-04-01 appears to be in the future (current date is December 9, 2025 but this API version is for April 2025, which may not exist yet).

Suggested change
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/ComputeRP.json
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2025-01-02/DiskRP.json
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/GalleryRP.json
- https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute/resource-manager/Microsoft.Compute/Skus/stable/2021-07-01/skus.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2025-04-01/ComputeRP.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2025-01-02/DiskRP.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2024-03-03/GalleryRP.json
- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/compute/resource-manager/Microsoft.Compute/Skus/stable/2021-07-01/skus.json

Copilot uses AI. Check for mistakes.

output-folder: Generated
namespace: Microsoft.Azure.Management.Compute
Expand Down
89 changes: 70 additions & 19 deletions src/Compute/Compute.Management.Sdk/Rest-api-specs/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,42 @@
},
"description": "Api error."
},
"Resource": {
"type": "object",
"description": "The Resource model definition.",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Resource Id"
},
"name": {
"readOnly": true,
"type": "string",
"description": "Resource name"
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type"
},
"location": {
"type": "string",
"description": "Resource location"
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Resource tags"
}
},
"required": [
"location"
],
"x-ms-azure-resource": true
},
"SubResource": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -138,44 +174,39 @@
"description": "Resource location"
},
"id": {
"readOnly": true,
"type": "string",
"description": "Resource Id",
"readOnly": true
"description": "Resource Id"
},
"name": {
"readOnly": true,
"type": "string",
"description": "Resource name",
"readOnly": true
"description": "Resource name"
},
"type": {
"readOnly": true,
"type": "string",
"description": "Resource type",
"readOnly": true
"description": "Resource type"
},
"tags": {
"type": "object",
"description": "Resource tags",
"additionalProperties": {
"type": "string"
}
},
"description": "Resource tags"
}
}
},
"x-ms-azure-resource": true
},
"ExtendedLocationType": {
"type": "string",
"description": "The type of the extended location.",
"description": "The type of extendedLocation.",
"enum": [
"EdgeZone"
],
"x-ms-enum": {
"name": "ExtendedLocationType",
"modelAsString": true,
"values": [
{
"name": "EdgeZone",
"value": "EdgeZone"
}
]
"name": "ExtendedLocationTypes",
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The enum name has been changed from ExtendedLocationType to ExtendedLocationTypes (plural). This is a breaking change that could affect generated code. Verify that this change aligns with the Azure REST API specifications and that any dependent code is updated accordingly.

Suggested change
"name": "ExtendedLocationTypes",
"name": "ExtendedLocationType",

Copilot uses AI. Check for mistakes.
"modelAsString": true
}
},
"ExtendedLocation": {
Expand All @@ -192,6 +223,26 @@
}
}
},
"UserAssignedIdentities": {
"type": "object",
"additionalProperties": {
"type": "object",
"x-ms-client-name": "userAssignedIdentitiesValue",
"properties": {
"principalId": {
"readOnly": true,
"type": "string",
"description": "The principal id of user assigned identity."
},
"clientId": {
"readOnly": true,
"type": "string",
"description": "The client id of user assigned identity."
}
}
},
"description": "The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
},
"SystemData": {
"description": "The system meta data relating to this resource.",
"type": "object",
Expand Down Expand Up @@ -227,4 +278,4 @@
"description": "Client Api Version."
}
}
}
}
Loading
Loading