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
8 changes: 4 additions & 4 deletions src/ConnectedMachine/ConnectedMachine.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ input-file:
module-version: 0.1.0
title: ConnectedMachine
subject-prefix: 'Connected'
# becasue autorest.powershell is unable to transform IdentityType as the best practice design if it uses managed identity
# because autorest.powershell is unable to transform IdentityType as the best practice design if it uses managed identity
# we hide the original cmdlet and custom it under /custom folder
disable-transform-identity-type-for-operation:
- Machines_Update
Expand Down Expand Up @@ -305,7 +305,7 @@ directive:
- PublicNetworkAccess
- ProvisioningState

# Removing cmlets
# Removing cmdlets
- where:
subject: PrivateEndpointConnection
remove: true
Expand Down Expand Up @@ -334,7 +334,7 @@ directive:
variant: Upgrade
remove: true

# we will release gateway and setting commands in a seperate module
# we will release gateway and setting commands in a separate module
- where:
subject: Gateway
remove: true
Expand Down Expand Up @@ -367,7 +367,7 @@ directive:
subject: NetworkConfiguration
remove: true

# becasue autorest.powershell is unable to transform IdentityType as the best practice design if it uses managed identity
# because autorest.powershell is unable to transform IdentityType as the best practice design if it uses managed identity
# we hide the original cmdlet and custom it under /custom folder
- where:
subject: Machine
Expand Down
2 changes: 1 addition & 1 deletion src/ConnectedMachine/ConnectedMachine/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

## Version 0.7.0
* Added `ScriptLocalPath` to `New-AzConnectedMachineRunCommand` to let users add script files locally
* Added `MachineName` parameter to the McahineExtension and MachineRunCommand models
* Added `MachineName` parameter to the MachineExtension and MachineRunCommand models

## Version 0.6.0
* This release, aimed at version 2023-10-03-preview of ConnectedMachine, introduces new commands alongside the existing ones
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRp
```

Getting the registration key for NFM device in resource group myResources with resource name myMecDevice.
To register the device, use the commandlet Invoke-MecRegister with the registration key in the minishell session.
To register the device, use the cmdlet Invoke-MecRegister with the registration key in the minishell session.

### Example 2: Get-AzConnectedNetworkDeviceRegistrationKey using Resource Group, Resource name and Subscription Id
```powershell
Expand All @@ -44,7 +44,7 @@ eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRp
```

Getting the registration key for NFM device in resource group myResources with resource name myMecDevice.
To register the device, use the commandlet Invoke-MecRegister with the registration key in the minishell session.
To register the device, use the cmdlet Invoke-MecRegister with the registration key in the minishell session.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ VendorProvisioningState : NotProvisioned
```

Getting the information of a vendor network function with service key 1234-abcd-4321-dcba, vendor name myVendor, location centraluseuap and subscription.
Service key can be obtained when getting details of network funcrtion or when creating a network function.
Service key can be obtained when getting details of network function or when creating a network function.

### Example 2: Get-AzConnectedNetworkVendorFunction via Identity
```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxx
```

```output
eviceType ProvisioningState Status
DeviceType ProvisioningState Status
---------- ----------------- ------
AzureStackEdge
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Powers off (stop) a role instance of a vendor network function.
Stop-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1
```

Stoping a role instance of a vendor network function with the specified serviceKey, location centraluseuap, vendor name myVendor and role instance name role1.
Stopping a role instance of a vendor network function with the specified serviceKey, location centraluseuap, vendor name myVendor and role instance name role1.

### Example 2: Stop-AzConnectedNetworkVendorFunctionRoleInstance via Identity
```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGro
eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9
```

Getting the registration key for NFM device in resource group myResources with resource name myMecDevice. To register the device, use the commandlet Invoke-MecRegister with the registration key in the minishell session.
Getting the registration key for NFM device in resource group myResources with resource name myMecDevice. To register the device, use the cmdlet Invoke-MecRegister with the registration key in the minishell session.

### Example 2: Get-AzConnectedNetworkDeviceRegistrationKey using Resource Group, Resource name and Subscription Id
```powershell
Expand All @@ -18,4 +18,4 @@ Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGro
eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9
```

Getting the registration key for NFM device in resource group myResources with resource name myMecDevice. To register the device, use the commandlet Invoke-MecRegister with the registration key in the minishell session.
Getting the registration key for NFM device in resource group myResources with resource name myMecDevice. To register the device, use the cmdlet Invoke-MecRegister with the registration key in the minishell session.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ VendorProvisioningState : NotProvisioned

