Skip to content
Merged
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
31 changes: 31 additions & 0 deletions src/ComputeLimit/ComputeLimit.Autorest/docs/Az.ComputeLimit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
Module Name: Az.ComputeLimit
Module Guid: adcff8bf-1b57-436b-8be0-330863504a1f
Download Help Link: https://learn.microsoft.com/powershell/module/az.computelimit
Help Version: 1.0.0.0
Locale: en-US
---

# Az.ComputeLimit Module
## Description
Microsoft Azure PowerShell: ComputeLimit cmdlets

## Az.ComputeLimit Cmdlets
### [Add-AzGuestSubscription](Add-AzGuestSubscription.md)
Adds a subscription as a guest to consume the compute limits shared by the host subscription.

### [Add-AzSharedLimit](Add-AzSharedLimit.md)
Enables sharing of a compute limit by the host subscription with its guest subscriptions.

### [Get-AzGuestSubscription](Get-AzGuestSubscription.md)
Gets the properties of a guest subscription.

### [Get-AzSharedLimit](Get-AzSharedLimit.md)
Gets the properties of a compute limit shared by the host subscription with its guest subscriptions.

### [Remove-AzGuestSubscription](Remove-AzGuestSubscription.md)
Deletes a subscription as a guest to stop consuming the compute limits shared by the host subscription.

### [Remove-AzSharedLimit](Remove-AzSharedLimit.md)
Disables sharing of a compute limit by the host subscription with its guest subscriptions.

11 changes: 11 additions & 0 deletions src/ComputeLimit/ComputeLimit.Autorest/resources/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Resources
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder.
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

This README uses a Windows-style relative path (..\custom). Other module template READMEs in this repo use forward-slash relative paths (../custom) for consistency and to avoid confusion on non-Windows platforms; update the path accordingly.

Suggested change
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder.
This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `../custom` folder.

Copilot uses AI. Check for mistakes.

## Info
- Modifiable: yes
- Generated: no
- Committed: yes
- Packaged: no

## Purpose
Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact.
2 changes: 1 addition & 1 deletion src/ComputeLimit/ComputeLimit.Autorest/test/loadEnv.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ if (Test-Path -Path (Join-Path $PSScriptRoot $envFile)) {
}
$env = @{}
if (Test-Path -Path $envFilePath) {
$env = Get-Content $envFilePath | ConvertFrom-Json
$env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

$envFilePath is computed above (including the fallback to the parent directory), but the file is read using (Join-Path $PSScriptRoot $envFile) instead. This ignores the fallback logic and will fail when the env json only exists at $envFilePath. Use $envFilePath for Get-Content (and keep path resolution in one place).

Suggested change
$env = Get-Content (Join-Path $PSScriptRoot $envFile) | ConvertFrom-Json
$env = Get-Content -Path $envFilePath | ConvertFrom-Json

Copilot uses AI. Check for mistakes.
$PSDefaultParameterValues=@{"*:Tenant"=$env.Tenant}
}
30 changes: 15 additions & 15 deletions src/ComputeLimit/ComputeLimit.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

The solution file now has a blank first line before Microsoft Visual Studio Solution File, Format Version 12.00. Some tooling expects the header on the first line; remove the leading empty line (if the intent was to drop a UTF-8 BOM, ensure the header remains the first line).

Suggested change

