Skip to content
Merged
Prev Previous commit
Next Next commit
update tests
  • Loading branch information
yaotongms committed Nov 8, 2024
commit c1a1efbc1cfcca99d718f89d254b9382b26a7c5c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@

[assembly: ComVisible(false)]
[assembly: CLSCompliant(false)]
[assembly: Guid("8c7788a5-e377-4f47-a99e-543295839824")]
[assembly: Guid("6a502836-61dc-4ea0-b8ca-5229073c7782")]
[assembly: AssemblyVersion("0.1.0")]
[assembly: AssemblyFileVersion("0.1.0")]
2 changes: 1 addition & 1 deletion src/ConnectedMachine/ConnectedMachine.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ directive:
- model-name: LicenseDetails
cmdlet-name: New-AzConnectedLicenseDetail
- model-cmdlet:
- model-name: ProductProfileUpdateProperties
- model-name: ProductFeatureUpdate
cmdlet-name: New-AzConnectedLicenseProfileUpdate
- model-cmdlet:
- model-name: ProductFeature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The operation to create or update a license profile.
Create an in-memory object for ProductFeature.

### [New-AzConnectedLicenseProfileUpdate](New-AzConnectedLicenseProfileUpdate.md)
Create an in-memory object for ProductProfileUpdateProperties.
Create an in-memory object for ProductFeatureUpdate.

### [New-AzConnectedMachineExtension](New-AzConnectedMachineExtension.md)
The operation to create or update the extension.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,60 @@ Retrieves information about the view of a license profile.

## EXAMPLES

### Example 1: {{ Add title here }}
### Example 1: Get ESU license profile for a machine
```powershell
{{ Add code here }}
Get-AzConnectedLicenseProfile -MachineName WIN-IAH3TLSP7A8 -ResourceGroupName PayGo_cmdlet
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
AdditionalInfo :
Code :
Detail :
EsuProfileAssignedLicense :
EsuProfileAssignedLicenseImmutableId :
EsuProfileEsuEligibility : Ineligible
EsuProfileEsuKey : {}
EsuProfileEsuKeyState : Inactive
EsuProfileServerType : Datacenter
Id : /subscriptions/b24cc8ee-df4f-48ac-94cf-46edf36b0fae/resourceGroups/PayGo_c
mdlet/providers/Microsoft.HybridCompute/machines/WIN-IAH3TLSP7A8/licensePr
ofiles/default
Location : eastus
Message :
Name : default
ProductProfileBillingEndDate :
ProductProfileBillingStartDate : 11/15/2024 1:53:34 AM
ProductProfileDisenrollmentDate :
ProductProfileEnrollmentDate : 11/8/2024 1:53:34 AM
ProductProfileProductFeature : {{
"name": "WindowsServerAzureArcMgmt",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2024-11-08T01:58:37.6099656Z",
"billingStartDate": "2024-11-08T01:58:37.6096833Z"
}, {
"name": "Hotpatch",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2024-11-08T01:58:37.6095044Z",
"billingStartDate": "2025-02-01T00:00:00.0000000"
}}
ProductProfileProductType : WindowsServer
ProductProfileSubscriptionStatus : Enabled
ProvisioningState : Succeeded
ResourceGroupName : PayGo_cmdlet
SoftwareAssuranceCustomer :
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tags : {
}
Target :
Type : Microsoft.HybridCompute/machines/licenseProfiles
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
{{ Add code here }}
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```

{{ Add description here }}
Get ESU license profile for a machine

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,63 @@ The operation to create or update a license profile.

## EXAMPLES

### Example 1: {{ Add title here }}
### Example 1: Create a license profile for a machine
```powershell
{{ Add code here }}
New-AzConnectedLicenseProfile -MachineName "WIN-IAH3TLSP7A8" -ResourceGroupName "PayGo_cmdlet" -Location "eastus" -ProductProfileProductType "WindowsServer" -ProductProfileSubscriptionStatus "Enabled" -ProductProfileProductFeature $productfeature
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```