```

Getting the information of a vendor network function with service key 1234-abcd-4321-dcba, vendor name myVendor, location centraluseuap and subscription. Service key can be obtained when getting details of network funcrtion or when creating a network function.
Getting the information of a vendor network function with service key 1234-abcd-4321-dcba, vendor name myVendor, location centraluseuap and subscription. Service key can be obtained when getting details of network function or when creating a network function.

### Example 2: Get-AzConnectedNetworkVendorFunction via Identity
```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Stop-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1
```

Stoping a role instance of a vendor network function with the specified serviceKey, location centraluseuap, vendor name myVendor and role instance name role1.
Stopping a role instance of a vendor network function with the specified serviceKey, location centraluseuap, vendor name myVendor and role instance name role1.

### Example 2: Stop-AzConnectedNetworkVendorFunctionRoleInstance via Identity
```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Type : microsoft.connectedvmwarevsphere/virtu
UefiSettingSecureBootEnabled : False
```

This command enable a VM Instances of machine named `test-machine` from a invetory vm in a resource group named `test-rg`.
This command enable a VM Instances of machine named `test-machine` from a inventory vm in a resource group named `test-rg`.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,4 +408,4 @@ Type : microsoft.connectedvmwarevsphere/virtu
UefiSettingSecureBootEnabled : False
```

This command enable a VM Instances of machine named `test-machine` from a invetory vm in a resource group named `test-rg`.
This command enable a VM Instances of machine named `test-machine` from a inventory vm in a resource group named `test-rg`.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Create a in-memory object for Container with no default values

## EXAMPLES

### Example 1: Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb
### Example 1: Create a container instance using image alpine with request cpu 1.0 and request memory 1.5Gb
```powershell
New-AzContainerInstanceNoDefaultObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5
```
Expand All @@ -46,9 +46,9 @@ Name
test-container
```

Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb
Create a container instance using image alpine with request cpu 1.0 and request memory 1.5Gb

### Example 2: Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb
### Example 2: Create a container instance using image alpine with limit cpu 2.0 and limit memory 2.5Gb
```powershell
New-AzContainerInstanceNoDefaultObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5
```
Expand All @@ -59,7 +59,7 @@ Name
test-container
```

Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb
Create a container instance using image alpine with limit cpu 2.0 and limit memory 2.5Gb

### Example 3: Create a container group with a container instance
```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Create a in-memory object for Container

## EXAMPLES

### Example 1: Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb
### Example 1: Create a container instance using image alpine with request cpu 1.0 and request memory 1.5Gb
```powershell
New-AzContainerInstanceObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5
```
Expand All @@ -46,9 +46,9 @@ Name
test-container
```

Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb
Create a container instance using image alpine with request cpu 1.0 and request memory 1.5Gb

### Example 2: Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb
### Example 2: Create a container instance using image alpine with limit cpu 2.0 and limit memory 2.5Gb
```powershell
New-AzContainerInstanceObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5
```
Expand All @@ -59,7 +59,7 @@ Name
test-container
```

Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb
Create a container instance using image alpine with limit cpu 2.0 and limit memory 2.5Gb

### Example 3: Create a container group with a container instance
```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ AdditionalProperties : {[k, v]}
Count : 1
```

This command updates a container group using pipeing.
This command updates a container group using piping.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ AdditionalProperties : {[k, v]}
Count : 1
```

This command updates a container group profile using pipeing.
This command updates a container group profile using piping.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## EXAMPLES

### Example 1: Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb
### Example 1: Create a container instance using image alpine with request cpu 1.0 and request memory 1.5Gb
```powershell
New-AzContainerInstanceNoDefaultObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5
```
Expand All @@ -11,9 +11,9 @@ Name
test-container
```

Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb
Create a container instance using image alpine with request cpu 1.0 and request memory 1.5Gb

### Example 2: Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb
### Example 2: Create a container instance using image alpine with limit cpu 2.0 and limit memory 2.5Gb
```powershell
New-AzContainerInstanceNoDefaultObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5
```
Expand All @@ -24,7 +24,7 @@ Name
test-container
```

Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb
Create a container instance using image alpine with limit cpu 2.0 and limit memory 2.5Gb

### Example 3: Create a container group with a container instance
```powershell
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb
### Example 1: Create a container instance using image alpine with request cpu 1.0 and request memory 1.5Gb
```powershell
New-AzContainerInstanceObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5
```
Expand All @@ -9,9 +9,9 @@ Name
test-container
```

