Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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
13 changes: 4 additions & 9 deletions src/ArcResourceBridge/ArcResourceBridge.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ title: ArcResourceBridge
module-version: 0.1.0
subject-prefix: $(service-name)

identity-correction-for-post: true
resourcegroup-append: true
nested-object-to-string: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"

directive:
Comment on lines 37 to 40
Copy link
Preview

Copilot AI Aug 26, 2025

Choose a reason for hiding this comment

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

[nitpick] The README.md file is missing documentation about the AutoRest v4 upgrade and its implications. Consider adding a comment or section explaining the version change from v3 to v4 and noting that this affects the generated cmdlet interfaces.

Copilot uses AI. Check for mistakes.

- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}"].delete.responses
Expand All @@ -68,7 +60,10 @@ directive:
}

- where:
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true
- where:
verb: Set
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.ArcResourceBridge
Module Guid: 6cd160c6-948f-43e5-b6c9-483d483f3a4b
Module Guid: e97e4f24-db76-4243-a318-250467b4a331
Download Help Link: https://learn.microsoft.com/powershell/module/az.arcresourcebridge
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -27,11 +27,11 @@ Gets the telemetry config.
Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train.

### [New-AzArcResourceBridge](New-AzArcResourceBridge.md)
Creates or updates an Appliance in the specified Subscription and Resource Group.
Create an Appliance in the specified Subscription and Resource Group.

### [Remove-AzArcResourceBridge](Remove-AzArcResourceBridge.md)
Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.

### [Update-AzArcResourceBridge](Update-AzArcResourceBridge.md)
Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription.
Update an Appliance with the specified Resource Name in the specified Resource Group and Subscription.

Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Expand Down Expand Up @@ -168,7 +167,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IAppliance
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IAppliance

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IApplianceListCredentialResults
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceListCredentialResults

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IApplianceListKeysResults
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceListKeysResults

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,11 @@ Gets the telemetry config.

## SYNTAX

### Get (Default)
```
Get-AzArcResourceBridgeTelemetryConfig [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

### GetViaIdentity
```
Get-AzArcResourceBridgeTelemetryConfig -InputObject <IArcResourceBridgeIdentity> [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

## DESCRIPTION
Gets the telemetry config.

Expand Down Expand Up @@ -58,28 +51,12 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Parameter Sets: GetViaIdentity
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -SubscriptionId
The ID of the target subscription.

```yaml
Type: System.String[]
Parameter Sets: Get
Parameter Sets: (All)
Aliases:

Required: False
Expand All @@ -94,11 +71,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## INPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity

## OUTPUTS

### System.String
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IApplianceGetTelemetryConfigResult

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ Get-AzArcResourceBridgeUpgradeGraph -InputObject <IArcResourceBridgeIdentity> [-
[<CommonParameters>]
```

### GetViaIdentityAppliance
```
Get-AzArcResourceBridgeUpgradeGraph -ApplianceInputObject <IArcResourceBridgeIdentity> -UpgradeGraph <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Gets the upgrade graph of an Appliance with a specified resource group and name and specific release train.

Expand All @@ -44,6 +50,21 @@ Gets the upgrade graph of an Appliance with a specified resource group and name

## PARAMETERS

### -ApplianceInputObject
Identity Parameter

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Parameter Sets: GetViaIdentityAppliance
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Expand All @@ -62,7 +83,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Expand Down Expand Up @@ -127,7 +147,7 @@ Upgrade graph version, ex - stable

```yaml
Type: System.String
Parameter Sets: Get
Parameter Sets: Get, GetViaIdentityAppliance
Aliases:

Required: True
Expand All @@ -146,7 +166,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IUpgradeGraph
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IUpgradeGraph

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,40 @@ schema: 2.0.0
# New-AzArcResourceBridge

## SYNOPSIS
Creates or updates an Appliance in the specified Subscription and Resource Group.
Create an Appliance in the specified Subscription and Resource Group.

## SYNTAX

### CreateExpanded (Default)
```
New-AzArcResourceBridge -Name <String> -ResourceGroupName <String> -Location <String>
[-SubscriptionId <String>] [-Distro <Distro>] [-IdentityType <ResourceIdentityType>]
[-InfrastructureConfigProvider <Provider>] [-PublicKey <String>] [-Tag <Hashtable>] [-Version <String>]
[-SubscriptionId <String>] [-Distro <String>] [-EnableSystemAssignedIdentity]
[-InfrastructureConfigProvider <String>] [-PublicKey <String>] [-Tag <Hashtable>] [-Version <String>]
[-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [<CommonParameters>]
```

### CreateViaJsonFilePath
```
New-AzArcResourceBridge -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

### CreateViaJsonString
```
New-AzArcResourceBridge -Name <String> -ResourceGroupName <String> -JsonString <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
[<CommonParameters>]
```

## DESCRIPTION
Creates or updates an Appliance in the specified Subscription and Resource Group.
Create an Appliance in the specified Subscription and Resource Group.

## EXAMPLES

### Example 1: Creates or updates an Appliance in the specified Subscription and Resource Group.
```powershell
New-AzArcResourceBridge -Name azps-resource-bridge -ResourceGroupName azps_test_group -Location eastus -IdentityType 'SystemAssigned' -Distro 'AKSEdge' -InfrastructureConfigProvider 'VMware' -Tag @{"123"="abc"}
New-AzArcResourceBridge -Name azps-resource-bridge -ResourceGroupName azps_test_group -Location eastus -EnableSystemAssignedIdentity -Distro 'AKSEdge' -InfrastructureConfigProvider 'VMware' -Tag @{"123"="abc"}
```

```output
Expand Down Expand Up @@ -75,8 +90,8 @@ Represents a supported Fabric/Infra.
(AKSEdge etc...).

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Support.Distro
Parameter Sets: (All)
Type: System.String
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -86,12 +101,12 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -IdentityType
The identity type.
### -EnableSystemAssignedIdentity
Determines whether to enable a system-assigned identity for the resource.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Support.ResourceIdentityType
Parameter Sets: (All)
Type: System.Management.Automation.SwitchParameter
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -105,8 +120,8 @@ Accept wildcard characters: False
Information about the connected appliance.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Support.Provider
Parameter Sets: (All)
Type: System.String
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -116,12 +131,42 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonFilePath
Path of Json file supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonFilePath
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -JsonString
Json string supplied to the Create operation

```yaml
Type: System.String
Parameter Sets: CreateViaJsonString
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Location
The geo-location where the resource lives

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: True
Expand Down Expand Up @@ -167,7 +212,7 @@ Can only be set once.

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -213,7 +258,7 @@ Resource tags.

```yaml
Type: System.Collections.Hashtable
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand All @@ -228,7 +273,7 @@ Version of the Appliance

```yaml
Type: System.String
Parameter Sets: (All)
Parameter Sets: CreateExpanded
Aliases:

Required: False
Expand Down Expand Up @@ -276,7 +321,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.Api20221027.IAppliance
### Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IAppliance

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ Accept wildcard characters: False

### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ArcResourceBridge.Models.IArcResourceBridgeIdentity
Expand Down
Loading