Skip to content

Commit

Permalink
Merge pull request #15 from Azure/azs-case
Browse files Browse the repository at this point in the history
Case Sensitivity - Fixing module/package names for Azurebridge, InfraStructureinsights and Keyvault
  • Loading branch information
bganapa authored Jun 16, 2020
2 parents bf0cad2 + 1d6a29c commit 59f7e0f
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 41 deletions.
22 changes: 11 additions & 11 deletions src/Azs.AzureBridge.Admin/readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- region Generated -->
# Azs.AzureBridge.Admin
# Azs.Azurebridge.Admin
This directory contains the PowerShell module for the BridgeAdmin service.

---
## Status
[![Azs.AzureBridge.Admin](https://img.shields.io/powershellgallery/v/Azs.AzureBridge.Admin.svg?style=flat-square&label=Azs.AzureBridge.Admin "Azs.AzureBridge.Admin")](https://www.powershellgallery.com/packages/Azs.AzureBridge.Admin/)
[![Azs.Azurebridge.Admin](https://img.shields.io/powershellgallery/v/Azs.Azurebridge.Admin.svg?style=flat-square&label=Azs.Azurebridge.Admin "Azs.Azurebridge.Admin")](https://www.powershellgallery.com/packages/Azs.Azurebridge.Admin/)

## Info
- Modifiable: yes
Expand All @@ -23,7 +23,7 @@ This module was primarily generated via [AutoRest](https://github.com/Azure/auto
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.

## Development
For information on how to develop for `Azs.AzureBridge.Admin`, see [how-to.md](how-to.md).
For information on how to develop for `Azs.Azurebridge.Admin`, see [how-to.md](how-to.md).
<!-- endregion -->

## Generation Requirements
Expand Down Expand Up @@ -54,15 +54,15 @@ metadata:
description: 'Microsoft AzureStack PowerShell: AzureBridge Admin cmdlets'

subject-prefix: AzureBridge
module-version: 0.9.0-preview
module-version: 0.9.1-preview
identity-correction-for-post: true
service-name: BridgeAdmin

### File Renames
module-name: Azs.AzureBridge.Admin
csproj: Azs.AzureBridge.Admin.csproj
psd1: Azs.AzureBridge.Admin.psd1
psm1: Azs.AzureBridge.Admin.psm1
module-name: Azs.Azurebridge.Admin
csproj: Azs.Azurebridge.Admin.csproj
psd1: Azs.Azurebridge.Admin.psd1
psm1: Azs.Azurebridge.Admin.psm1

directive:
- where:
Expand Down Expand Up @@ -117,19 +117,19 @@ directive:
remove: true.

# Add release notes
- from: Azs.AzureBridge.Admin.nuspec
- from: Azs.Azurebridge.Admin.nuspec
where: $
transform: $ = $.replace('<releaseNotes></releaseNotes>', '<releaseNotes>AzureStack Hub Admin module generated with https://github.com/Azure/autorest.powershell - see https://aka.ms/azpshmigration for breaking changes.</releaseNotes>');

# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.AzureBridge.Admin.nuspec
- from: Azs.Azurebridge.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.0.1-preview]" />\n <dependency id="Az.Resources" version="[0.10.0-preview]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.AzureBridge.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.AzureBridge.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.0.1\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'0.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Azurebridge.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Azurebridge.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.0.1\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'0.10.0\'; \}\}\)\"\);');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Backup.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module-version: 0.9.0-preview
service-name: BackupAdmin

### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Backup.Admin
csproj: Azs.Backup.Admin.csproj
psd1: Azs.Backup.Admin.psd1
Expand Down
3 changes: 2 additions & 1 deletion src/Azs.Commerce.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ metadata:
subject-prefix: ''
module-version: 0.9.0-preview
service-name: CommerceAdmin
### File Renames
### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Commerce.Admin
csproj: Azs.Commerce.Admin.csproj
psd1: Azs.Commerce.Admin.psd1
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Compute.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module-version: 0.9.0-preview
service-name: ComputeAdmin

### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Compute.Admin
csproj: Azs.Compute.Admin.csproj
psd1: Azs.Compute.Admin.psd1
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Fabric.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ module-version: 0.9.0-preview
service-name: FabricAdmin

### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Fabric.Admin
csproj: Azs.Fabric.Admin.csproj
psd1: Azs.Fabric.Admin.psd1
Expand Down
2 changes: 1 addition & 1 deletion src/Azs.Gallery.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ service-name: GalleryAdmin
```
### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
```yaml
module-name: Azs.Gallery.Admin
csproj: Azs.Gallery.Admin.csproj
Expand Down
23 changes: 12 additions & 11 deletions src/Azs.InfrastructureInsights.Admin/readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- region Generated -->
# Azs.InfrastructureInsights.Admin
# Azs.Infrastructureinsights.Admin
This directory contains the PowerShell module for the InfrastructureInsightsAdmin service.

---
## Status
[![Azs.InfrastructureInsights.Admin](https://img.shields.io/powershellgallery/v/Azs.InfrastructureInsights.Admin.svg?style=flat-square&label=Azs.InfrastructureInsights.Admin "Azs.InfrastructureInsights.Admin")](https://www.powershellgallery.com/packages/Azs.InfrastructureInsights.Admin/)
[![Azs.Infrastructureinsights.Admin](https://img.shields.io/powershellgallery/v/Azs.Infrastructureinsights.Admin.svg?style=flat-square&label=Azs.Infrastructureinsights.Admin "Azs.Infrastructureinsights.Admin")](https://www.powershellgallery.com/packages/Azs.Infrastructureinsights.Admin/)

## Info
- Modifiable: yes
Expand All @@ -23,7 +23,7 @@ This module was primarily generated via [AutoRest](https://github.com/Azure/auto
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.

## Development
For information on how to develop for `Azs.InfrastructureInsights.Admin`, see [how-to.md](how-to.md).
For information on how to develop for `Azs.Infrastructureinsights.Admin`, see [how-to.md](how-to.md).
<!-- endregion -->

## Generation Requirements
Expand Down Expand Up @@ -61,14 +61,15 @@ metadata:

### PSD1 metadata changes
subject-prefix: ''
module-version: 0.9.0-preview
module-version: 0.9.1-preview
service-name: InfrastructureInsightsAdmin

### File Renames
module-name: Azs.InfrastructureInsights.Admin
csproj: Azs.InfrastructureInsights.Admin.csproj
psd1: Azs.InfrastructureInsights.Admin.psd1
psm1: Azs.InfrastructureInsights.Admin.psm1
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Infrastructureinsights.Admin
csproj: Azs.Infrastructureinsights.Admin.csproj
psd1: Azs.Infrastructureinsights.Admin.psd1
psm1: Azs.Infrastructureinsights.Admin.psm1

### Parameter default values
directive:
Expand Down Expand Up @@ -182,19 +183,19 @@ directive:
UsageMetric: 50

# Add release notes
- from: Azs.InfrastructureInsights.Admin.nuspec
- from: Azs.Infrastructureinsights.Admin.nuspec
where: $
transform: $ = $.replace('<releaseNotes></releaseNotes>', '<releaseNotes>AzureStack Hub Admin module generated with https://github.com/Azure/autorest.powershell - see https://aka.ms/azpshmigration for breaking changes.</releaseNotes>');

# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.InfrastructureInsights.Admin.nuspec
- from: Azs.Infrastructureinsights.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.0.1-preview]" />\n <dependency id="Az.Resources" version="[0.10.0-preview]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.InfrastructureInsights.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.InfrastructureInsights.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.0.1\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'0.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Infrastructureinsights.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Infrastructureinsights.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.0.1\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'0.10.0\'; \}\}\)\"\);');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
17 changes: 9 additions & 8 deletions src/Azs.KeyVault.Admin/readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!-- region Generated -->
# Azs.KeyVault.Admin
# Azs.Keyvault.Admin
This directory contains the PowerShell module for the KeyVault Admin service.

---
## Status
[![Azs.KeyVault.Admin](https://img.shields.io/powershellgallery/v/Azs.KeyVault.Admin.svg?style=flat-square&label=Azs.KeyVault.Admin "Azs.KeyVault.Admin")](https://www.powershellgallery.com/packages/Azs.KeyVault.Admin/)
[![Azs.Keyvault.Admin](https://img.shields.io/powershellgallery/v/Azs.Keyvault.Admin.svg?style=flat-square&label=Azs.Keyvault.Admin "Azs.Keyvault.Admin")](https://www.powershellgallery.com/packages/Azs.Keyvault.Admin/)

## Info
- Modifiable: yes
Expand All @@ -23,7 +23,7 @@ This module was primarily generated via [AutoRest](https://github.com/Azure/auto
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.

## Development
For information on how to develop for `Azs.KeyVault.Admin`, see [how-to.md](how-to.md).
For information on how to develop for `Azs.Keyvault.Admin`, see [how-to.md](how-to.md).
<!-- endregion -->

## Generation Requirements
Expand Down Expand Up @@ -58,14 +58,15 @@ metadata:

### PSD1 metadata changes
subject-prefix: 'Keyvault'
module-version: 0.9.0-preview
module-version: 0.9.1-preview
service-name: KeyvaultAdmin

### File Renames
module-name: Azs.KeyVault.Admin
csproj: Azs.KeyVault.Admin.csproj
psd1: Azs.KeyVault.Admin.psd1
psm1: Azs.KeyVault.Admin.psm1
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Keyvault.Admin
csproj: Azs.Keyvault.Admin.csproj
psd1: Azs.Keyvault.Admin.psd1
psm1: Azs.Keyvault.Admin.psm1

directive:
# Add release notes
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Network.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module-version: 0.9.0-preview
service-name: NetworkAdmin

### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Network.Admin
csproj: Azs.Network.Admin.csproj # C# project file
psd1: Azs.Network.Admin.psd1 # module manifest file
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Storage.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module-version: 0.9.0-preview
service-name: StorageAdmin

### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Storage.Admin
csproj: Azs.Storage.Admin.csproj
psd1: Azs.Storage.Admin.psd1
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Subscriptions.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ sanitize-names: false
service-name: SubscriptionsAdmin

### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Subscriptions.Admin
csproj: Azs.Subscriptions.Admin.csproj
psd1: Azs.Subscriptions.Admin.psd1
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Subscriptions/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ sanitize-names: false
service-name: Subscription

### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Subscriptions
csproj: Azs.Subscriptions.csproj
psd1: Azs.Subscriptions.psd1
Expand Down
1 change: 1 addition & 0 deletions src/Azs.Update.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module-version: 0.9.0-preview
service-name: UpdateAdmin

### File Renames
### IMPORTANT - Note that the following settings are case sensitive ###
module-name: Azs.Update.Admin
csproj: Azs.Update.Admin.csproj
psd1: Azs.Update.Admin.psd1
Expand Down
8 changes: 4 additions & 4 deletions src/AzureStack/AzureStack.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>AzureStack</id>
<version>2.0.0-preview</version>
<version>2.0.1-preview</version>
<authors>Microsoft Corporation</authors>
<owners>Microsoft Corporation</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
Expand All @@ -16,14 +16,14 @@
<dependency id="Az.Accounts" version="[2.0.1-preview]" />
<dependency id="Az.Resources" version="[0.10.0-preview]" />
<dependency id="Azs.Backup.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.AzureBridge.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.Azurebridge.Admin" version="[0.9.1-preview]" />
<dependency id="Azs.Commerce.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.Compute.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.Fabric.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.Deployment.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.Gallery.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.InfrastructureInsights.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.KeyVault.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.Infrastructureinsights.Admin" version="[0.9.1-preview]" />
<dependency id="Azs.Keyvault.Admin" version="[0.9.1-preview]" />
<dependency id="Azs.Network.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.Storage.Admin" version="[0.9.0-preview]" />
<dependency id="Azs.Subscriptions" version="[0.9.0-preview]" />
Expand Down
13 changes: 8 additions & 5 deletions src/AzureStack/AzureStack.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'AzureStack.psm1'

# Version number of this module.
ModuleVersion = '2.0.0'
ModuleVersion = '2.0.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -54,17 +54,18 @@
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
### IMPORTANT - Note that the module names are case sensitive ###
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.0.1'; },
@{ModuleName = 'Az.Resources'; RequiredVersion = '0.10.0'; },
@{ModuleName = 'Azs.AzureBridge.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Azurebridge.Admin'; RequiredVersion = '0.9.1'; },
@{ModuleName = 'Azs.Backup.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Commerce.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Compute.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Deployment.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Fabric.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Gallery.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.InfrastructureInsights.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.KeyVault.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Infrastructureinsights.Admin'; RequiredVersion = '0.9.1'; },
@{ModuleName = 'Azs.Keyvault.Admin'; RequiredVersion = '0.9.1'; },
@{ModuleName = 'Azs.Network.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Storage.Admin'; RequiredVersion = '0.9.0'; },
@{ModuleName = 'Azs.Subscriptions'; RequiredVersion = '0.9.0'; },
Expand Down Expand Up @@ -125,7 +126,9 @@
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = 'Version 2.0.0, Requires AzureStack Update 2002+, Please refer https://aka.ms/azpshmigration for breaking changes'
ReleaseNotes = 'Version 2.0.1,
* Bug Fix for module failing to load in linux environments, module names and folders are case sensitive
* Requires AzureStack Update 2002+, Please refer https://aka.ms/azpshmigration for breaking changes'

# Preview version
Prerelease = 'preview'
Expand Down

0 comments on commit 59f7e0f

Please sign in to comment.