Skip to content
Closed
Show file tree
Hide file tree
Changes from 6 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
25 changes: 25 additions & 0 deletions src/Azs.Compute.Admin/Azs.Compute.Admin.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@{
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason you need to check in this file, it should be generated by build-module.ps1 automatically.

GUID = '062cd24f-2cc1-4efc-87e6-39a699410a31'
RootModule = 'Azs.Compute.Admin.psm1'
ModuleVersion = '1.0.1'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
Copyright = 'Microsoft Corporation. All rights reserved.'
Description = 'Microsoft AzureStack PowerShell: Compute Admin cmdlets'
PowerShellVersion = '5.1'
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Azs.Compute.Admin.private.dll'
RequiredModules = @(@{ModuleName = 'Az.Accounts'; RequiredVersion = '2.2.8'; }, @{ModuleName = 'Az.Resources'; RequiredVersion = '0.11.0'; })
FormatsToProcess = './Azs.Compute.Admin.format.ps1xml'
FunctionsToExport = 'Add-AzsPlatformImage', 'Add-AzsVMExtension', 'Disable-AzsTenantSubscriptionFeature', 'Enable-AzsTenantSubscriptionFeature', 'Get-AzsComputeQuota', 'Get-AzsComputeScaleUnit', 'Get-AzsDisk', 'Get-AzsDiskMigrationJob', 'Get-AzsFeature', 'Get-AzsPlatformImage', 'Get-AzsVMExtension', 'New-AzsComputeQuota', 'New-AzsDiskMigrationJob', 'Remove-AzsComputeQuota', 'Remove-AzsPlatformImage', 'Remove-AzsVMExtension', 'Set-AzsComputeQuota', 'Stop-AzsDiskMigrationJob', 'Update-AzsGlobalFeatureSetting', '*'
AliasesToExport = 'Start-AzsDiskMigrationJob', '*'
PrivateData = @{
PSData = @{
Tags = 'AzureStack', 'ResourceManager', 'ARM', 'PSModule'
LicenseUri = 'https://aka.ms/azps-license'
ProjectUri = 'https://github.com/Azure/azurestack-powershell'
ReleaseNotes = 'AzureStack Hub Admin module generated with https://github.com/Azure/autorest.powershell'
}
}
}
8 changes: 4 additions & 4 deletions src/Azs.Compute.Admin/custom/New-AzsComputeQuota.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Creates or Updates a Compute Quota with the provided quota parameters.
.Example
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/new-azscomputequota
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
Expand All @@ -25,7 +25,7 @@ NEWQUOTA <IQuota>: Holds Compute quota information used to control resource allo
https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/new-azscomputequota
#>
function New-AzsComputeQuota {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
Expand All @@ -52,7 +52,7 @@ param(

[Parameter(ParameterSetName='Create', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota]
# Holds Compute quota information used to control resource allocation.
# To construct, see NOTES section for NEWQUOTA properties and create a hash table.
${NewQuota},
Expand Down
8 changes: 4 additions & 4 deletions src/Azs.Compute.Admin/custom/New-AzsDiskMigrationJob.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Starts a managed disk migration job to migrate managed disks to the specified de
.Example
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/new-azsdiskmigrationjob
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180730Preview.IDisk[]
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDisk[]
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180730Preview.IDiskMigrationJob
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDiskMigrationJob
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
Expand All @@ -23,7 +23,7 @@ https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/new-azsdisk
#>
function New-AzsDiskMigrationJob {
[Alias('Start-AzsDiskMigrationJob')]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180730Preview.IDiskMigrationJob])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDiskMigrationJob])]
[CmdletBinding(DefaultParameterSetName='Volume', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
Expand Down Expand Up @@ -68,7 +68,7 @@ param(

[Parameter(Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180730Preview.IDisk[]]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDisk[]]
# .
# To construct, see NOTES section for DISKS properties and create a hash table.
${Disks},
Expand Down
8 changes: 4 additions & 4 deletions src/Azs.Compute.Admin/custom/Set-AzsComputeQuota.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Creates or Updates a Compute Quota with the provided quota parameters.
.Example
To view examples, please use the -Online parameter with Get-Help or navigate to: https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/set-azscomputequota
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
Expand All @@ -25,7 +25,7 @@ NEWQUOTA <IQuota>: Holds Compute quota information used to control resource allo
https://docs.microsoft.com/en-us/powershell/module/azs.compute.admin/set-azscomputequota
#>
function Set-AzsComputeQuota {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota])]
[CmdletBinding(DefaultParameterSetName='Update', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter()]
Expand All @@ -38,7 +38,7 @@ param(

[Parameter(Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20180209.IQuota]
[Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api202101.IQuota]
# Holds Compute quota information used to control resource allocation.
# To construct, see NOTES section for NEWQUOTA properties and create a hash table.
${NewQuota},
Expand Down
8 changes: 4 additions & 4 deletions src/Azs.Compute.Admin/custom/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ These provide functionality to our HTTP pipeline and other useful features. In s

### Attributes
For processing the cmdlets, we've created some additional attributes:
- `Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.DescriptionAttribute`
- `Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.DescriptionAttribute`
- Used in C# cmdlets to provide a high-level description of the cmdlet. This is propegated to reference documentation via [help comments](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
- `Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.DoNotExportAttribute`
- `Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.DoNotExportAttribute`
- Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Azs.Compute.Admin`.
- `Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.InternalExportAttribute`
- `Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.InternalExportAttribute`
- Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Azs.Compute.Admin`. For more information, see [readme.md](..\internal/readme.md) in the `..\internal` folder.
- `Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.ProfileAttribute`
- `Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.ProfileAttribute`
- Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
40 changes: 15 additions & 25 deletions src/Azs.Compute.Admin/docs/Add-AzsPlatformImage.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ ProvisioningState : Succeeded
Type : Microsoft.Compute.Admin/locations/artifactTypes/publishers/offers/skus/versions
```

Add a Platform Image from Blob Storage. Use the a SasUri to specify the location of the PlatformImage, or use a publicly accessible URL.
Add a Platform Image from Blob Storage.
Use the a SasUri to specify the location of the PlatformImage, or use a publicly accessible URL.

## PARAMETERS

### -AsJob
Run the command as a job

```yaml
Type: System.Management.Automation.SwitchParameter
Expand All @@ -75,7 +78,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -BillingPartNumber
Expand All @@ -91,7 +93,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -DataDisks
Expand All @@ -108,7 +109,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -DefaultProfile
Expand All @@ -124,7 +124,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -InputObject
Expand All @@ -141,7 +140,6 @@ Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Dynamic: False
```

### -Location
Expand All @@ -157,7 +155,6 @@ Position: Named
Default value: (Get-AzLocation)[0].Location
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -NewImage
Expand All @@ -174,7 +171,6 @@ Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Dynamic: False
```

### -NoWait
Expand All @@ -190,7 +186,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -Offer
Expand All @@ -206,7 +201,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -OsType
Expand All @@ -222,7 +216,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -OsUri
Expand All @@ -238,7 +231,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -ProvisioningState
Expand All @@ -254,7 +246,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -Publisher
Expand All @@ -270,7 +261,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -Sku
Expand All @@ -286,7 +276,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -SubscriptionId
Expand All @@ -303,7 +292,6 @@ Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -Version
Expand All @@ -319,7 +307,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -Confirm
Expand All @@ -335,7 +322,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### -WhatIf
Expand All @@ -352,7 +338,6 @@ Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Dynamic: False
```

### CommonParameters
Expand All @@ -368,31 +353,35 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

### Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20151201Preview.IPlatformImage

## ALIASES

## NOTES

### COMPLEX PARAMETER PROPERTIES
ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

#### DATADISKS <IDataDisk[]>: Data disks used by the platform image.

DATADISKS <IDataDisk[]>: Data disks used by the platform image.
- `[Lun <Int32?>]`: Logical unit number.
- `[Uri <String>]`: Location of the disk template.

#### INPUTOBJECT <IComputeAdminIdentity>: Identity Parameter
INPUTOBJECT <IComputeAdminIdentity>: Identity Parameter
- `[DiskId <String>]`: The disk guid as identity.
- `[FeatureName <String>]`: Name of the feature.
- `[Id <String>]`: Resource identity path
- `[Location <String>]`: Location of the resource.
- `[MigrationId <String>]`: The migration job guid name.
- `[Offer <String>]`: Name of the offer.
- `[Publisher <String>]`: Name of the publisher.
- `[QuotaName <String>]`: Name of the quota.
- `[ScaleUnitName <String>]`: Name of the scale unit.
- `[Sku <String>]`: Name of the SKU.
- `[SubscriptionId <String>]`: Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
- `[Type <String>]`: Type of extension.
- `[Version <String>]`: The version of the resource.

#### NEWIMAGE <IPlatformImageParameters>: Parameters used to create a new platform image.
NEWIMAGE <IPlatformImageParameters>: Parameters used to create a new platform image.
- `[DataDisk <IDataDisk[]>]`: Data disks used by the platform image.
- `[Lun <Int32?>]`: Logical unit number.
- `[Uri <String>]`: Location of the disk template.
Expand All @@ -402,3 +391,4 @@ To create the parameters described below, construct a hash table containing the
- `[ProvisioningState <ProvisioningState?>]`: Provisioning status of the platform image.

## RELATED LINKS

Loading