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
6 changes: 4 additions & 2 deletions documentation/azure-powershell-modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Content Delivery Network | `Az.Cdn`
Cognitive Services | `Az.CognitiveServices` | [![CognitiveServices]][CognitiveServicesGallery]
Compute | `Az.Compute` | [![Compute]][ComputeGallery]
Connected Kubernetes | `Az.ConnectedKubernetes` | [![ConnectedKubernetes]][ConnectedKubernetesGallery]

Container Instance | `Az.ContainerInstance` | [![ContainerInstance]][ContainerInstanceGallery]
Container Registry | `Az.ContainerRegistry` | [![ContainerRegistry]][ContainerRegistryGallery]
Cosmos DB | `Az.CosmosDB` | [![CosmosDB]][CosmosDBGallery]
Expand Down Expand Up @@ -102,6 +101,7 @@ SignalR | `Az.SignalR`
SQL | `Az.Sql` | [![Sql]][SqlGallery]
SQL Server on Virtual Machines | `Az.SqlVirtualMachine` | [![SqlVirtualMachine]][SqlVirtualMachineGallery]
Stack Edge | `Az.StackEdge` | [![StackEdge]][StackEdgeGallery]
Stack HCI | `Az.StackHCI` | [![StackHCI]][StackHCIGallery]
Storage | `Az.Storage` | [![Storage]][StorageGallery]
File Sync | `Az.StorageSync` | [![StorageSync]][StorageSyncGallery]
Stream Analytics | `Az.StreamAnalytics` | [![StreamAnalytics]][StreamAnalyticsGallery]
Expand Down Expand Up @@ -137,7 +137,7 @@ Web App Service | `Az.Websites`
[ContainerInstance]: https://img.shields.io/powershellgallery/v/Az.ContainerInstance.svg?style=flat-square&label=Az.ContainerInstance
[ContainerRegistry]: https://img.shields.io/powershellgallery/v/Az.ContainerRegistry.svg?style=flat-square&label=Az.ContainerRegistry
[CosmosDB]: https://img.shields.io/powershellgallery/v/Az.CosmosDB.svg?style=flat-square&label=Az.CosmosDB
[CustomProvidersDB]: https://img.shields.io/powershellgallery/v/Az.CustomProviders.svg?style=flat-square&label=Az.CustomProviders
[CustomProviders]: https://img.shields.io/powershellgallery/v/Az.CustomProviders.svg?style=flat-square&label=Az.CustomProviders
[DataBox]: https://img.shields.io/powershellgallery/v/Az.DataBox.svg?style=flat-square&label=Az.DataBox
[DataBoxEdge]: https://img.shields.io/powershellgallery/v/Az.DataBoxEdge.svg?style=flat-square&label=Az.DataBoxEdge
[Databricks]: https://img.shields.io/powershellgallery/v/Az.Databricks.svg?style=flat-square&label=Az.Databricks
Expand Down Expand Up @@ -207,6 +207,7 @@ Web App Service | `Az.Websites`
[Sql]: https://img.shields.io/powershellgallery/v/Az.Sql.svg?style=flat-square&label=Az.Sql
[SqlVirtualMachine]: https://img.shields.io/powershellgallery/v/Az.SqlVirtualMachine.svg?style=flat-square&label=Az.SqlVirtualMachine
[StackEdge]: https://img.shields.io/powershellgallery/v/Az.StackEdge.svg?style=flat-square&label=Az.StackEdge
[StackHCI]: https://img.shields.io/powershellgallery/v/Az.StackHCI.svg?style=flat-square&label=Az.StackHCI
[Storage]: https://img.shields.io/powershellgallery/v/Az.Storage.svg?style=flat-square&label=Az.Storage
[StorageSync]: https://img.shields.io/powershellgallery/v/Az.StorageSync.svg?style=flat-square&label=Az.StorageSync
[StreamAnalytics]: https://img.shields.io/powershellgallery/v/Az.StreamAnalytics.svg?style=flat-square&label=Az.StreamAnalytics
Expand Down Expand Up @@ -310,6 +311,7 @@ Web App Service | `Az.Websites`
[SqlGallery]: https://www.powershellgallery.com/packages/Az.Sql/
[SqlVirtualMachineGallery]: https://www.powershellgallery.com/packages/Az.SqlVirtualMachine/
[StackEdgeGallery]: https://www.powershellgallery.com/packages/Az.StackEdge/
[StackHCIGallery]: https://www.powershellgallery.com/packages/Az.StackHCI/
[StorageGallery]: https://www.powershellgallery.com/packages/Az.Storage/
[StorageSyncGallery]: https://www.powershellgallery.com/packages/Az.StorageSync/
[StreamAnalyticsGallery]: https://www.powershellgallery.com/packages/Az.StreamAnalytics/
Expand Down
7 changes: 7 additions & 0 deletions src/StackHCI/Az.StackHCI.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PsModuleName>StackHCI</PsModuleName>
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)..\Az.autorest.props" />
</Project>
5 changes: 5 additions & 0 deletions src/StackHCI/Az.StackHCI.format.ps1xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-16"?>
<Configuration>
<ViewDefinitions>
</ViewDefinitions>
</Configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
RootModule = 'Az.StackHCI.psm1'