Create a container instance using image alphine with request cpu 1.0 and request memory 1.5Gb
Create a container instance using image alpine with request cpu 1.0 and request memory 1.5Gb

### Example 2: Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb
### Example 2: Create a container instance using image alpine with limit cpu 2.0 and limit memory 2.5Gb
```powershell
New-AzContainerInstanceObject -Image alpine -Name "test-container" -LimitCpu 2 -LimitMemoryInGb 2.5
```
Expand All @@ -22,7 +22,7 @@ Name
test-container
```

Create a container instance using image alphine with limit cpu 2.0 and limit memory 2.5Gb
Create a container instance using image alpine with limit cpu 2.0 and limit memory 2.5Gb

### Example 3: Create a container group with a container instance
```powershell
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ AdditionalProperties : {[k, v]}
Count : 1
```

This command updates a container group using pipeing.
This command updates a container group using piping.

Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ AdditionalProperties : {[k, v]}
Count : 1
```

This command updates a container group profile using pipeing.
This command updates a container group profile using piping.
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ public override void ExecuteChildCmdlet()
{
if (ParameterSetName.Equals(ByManifestParameterSet))
{
if (this.ShouldProcess(string.Format("Delete manitest {0}@{1} under {2}", this.RepositoryName, this.Manifest, this.RegistryName)))
if (this.ShouldProcess(string.Format("Delete manifest {0}@{1} under {2}", this.RepositoryName, this.Manifest, this.RegistryName)))
{
WriteObject(this.RegistryDataPlaneClient.RemoveManifest(this.RepositoryName, this.Manifest));
}
}
else if (ParameterSetName.Equals(ByTagParameterSet))
{
if (this.ShouldProcess(string.Format("Delete manitest for {0}:{1} under {2}", this.RepositoryName, this.Tag, this.RegistryName)))
if (this.ShouldProcess(string.Format("Delete manifest for {0}:{1} under {2}", this.RepositoryName, this.Tag, this.RegistryName)))
{
WriteObject(this.RegistryDataPlaneClient.RemoveManifestByTag(this.RepositoryName, this.Tag));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ public override void ExecuteChildCmdlet()
PSChangeableAttribute attribute = new PSChangeableAttribute(DeleteEnabled, WriteEnabled, ListEnabled, ReadEnabled);
if (ParameterSetName.Equals(ByManifestParameterSet))
{
if (this.ShouldProcess(string.Format("Update manitest {0}@{1} under {2}", this.RepositoryName, this.Manifest, this.RegistryName)))
if (this.ShouldProcess(string.Format("Update manifest {0}@{1} under {2}", this.RepositoryName, this.Manifest, this.RegistryName)))
{
WriteObject(this.RegistryDataPlaneClient.UpdateManifest(this.RepositoryName, this.Manifest, attribute));
}
}
else if (ParameterSetName.Equals(ByTagParameterSet))
{
if (this.ShouldProcess(string.Format("Update manitest for {0}:{1} under {2}", this.RepositoryName, this.Tag, this.RegistryName)))
if (this.ShouldProcess(string.Format("Update manifest for {0}:{1} under {2}", this.RepositoryName, this.Tag, this.RegistryName)))
{
WriteObject(this.RegistryDataPlaneClient.UpdateManifestByTag(this.RepositoryName, this.Tag, attribute));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private string GetToken(string scope)
}
catch
{
throw new AzPSInvalidOperationException(string.Format("Invalud token for {0}", scope));
throw new AzPSInvalidOperationException(string.Format("Invalid token for {0}", scope));
}

cache.Set(key, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<#
.SYNOPSIS
Test Cassandra CRUD cmdlets using Name paramter set
Test Cassandra CRUD cmdlets using Name parameter set
#>
function Test-CassandraCreateUpdateGetCmdlets
{
Expand Down Expand Up @@ -150,7 +150,7 @@ function Test-CassandraCreateUpdateGetCmdlets

<#
.SYNOPSIS
Test Cassandra CRUD cmdlets using Parent Object and InputObject paramter set
Test Cassandra CRUD cmdlets using Parent Object and InputObject parameter set
#>
function Test-CassandraCreateUpdateGetCmdletsByPiping
{
Expand Down Expand Up @@ -249,7 +249,7 @@ function Test-CassandraCreateUpdateGetCmdletsByPiping

<#
.SYNOPSIS
Test Cassandra Throughput cmdlets using all paramter sets
Test Cassandra Throughput cmdlets using all parameter sets
#>
function Test-CassandraThroughputCmdlets
{
Expand Down
Loading