Skip to content

Preview Release ConnectedMachine 2024-11-10 #27794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ConnectedMachine")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.1.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.1.1")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

92 changes: 87 additions & 5 deletions src/ConnectedMachine/ConnectedMachine.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ In this directory, run AutoRest:
> see https://aka.ms/autorest

``` yaml
commit: a9980ec5181a161dd26c5277f7651722b60503ea
commit: db38eb1dfb8955668de4e7d56593da7d697886c9
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/HybridCompute.json
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-07-31-preview/privateLinkScopes.json
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-11-10-preview/HybridCompute.json
- $(repo)/specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2024-11-10-preview/privateLinkScopes.json

module-version: 0.1.0
title: ConnectedMachine
subject-prefix: 'Connected'
Expand Down Expand Up @@ -212,6 +212,40 @@ directive:
}
}

- from: swagger-document
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/addExtensions"].post.parameters
transform: >-
return [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "machineName",
"in": "path",
"required": true,
"type": "string",
"pattern": "^[a-zA-Z0-9-_\\.]{1,54}$",
"minLength": 1,
"maxLength": 54,
"description": "The name of the hybrid machine."
},
{
"name": "extensionList",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/SetupExtensionRequest"
},
"description": "Parameters supplied to the Setup Extensions operation."
}
]

# GetViaIdentity isn't useful until Azure PowerShell supports piping of different subjects
- where:
verb: Get
Expand Down Expand Up @@ -304,7 +338,51 @@ directive:
- Location
- PublicNetworkAccess
- ProvisioningState

- where:
model-name: ExtensionValue
set:
format-table:
properties:
# - ResourceGroupName
# - Name
- Publisher
- ExtensionType
- Type
- Version
- where:
model-name: ExtensionValueV2
set:
format-table:
properties:
# - ResourceGroupName
# - Name
- Publisher
- ExtensionType
- Type
- Version
- where:
model-name: ExtensionValue
set:
format-table:
properties:
# - ResourceGroupName
# - Name
- Publisher
- ExtensionType
- Type
- Version
- where:
model-name: MachineRunCommand
set:
format-table:
exclude-properties:
- SystemDataCreatedAt
- SystemDataCreatedBy
- SystemDataCreatedByType
- SystemDataLastModifiedAt
- SystemDataLastModifiedBy
- SystemDataLastModifiedByType

# Removing cmlets
- where:
subject: PrivateEndpointConnection
Expand Down Expand Up @@ -333,6 +411,10 @@ directive:
subject: Extension
variant: Upgrade
remove: true
- where:
verb: Invoke
subject: SetupExtension
remove: true

# we will release gateway and setting commands in a seperate module
- where:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "licenses",
"apiVersion": "2024-07-31-preview",
"apiVersion": "2024-11-10-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,53 @@
{
"resourceType": "locations/publishers/extensionTypes/versions",
"apiVersion": "2024-07-31-preview",
"apiVersion": "2024-11-10-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
"commands": [
{
"name": "Get-AzConnectedExtensionMetadataV2",
"description": "Gets an Extension Metadata based on location, publisher, extensionType and version",
"path": "/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine/get-azconnectedextensionmetadatav2"
},
"parameterSets": [
{
"parameters": [
"-ExtensionType <String>",
"-Location <String>",
"-Publisher <String>",
"-Version <String>"
]
}
]
},
"examples": [
{
"description": "Gets an Extension Metadata based on location, publisher, extensionType and version",
"parameters": [
{
"name": "-ExtensionType",
"value": "[Path.extensionType]"
},
{
"name": "-Location",
"value": "[Path.location]"
},
{
"name": "-Publisher",
"value": "[Path.publisher]"
},
{
"name": "-Version",
"value": "[Path.version]"
}
]
}
]
},
{
"name": "Get-AzConnectedExtensionMetadata",
"description": "Gets an Extension Metadata based on location, publisher, extensionType and version",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "machines/extensions",
"apiVersion": "2024-07-31-preview",
"apiVersion": "2024-11-10-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "machines/licenseProfiles",
"apiVersion": "2024-07-31-preview",
"apiVersion": "2024-11-10-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "machines/runCommands",
"apiVersion": "2024-07-31-preview",
"apiVersion": "2024-11-10-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "machines",
"apiVersion": "2024-07-31-preview",
"apiVersion": "2024-11-10-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "privateLinkScopes/networkSecurityPerimeterConfigurations",
"apiVersion": "2024-07-31-preview",
"apiVersion": "2024-11-10-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "privateLinkScopes",
"apiVersion": "2024-07-31-preview",
"apiVersion": "2024-11-10-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.connectedmachine"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.LicenseDetails
https://learn.microsoft.com/powershell/module/Az.ConnectedMachine/new-azconnectedlicensedetail
#>
function New-AzConnectedLicenseDetail {
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.ModelCmdletAttribute()]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.LicenseDetails')]
[CmdletBinding(PositionalBinding=$false)]
Param(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeature
https://learn.microsoft.com/powershell/module/Az.ConnectedMachine/new-azconnectedlicenseprofilefeature
#>
function New-AzConnectedLicenseProfileFeature {
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.ModelCmdletAttribute()]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeature')]
[CmdletBinding(PositionalBinding=$false)]
Param(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeatureUpdate
https://learn.microsoft.com/powershell/module/Az.ConnectedMachine/update-azconnectedlicenseprofilefeature
#>
function Update-AzConnectedLicenseProfileFeature {
[Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.ModelCmdletAttribute()]
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.ProductFeatureUpdate')]
[CmdletBinding(PositionalBinding=$false)]
Param(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.ConnectedMachine
Module Guid: 259a0542-8329-4b9e-8f72-dab0efc583e9
Module Guid: 48dc5375-cf11-47a3-818f-8cc8059a85b9
Download Help Link: https://learn.microsoft.com/powershell/module/az.connectedmachine
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -17,6 +17,15 @@ API to register a new machine and thereby create a tracked resource in ARM
### [Get-AzConnectedExtensionMetadata](Get-AzConnectedExtensionMetadata.md)
Gets an Extension Metadata based on location, publisher, extensionType and version

### [Get-AzConnectedExtensionMetadataV2](Get-AzConnectedExtensionMetadataV2.md)
Gets an Extension Metadata based on location, publisher, extensionType and version

### [Get-AzConnectedExtensionPublisher](Get-AzConnectedExtensionPublisher.md)
Gets all Extension publishers based on the location

### [Get-AzConnectedExtensionType](Get-AzConnectedExtensionType.md)
Gets all Extension types based on location and publisher

### [Get-AzConnectedLicense](Get-AzConnectedLicense.md)
Retrieves information about the view of a license.

Expand Down
Loading