Copilot uses AI. Check for mistakes.
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
Expand All @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputeLimit", "ComputeLimi
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ComputeLimit.Autorest", "ComputeLimit.Autorest", "{05FD005A-0A07-09AC-3BBF-653302AF247B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ComputeLimit", "ComputeLimit.Autorest\Az.ComputeLimit.csproj", "{4877B9C2-884C-40B4-9876-ECE660B97A96}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ComputeLimit", "..\..\generated\ComputeLimit\ComputeLimit.Autorest\Az.ComputeLimit.csproj", "{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -117,18 +117,18 @@ Global
{4A7F6E9B-AF94-490D-93C4-FB5C7E852BD6}.Release|x64.Build.0 = Release|Any CPU
{4A7F6E9B-AF94-490D-93C4-FB5C7E852BD6}.Release|x86.ActiveCfg = Release|Any CPU
{4A7F6E9B-AF94-490D-93C4-FB5C7E852BD6}.Release|x86.Build.0 = Release|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Debug|x64.ActiveCfg = Debug|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Debug|x64.Build.0 = Debug|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Debug|x86.ActiveCfg = Debug|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Debug|x86.Build.0 = Debug|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Release|Any CPU.Build.0 = Release|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Release|x64.ActiveCfg = Release|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Release|x64.Build.0 = Release|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Release|x86.ActiveCfg = Release|Any CPU
{4877B9C2-884C-40B4-9876-ECE660B97A96}.Release|x86.Build.0 = Release|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Debug|x64.ActiveCfg = Debug|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Debug|x64.Build.0 = Debug|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Debug|x86.ActiveCfg = Debug|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Debug|x86.Build.0 = Debug|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Release|Any CPU.Build.0 = Release|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Release|x64.ActiveCfg = Release|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Release|x64.Build.0 = Release|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Release|x86.ActiveCfg = Release|Any CPU
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -140,6 +140,6 @@ Global
{C2EC0EA7-87FE-416C-BABC-615E9486A44C} = {44BA2D9A-1FA8-4422-9CA5-FEE841B78022}
{071863E7-A3C8-4089-8A48-BF032E6D5955} = {44BA2D9A-1FA8-4422-9CA5-FEE841B78022}
{BE846A0C-7F3C-4EAE-8C58-661DA347C086} = {44BA2D9A-1FA8-4422-9CA5-FEE841B78022}
{4877B9C2-884C-40B4-9876-ECE660B97A96} = {05FD005A-0A07-09AC-3BBF-653302AF247B}
{C359C3EF-6CC8-4F2C-8D1E-2A15A6D2B4C2} = {05FD005A-0A07-09AC-3BBF-653302AF247B}
EndGlobalSection
EndGlobal
6 changes: 3 additions & 3 deletions src/ComputeLimit/ComputeLimit/Az.ComputeLimit.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 3/11/2026
# Generated on: 3/20/2026
#

@{
Expand Down Expand Up @@ -77,10 +77,10 @@ FunctionsToExport = 'Add-AzGuestSubscription', 'Add-AzSharedLimit',
CmdletsToExport = @()

# Variables to export from this module
VariablesToExport = '*'
# VariablesToExport = @()

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = '*'
AliasesToExport = @()

# DSC resources to export from this module
# DscResourcesToExport = @()
Expand Down
2 changes: 2 additions & 0 deletions src/ComputeLimit/ComputeLimit/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@
- Additional information about change #1
-->
## Upcoming Release
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

## Upcoming Release is empty, but this PR changes module packaging/build artifacts (manifest/solution/help). Either add a brief user-facing entry under ## Upcoming Release describing the fix (and reference the related issue if applicable), or revert the changelog edit if no release note is intended.

Suggested change
## Upcoming Release
## Upcoming Release
* Updated packaging configuration for Az.ComputeLimit module
- No changes to cmdlet behavior, improved build and manifest setup

Copilot uses AI. Check for mistakes.

## Version 0.1.0
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

The changelog template at the top specifies release sections should be titled ## YYYY.MM.DD - Version X.Y.Z. ## Version 0.1.0 doesn’t follow that format; please include the release date in the header to match the documented convention.

Suggested change
## Version 0.1.0
## 2024.01.01 - Version 0.1.0

Copilot uses AI. Check for mistakes.
* First release of Az.ComputeLimit module
51 changes: 26 additions & 25 deletions src/ComputeLimit/ComputeLimit/help/Add-AzGuestSubscription.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
external help file:
external help file: Az.ComputeLimit-help.xml
Module Name: Az.ComputeLimit
online version: https://learn.microsoft.com/powershell/module/az.computelimit/add-azguestsubscription
schema: 2.0.0
Expand All @@ -14,38 +14,40 @@ Adds a subscription as a guest to consume the compute limits shared by the host

### CreateExpanded (Default)
```
Add-AzGuestSubscription -Id <String> -Location <String> [-SubscriptionId <String>]
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzGuestSubscription -Id <String> -Location <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

### Create
### CreateViaIdentityLocationExpanded
```
Add-AzGuestSubscription -Id <String> -Location <String> -Resource <IGuestSubscription>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzGuestSubscription -Id <String> -LocationInputObject <IComputeLimitIdentity> [-DefaultProfile <PSObject>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

### CreateViaIdentity
### CreateViaIdentityLocation
```
Add-AzGuestSubscription -InputObject <IComputeLimitIdentity> -Resource <IGuestSubscription>
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzGuestSubscription -Id <String> -LocationInputObject <IComputeLimitIdentity>
-Resource <IGuestSubscription> [-DefaultProfile <PSObject>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

### CreateViaIdentityExpanded
### Create
```
Add-AzGuestSubscription -InputObject <IComputeLimitIdentity> [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
[<CommonParameters>]
Add-AzGuestSubscription -Id <String> -Location <String> [-SubscriptionId <String>]
-Resource <IGuestSubscription> [-DefaultProfile <PSObject>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

### CreateViaIdentityLocation
### CreateViaIdentityExpanded
```
Add-AzGuestSubscription -Id <String> -LocationInputObject <IComputeLimitIdentity>
-Resource <IGuestSubscription> [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzGuestSubscription -InputObject <IComputeLimitIdentity> [-DefaultProfile <PSObject>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

### CreateViaIdentityLocationExpanded
### CreateViaIdentity
```
Add-AzGuestSubscription -Id <String> -LocationInputObject <IComputeLimitIdentity> [-DefaultProfile <PSObject>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzGuestSubscription -InputObject <IComputeLimitIdentity> -Resource <IGuestSubscription>
[-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -102,7 +104,7 @@ The name of the GuestSubscription

```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded, CreateViaIdentityLocation, CreateViaIdentityLocationExpanded
Parameter Sets: CreateExpanded, CreateViaIdentityLocationExpanded, CreateViaIdentityLocation, Create
Aliases: GuestSubscriptionId

Required: True
Expand All @@ -117,7 +119,7 @@ Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ComputeLimit.Models.IComputeLimitIdentity
Parameter Sets: CreateViaIdentity, CreateViaIdentityExpanded
Parameter Sets: CreateViaIdentityExpanded, CreateViaIdentity
Aliases:

Required: True
Expand All @@ -132,7 +134,7 @@ The name of the Azure region.

```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded
Parameter Sets: CreateExpanded, Create
Aliases:

Required: True
Expand All @@ -147,7 +149,7 @@ Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ComputeLimit.Models.IComputeLimitIdentity
Parameter Sets: CreateViaIdentityLocation, CreateViaIdentityLocationExpanded
Parameter Sets: CreateViaIdentityLocationExpanded, CreateViaIdentityLocation
Aliases:

Required: True
Expand All @@ -162,7 +164,7 @@ Guest subscription that consumes shared compute limits.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ComputeLimit.Models.IGuestSubscription
Parameter Sets: Create, CreateViaIdentity, CreateViaIdentityLocation
Parameter Sets: CreateViaIdentityLocation, Create, CreateViaIdentity
Aliases:

Required: True
Expand All @@ -178,7 +180,7 @@ The value must be an UUID.

```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded
Parameter Sets: CreateExpanded, Create
Aliases:

Required: False
Expand Down Expand Up @@ -235,4 +237,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

45 changes: 22 additions & 23 deletions src/ComputeLimit/ComputeLimit/help/Add-AzSharedLimit.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
external help file:
external help file: Az.ComputeLimit-help.xml
Module Name: Az.ComputeLimit
online version: https://learn.microsoft.com/powershell/module/az.computelimit/add-azsharedlimit
schema: 2.0.0
Expand All @@ -15,37 +15,37 @@ Enables sharing of a compute limit by the host subscription with its guest subsc
### CreateExpanded (Default)
```
Add-AzSharedLimit -Location <String> -Name <String> [-SubscriptionId <String>] [-DefaultProfile <PSObject>]
[-Confirm] [-WhatIf] [<CommonParameters>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

### Create
```
Add-AzSharedLimit -Location <String> -Name <String> -Resource <ISharedLimit> [-SubscriptionId <String>]
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzSharedLimit -Location <String> -Name <String> [-SubscriptionId <String>] -Resource <ISharedLimit>
[-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### CreateViaIdentity
### CreateViaIdentityLocationExpanded
```
Add-AzSharedLimit -InputObject <IComputeLimitIdentity> -Resource <ISharedLimit> [-DefaultProfile <PSObject>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzSharedLimit -Name <String> -LocationInputObject <IComputeLimitIdentity> [-DefaultProfile <PSObject>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

### CreateViaIdentityExpanded
### CreateViaIdentityLocation
```
Add-AzSharedLimit -InputObject <IComputeLimitIdentity> [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf]
[<CommonParameters>]
Add-AzSharedLimit -Name <String> -LocationInputObject <IComputeLimitIdentity> -Resource <ISharedLimit>
[-DefaultProfile <PSObject>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### CreateViaIdentityLocation
### CreateViaIdentityExpanded
```
Add-AzSharedLimit -LocationInputObject <IComputeLimitIdentity> -Name <String> -Resource <ISharedLimit>
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzSharedLimit -InputObject <IComputeLimitIdentity> [-DefaultProfile <PSObject>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

### CreateViaIdentityLocationExpanded
### CreateViaIdentity
```
Add-AzSharedLimit -LocationInputObject <IComputeLimitIdentity> -Name <String> [-DefaultProfile <PSObject>]
[-Confirm] [-WhatIf] [<CommonParameters>]
Add-AzSharedLimit -InputObject <IComputeLimitIdentity> -Resource <ISharedLimit> [-DefaultProfile <PSObject>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -102,7 +102,7 @@ Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ComputeLimit.Models.IComputeLimitIdentity
Parameter Sets: CreateViaIdentity, CreateViaIdentityExpanded
Parameter Sets: CreateViaIdentityExpanded, CreateViaIdentity
Aliases:

Required: True
Expand All @@ -117,7 +117,7 @@ The name of the Azure region.

```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded
Parameter Sets: CreateExpanded, Create
Aliases:

Required: True
Expand All @@ -132,7 +132,7 @@ Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ComputeLimit.Models.IComputeLimitIdentity
Parameter Sets: CreateViaIdentityLocation, CreateViaIdentityLocationExpanded
Parameter Sets: CreateViaIdentityLocationExpanded, CreateViaIdentityLocation
Aliases:

Required: True
Expand All @@ -147,7 +147,7 @@ The name of the SharedLimit

```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded, CreateViaIdentityLocation, CreateViaIdentityLocationExpanded
Parameter Sets: CreateExpanded, Create, CreateViaIdentityLocationExpanded, CreateViaIdentityLocation
Aliases:

Required: True
Expand All @@ -162,7 +162,7 @@ Compute limits shared by the subscription.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ComputeLimit.Models.ISharedLimit
Parameter Sets: Create, CreateViaIdentity, CreateViaIdentityLocation
Parameter Sets: Create, CreateViaIdentityLocation, CreateViaIdentity
Aliases:

Required: True
Expand All @@ -178,7 +178,7 @@ The value must be an UUID.

```yaml
Type: System.String
Parameter Sets: Create, CreateExpanded
Parameter Sets: CreateExpanded, Create
Aliases:

Required: False
Expand Down Expand Up @@ -235,4 +235,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## NOTES

## RELATED LINKS

Loading