# Version number of this module.
ModuleVersion = '1.0.0.1'
ModuleVersion = '0.2.0'

# Supported PSEditions
# CompatiblePSEditions = @()
CompatiblePSEditions = 'Core', 'Desktop'

# ID used to uniquely identify this module
GUID = '04280841-a6a0-4929-83bc-9d2e99771bb4'
GUID = '7a80d748-b6f0-42d1-a08d-215c5a006769'

# Author of this module
Author = 'Microsoft Corporation'
Expand All @@ -27,22 +27,22 @@ Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = '(c) 2020 Microsoft Corporation. All rights reserved.'
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'PowerShell module for managing Azure Stack HCI'
Description = 'Microsoft Azure PowerShell: StackHCI cmdlets'

# Minimum version of the Windows PowerShell engine required by this module
# PowerShellVersion = ''
# Minimum version of the PowerShell engine required by this module
PowerShellVersion = '5.1'

# Name of the Windows PowerShell host required by this module
# Name of the PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the Windows PowerShell host required by this module
# Minimum version of the PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# DotNetFrameworkVersion = ''
DotNetFrameworkVersion = '4.7.2'

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# CLRVersion = ''
Expand All @@ -51,7 +51,7 @@ Description = 'PowerShell module for managing Azure Stack HCI'
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @()
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.9.1'; })

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
Expand All @@ -72,10 +72,10 @@ Description = 'PowerShell module for managing Azure Stack HCI'
FunctionsToExport = 'Register-AzStackHCI', 'Unregister-AzStackHCI'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = '*'
CmdletsToExport = @()

# Variables to export from this module
VariablesToExport = '*'
# VariablesToExport = '*'

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = '*'
Expand Down Expand Up @@ -107,7 +107,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
# ReleaseNotes = ''
ReleaseNotes = 'Added hash table for region.'

} # End of PSData hashtable

Expand Down
File renamed without changes.
10 changes: 8 additions & 2 deletions src/StackHCI/StackHCI/ChangeLog.md → src/StackHCI/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@
-->
## Upcoming Release

## Version 1.0.0
* Public Preview of `Az.StackHCI` module
## Version 0.2.0
* Added hash table for region.

## Version 0.1.1
* Added `Core` to `CompatiblePSEditions`.

## Version 0.1.0
* Public Preview of `Az.StackHCI` module.
48 changes: 48 additions & 0 deletions src/StackHCI/StackHCI.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.StackHCI", "Az.StackHCI.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030}
EndGlobalSection
EndGlobal
Empty file.
Empty file added src/StackHCI/custom/gitkeep.md
Empty file.
Empty file.
Empty file.
19 changes: 19 additions & 0 deletions src/StackHCI/help/Az.StackHCI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
Module Name: Az.StackHCI
Module Guid: 8ff047e4-15bb-4b53-a728-75641c49958b
Download Help Link: https://docs.microsoft.com/en-us/powershell/module/az.StackHCI
Help Version: 1.0.0.0
Locale: en-US
---

# Az.StackHCI Module
## Description
Microsoft Azure PowerShell: StackHCI cmdlets

## Az.StackHCI Cmdlets
### [Register-AzStackHCI](Register-AzStackHCI.md)
Register-AzStackHCI creates a Microsoft.AzureStackHCI cloud resource representing the on-premise cluster and registers the on-premise cluster with Azure.

### [Unregister-AzStackHCI](Unregister-AzStackHCI.md)
Unregister-AzStackHCI deletes the Microsoft.AzureStackHCI cloud resource representing the on-premise cluster and unregisters the on-premise cluster with Azure.

Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
external help file: Az.StackHCI-help.xml
Module Name: Az.StackHCI
online version:
online version: https://docs.microsoft.com/en-us/powershell/module/az.stackhci/register-azstackhci
schema: 2.0.0
---

# Register-AzStackHCI

## SYNOPSIS
Register-AzStackHCI creates a Microsoft.AzureStackHCI cloud resource representing the on-premise cluster and registers the on-premise cluster with Azure.

## SYNTAX

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
---
external help file: Az.StackHCI-help.xml
Module Name: Az.StackHCI
online version:
online version: https://docs.microsoft.com/en-us/powershell/module/az.stackhci/unregister-azstackhci
schema: 2.0.0
---

# Unregister-AzStackHCI

## SYNOPSIS
Unregister-AzStackHCI deletes the Microsoft.AzureStackHCI cloud resource representing the on-premise cluster and unregisters the on-premise cluster with Azure.
The registered information available on the cluster is used to unregister the cluster if no parameters are passed.

## SYNTAX

