├── LICENSE ├── README.md ├── apim ├── v1 │ ├── apim.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v2 │ ├── apim.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v3 │ ├── apim.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v4 │ ├── apim.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json └── v5 │ ├── apim.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimcreateorupdateproduct ├── v1 │ ├── apimcreateorupdateproduct.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v2 │ ├── apimcreateorupdateproduct.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v3 │ ├── apimcreateorupdateproduct.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json └── v4 │ ├── apimcreateorupdateproduct.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimfunction ├── v1 │ ├── apimfunction.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v2 │ ├── apimfunction.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v3 │ ├── apimfunction.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json └── v4 │ ├── apimfunction.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimfunctionversioned ├── v1 │ ├── apimfunctionversioned.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v2 │ ├── apimfunctionversioned.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v3 │ ├── apimfunctionversioned.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json └── v4 │ ├── apimfunctionversioned.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimglobalpolicy ├── v1 │ ├── apimglobalpolicy.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json └── v2 │ ├── apimglobalpolicy.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimoperationpolicies ├── v3 │ ├── apimoperationpolicies.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v4 │ ├── apimoperationpolicies.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json └── v5 │ ├── apimoperationpolicies.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimreleaserevision └── v4 │ ├── apimreleaserevision.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimrestorefromrepository └── v3 │ ├── apimrestorefromrepository.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimsavetorepository └── v3 │ ├── apimsavetorepository.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimversioned ├── v1 │ ├── apimversioned.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v2 │ ├── apimversioned.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v3 │ ├── apimversioned.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v4 │ ├── apimversioned.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json └── v5 │ ├── apimversioned.ps1 │ ├── icon.png │ ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apimwsdl ├── v1 │ ├── apimwsdl.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── Share │ │ │ └── functions.psm1 │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json ├── v2 │ ├── apimwsdl.ps1 │ ├── icon.png │ ├── ps_modules │ │ ├── Share │ │ │ └── functions.psm1 │ │ ├── VstsAzureHelpers_ │ │ │ ├── ImportFunctions.ps1 │ │ │ ├── InitializeFunctions.ps1 │ │ │ ├── Strings │ │ │ │ └── resources.resjson │ │ │ │ │ ├── de-de │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── en-US │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── es-es │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── fr-fr │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── it-IT │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ja-jp │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ko-KR │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── ru-RU │ │ │ │ │ └── resources.resjson │ │ │ │ │ ├── zh-CN │ │ │ │ │ └── resources.resjson │ │ │ │ │ └── zh-TW │ │ │ │ │ └── resources.resjson │ │ │ ├── Tests │ │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ │ ├── L0.ts │ │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ │ ├── VstsAzureHelpers_.psm1 │ │ │ ├── module.json │ │ │ └── tsconfig.json │ │ └── VstsTaskSdk │ │ │ ├── FindFunctions.ps1 │ │ │ ├── InputFunctions.ps1 │ │ │ ├── LegacyFindFunctions.ps1 │ │ │ ├── LocalizationFunctions.ps1 │ │ │ ├── LoggingCommandFunctions.ps1 │ │ │ ├── LongPathFunctions.ps1 │ │ │ ├── Minimatch.dll │ │ │ ├── OutFunctions.ps1 │ │ │ ├── ServerOMFunctions.ps1 │ │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ │ ├── ToolFunctions.ps1 │ │ │ ├── TraceFunctions.ps1 │ │ │ ├── VstsTaskSdk.dll │ │ │ ├── VstsTaskSdk.psd1 │ │ │ ├── VstsTaskSdk.psm1 │ │ │ └── lib.json │ └── task.json └── v3 │ ├── apimwsdl.ps1 │ ├── icon.png │ ├── ps_modules │ ├── Share │ │ └── functions.psm1 │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json │ └── task.json ├── apisecuritychecker ├── apisecuritychecker.ps1 ├── icon.png ├── ps_modules │ ├── VstsAzureHelpers_ │ │ ├── ImportFunctions.ps1 │ │ ├── InitializeFunctions.ps1 │ │ ├── Strings │ │ │ └── resources.resjson │ │ │ │ ├── de-de │ │ │ │ └── resources.resjson │ │ │ │ ├── en-US │ │ │ │ └── resources.resjson │ │ │ │ ├── es-es │ │ │ │ └── resources.resjson │ │ │ │ ├── fr-fr │ │ │ │ └── resources.resjson │ │ │ │ ├── it-IT │ │ │ │ └── resources.resjson │ │ │ │ ├── ja-jp │ │ │ │ └── resources.resjson │ │ │ │ ├── ko-KR │ │ │ │ └── resources.resjson │ │ │ │ ├── ru-RU │ │ │ │ └── resources.resjson │ │ │ │ ├── zh-CN │ │ │ │ └── resources.resjson │ │ │ │ └── zh-TW │ │ │ │ └── resources.resjson │ │ ├── Tests │ │ │ ├── Import-AzureModule.AzurePreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.AzureRMPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.BothPreferredFallsBack.ps1 │ │ │ ├── Import-AzureModule.ThrowsWhenNotFound.ps1 │ │ │ ├── Import-AzureModule.ValidatesClassicVersion.ps1 │ │ │ ├── Import-FromModulePath.ImportsModules.ps1 │ │ │ ├── Import-FromModulePath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Import-FromModulePath.ValidatesRMProfileFound.ps1 │ │ │ ├── Import-FromSdkPath.ImportsModule.ps1 │ │ │ ├── Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1 │ │ │ ├── Initialize-Azure.PassesInputs.ps1 │ │ │ ├── Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenAzureStackSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenCertAuthAndEnvironment.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenSPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.PassesValuesWhenUPAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenSPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsUsefulErrorWhenUPAuthAndAddAccountFails.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenSPAuthAndClassic099.ps1 │ │ │ ├── Initialize-AzureSubscription.ThrowsWhenUnsupportedAuth.ps1 │ │ │ ├── L0.ts │ │ │ ├── OverriddesGlobalDebugPreference.ps1 │ │ │ ├── Set-CurrentAzureRMSubscription.PassesValues.ps1 │ │ │ ├── Set-CurrentAzureSubscription.PassesValues.ps1 │ │ │ └── Set-UserAgent.PassesValues.ps1 │ │ ├── VstsAzureHelpers_.psm1 │ │ ├── module.json │ │ └── tsconfig.json │ └── VstsTaskSdk │ │ ├── FindFunctions.ps1 │ │ ├── InputFunctions.ps1 │ │ ├── LegacyFindFunctions.ps1 │ │ ├── LocalizationFunctions.ps1 │ │ ├── LoggingCommandFunctions.ps1 │ │ ├── LongPathFunctions.ps1 │ │ ├── Minimatch.dll │ │ ├── OutFunctions.ps1 │ │ ├── ServerOMFunctions.ps1 │ │ ├── Strings │ │ └── resources.resjson │ │ │ ├── de-de │ │ │ └── resources.resjson │ │ │ ├── en-US │ │ │ └── resources.resjson │ │ │ ├── es-es │ │ │ └── resources.resjson │ │ │ ├── fr-fr │ │ │ └── resources.resjson │ │ │ ├── it-IT │ │ │ └── resources.resjson │ │ │ ├── ja-jp │ │ │ └── resources.resjson │ │ │ ├── ko-KR │ │ │ └── resources.resjson │ │ │ ├── ru-RU │ │ │ └── resources.resjson │ │ │ ├── zh-CN │ │ │ └── resources.resjson │ │ │ └── zh-TW │ │ │ └── resources.resjson │ │ ├── ToolFunctions.ps1 │ │ ├── TraceFunctions.ps1 │ │ ├── VstsTaskSdk.dll │ │ ├── VstsTaskSdk.psd1 │ │ ├── VstsTaskSdk.psm1 │ │ └── lib.json └── task.json ├── images ├── api.png ├── apif.png ├── apim.png ├── apisc.png ├── apiv.png ├── configtransform.png ├── extension-icon.png ├── product.png └── tasks.png ├── overview.md ├── stephane-eyskens.apim-3.5.3.vsix ├── stephane-eyskens.apimprivate-3.4.8.vsix └── vss-extension.json /apim/v1/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v1/icon.png -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-TW/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 'AzureRM.Profile' 模組。'AzureRM' 模組的安裝不完整。您可以從提升權限的工作階段執行下列 PowerShell 命令來解決此問題: Import-Module AzureRM ; Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支援憑證型驗證。找不到 Azure PowerShell 模組。", 4 | "loc.messages.AZ_CredentialsError": "部署用的 Azure 認證有錯誤。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模組,也找不到 AzureRM 模組。若最近才安裝該模組,請重新啟動 VSTS 工作代理程式,然後重試。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安裝所需最低版本 ({0}) 的 Azure PowerShell 模組。", 7 | "loc.messages.AZ_ServicePrincipalError": "部署用的服務主體有錯誤。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "'{0}' 版的 Azure 模組不支援服務主體驗證。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 端點不支援驗證配置 '{0}'。" 10 | } -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v1/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apim/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apim/v2/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v2/icon.png -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-TW/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 'AzureRM.Profile' 模組。'AzureRM' 模組的安裝不完整。您可以從提升權限的工作階段執行下列 PowerShell 命令來解決此問題: Import-Module AzureRM ; Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支援憑證型驗證。找不到 Azure PowerShell 模組。", 4 | "loc.messages.AZ_CredentialsError": "部署用的 Azure 認證有錯誤。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模組,也找不到 AzureRM 模組。若最近才安裝該模組,請重新啟動 VSTS 工作代理程式,然後重試。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安裝所需最低版本 ({0}) 的 Azure PowerShell 模組。", 7 | "loc.messages.AZ_ServicePrincipalError": "部署用的服務主體有錯誤。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "'{0}' 版的 Azure 模組不支援服務主體驗證。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 端點不支援驗證配置 '{0}'。" 10 | } -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v2/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apim/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apim/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v3/icon.png -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-TW/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 'AzureRM.Profile' 模組。'AzureRM' 模組的安裝不完整。您可以從提升權限的工作階段執行下列 PowerShell 命令來解決此問題: Import-Module AzureRM ; Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支援憑證型驗證。找不到 Azure PowerShell 模組。", 4 | "loc.messages.AZ_CredentialsError": "部署用的 Azure 認證有錯誤。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模組,也找不到 AzureRM 模組。若最近才安裝該模組,請重新啟動 VSTS 工作代理程式,然後重試。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安裝所需最低版本 ({0}) 的 Azure PowerShell 模組。", 7 | "loc.messages.AZ_ServicePrincipalError": "部署用的服務主體有錯誤。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "'{0}' 版的 Azure 模組不支援服務主體驗證。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 端點不支援驗證配置 '{0}'。" 10 | } -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apim/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apim/v4/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v4/icon.png -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-TW/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 'AzureRM.Profile' 模組。'AzureRM' 模組的安裝不完整。您可以從提升權限的工作階段執行下列 PowerShell 命令來解決此問題: Import-Module AzureRM ; Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支援憑證型驗證。找不到 Azure PowerShell 模組。", 4 | "loc.messages.AZ_CredentialsError": "部署用的 Azure 認證有錯誤。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模組,也找不到 AzureRM 模組。若最近才安裝該模組,請重新啟動 VSTS 工作代理程式,然後重試。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安裝所需最低版本 ({0}) 的 Azure PowerShell 模組。", 7 | "loc.messages.AZ_ServicePrincipalError": "部署用的服務主體有錯誤。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "'{0}' 版的 Azure 模組不支援服務主體驗證。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 端點不支援驗證配置 '{0}'。" 10 | } -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v4/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apim/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apim/v5/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v5/icon.png -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-TW/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 'AzureRM.Profile' 模組。'AzureRM' 模組的安裝不完整。您可以從提升權限的工作階段執行下列 PowerShell 命令來解決此問題: Import-Module AzureRM ; Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支援憑證型驗證。找不到 Azure PowerShell 模組。", 4 | "loc.messages.AZ_CredentialsError": "部署用的 Azure 認證有錯誤。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模組,也找不到 AzureRM 模組。若最近才安裝該模組,請重新啟動 VSTS 工作代理程式,然後重試。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安裝所需最低版本 ({0}) 的 Azure PowerShell 模組。", 7 | "loc.messages.AZ_ServicePrincipalError": "部署用的服務主體有錯誤。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "'{0}' 版的 Azure 模組不支援服務主體驗證。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 端點不支援驗證配置 '{0}'。" 10 | } -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v5/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apim/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apim/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v1/icon.png -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v1/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v2/icon.png -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v2/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v3/icon.png -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v4/icon.png -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v4/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimcreateorupdateproduct/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimcreateorupdateproduct/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimfunction/v1/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v1/icon.png -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v1/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimfunction/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimfunction/v2/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v2/icon.png -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v2/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimfunction/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimfunction/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v3/icon.png -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimfunction/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimfunction/v4/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v4/icon.png -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v4/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimfunction/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunction/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimfunctionversioned/v1/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v1/icon.png -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v1/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimfunctionversioned/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimfunctionversioned/v2/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v2/icon.png -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v2/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimfunctionversioned/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimfunctionversioned/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v3/icon.png -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimfunctionversioned/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimfunctionversioned/v4/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v4/icon.png -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v4/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimfunctionversioned/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimfunctionversioned/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimglobalpolicy/v1/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimglobalpolicy/v1/icon.png -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimglobalpolicy/v1/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimglobalpolicy/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimglobalpolicy/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimglobalpolicy/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimglobalpolicy/v2/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimglobalpolicy/v2/icon.png -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimglobalpolicy/v2/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimglobalpolicy/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimglobalpolicy/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimglobalpolicy/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimoperationpolicies/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v3/icon.png -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimoperationpolicies/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimoperationpolicies/v4/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v4/icon.png -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v4/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimoperationpolicies/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimoperationpolicies/v5/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v5/icon.png -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v5/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimoperationpolicies/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimoperationpolicies/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimreleaserevision/v4/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimreleaserevision/v4/icon.png -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimreleaserevision/v4/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimreleaserevision/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimreleaserevision/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimreleaserevision/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimrestorefromrepository/v3/icon.png -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimrestorefromrepository/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimrestorefromrepository/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimrestorefromrepository/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimrestorefromrepository/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimsavetorepository/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimsavetorepository/v3/icon.png -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimsavetorepository/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimsavetorepository/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimsavetorepository/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimsavetorepository/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimversioned/v1/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v1/icon.png -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v1/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimversioned/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimversioned/v2/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v2/icon.png -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v2/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimversioned/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimversioned/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v3/icon.png -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimversioned/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimversioned/v4/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v4/icon.png -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v4/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimversioned/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v4/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimversioned/v5/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v5/icon.png -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v5/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimversioned/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimversioned/v5/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimwsdl/v1/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v1/icon.png -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/Share/functions.psm1: -------------------------------------------------------------------------------- 1 | function Get-Slug { 2 | param([String] $name) 3 | $slug = $name.ToLower() 4 | $slug = $slug -replace "[^a-z0-9\s-]", "" 5 | $slug = $($slug -replace "[\s-]+", " ").Trim() 6 | $slug = $slug.Substring(0, $slug.Length).Trim() 7 | $slug = $slug -replace "\s", "-" 8 | return $slug 9 | } 10 | 11 | Export-ModuleMember -function 'Get-*' -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v1/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimwsdl/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v1/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimwsdl/v2/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v2/icon.png -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/Share/functions.psm1: -------------------------------------------------------------------------------- 1 | function Get-Slug { 2 | param([String] $name) 3 | $slug = $name.ToLower() 4 | $slug = $slug -replace "[^a-z0-9\s-]", "" 5 | $slug = $($slug -replace "[\s-]+", " ").Trim() 6 | $slug = $slug.Substring(0, $slug.Length).Trim() 7 | $slug = $slug -replace "\s", "-" 8 | return $slug 9 | } 10 | 11 | Export-ModuleMember -function 'Get-*' -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v2/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimwsdl/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v2/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apimwsdl/v3/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v3/icon.png -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/Share/functions.psm1: -------------------------------------------------------------------------------- 1 | function Get-Slug { 2 | param([String] $name) 3 | $slug = $name.ToLower() 4 | $slug = $slug -replace "[^a-z0-9\s-]", "" 5 | $slug = $($slug -replace "[\s-]+", " ").Trim() 6 | $slug = $slug.Substring(0, $slug.Length).Trim() 7 | $slug = $slug -replace "\s", "-" 8 | return $slug 9 | } 10 | 11 | Export-ModuleMember -function 'Get-*' -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsAzureHelpers_/Strings/resources.resjson/zh-CN/resources.resjson: -------------------------------------------------------------------------------- 1 | { 2 | "loc.messages.AZ_AzureRMProfileModuleNotFound": "找不到 \"AzureRM.Profile\" 模块。\"AzureRM\" 模块可能未完整安装。从提升的会话运行以下 PowerShell 命令可能解决该问题: Import-Module AzureRM;Install-AzureRM", 3 | "loc.messages.AZ_CertificateAuthNotSupported": "不支持基于证书的身份验证。找不到 Azure PowerShell 模块。", 4 | "loc.messages.AZ_CredentialsError": "用于部署的 Azure 凭据有错。", 5 | "loc.messages.AZ_ModuleNotFound": "找不到 Azure 模块和 AzureRM 模块。如果模块是最近安装的,请在重启 VSTS 任务代理后重试。", 6 | "loc.messages.AZ_RequiresMinVersion0": "未安装 Azure PowerShell 模块的最低必需版本({0})。", 7 | "loc.messages.AZ_ServicePrincipalError": "用于部署的服务主体有错。", 8 | "loc.messages.AZ_ServicePrincipalAuthNotSupportedAzureVersion0": "Azure 模块的版本“{0}”不支持服务主体身份验证。", 9 | "loc.messages.AZ_UnsupportedAuthScheme0": "Azure 终结点不支持授权方案“{0}”。" 10 | } -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v3/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apimwsdl/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apimwsdl/v3/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /apisecuritychecker/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apisecuritychecker/icon.png -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsAzureHelpers_/Tests/Import-AzureModule.ValidatesClassicVersion.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Import-FromModulePath { $true } 8 | & $module { $script:azureModule = @{ Version = [version]'0.8.10.0' } } 9 | 10 | # Act/Assert. 11 | Assert-Throws { & $module Import-AzureModule -PreferredModule 'Azure' } -MessagePattern AZ_RequiresMinVersion0* 12 | -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsAzureHelpers_/Tests/Import-FromModulePath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | Register-Mock Get-Module 8 | $variableSets = @( 9 | @{ Classic = $true } 10 | @{ Classic = $false } 11 | ) 12 | foreach ($variableSet in $variableSets) { 13 | Write-Verbose ('-' * 80) 14 | 15 | # Act. 16 | $result = & $module Import-FromModulePath -Classic:($variableSet.Classic) 17 | 18 | # Assert. 19 | Assert-AreEqual $false $result 20 | } -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsAzureHelpers_/Tests/Import-FromSdkPath.ReturnsFalseWhenNotFound.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | 8 | # Setup the Program Files environment variables. 9 | $env:ProgramFiles = 'no such program files' 10 | ${env:ProgramFiles(x86)} = 'no such program files x86' 11 | 12 | # Setup the mocks. 13 | Register-Mock Test-Path { $false } 14 | Unregister-Mock Import-Module 15 | Register-Mock Import-Module 16 | 17 | # Act. 18 | $result = & $module Import-FromSdkPath 19 | 20 | # Assert. 21 | Assert-AreEqual $false $result 22 | Assert-WasCalled Import-Module -Times 0 23 | -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsAzureHelpers_/Tests/Initialize-Azure.ThrowsWhenServiceNameIsNull.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 7 | Register-Mock Get-VstsInput { throw 'Some error message' } -- -Name $null -Require 8 | Register-Mock Get-VstsEndpoint 9 | Register-Mock Import-AzureModule 10 | Register-Mock Initialize-AzureSubscription 11 | 12 | # Act. 13 | Assert-Throws { Initialize-Azure } -MessagePattern 'Some error message' 14 | -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsAzureHelpers_/Tests/Initialize-AzureSubscription.ThrowsWhenRMAndCertAuth.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $module = Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. -PassThru 7 | & $module { $script:azureRMProfileModule = @{ } } 8 | $endpoint = @{ Auth = @{ Scheme = 'Certificate' } } 9 | 10 | Register-Mock Set-UserAgent 11 | # Act/Assert. 12 | Assert-Throws { & $module Initialize-AzureSubscription -Endpoint $endpoint } -MessagePattern AZ_CertificateAuthNotSupported 13 | -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsAzureHelpers_/Tests/OverriddesGlobalDebugPreference.ps1: -------------------------------------------------------------------------------- 1 | [CmdletBinding()] 2 | param() 3 | 4 | # Arrange. 5 | . $PSScriptRoot\..\..\..\..\Tests\lib\Initialize-Test.ps1 6 | $global:DebugPreference = 'Continue' 7 | 8 | # Act. 9 | Microsoft.PowerShell.Core\Import-Module $PSScriptRoot\.. 10 | 11 | # Assert. 12 | Assert-AreEqual 'SilentlyContinue' $global:DebugPreference 13 | -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsAzureHelpers_/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsTaskSdk/Minimatch.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apisecuritychecker/ps_modules/VstsTaskSdk/Minimatch.dll -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsTaskSdk/VstsTaskSdk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apisecuritychecker/ps_modules/VstsTaskSdk/VstsTaskSdk.dll -------------------------------------------------------------------------------- /apisecuritychecker/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/apisecuritychecker/ps_modules/VstsTaskSdk/VstsTaskSdk.psd1 -------------------------------------------------------------------------------- /images/api.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/api.png -------------------------------------------------------------------------------- /images/apif.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/apif.png -------------------------------------------------------------------------------- /images/apim.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/apim.png -------------------------------------------------------------------------------- /images/apisc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/apisc.png -------------------------------------------------------------------------------- /images/apiv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/apiv.png -------------------------------------------------------------------------------- /images/configtransform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/configtransform.png -------------------------------------------------------------------------------- /images/extension-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/extension-icon.png -------------------------------------------------------------------------------- /images/product.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/product.png -------------------------------------------------------------------------------- /images/tasks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/images/tasks.png -------------------------------------------------------------------------------- /stephane-eyskens.apim-3.5.3.vsix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/stephane-eyskens.apim-3.5.3.vsix -------------------------------------------------------------------------------- /stephane-eyskens.apimprivate-3.4.8.vsix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephaneey/azure-apim-extension/93e40fde1489e998c6ce8a9ca6a4b54fed2c0ec2/stephane-eyskens.apimprivate-3.4.8.vsix --------------------------------------------------------------------------------