Skip to content

Azure CLI as an exe or NuGet package #22693

@GiridharIITM

Description

@GiridharIITM

Is your feature request related to a problem? Please describe.
COSMIC team in M365 is working on building a service that invokes PowerShell scripts in a remote server. These PowerShell scripts in turn call az commands. However, the server doesn’t have az-CLI installed. We want to install az-CLI in a sandboxed way just for our project.

Describe the solution you'd like

  1. Exporting az CLI as an exe that can be invoked directly on the server. We could get Helm and Kubectl exes to work on the server by downloading them. Something similar for az-CLI would be super helpful.
  2. Exporting Az CLI as a Nuget package, which we can copy to the output build directory.

Describe alternatives you've considered

We attempted the following already:

  1. Exporting the MSI installer – doesn’t work because we need admin privileges.
  2. Exporting as a NuGet the CLI2 folder created during installation doesn’t work because some DLLs/exe files do not get approved when we try to upload them using expush.
  3. Using pip installation on python and virtual environments- doesn’t work due to permission issues on Windows server not allowing us to pip install az CLI.

Additional context
The server we are trying to push to is highly secure and often doesn't allow us to push files or download things.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions