File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 31
31
32
32
# install azure-powershell from PSGallery
33
33
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \
34
- pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Repository ${REPOSITORY} && \
34
+ pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers - Repository ${REPOSITORY} && \
35
35
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted
36
36
37
37
# create AzureRmContextSettings.json before it was generated
Original file line number Diff line number Diff line change 31
31
32
32
# install azure-powershell from PSGallery
33
33
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \
34
- pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Repository ${REPOSITORY} && \
34
+ pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers - Repository ${REPOSITORY} && \
35
35
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted
36
36
37
37
# create AzureRmContextSettings.json before it was generated
Original file line number Diff line number Diff line change 31
31
32
32
# install azure-powershell from PSGallery
33
33
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \
34
- pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Repository ${REPOSITORY} && \
34
+ pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers - Repository ${REPOSITORY} && \
35
35
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted
36
36
37
37
# create AzureRmContextSettings.json before it was generated
Original file line number Diff line number Diff line change 31
31
32
32
# install azure-powershell from PSGallery
33
33
RUN pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Trusted && \
34
- pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Repository ${REPOSITORY} && \
34
+ pwsh -Command Install-Module -Name ${MODULE} -RequiredVersion ${VERSION} -Scope AllUsers - Repository ${REPOSITORY} && \
35
35
pwsh -Command Set-PSRepository -Name ${REPOSITORY} -InstallationPolicy Untrusted
36
36
37
37
# create AzureRmContextSettings.json before it was generated
You can’t perform that action at this time.
0 commit comments