Skip to content

Use internal Storage SDK for AzureRM.Storage.ps1 in Common #7959

@MiYanni

Description

@MiYanni

For our ScenarioTest.ResourceManager project, we use a couple of ps1 files that are used by module scenario tests, AzureRM.Resources.ps1 and AzureRM.Storage.ps1. These files contain functions that are similar to actual cmdlets from the respective modules. However, these functions only use the SDK calls directly. This allows the scenario tests that rely on this common functionality to use the same version of our SDKs and not rely on changes from the modules or other SDK versions.

However, for AzureRM.Storage.ps1, it currently is using an SDK version. You can see that here. In comparison, the AzureRM.Resources.ps1 is using the internal Resources SDK. We should change AzureRM.Storage.ps1 to use our internal SDK version.

  • Update references to Microsoft.Azure.Management.Storage with our internal namespace
  • Test changes in module scenario tests to verify that these changes work appropriately
    • Rerecording may be necessary, but likely should not be. I believe the version of Management.Storage we use is the same API version as our internal one, but I could be wrong.
  • Publish the Common package with the updated ps1 and make a PR into this repo to change the package version numbers

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions