text:
Increase Sentinel comments maximum character limit

Is your feature request related to a problem? Please describe.
The Sentinel comment character limit is making me unable to use enrichment logic apps that need to post more than 3000 characters.
Describe the solution you'd like
I would raise the limit to 40000 or similar.
Describe alternatives you've considered
I've considered splitting the comment into multiple parts in the logic app but it is a nightmare from a implementation point of view.
Additional context
Add any other context or screenshots about the feature request here.

@Ronmarsiano - Can you comment here?  I believe this is coming.

hi @gabrielnecula ,
thank you for your feedback , we will take it into consideration.
thanks,
Ron

This limitation is also affecting me and I think this is a weird limitation since I have not seen this in any other similar system :-(

I have the same issue. We are using logic apps to add comments to incidents, it fails because of 3000 characters limitation. Please increase it to at least 10000

Same situation here

Missed posting back here, but the limit has been increased - https://docs.microsoft.com/en-us/azure/sentinel/investigate-cases#comment-on-incidents

This issue is not resolved yet.

authors: NVolcz Ronmarsiano gabrielnecula manojsgh meenalluktuke shainw zrahim-cybermsi

repo: Azure/Azure-Sentinel


text:
Function App to pull logs from Cisco Secure Endpoint (AMP) (Preview) Failure

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Deploy Cisco Secure Endpoint (AMP) (Preview) data connector
Deploy Azure Function to pull logs via Cisco API from Cisco Secure Endpoint (AMP) solution

Expected behavior
It is expected that logs from Cisco SE will be ingested into Sentinel
Additional context
There are a few errors in the Function app.
Result: Failure Exception: Exception: Error while calling Cisco API. Response code: 401 Stack: File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 458, in _handle__invocation_request call_result = await self._loop.run_in_executor( File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/dispatcher.py", line 701, in _run_sync_func return ExtensionManager.get_sync_invocation_wrapper(context, File "/azure-functions-host/workers/python/3.8/LINUX/X64/azure_functions_worker/extension.py", line 215, in _raw_invocation_wrapper result = function(**args) File "/home/site/wwwroot/AzureFunctionCiscoSecureEndpoint/main.py", line 51, in main for events in cli.get_audit_logs(audit_logs_last_ts): File "/home/site/wwwroot/AzureFunctionCiscoSecureEndpoint/main.py", line 102, in get_audit_logs raise Exception(f'Error while calling Cisco API. Response code: {res.status_code}')
Executed 'Functions.AzureFunctionCiscoSecureEndpoint' (Failed, Id=32136e66-f85c-4399-885d-c103421c4c8f, Duration=183ms)

The issue can be closed.
The reason for this error was incorrectly configured API HOst.
Pay attention that for the Cisco tenants configured in the EU, the host API should be api.eu.amp.cisco.com.
For the tenants in North America: api.amp.cisco.com

Hi @az-mikhail,
Thanks for the update. We will be closing it as fixed.
Thanks

source: gharchive/issue

authors: az-mikhail v-mchatla

license: MIT

license_type: permissive

license_source: github-api


text:
Update azuredeploy_Connector_Wiz_API_AzureFunction.json

update Python runtime version
Required items, please complete
Change(s):
update Python runtime
Reason for Change(s):
Improve performance and avoid possible CVEs
Version Updated:
No
Testing Completed:
Yes

Hello @yanivblumWiz, Can you share working/results screenshot of function app

source: gharchive/pull-request

authors: v-prasadboke yanivblumWiz


text:
onboard Forcepoint Cloud Security Gateway

Fixes #
Proposed Changes

@Dlo-Bagari, Can you please update the PR on comment resolutions? Thanks.

@Dlo-Bagari, Can you please update the PR on comment resolutions? Thanks.

@Dlo-Bagari, Can you resolve the conflicts? Thanks.

@Dlo-Bagari, Can you resolve the conflicts? Thanks.

@Dlo-Bagari, as part of the comment resolution, in recent commit, few Notebook files are added in the PR and they are resulting in validation issues. Can you please resolve the issues? you have the following options for resolving:

Drop notebook related changes, sync your branch with master to have latest and without conflicts.
Create a new branch from master and apply only changes related to connector.
Please let us know if you need any info and resolve the conflicts and validations, Thanks.

@Dlo-Bagari, as part of the comment resolution, in recent commit, few Notebook files are added in the PR and they are resulting in validation issues. Can you please resolve the issues? you have the following options for resolving:

Drop notebook related changes, sync your branch with master to have latest and without conflicts.
Create a new branch from master and apply only changes related to connector.
Please let us know if you need any info and resolve the conflicts and validations, Thanks.

@Dlo-Bagari, as part of the comment resolution, in recent commit, few Notebook files are added in the PR and they are resulting in validation issues. Can you please resolve the issues? you have the following options for resolving:

Drop notebook related changes, sync your branch with master to have latest and without conflicts.
Create a new branch from master and apply only changes related to connector.
Please let us know if you need any info and resolve the conflicts and validations, Thanks.

@Dlo-Bagari - Can you please update the PR? Thanks.

@Dlo-Bagari, as part of the comment resolution, in recent commit, few Notebook files are added in the PR and they are resulting in validation issues. Can you please resolve the issues? you have the following options for resolving:

Drop notebook related changes, sync your branch with master to have latest and without conflicts.
Create a new branch from master and apply only changes related to connector.
Please let us know if you need any info and resolve the conflicts and validations, Thanks.

@Dlo-Bagari - Can you please update the PR? Thanks.

@Dlo-Bagari, as part of the comment resolution, in recent commit, few Notebook files are added in the PR and they are resulting in validation issues. Can you please resolve the issues? you have the following options for resolving:

Drop notebook related changes, sync your branch with master to have latest and without conflicts.
Create a new branch from master and apply only changes related to connector.
Please let us know if you need any info and resolve the conflicts and validations, Thanks.

@Dlo-Bagari - Can you please update the PR? Thanks.

@v-jayakal, for Forcepoint Cloud Security Gateway onboarding there was nothing to be added to notebooks.
I have created a new branch with the name: origin/Forcepoint-cloud-security-gateway which contains the latest code.
please let me know if that would solve the conflicts.

@Dlo-Bagari, as part of the comment resolution, in recent commit, few Notebook files are added in the PR and they are resulting in validation issues. Can you please resolve the issues? you have the following options for resolving:

Drop notebook related changes, sync your branch with master to have latest and without conflicts.
Create a new branch from master and apply only changes related to connector.
Please let us know if you need any info and resolve the conflicts and validations, Thanks.

@Dlo-Bagari - Can you please update the PR? Thanks.

@v-jayakal, for Forcepoint Cloud Security Gateway onboarding there was nothing to be added to notebooks.
I have created a new branch with the name: origin/Forcepoint-cloud-security-gateway which contains the latest code.
please let me know if that would solve the conflicts.

@Dlo-Bagari , I am unable to see data connector related changes in new branch which you mentioned- origin/Forcepoint-cloud-security-gateway [PFB screenshot], Could you please create new pull request.

@Dlo-Bagari , I am unable to see data connector related changes in new branch which you mentioned- origin/Forcepoint-cloud-security-gateway [PFB screenshot], Could you please create new pull request.

@Dlo-Bagari , I am unable to see data connector related changes in new branch which you mentioned- origin/Forcepoint-cloud-security-gateway [PFB screenshot], Could you please create new pull request.

I have created a new PR: onboarding Forcepoint cloud security gateway #1604
do I need to close the previous PR which is:  onboard Forcepoint Cloud Security Gateway #1436

@Dlo-Bagari , I am unable to see data connector related changes in new branch which you mentioned- origin/Forcepoint-cloud-security-gateway [PFB screenshot], Could you please create new pull request.

I have created a new PR: onboarding Forcepoint cloud security gateway #1604
do I need to close the previous PR which is:  onboard Forcepoint Cloud Security Gateway #1436

@Dlo-Bagari , Could you please revert notebook related changes.

@Dlo-Bagari , Could you please revert notebook related changes.

@Dlo-Bagari , Could you please revert notebook related changes.

@v-maudan, for Forcepoint Cloud Security Gateway there were no changes made in notebooks, I am not sure what do I need to revert exactly here. can you give me more explanation about what needs to be done?

@Dlo-Bagari , Could you please revert notebook related changes.

@v-maudan, for Forcepoint Cloud Security Gateway there were no changes made in notebooks, I am not sure what do I need to revert exactly here. can you give me more explanation about what needs to be done?

@Dlo-Bagari, the 2 PRs raised for Forcepoint has Notebook files included even though there are no changes to those files. Adding them in PR will corrupt the repo. To explain you the issue, a new PR draft has been created with only the changes of Forcepoint, Please check the PR https://github.com/Azure/Azure-Sentinel/pull/1608, when compared, this new PR does not have notebook files. Can you please create a new PR similar to this PR with only changes related to Forcepoint and without Notebook files.
Let us know the PR once you have it, we can review and approve it, Thanks.

@Dlo-Bagari, the 2 PRs raised for Forcepoint has Notebook files included even though there are no changes to those files. Adding them in PR will corrupt the repo. To explain you the issue, a new PR draft has been created with only the changes of Forcepoint, Please check the PR https://github.com/Azure/Azure-Sentinel/pull/1608, when compared, this new PR does not have notebook files. Can you please create a new PR similar to this PR with only changes related to Forcepoint and without Notebook files.
Let us know the PR once you have it, we can review and approve it, Thanks.

authors: Dlo-Bagari v-jayakal v-maudan


text:
Updating query period for Analytic rule query

Required items, please complete
Change(s):

Updated query period

Reason for Change(s):

The query period was 1h which should be 14d

Version Updated:

yes from 1.0.1 to 1.0.2

Testing Completed:

Checked that the validations are passing and have addressed any issues that are present:

See guidance below

Guidance <- remove section before submitting

Before submitting this PR please ensure that you have read the following sections and filled out the changes, reason for change and testing complete sections:
Thank you for your contribution to the Microsoft Sentinel Github repo.

Details of the code changes in your submitted PR.  Providing descriptions for pull requests ensures there is context to changes being made and greatly enhances the code review process.  Providing associated Issues that this resolves also easily connects the reason.

Change(s):

Updated syntax for XYZ.yaml

Reason for Change(s):

New schema used for XYZ.yaml
Resolves ISSUE #1234

Version updated:

Yes
Detections/Analytic Rule templates are required to have the version updated

The code should have been tested in a Microsoft Sentinel environment that does not have any custom parsers, functions or tables, so that you validate no incorrect syntax and execution functions properly.  If your submission requires a custom parser or function, it must be submitted with the PR.

Testing Completed:

Yes/No/Need Help

Note: If updating a detection, you must update the version field.

Before the submission has been made, please look at running the KQL and Yaml Validation Checks locally.
https://github.com/Azure/Azure-Sentinel#run-kql-validation-locally

Checked that the validations are passing and have addressed any issues that are present:

Yes/No/Need Help

Note: Let us know if you have tried fixing the validation error and need help.

References:

Guidance for Detection checks
General contribution guidance
PR validation troubleshooting

Closing this as the same changes are added in this PR (https://github.com/Azure/Azure-Sentinel/pull/9738/files)

authors: v-mchatla v-sabiraj


text:
Feature implementation to support per user pricing plan model

I have created implementation to support plans on per user model.  Let me know if you would like me to make any changes. Please review before we can complete the merge.  Please let me know your thoughts.

Hi Santosh,
Code looks good to me, before we merge... let make sure this wasn't added in the 1.1 branch (Adding @dev-kiranbanda for validation) .
J

Hi Santosh,
Code looks good to me, before we merge... let make sure this wasn't added in the 1.1 branch (Adding @dev-kiranbanda for validation) .
J

Sure, thanks J!

Hi Santosh,
Thanks for your contribution. I checked the enhancement and it looks great. I confirm that we didn't have this in 1.1 so this enhancement is a good extension.
The only thing that I want to bring to your attention is that we made several improvements w.r.t UI/UX and the change that we have here should be updated to align to what we have in 1.1.
@code4clouds  I propose that we let this one go after we release 1.1. @santhoshbomma9 can then take latest from 1.1 and update the implementation accordingly ( primarily UI and db changes )

Sure @dev-kiranbanda , we can do that! I will close this one, when is release 1.1?

Sure @dev-kiranbanda , we can do that! I will close this one, when is release 1.1?

@code4clouds - Request your comments.

Not anymore... Its merged in Master.  I rebased 1.1 dev, just need to approve your PR #22 after you rebase it and we are good to move 1.1 to master.


text:
3523 hosts pools ScheduledAgentUpdates issue

Description
Current desktop-virtualization/host-pools/main.bicep module has an incomplete agentUpdate object, which causes a 404 error when selecting Scheduled agent updates in the Settings pane for the Azure Virtual Desktop host pool.
Updated main.bicep host pools module adds parameters:

agentUpdateType
agentUpdateMaintenanceWindowHour
agentUpdateMaintenanceWindowDayOfWeek
agentUpdateMaintenanceWindows
agentUpdateMaintenanceWindowTimeZone
agentUpdateuseSessionHostLocalTime

These parameters are used to populate the agentUpdate object, which resolves the 404 error.

Please also include the context.
List any dependencies that are required for this change.

Pipeline references
No pipeline updates required

Pipeline

Type of Change
Please delete options that are not relevant.

[X] Bugfix (non-breaking change which fixes an issue)

Checklist

[X] I'm sure there are no other open Pull Requests for the same update/change
[X] My corresponding pipelines / checks run clean and green without any errors or warnings
[X] My code follows the style guidelines of this project
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation (readme)
[X] I did format my code

@microsoft-github-policy-service agree [company="{lunavi}"]

@microsoft-github-policy-service agree company="lunavi"

Great PR @ThojoUno, just a few thoughts added as comments.

Yes, they pass all pipeline tests, and deploy via the test files. I've been running the new templates in production for several weeks now

authors: AlexanderSehr ThojoUno

repo: Azure/ResourceModules


text:
K8s 1.6 - windows - set timeout flag

Noting this so that we don't forget since we're just patching private binaries for 1.5.x...

@JiangtianLi completed this

@colemickens  Thanks for reminding. We set timeout as parameter --image-pull-progress-deadline=20m passed to kubelet in kuberneteswindowssetup.ps1 for 1.6.0 and up.

authors: JiangtianLi anhowe colemickens

repo: Azure/acs-engine

license: mit

license_source: bigquery


text:
add CreateContainer and SaveBlockBlob

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
If applicable:

[ ] documentation
[ ] unit tests
[ ] tested backward compatibility (ie. deploy with previous version, upgrade with this branch)

Release note:

I should have fork the master and do the PR, closing this one.


text:
chore: support Kubernetes v1.28.13

Reason for Change:

Issue Fixed:

Credit Where Due:
Does this change contain code from or inspired by another project?

[x] No
[ ] Yes

If "Yes," did you notify that project's maintainers and provide attribution?

[ ] No
[ ] Yes

Requirements:

[x] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Notes:

Verified successful run with Azure E2E PR pipeline.

repo: Azure/aks-engine-azurestack


text:
Use sync.Map instead of custom ThreadsafeMultiMap implementation

Could resolve https://github.com/Azure/application-gateway-kubernetes-ingress/issues/32 – not sure if and why it is advantageous at this point to use sync.Map. Can't use a sync.Map containing an UnorderedSet, because set access might still not be synchronized.
(I'm happy to open a discussion at this point – but I wanted to get at least one PR out while on the #gofrm meetup. ;))

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: Xjs sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

I had a related question, requirement for multi-map (key with multiple values) to start with.

ThreadsafeMultimap contains mappings between a key and an unordered set of values. I was using it to maintain ingKey -> secKey[] mappings. This way, we will be able to achieve the minimum number of certificate conversions while saving their relationship.
ingressSecretsMap in this file

@Xjs just to elaborate on @njzhangyifei comment above and as you mentioned in your opening remark we need to store the unordered set in the ThreadSafeMultiMap implementation to emulate the Multi-Map, which makes it  a bit tricky to use the sync.Map. @vramakrishnan and me had an internal discussion and the right approach here might be to use a sync.Map both fore the Multi-Map and to represet the unordered set.

@Xjs based on the discussion above closing this PR for the time being since looks like its not being worked on.

authors: Xjs asridharan msftclas njzhangyifei


text:
Positional Argument Add action code bug

There is a bug in  generated code for Add Action as shown below:
class AddDisks(argparse._AppendAction):

    def __call__(self, parser, namespace, values, option_string=None):
        try:
            value_list = values.split()
            value_chunk_list = [value_list[x:x+1] for x in range(0, len(value_list), 1)]
            Disk = namespace._cmd.get_models('Disk')
            Disks = []

Error message:
    def __call__(self, parser, namespace, values, option_string=None):
        try:
>           value_list = values.split()
E           AttributeError: 'list' object has no attribute 'split'

fixed in private release

authors: Juliehzl changlong-liu


text:
[cadl]: initial detection of lro final state via

Description
Previously, we assumed the LRO final state via is always Location. See: https://github.com/Azure/autorest.csharp/blob/a24ca3c4c5b47d9e6576bc3b64bd5826fb4ac248/src/CADL.Extension/Emitter.Csharp/src/emitter.ts#L942
That's not accurate now. We should support decorator @finalLocation which is already defined in the LRO template. See the LRO operation definition here. It has Location defined in the response here:
@doc("Metadata for long running operation status monitor locations")
model LocationOfCreatedResourceResponse<T extends object> is Cadl.Http.CreatedResponse {
  @finalLocation
  @Cadl.Http.header("Location")
  location: ResourceLocation<T>;
}

Although our LRO implementation can adaptively handle different cases, we'd better add some detection in our emitter, so that the generated codes are more aligned with CADL definition.

According to the reply from the Teams channel, we should check @pollingOperation as the standard to determine if it's an LRO operation.


text:
Autorest.csharp not found

Trying to generate csharp code using --legacy and autorest fails attempting to download any dependencies.
Help would be much appreciated.
AutoRest code generation utility [cli version: 3.6.3; node: v18.15.0]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
info    | AutoRest core version selected from configuration: ~2.0.4413.
Loading AutoRest core      'C:\Users\user.autorest@microsoft.azureautorest-core@2.0.4421\nodemodules@microsoft.azure\autorest-core\dist' (2.0.4421)
Installing AutoRest extension '@microsoft.azure/autorest.csharp' (~2.3.79)
Failed to install or start extension '@microsoft.azure/autorest.csharp' (~2.3.79)
Error: Package '@microsoft.azure/autorest.csharp' - '2.3.82' failed to install:
Failed to install package 'https://registry.npmjs.org/@microsoft.azure/autorest.csharp/-/autorest.csharp-2.3.82.tgz' -- Error: Process Failed.Error: Failed to install package 'https://registry.npmjs.org/@microsoft.azure/autorest.csharp/-/autorest.csharp-2.3.82.tgz' -- Error: Process Failed.
at install (/node_modules/@microsoft.azure/extension/dist/main.js:303:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExtensionManager.installPackage (/node_modules/@microsoft.azure/extension/dist/main.js:472:13)
at async Configuration.CreateView (C:\Users\user.autorest@microsoft.azureautorest-core@2.0.4421\nodemodules@microsoft.azure\autorest-core\dist\lib\configuration.js:685:51)
at async AutoRest.RegenerateView (C:\Users\user.autorest@microsoft.azureautorest-core@2.0.4421\nodemodules@microsoft.azure\autorest-core\dist\lib\autorest-core.js:55:29)
at async currentMain (C:\Users\user.autorest@microsoft.azureautorest-core@2.0.4421\nodemodules@microsoft.azure\autorest-core\dist\app.js:303:20)
at async mainImpl (C:\Users\user.autorest@microsoft.azureautorest-core@2.0.4421\nodemodules@microsoft.azure\autorest-core\dist\app.js:506:20)
at async main (C:\Users\user.autorest@microsoft.azureautorest-core@2.0.4421\nodemodules@microsoft.azure\autorest-core\dist\app.js:530:20)

I was able independently install the missing csharp extension but the Autorest --legacy command does not find the extension I just installed and continues to attempt to download it and fails.

This seems to be tied to the use of the --legacy. As soon as I remove the flag points to the latest csharp extension and succeeds. Are the csharp 2.3.* extension versions still available? I can get them using >npm install -g @microsoft.azure/autorest.csharp@2.3.82 fine enough.

Tried without --legacy:
AutoRest --output-folder=./V20210201 --input-file=......\src\Microsoft.Azure.Devices.Registration.Gateway\Swagger\2021-02-01-preview\service.json --csharp --add-credentials --namespace=Microsoft.Azure.Devices.Registration.Clients.Service.V20210201
AutoRest code generation utility [cli version: 3.6.3; node: v18.15.0]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
info    | AutoRest core version selected from configuration: ^3.7.0.
info    |    Loading AutoRest core      'C:\Users\user.autorest@autorestcore@3.9.4\nodemodules@autorest\core\dist' (3.9.4)
info    |    Loading AutoRest extension '@autorest/csharp' (latest->3.0.0-beta.20230309.2)
info    |    Loading AutoRest extension '@autorest/modelerfour' (4.25.0->4.25.0)
fatal   | Process() cancelled due to failure
error   |   Error: Could not read 'file:///C:/Users/user/src/Microsoft.Azure.Devices.Registration.Gateway/Swagger/2021-02-01-preview/service.json'.
error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.

Once I patched the command and used an explicit address to the missing file I got the error below. I suppose this is because our swagger files are not ready for the V3 generation.
AutoRest --output-folder=./V20210201 --input-file=C:\Users\user\dps\src\Microsoft.Azure.Devices.Registration.Gateway\Swagger\2021-02-01-preview\service.json --csharp --add-credentials --namespace=Microsoft.Azure.Devices.Registration.Clients.Service.V20210201
AutoRest code generation utility [cli version: 3.6.3; node: v18.15.0]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
info    | AutoRest core version selected from configuration: ^3.7.0.
info    |    Loading AutoRest core      'C:\Users\user.autorest@autorestcore@3.9.4\nodemodules@autorest\core\dist' (3.9.4)
info    |    Loading AutoRest extension '@autorest/csharp' (latest->3.0.0-beta.20230309.2)
info    |    Loading AutoRest extension '@autorest/modelerfour' (4.25.0->4.25.0)
fatal   | Process() cancelled due to failure
error   |   Error: Operation response '/paths/~1deviceGroups~1{deviceGroupId}~1deviceRecords~1{deviceId}~1deviceTransfer/delete/responses/default' produces type couldn't be resolved. Operation is probably is missing a produces field and there isn't any global value. Please add "produces": []"
error   | Autorest completed with an error. If you think the error message is unclear, or is a bug, please declare an issues at https://github.com/Azure/autorest/issues with the error message you are seeing.

Hi @Selekena first I need to emphasize that the track 1 generator is officially deprecated and no longer supported, and we really cannot help much around it.
But for your case, you could try to remove everything in C:/users/<your user name>/.autorest which is the local cache of autorest when it installs its extensions. Running autorest --reset should also work I assume.
I never heard that we have taken off any legacy versions out of npm therefore I do not think it is because the version is not there.
Or you could try to run the same command in a fresh new environment to see if anything is conflicting on your side (for instance in a VM)

Assign this to @HarveyLink  since this is about track 1 generator

Usually for Track1 SDK, we use autorest V2 version, no --legacy flag was used in our process.
Here is a sample running command we used: autorest https://github.com/Azure/azure-rest-api-specs/blob/main/specification/netapp/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --use:@microsoft.azure/autorest.csharp@2.3.90 --csharp-sdks-folder=<folder>

authors: ArcturusZhang HarveyLink Selekena


text:
string response content not encoded as json

This is a similar breaking change to #3667, but for operations that are returning simple json types instead of models. It is an existing API that works when using OpenAPI v2 with AutoRest convenience client, but does not work when using TypeSpec DPG client.
@route("/v1/customer/{agreementCode}/sddc/{sddcId}/kwupgrade")
@put
op kwupgrade(
  @doc("Customer Agreement Code")
  @path
  @format("uuid")
  agreementCode: string,

  @doc("SDDC id")
  @path
  @format("uuid")
  sddcId: string,
): {
  @statusCode statusCode: 202;

  @doc("order id")
  @body
  body: string;
};

Produces:
        public virtual async Task<Response<string>> KwupgradeAsync(Guid agreementCode, Guid sddcId, CancellationToken cancellationToken = default)
        {
            RequestContext context = FromCancellationToken(cancellationToken);
            Response response = await KwupgradeAsync(agreementCode, sddcId, context).ConfigureAwait(false);
            return Response.FromValue(response.Content.ToObjectFromJson<string>(), response);
        }

The previous client has:
        public async Task<Response<string>> KwupgradeAsync(Guid agreementCode, Guid sddcId, CancellationToken cancellationToken = default)
        {
            using var message = CreateKwupgradeRequest(agreementCode, sddcId);
            await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false);
            switch (message.Response.Status)
            {
                case 202:
                    {
                        string value = default;
                        using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false);
                        value = document.RootElement.GetString();
                        return Response.FromValue(value, message.Response);
                    }
                default:
                    throw new RequestFailedException(message.Response);
            }
        }

Well reopen when I have the underlying error.

The generated code for a string response appears to be correct. This does work:
        [TestMethod]
        public void TestToObjectFromJson()
        {
            var content = BinaryData.FromString("\"pickle\"");
            var data = content.ToObjectFromJson<string>();
            Assert.AreEqual("pickle", data);
        }

The error we have appears to be a dependency issue with .NET Framework in a Geneva Action. :-/


text:
Monitor: Plural fix is creating two different cmdlets that should be the same

The operation MetricAlertsStatus_ListByName is being translated to Get-AzMetricAlertStatus
But the operation MetricAlertsStatus_List is being translated to Get-AzMetricAlertsStatu

When I add the following as a workaround:
- where:
      subject: ^MetricAlertsStatu$|^MetricAlertStatus$
    set:
      subject: MetricAlertStatus

The cmdlets are not being merged and one of them  gets a space and number in their file name code: GetAzMetricAlertStatus_list 1 .cs
The compiling error:
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(14,54): error CS1514: { expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(14,54): error CS1513: } expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(14,54): error CS1022: Type or namespace definition, or end-of-file expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(14,88): error CS0116: A namespace cannot directly contain members such as fields or methods [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(14,96): error CS1022: Type or namespace definition, or end-of-file expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(14,149): error CS0116: A namespace cannot directly contain members such as fields or methods [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(15,5): error CS1022: Type or namespace definition, or end-of-file expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(169,16): error CS0116: A namespace cannot directly contain members such as fields or methods [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(169,44): error CS1022: Type or namespace definition, or end-of-file expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(169,47): error CS8124: Tuple must contain at least two elements. [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(170,9): error CS1022: Type or namespace definition, or end-of-file expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(368,5): error CS1022: Type or namespace definition, or end-of-file expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
generated\cmdlets\GetAzMetricAlertStatus_List 1 .cs(369,1): error CS1022: Type or namespace definition, or end-of-file expected [C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\Az.Monitor.csproj]
C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\build-module.ps1 : Compilation failed.
At C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\build-module.ps1:70 char:3
+   Write-Error 'Compilation failed.'
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,build-module.ps1

C:\Users\niassis\source\repos\generating\azure-powershell\tools\CompareModules.ps1 : Can not find folder 'C:\Users\niassis\source\repos\generating\azure-powershell\src\Monitor\exports\latest-2019-04-30' containing generated cmdlets
At line:1 char:31
+ ... module.ps1; ..\..\tools\CompareModules.ps1 -Module Az.Monitor -Output ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,CompareModules.ps1

Fixed -- the Singlularization will now split compound words and singularize the last word (instead of trying to do the whole compound word).
Fixes the cmdlet (and a member in a model that was called SubStatu

authors: fearthecowboy niander


text:
Add openai-secure-ui-js

Please fill out this template! There are three different types of contributions, feel free to delete the checklists that are not applicable to your contribution type.
If you are submitting a new azd template to the gallery
Fill this out if you want your template to be added to the awesome-azd gallery!
Your template repository
Place your template repository link here:

[x] Added an entry to https://github.com/Azure/awesome-azd/blob/main/website/src/data/users.tsx that includes:

[x] Template title - A short title that reflects the local application stack that someone could use to get their application on Azure (e.g. "Containerized React Web App with Java API and MongoDB")

[x] Description - 1-2 sentence description of the architecture (e.g. Azure services) or solution that is defined by the template.

[x] Architecture Diagram or Application Screenshot - The image should include all services and their connections (example). You should add the image to the website/src/data/images/.

[x] Link to Author's GitHub or other relevant website - Used for attribution

[x] Author's Name -  Name to credit on the gallery card

[x] Link to template source - Link to the template GitHub repo

[x] Tags - Specify tags to represent the template. If you don't see a relevant tag for your template? Feel free to add one!
Required tags:

[x] Tag your template as Micrsoft-authored ("msft") or Community-authored ("community")
[x] Tag the IaC provider ("bicep" or "terraform")
[x] At least 1 tag for programming language used
[x] At least 1 tag for Azure services integrated
[x] Add the "new" tag for any newly authored templates

[ ] In the PR comment, if you can also add a link to the PR where you made your repo azd compatible this will allow us to provide feedback on your template and speed up the review process.

[x] If the template is Microsoft-authored, we encourage you to also publish it to learn.microsoft.com/samples.

If you are submitting a resource to be added to the awesome-azd README:

[ ] Name of resource
[ ] Resource author - who created this resource? (so we can credit them!)
[ ] What section should this resource be included in? -Is the resource an article? A video? Something else?

@v-xuto Could you test this template please?

Sure. Testing.

@hemarina, @justinyoo We have finished this template test, and we filed three issues. Please review.

https://github.com/Azure-Samples/openai-secure-ui-js/issues/2
https://github.com/Azure-Samples/openai-secure-ui-js/issues/3
https://github.com/Azure-Samples/openai-secure-ui-js/issues/4

authors: sinedied v-xuto

repo: Azure/awesome-azd


text:
New error with 'az ml model deploy' in 1.0.81

Extension name (the extension in question)
"extensionType": "whl",
"name": "azure-cli-ml",
"version": "1.0.81"

Description of issue (in as much detail as possible)
When running the following model deployment command, with azure-cli-ml 1.0.81 this is now throwing an error. This did not throw an error in azure-cli-ml 1.0.79.
az ml model deploy -n quote-clf --inference-config-file src/inferconfig.json --auth-enabled true --deploy-config-file src/deployconfig_stab.json --compute-target aks-aml-stab -m quote_clf:3 -m quote_tfidf:3 --workspace-name aml-stab --resource-group aml-stab --overwrite -v
Error:
Creating image
Running.............................................................................
Succeeded
ERROR: {'Azure-cli-ml Version': '1.0.81', 'Error': AttributeError("'bool' object has no attribute 'name'",)}
Image creation operation finished for image quote-clf:17, operation "Succeeded"
##[error]Script failed with error: Error: The process '/bin/bash' failed with exit code 1

src/inferconfig.json:
{
    "condaFile": "environment.yaml",
    "enableGpu": false,
    "entryScript": "entry_script.py",
    "extraDockerfileSteps": "extra_dockerfile_steps",
    "runtime": "python",
    "sourceDirectory": "src"
}

src/deployconfig_stab.json:
{
    "autoScaler": {
        "autoscaleEnabled": true,
        "minReplicas": 2,
        "maxReplicas": 4,
        "refreshPeriodInSeconds": 1,
        "targetUtilization": 70
    },
    "authEnabled": true,
    "computeType": "aks",
    "containerResourceRequirements": {
        "cpu": 1,
        "memoryInGB": 1
    },
    "enableAppInsights": true,
    "maxConcurrentRequestsPerContainer": 3,
    "maxQueueWaitMs": 5000,
    "scoringTimeoutMs": 120000
}

src/environment.yaml:
name: quote
channels:
  - defaults
  - conda-forge
dependencies:
  - pip=19.2.2
  - scikit-learn=0.20.3
  - spacy=2.1.7
  - pip:
      - azureml-defaults>=1.0.60
      - https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.1.0/en_core_web_sm-2.1.0.tar.gz

@adiun: I ran into the same error. As a intermediate fix use the yml format for inference config - it worked for me. Attaching template.

@rsethur Thanks!
@gogowings Thanks for the updates and the tip about using extraDockerFileSteps. I received this guidance separately as well re. deployment performance so will definitely look into switching to that.

authors: adiun rsethur

repo: Azure/azure-cli-extensions


text:
Installation of Extension returning ModuleNotFoundError: No module named '_socket'

Describe the bug
When trying to install the extension using az extension add -n arcappliance --version 1.2.0 --debug we are failing with the following error
Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call last):
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\base_command.py", line 105, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\base_command.py", line 96, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\commands\install.py", line 379, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 427, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 230, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool
return bool(self._sequence)
^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 174, in bool
return any(self)
^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 162, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
candidate = func()
^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 186, in _make_candidate_from_link
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 232, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 303, in init
super().init(
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 158, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 235, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 314, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 527, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 72, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 56, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 126, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 103, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\utils\misc.py", line 706, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init.py", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_init.py", line 22, in
import distutils_hack.override  # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/override.py", line 1, in
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/init.py", line 70, in do_override
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/init.py", line 56, in ensure_local_distutils
File "importlib_init.py", line 126, in import_module
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_distutils\core.py", line 14, in
from .config import PyPIRCCommand
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_distutils\config.py", line 7, in
import email.message
File "email\message.py", line 15, in
File "email\utils.py", line 29, in
File "socket.py", line 51, in
ModuleNotFoundError: No module named '_socket'
I have tried update Az CLI to latest, updating Pip in the Azure/CLI2 directory etc.
Related command
az extension add -n arcappliance --version 1.2.0 --debug
Errors
Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call last):
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\base_command.py", line 105, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\base_command.py", line 96, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\commands\install.py", line 379, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 427, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 230, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool
return bool(self._sequence)
^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 174, in bool
return any(self)
^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 162, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
candidate = func()
^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 186, in _make_candidate_from_link
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 232, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 303, in init
super().init(
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 158, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 235, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 314, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 527, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 72, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 56, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 126, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 103, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\utils\misc.py", line 706, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init.py", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_init.py", line 22, in
import distutils_hack.override  # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/override.py", line 1, in
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/init.py", line 70, in do_override
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/init.py", line 56, in ensure_local_distutils
File "importlib_init.py", line 126, in import_module
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_distutils\core.py", line 14, in
from .config import PyPIRCCommand
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_distutils\config.py", line 7, in
import email.message
File "email\message.py", line 15, in
File "email\utils.py", line 29, in
File "socket.py", line 51, in
ModuleNotFoundError: No module named '_socket'
Issue script & Debug output
truncated
, version: 69.1.0
Found link https://files.pythonhosted.org/packages/c0/7a/3da654f49c95d0cc6e9549a855b5818e66a917e852ec608e77550c8dc08b/setuptools-69.1.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.1.1
Found link https://files.pythonhosted.org/packages/c8/1f/e026746e5885a83e1af99002ae63650b7c577af5c424d4c27edcf729ab44/setuptools-69.1.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.1.1
Found link https://files.pythonhosted.org/packages/92/e1/1c8bb3420105e70bdf357d57dd5567202b4ef8d27f810e98bb962d950834/setuptools-69.2.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.2.0
Found link https://files.pythonhosted.org/packages/4d/5b/dc575711b6b8f2f866131a40d053e30e962e633b332acf7cd2c24843d83d/setuptools-69.2.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.2.0
Found link https://files.pythonhosted.org/packages/9a/4b/7b8a217633a4eda8fdf06233a38804adf3c281287728daddef031d15b635/setuptools-69.3.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.3.0
Found link https://files.pythonhosted.org/packages/5f/dd/50c569f342bc5d22142e2fc5fab1822d256202f404a384f05541f703f2ff/setuptools-69.3.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.3
Found link https://files.pythonhosted.org/packages/44/d5/f4be34fee66db92c97ad44589dcc939fabaf63520fc47a575576c46e93c1/setuptools-69.3.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.3.1
Found link https://files.pythonhosted.org/packages/43/10/240651b2ba22f3efe75468437350b8ce4ec8ef03243dc8ed92971c2d4343/setuptools-69.3.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.3.1
Found link https://files.pythonhosted.org/packages/cf/2e/988b6fb453899ed638bd99a48f97c3fb57897b8c6b83e439ad781733ef7d/setuptools-69.4.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.4.0
Found link https://files.pythonhosted.org/packages/7a/12/dc02a2401dac87cb2d3ea8d3b23eab30db4cd2948d5b048bf912b9fe959a/setuptools-69.4.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.4
Found link https://files.pythonhosted.org/packages/2e/86/de057c6e64a115bbbfbef676b6410f206d3994ea43d08015e8ae4803fb2a/setuptools-69.4.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.4.1
Found link https://files.pythonhosted.org/packages/16/ee/02117b0fd589be4ec35883f58fcfd647ac9ab765e8aaa1ededfda1dc79ce/setuptools-69.4.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.4.1
Found link https://files.pythonhosted.org/packages/3f/f8/c2a873f02af7ab6ce670e47816d7cfbbaed5fa259cec4210797395c34616/setuptools-69.4.2-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.4.2
Found link https://files.pythonhosted.org/packages/8e/26/26c3359c930147a6b745a03c608b9e2a71a05119d38279fdb40d981e9097/setuptools-69.4.2.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.4.2
Found link https://files.pythonhosted.org/packages/9a/dd/5be5c6958d2d8fccf26b0274303f2c960a0eba88b84980e71e6f795cdd87/setuptools-69.5.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.5.0
Found link https://files.pythonhosted.org/packages/76/6c/a1e240d85b63e04b2f6786a39e32ea78ad9ec7a9e8193b5510b63b5add94/setuptools-69.5.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.5.0
Found link https://files.pythonhosted.org/packages/f7/29/13965af254e3373bceae8fb9a0e6ea0d0e571171b80d6646932131d6439b/setuptools-69.5.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.5.1
Found link https://files.pythonhosted.org/packages/d6/4f/b10f707e14ef7de524fe1f8988a294fb262a29c9b5b12275c7e188864aed/setuptools-69.5.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 69.5.1
Found link https://files.pythonhosted.org/packages/de/88/70c5767a0e43eb4451c2200f07d042a4bcd7639276003a9c54a68cfcc1f8/setuptools-70.0.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.0.0
Found link https://files.pythonhosted.org/packages/aa/60/5db2249526c9b453c5bb8b9f6965fcab0ddb7f40ad734420b3b421f7da44/setuptools-70.0.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.0.0
Found link https://files.pythonhosted.org/packages/55/b3/b3a3415d2debd837106ed417f8681d8af63037fed367fa1b85dbfef081f1/setuptools-70.1.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.1.0
Found link https://files.pythonhosted.org/packages/1c/1c/8a56622f2fc9ebb0df743373ef1a96c8e20410350d12f44ef03c588318c3/setuptools-70.1.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.1.0
Found link https://files.pythonhosted.org/packages/b3/7a/629889a5d76200287aa5483d753811bd247bbd1b03175186f759e0c7d3a7/setuptools-70.1.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.1.1
Found link https://files.pythonhosted.org/packages/0d/9d/c587bea18a7e40099857015baee4cece7aca32cd404af953bdeb95ac8e47/setuptools-70.1.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.1.1
Found link https://files.pythonhosted.org/packages/42/54/2a8ecfcc9a714a6fbf86559a4b0f50b126a4ac4269ea8134f2c75c3e73de/setuptools-70.2.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.2.0
Found link https://files.pythonhosted.org/packages/8d/e6/2fc95aec377988ff3ca882aa58d4f6ab35ff59a12b1611a9fe3075eb3019/setuptools-70.2.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.2.0
Found link https://files.pythonhosted.org/packages/ef/15/88e46eb9387e905704b69849618e699dc2f54407d8953cc4ec4b8b46528d/setuptools-70.3.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.3.0
Found link https://files.pythonhosted.org/packages/65/d8/10a70e86f6c28ae59f101a9de6d77bf70f147180fbf40c3af0f64080adc3/setuptools-70.3.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 70.3.0
Found link https://files.pythonhosted.org/packages/01/82/a2c6c0a1612c89bdb21dc4d9196ba9e7dcbc2e285afda93ebdf663ba2ada/setuptools-71.0.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.0
Found link https://files.pythonhosted.org/packages/32/37/8751819aebb61ff15cc438e9d80d7b32d6cef4f266a1145a7037cbbfd693/setuptools-71.0.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.0
Found link https://files.pythonhosted.org/packages/39/11/6159cc30f99dbdccac3c74d67277505d0e0bfc059e6cc57ef2eefc9b8751/setuptools-71.0.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.1
Found link https://files.pythonhosted.org/packages/55/a2/640f943c98800be626d5e4d48070e35bb891733218cf6ce562a8df53b9af/setuptools-71.0.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.1
Found link https://files.pythonhosted.org/packages/ed/d0/0994fa8fed8eb3c1d4c151e650f87d3e2a9aedb6aaf1aebe8dbf018f984c/setuptools-71.0.2-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.2
Found link https://files.pythonhosted.org/packages/0e/ae/4a643fdc3b2fe390a6accd55117d5c5af9fbe5da7d2d300c8dd52aa35555/setuptools-71.0.2.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.2
Found link https://files.pythonhosted.org/packages/32/10/e72bb221cdd2f11e649cf38bd7ba8ea6d527c77f330366e10ae9bb798730/setuptools-71.0.3-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.3
Found link https://files.pythonhosted.org/packages/d1/8e/1d0b941ce1151009c6d98a0a590a608f346d4d272ce95ca09ee2bbb592cd/setuptools-71.0.3.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.3
Found link https://files.pythonhosted.org/packages/d2/93/40d9bd9c7cf5d5e556894cc2a2c492e6e4ef4eda6ce9806bd1a8c47ae351/setuptools-71.0.4-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.4
Found link https://files.pythonhosted.org/packages/b2/9b/c154d7694227ff8f5ee5bdff2f8cf8a529ba8f53e80806dd984737c59b19/setuptools-71.0.4.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.0.4
Found link https://files.pythonhosted.org/packages/51/a0/ee460cc54e68afcf33190d198299c9579a5eafeadef0016ae8563237ccb6/setuptools-71.1.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.1.0
Found link https://files.pythonhosted.org/packages/32/c0/5b8013b5a812701c72e3b1e2b378edaa6514d06bee6704a5ab0d7fa52931/setuptools-71.1.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 71.1.0
Found link https://files.pythonhosted.org/packages/2f/83/06edd551b4fdf6170dcbafeeed588a8909819e943905c182ebdc98835be8/setuptools-72.0.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 72.0.0
Found link https://files.pythonhosted.org/packages/8a/8b/ae50f468cdd5e1dc6e6969397bb76e75ca0fd39f7ab8e5a6e8b58ea7102f/setuptools-72.0.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 72.0.0
Found link https://files.pythonhosted.org/packages/e1/58/e0ef3b9974a04ce9cde2a7a33881ddcb2d68450803745804545cdd8d258f/setuptools-72.1.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 72.1.0
Found link https://files.pythonhosted.org/packages/5e/11/487b18cc768e2ae25a919f230417983c8d5afa1b6ee0abd8b6db0b89fa1d/setuptools-72.1.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 72.1.0
Found link https://files.pythonhosted.org/packages/6e/ec/06715d912351edc453e37f93f3fc80dcffd5ca0e70386c87529aca296f05/setuptools-72.2.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 72.2.0
Found link https://files.pythonhosted.org/packages/ce/ef/013ded5b0d259f3fa636bf35de186f0061c09fbe124020ce6b8db68c83af/setuptools-72.2.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 72.2.0
Found link https://files.pythonhosted.org/packages/09/e3/93b516fab8b8f420acc7bb75e29759d009df26c093d8de1c70993b13bf25/setuptools-73.0.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 73.0.0
Found link https://files.pythonhosted.org/packages/98/0b/56dabcf2b37d9152090bcd5d42e28ad312c9ba54fb1446b22dcc809dd84a/setuptools-73.0.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 73.0.0
Found link https://files.pythonhosted.org/packages/07/6a/0270e295bf30c37567736b7fca10167640898214ff911273af37ddb95770/setuptools-73.0.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 73.0.1
Found link https://files.pythonhosted.org/packages/8d/37/f4d4ce9bc15e61edba3179f9b0f763fc6d439474d28511b11f0d95bab7a2/setuptools-73.0.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 73.0.1
Found link https://files.pythonhosted.org/packages/df/b5/168cec9a10bf93b60b8f9af7f4e61d526e31e1aad8b9be0e30837746d700/setuptools-74.0.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.0.0
Found link https://files.pythonhosted.org/packages/6a/21/8fd457d5a979109603e0e460c73177c3a9b6b7abcd136d0146156da95895/setuptools-74.0.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.0.0
Found link https://files.pythonhosted.org/packages/f1/2e/19fefb8477d869bd1d09466542a38410f53288c946046342066cf2905b72/setuptools-74.1.0-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.0
Found link https://files.pythonhosted.org/packages/ac/11/0a953274017ca5c33a9831bc5e052e825d174a3551bd18924777794c8162/setuptools-74.1.0.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.0
Found link https://files.pythonhosted.org/packages/48/f3/e30ee63caefa90716afdffd7d9ae959cd8d0dbd2d0a0eb9fe1d73ddf806b/setuptools-74.1.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.1
Found link https://files.pythonhosted.org/packages/27/cb/e754933c1ca726b0d99980612dc9da2886e76c83968c246cfb50f491a96b/setuptools-74.1.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.1
Found link https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.2
Found link https://files.pythonhosted.org/packages/3e/2c/f0a538a2f91ce633a78daaeb34cbfb93a54bd2132a6de1f6cec028eee6ef/setuptools-74.1.2.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.2
Skipping link: not a file: https://pypi.org/simple/setuptools/
Given no hashes to check 1331 links for project 'setuptools': discarding no candidates
Collecting setuptools
Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl.metadata
Created temporary directory: C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-unpack-siio_h04
Looking up "https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl.metadata" in the cache
Current age based on date: 2032
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 2032
Using cached setuptools-74.1.2-py3-none-any.whl.metadata (6.7 kB)
Created temporary directory: C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-metadata-pzn6z381
Created temporary directory: C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-unpack-i_6gyjma
Looking up "https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl" in the cache
Current age based on date: 2032
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 2032
Using cached setuptools-74.1.2-py3-none-any.whl (1.3 MB)
Downloading link https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8) to C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-unpack-i_6gyjma\setuptools-74.1.2-py3-none-any.whl
Installing collected packages: setuptools
Successfully installed setuptools-74.1.2
Removed build tracker: 'C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-tracker-44rcinb7'
Installing build dependencies ... done
Running command Getting requirements to build wheel
Getting requirements to build wheel ... done
ERROR: Exception:
Traceback (most recent call last):
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\base_command.py", line 105, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\base_command.py", line 96, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\commands\install.py", line 379, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 427, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 230, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool
return bool(self._sequence)
^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 174, in bool
return any(self)
^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 162, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
candidate = func()
^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 186, in _make_candidate_from_link
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 232, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 303, in init
super().init(
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 158, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 235, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 314, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 527, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 72, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 56, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 126, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 103, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\utils\misc.py", line 706, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init.py", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_init.py", line 22, in
import distutils_hack.override  # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/override.py", line 1, in
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/init.py", line 70, in do_override
File "D:\a_work\1\s\build_scripts\windows\artifacts\Python\Lib\site-packages_distutils_hack/init.py", line 56, in ensure_local_distutils
File "importlib_init.py", line 126, in import_module
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_distutils\core.py", line 14, in
from .config import PyPIRCCommand
File "C:\Users\AzureArcPlatformUser\AppData\Local\Temp\pip-build-env-v9awyz19\overlay\Lib\site-packages\setuptools_distutils\config.py", line 7, in
import email.message
File "email\message.py", line 15, in
File "email\utils.py", line 29, in
File "socket.py", line 51, in
ModuleNotFoundError: No module named '_socket'
Expected behavior
Shouldn't fail
Environment Summary
azure-cli 2.62
Additional context
I tried the same on my Mac and do not see an error. However, I do see an error when using Windows

Thank you for opening this issue, we will look into it.

Saw the same thing. Was redeploying cluster from scratch (clean OS) using the same ARM template (validated template).
truncated
Found link https://files.pythonhosted.org/packages/48/f3/e30ee63caefa90716afdffd7d9ae959cd8d0dbd2d0a0eb9fe1d73ddf806b/setuptools-74.1.1-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.1
Found link https://files.pythonhosted.org/packages/27/cb/e754933c1ca726b0d99980612dc9da2886e76c83968c246cfb50f491a96b/setuptools-74.1.1.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.1
Found link https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.2
Found link https://files.pythonhosted.org/packages/3e/2c/f0a538a2f91ce633a78daaeb34cbfb93a54bd2132a6de1f6cec028eee6ef/setuptools-74.1.2.tar.gz (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8), version: 74.1.2
Skipping link: not a file: https://pypi.org/simple/setuptools/
Given no hashes to check 1331 links for project 'setuptools': discarding no candidates
Collecting setuptools
Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl.metadata
Created temporary directory: C:\Users\Administrator\AppData\Local\Temp\1\pip-unpack-3uu6qf9q
Looking up "https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl.metadata" in the cache
Current age based on date: 4090
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 4090
Using cached setuptools-74.1.2-py3-none-any.whl.metadata (6.7 kB)
Created temporary directory: C:\Users\Administrator\AppData\Local\Temp\1\pip-metadata-oi67rpg7
Created temporary directory: C:\Users\Administrator\AppData\Local\Temp\1\pip-unpack-s7zy9sup
Looking up "https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl" in the cache
Current age based on date: 4090
Ignoring unknown cache-control directive: immutable
Freshness lifetime from max-age: 365000000
The response is "fresh", returning cached response
365000000 > 4090
Using cached setuptools-74.1.2-py3-none-any.whl (1.3 MB)
Downloading link https://files.pythonhosted.org/packages/cb/9c/9ad11ac06b97e55ada655f8a6bea9d1d3f06e120b178cd578d80e558191d/setuptools-74.1.2-py3-none-any.whl (from https://pypi.org/simple/setuptools/) (requires-python:>=3.8) to C:\Users\Administrator\AppData\Local\Temp\1\pip-unpack-s7zy9sup\setuptools-74.1.2-py3-none-any.whl
Installing collected packages: setuptools
Successfully installed setuptools-74.1.2
Removed build tracker: 'C:\Users\Administrator\AppData\Local\Temp\1\pip-build-tracker-q79g093e'
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Running command Getting requirements to build wheel
Getting requirements to build wheel: finished with status 'done'
ERROR: Exception:
Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\base_command.py", line 105, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\base_command.py", line 96, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\commands\install.py", line 379, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 427, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 230, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 156, in bool
return bool(self._sequence)
^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 174, in bool
return any(self)
^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 162, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
candidate = func()
^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 186, in _make_candidate_from_link
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 232, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 303, in init
super().init(
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 158, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 235, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 314, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 527, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\operations\prepare.py", line 72, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 56, in prepare_distribution_metadata
self._install_build_reqs(finder)
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 126, in _install_build_reqs
build_reqs = self._get_build_requires_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\distributions\sdist.py", line 103, in _get_build_requires_wheel
return backend.get_requires_for_build_wheel()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_internal\utils\misc.py", line 706, in get_requires_for_build_wheel
return super().get_requires_for_build_wheel(config_settings=cs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 166, in get_requires_for_build_wheel
return self._call_hook('get_requires_for_build_wheel', {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_impl.py", line 321, in _call_hook
raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init.py", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\Administrator\AppData\Local\Temp\1\pip-build-env-4h9jgwkm\overlay\Lib\site-packages\setuptools_init.py", line 22, in
import distutils_hack.override  # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages_distutils_hack\override.py", line 1, in
import('distutils_hack').do_override()
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages_distutils_hack_init.py", line 90, in do_override
ensure_local_distutils()
File "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages_distutils_hack_init.py", line 76, in ensure_local_distutils
core = importlib.import_module('distutils.core')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init.py", line 126, in import_module
File "C:\Users\Administrator\AppData\Local\Temp\1\pip-build-env-4h9jgwkm\overlay\Lib\site-packages\setuptools_distutils\core.py", line 14, in
from .config import PyPIRCCommand
File "C:\Users\Administrator\AppData\Local\Temp\1\pip-build-env-4h9jgwkm\overlay\Lib\site-packages\setuptools_distutils\config.py", line 7, in
import email.message
File "email\message.py", line 15, in
File "email\utils.py", line 29, in
File "socket.py", line 51, in
ModuleNotFoundError: No module named '_socket'
Removed pyasn1-modules>=0.2.1 from https://files.pythonhosted.org/packages/1d/67/6afbf0d507f73c32d21084a79946bfcfca5fbc62a72057e9c23797a737c9/pyasn1_modules-0.4.1.tar.gz (from google-auth>=1.0.1->kubernetes==28.1.0->arcappliance==1.2.0) from build tracker 'C:\Users\Administrator\AppData\Local\Temp\1\pip-build-tracker-q79g093e'
Removed build tracker: 'C:\Users\Administrator\AppData\Local\Temp\1\pip-build-tracker-q79g093e'
cli.azure.cli.core.extension.operations: Command '['C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe', '-m', 'pip', 'install', '--target', 'C:\CloudContent\AzCliExtensions\arcappliance', 'C:\Users\ADMINI~1\AppData\Local\Temp\1\tmpnpq5j6tt\arcappliance-1.2.0-py2.py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 2.
cli.azure.cli.core.extension.operations: Pip failed so deleting anything we might have installed at C:\CloudContent\AzCliExtensions\arcappliance
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 666, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 733, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 703, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 336, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/extension/custom.py", line 16, in add_extension_cmd
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 349, in add_extension
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/extension/operations.py", line 172, in _add_whl_ext
knack.util.CLIError: An error occurred. Pip failed with status code 2. Use --debug for more information.
cli.azure.cli.core.azclierror: An error occurred. Pip failed with status code 2. Use --debug for more information.
az_command_data_logger: An error occurred. Pip failed with status code 2. Use --debug for more information.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x040915C8>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 24.666 seconds (init: 0.312, invoke: 24.354)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3660 in cache file under C:\Users\Administrator.azure\telemetry\20240911032614147
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\Administrator.azure C:\Users\Administrator.azure\telemetry\20240911032614147"
telemetry.process: Return from creating process 9064
telemetry.main: Finish creating telemetry upload process.

This led to failed ASHCI deployment....

this can be repro on windows also if we install azure cli using msi installer.
When I try to install the arcappliance extension using the Azure CLI (installed via MSI installer), it fails with a "_socket module not found" error. However, when I install azure-cli using pip, it works fine.
i tested with following versions till now:
azure cli version > 2.56
arcappliance extension > 1.0.3

In my case (using MSI + trying to install the ML extension), changing the wheel to:
Requires-Dist: pyasn1 (<=0.5.1)
Requires-Dist: pyasn1-modules (<=0.4.0)

made the install work.

Seeing this same error when trying to install a different extension "connectedk8s" as well
File "email\message.py", line 15, in
File "email\utils.py", line 29, in
File "socket.py", line 51, in
ModuleNotFoundError: No module named '_socket'
Removed pyasn1-modules>=0.2.1 from https://files.pythonhosted.org/packages/1d/67/6afbf0d507f73c32d21084a79946bfcfca5fbc62a72057e9c23797a737c9/pyasn1_modules-0.4.1.tar.gz (from google-auth>=1.0.1->kubernetes==24.2.0->connectedk8s==1.9.2) from build tracker 'C:\Users\amalladi\AppData\Local\Temp\pip-build-tracker-cygsllj2'
Removed build tracker: 'C:\Users\amalladi\AppData\Local\Temp\pip-build-tracker-cygsllj2'
cli.azure.cli.core.extension.operations: Command '['C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe', '-m', 'pip', 'install', '--target', 'C:\Users\amalladi\.azure\cliextensions\connectedk8s', 'C:\Users\amalladi\AppData\Local\Temp\tmpvhx2yfi1\connectedk8s-1.9.2-py2.py3-none-any.whl', '-vv', '--disable-pip-version-check', '--no-cache-dir']' returned non-zero exit status 2.
cli.azure.cli.core.extension.operations: Pip failed so deleting anything we might have installed at C:\Users\amalladi.azure\cliextensions\connectedk8s

In my case (using MSI + trying to install the ML extension), changing the wheel to:
Requires-Dist: pyasn1 (<=0.5.1)
Requires-Dist: pyasn1-modules (<=0.4.0)

made the install work.

It seems pyasn1 0.6.1 just had been released. my installation went through now vs 6 hours ago

@yonzhan we install specific version of AZ CLI extension example, why is a recently released module impacting an already released extension install ?
eg:
az extension add --name "arcappliance" --version 1.2.0 --debug

why is the latest version of pyasn1 even getting downloaded ? isnt the whl file for 1.2.0 already supposed to have every thing ?

What can be done to avoid this kind of download latest of certain components during install or upgrade of a CLI extension ?
Can the extension developers specify any manifest that does not depend on latest ,but only on what ever AZ CLI version is already installed on the machine.

I believe the missing pyasn1 wheel is the cause. This is the same issue as https://github.com/Azure/azure-cli/issues/29892#issuecomment-2345116488. Since the wheel is release now, this issue is fixed.
The root cause is that embedded Python has trouble building source package, which can't be fixed by us： https://github.com/Azure/azure-cli/issues/28303#issuecomment-2041827858

The dependency is the following which caused this issue.
pyasn1-modules>=0.2.1 (from google-auth>=1.0.1->kubernetes==28.1.0->arcappliance==1.2.0)

authors: aditimalladi bebound cheguv jscc-hv kmhansen pkoushik sharmaaj-ms yonzhan


text:
Support attach ACR to AKS clusters which enable MSI

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[X] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

This PR adds support for attaching ACR to msi clusters. Fixes https://github.com/Azure/AKS/issues/1349

@qwordy any chance we get this merged?

@qwordy any chance we get this merged?

merged

authors: feiskyer norshtein qwordy