Expand Down
Empty file.
Empty file.
Empty file added src/StackHCI/test-module.ps1
Empty file.
Empty file added src/StackHCI/test/gitkeep.md
Empty file.
2 changes: 1 addition & 1 deletion tools/CheckAssemblies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $DependencyMap = Import-Csv -Path $DependencyMapPath
$ModuleManifestFiles = $ProjectPaths | ForEach-Object { Get-ChildItem -Path $_ -Filter "*.psd1" -Recurse | Where-Object { $_.FullName -like "*$($BuildConfig)*" -and `
$_.FullName -notlike "*Netcore*" -and `
$_.FullName -notlike "*dll-Help.psd1*" -and `
($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*") } }
($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*" -or $_.FullName -like "*StackHCI*") } }

foreach ($ModuleManifest in $ModuleManifestFiles) {
Write-Host "checking $($ModuleManifest.Fullname)"
Expand Down
2 changes: 1 addition & 1 deletion tools/CreateAliasMapping.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $mapping = [ordered]@{}

$psd1s = Get-ChildItem -Path $PSScriptRoot/../src -Recurse | `
Where-Object {($_.Name -like "*AzureRM*psd1" -or $_.Name -eq "Azure.AnalysisServices.psd1" -or $_.Name -eq "Azure.Storage.psd1") `
-and ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*") -and $_.FullName -notlike "*`\Package`\*" -and $_.FullName -notlike "*Test*" -and $_.FullName -notlike "*`\bin`\*" -and $_.FullName -notlike "*`\obj`\*"}
-and ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*" -or $_.FullName -like "*StackHCI*") -and $_.FullName -notlike "*`\Package`\*" -and $_.FullName -notlike "*Test*" -and $_.FullName -notlike "*`\bin`\*" -and $_.FullName -notlike "*`\obj`\*"}

$psd1s | ForEach-Object {
$name = (($_.Name -replace "AzureRM", "Az") -replace "Azure", "Az") -replace ".psd1", "" -replace "RecoveryServices.SiteRecovery", "RecoveryServices" -replace "RecoveryServices.Backup", "RecoveryServices"
Expand Down
2 changes: 1 addition & 1 deletion tools/CreateFilterMappings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function Add-SolutionReference
[string]$ServiceFolderPath
)

$CsprojFiles = Get-ChildItem -Path $ServiceFolderPath -Filter "*.csproj" -Recurse | Where-Object { ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*") -and $_.FullName -notlike "*.Test*" }
$CsprojFiles = Get-ChildItem -Path $ServiceFolderPath -Filter "*.csproj" -Recurse | Where-Object { ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*" -or $_.FullName -like "*StackHCI*") -and $_.FullName -notlike "*.Test*" }
foreach ($CsprojFile in $CsprojFiles)
{
$Key = $CsprojFile.BaseName
Expand Down
2 changes: 1 addition & 1 deletion tools/CreateMappings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $results = @{};
$warnings = @();

# Find all cmdlet names by help file names in the repository.
$cmdlets = Get-ChildItem $RootPath -Recurse | Where-Object { $_.FullName -cmatch ".*\\help\\.*-.*.md" -and ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*") };
$cmdlets = Get-ChildItem $RootPath -Recurse | Where-Object { $_.FullName -cmatch ".*\\help\\.*-.*.md" -and ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*" -or $_.FullName -like "*StackHCI*") };

$k = 0;
$cmdlets | ForEach-Object {
Expand Down
3 changes: 2 additions & 1 deletion tools/CreateMappings_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,6 @@
{ "regex": "MonitoringSolutions", "alias": "Monitoring Solutions" },
{ "regex": "StackEdge", "alias": "Stack Edge" },
{ "regex": "ConnectedKubernetes", "alias": "Connected Kubernetes" },
{ "regex": "KubernetesConfiguration", "alias": "Kubernetes Configuration" }
{ "regex": "KubernetesConfiguration", "alias": "Kubernetes Configuration" },
{ "regex": "StackHCI", "alias": "Stack HCI" }
]
2 changes: 1 addition & 1 deletion tools/GenerateHelp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Param(

$ResourceManagerFolders = Get-ChildItem -Directory -Path "$PSScriptRoot\..\src" | Where-Object { $_.Name -ne 'lib' -and $_.Name -ne 'Package' -and $_.Name -ne 'packages' }
Import-Module "$PSScriptRoot\HelpGeneration\HelpGeneration.psm1"
$UnfilteredHelpFolders = Get-ChildItem -Include 'help' -Path "$PSScriptRoot\..\artifacts" -Recurse -Directory | where { $_.FullName -like "*$BuildConfig*" -and ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*") }
$UnfilteredHelpFolders = Get-ChildItem -Include 'help' -Path "$PSScriptRoot\..\artifacts" -Recurse -Directory | where { $_.FullName -like "*$BuildConfig*" -and ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*" -or $_.FullName -like "*StackHCI*") }
$FilteredHelpFolders = $UnfilteredHelpFolders
if (![string]::IsNullOrEmpty($FilteredModules))
{
Expand Down
2 changes: 1 addition & 1 deletion tools/NewHelpIndex.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $RMpsd1s += Get-ChildItem -Path $resourceManagerPath -Depth 2 | Where-Object {
$_.Name -like "*.psd1" -and $_.FullName -notlike "*dll-Help*" -and $_.Name -ne "SecretManagementExtension.psd1"
}

$HelpFolders += Get-ChildItem -Path "$PSScriptRoot/../src" -Recurse -Directory | where { $_.Name -eq "help" -and $_.FullName -notlike "*\Stack\*" -and $_.FullName -notlike "*\bin\*"}
$HelpFolders += Get-ChildItem -Path "$PSScriptRoot/../src" -Recurse -Directory | where { $_.Name -eq "help" -and ($_.FullName -notlike "*Stack*" -or $_.FullName -like "*StackEdge*" -or $_.FullName -like "*StackHCI*") -and $_.FullName -notlike "*\bin\*"}

# Map the name of the cmdlet to the location of the help file
$HelpFileMapping = @{}
Expand Down
1 change: 1 addition & 0 deletions tools/Tools.Common/WhiteList.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Module
StackEdge
StackHCI