{{ Add description here }}
AdditionalInfo :
Code :
Detail :
EsuProfileAssignedLicense :
EsuProfileAssignedLicenseImmutableId :
EsuProfileEsuEligibility : Ineligible
EsuProfileEsuKey : {}
EsuProfileEsuKeyState : Inactive
EsuProfileServerType : Datacenter
Id : /subscriptions/********-****-****-****-**********/resourceGroups/PayGo_c
mdlet/providers/Microsoft.HybridCompute/machines/WIN-IAH3TLSP7A8/licensePr
ofiles/default
Location : eastus
Message :
Name : default
ProductProfileBillingEndDate :
ProductProfileBillingStartDate : 11/15/2024 1:53:34 AM
ProductProfileDisenrollmentDate :
ProductProfileEnrollmentDate : 11/8/2024 1:53:34 AM
ProductProfileProductFeature : {{
"name": "WindowsServerAzureArcMgmt",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2024-11-08T01:58:37.6099656Z",
"billingStartDate": "2024-11-08T01:58:37.6096833Z"
}, {
"name": "Hotpatch",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2024-11-08T01:58:37.6095044Z",
"billingStartDate": "2025-02-01T00:00:00.0000000"
}}
ProductProfileProductType : WindowsServer
ProductProfileSubscriptionStatus : Enabled
ProvisioningState : Succeeded
ResourceGroupName : PayGo_cmdlet
SoftwareAssuranceCustomer :
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tags : {
}
Target :
Type : Microsoft.HybridCompute/machines/licenseProfiles
```

Create a license profile for a machine

### Example 2: {{ Add title here }}
```powershell
{{ Add code here }}
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```

{{ Add description here }}

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ schema: 2.0.0
# New-AzConnectedLicenseProfileUpdate

## SYNOPSIS
Create an in-memory object for ProductProfileUpdateProperties.
Create an in-memory object for ProductFeatureUpdate.

## SYNTAX

```
New-AzConnectedLicenseProfileUpdate [-ProductFeature <IProductFeatureUpdate[]>] [-ProductType <String>]
[-SubscriptionStatus <String>] [<CommonParameters>]
New-AzConnectedLicenseProfileUpdate [-Name <String>] [-SubscriptionStatus <String>] [<CommonParameters>]
```

## DESCRIPTION
Create an in-memory object for ProductProfileUpdateProperties.
Create an in-memory object for ProductFeatureUpdate.

## EXAMPLES

Expand Down Expand Up @@ -46,23 +45,8 @@ Create an in-memory object for ProductProfileUpdateProperties.

## PARAMETERS

### -ProductFeature
The list of product feature updates.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IProductFeatureUpdate[]
Parameter Sets: (All)
Aliases:

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

### -ProductType
Indicates the product type of the license.
### -Name
Product feature name.

```yaml
Type: System.String
Expand All @@ -77,7 +61,7 @@ Accept wildcard characters: False
```

### -SubscriptionStatus
Indicates the subscription status of the product.
Indicates the new status of the product feature.

```yaml
Type: System.String
Expand All @@ -98,7 +82,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductProfileUpdateProperties
### Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeatureUpdate

## NOTES

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,12 @@ The operation to delete a license profile.

## EXAMPLES

### Example 1: {{ Add title here }}
### Example 1: Remove a license profile of the machine
```powershell
{{ Add code here }}
Remove-AzConnectedLicenseProfile -MachineName WIN-89LGOPE94T3 -ResourceGroupName edyoung
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
{{ Add code here }}
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```

{{ Add description here }}
Remove a license profile of the machine

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,27 +62,57 @@ The operation to update a license profile.

## EXAMPLES

### Example 1: {{ Add title here }}
### Example 1: Update a license profile for a machine
```powershell
{{ Add code here }}
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```
$productfeature = New-AzConnectedLicenseProfileUpdate -Name "Hotpatch" -SubscriptionStatus "Enable"

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
{{ Add code here }}
Update-AzConnectedLicenseProfile -MachineName "WIN-IAH3TLSP7A8" -ResourceGroupName "PayGo_cmdlet" -ProductProfileProductType "WindowsServer" -ProductProfileSubscriptionStatus "Enabled" -ProductProfileProductFeature $productfeature
```

```output
{{ Add output here (remove the output block if the example doesn't have an output) }}
```

{{ Add description here }}
AdditionalInfo :
Code :
Detail :
EsuProfileAssignedLicense :
EsuProfileAssignedLicenseImmutableId :
EsuProfileEsuEligibility : Ineligible
EsuProfileEsuKey :
EsuProfileEsuKeyState : Inactive
EsuProfileServerType : Datacenter
Id : /subscriptions/********-****-****-****-**********/resourceGroups/e
dyoung/providers/Microsoft.HybridCompute/machines/WIN-89LGOPE94T3/li
censeProfiles/default
Location : centraluseuap
Message :
Name : default
ProductProfileBillingEndDate :
ProductProfileBillingStartDate :
ProductProfileDisenrollmentDate :
ProductProfileEnrollmentDate :
ProductProfileProductFeature : {{
"name": "WindowsServerAzureArcMgmt",
"subscriptionStatus": "Enabled",
"enrollmentDate": "2024-11-07T19:22:26.8693148Z",
"billingStartDate": "2024-11-07T19:22:26.8693071Z"
}}
ProductProfileProductType : WindowsServer
ProductProfileSubscriptionStatus :
ProvisioningState : Succeeded
ResourceGroupName : edyoung
SoftwareAssuranceCustomer : True
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tags : {
}
Target :
Type : Microsoft.HybridCompute/machines/licenseProfiles
```

Update a license profile for a machine

## PARAMETERS

Expand Down
Loading