text:
Could not load type 'Microsoft.Azure.WebJobs.ParameterBindingData' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.34.0, Culture=neutral, PublicKeyToken='.

Please provide us with the following information:

This issue is for a: (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Follow steps in: https://learn.microsoft.com/en-us/azure/developer/javascript/how-to/with-web-app/azure-function-file-upload-v3
npm start

Any log messages given by the failure

Azure Functions Core Tools
Core Tools Version:       4.0.4653 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.6.1.18388

[2023-07-10T11:07:42.485Z] A host error has occurred during startup operation '203badf1-79a7-4144-bf81-46b7aa348f56'.
[2023-07-10T11:07:42.485Z] Microsoft.Azure.WebJobs.Extensions.Storage.Blobs: Could not load type 'Microsoft.Azure.WebJobs.ParameterBindingData' from assembly 'Microsoft.Azure.WebJobs, Version=3.0.34.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Value cannot be null. (Parameter 'provider')

Expected/desired behavior

Runs as the tutorial expects

OS and Version?

macOS Ventura
Apple M1

Versions

Core Tools Version:       4.0.4653 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.6.1.18388
Node: v18.16.1
NPM Dependencies:
"dependencies": {
    "@azure/storage-blob": "^12.14.0",
    "@types/parse-multipart": "^1.0.0",
    "azurite": "^3.24.0",
    "http-status-enum": "^1.0.2",
    "parse-multipart": "^1.0.4"
  },
  "devDependencies": {
    "@azure/functions": "^3.0.0",
    "@types/node": "^16.x",
    "rimraf": "^5.0.0",
    "typescript": "^4.0.0"
  }

Extension Bundle:
{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[4.*, 5.0.0)"
  }
}

"azureFunctions.projectRuntime": "~4",

Mention any other details that might be useful
Just created a new Typescript Node Project using VSCode Azure Func create new project with the versions above and followed the tutorial

Thanks! We'll be in touch soon.

@siraola-glb I believe the issue is that the article is for the v3 programming model of Node.js and perhaps your project in VSCode created a v4 programming model.
A few thoughts on this particular sample:

Due to the size limitation of file upload in Azure Functions, this scenario isn't a good example of an Azure Function. Please consider uploading to Storage via a SAS token from a client application.

Create SAS token with Function in v4 programming model
Use SAS token to upload

If you still would like to upload a file via a Function, here is an example using the v4 programming model and triggers/bindings

authors: diberry siraola-glb


text:
Menial change

Purpose

Does this introduce a breaking change?
When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.
[ ] Yes
[ ] No

Type of change
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Code quality checklist
See CONTRIBUTING.md for more details.

[ ] The current tests all pass (python -m pytest).
[ ] I added tests that prove my fix is effective or that my feature works
[ ] I ran python -m pytest --cov to verify 100% coverage of added lines
[ ] I ran python -m mypy to check for type errors
[ ] I either used the pre-commit hooks or ran ruff manually on my code.

#evaluate

source: gharchive/pull-request

license: MIT

license_type: permissive

license_source: github-api


text:
Initial PSRule without parameter files #206

Overview/Summary
Adds integration with PSRule for Azure for testing repository code with Azure Well-Architected Framework.
Working towards #206
This PR fixes/adds/changes/removes

Added PSRule integration using VSCode and GitHub Actions. Parameter files/ Bicep tests not included.

Breaking Changes
N/A
Testing Evidence
Modules resources are not being processed yet until we have snippets to expand them.
Rules processed: 124, failed: 0, errored: 0
Run Azure/ALZ-Bicep/2170788848 completed in 00:00:07.1681704

As part of this Pull Request I have

[x] Checked for duplicate Pull Requests
[ ] Associated it with relevant ADO items
[x] Ensured my code/branch is up-to-date with the latest changes in the main branch
[x] Performed testing and provided evidence.
[x] Updated relevant and associated documentation.

@jtracey93 Initial effort without parameter files. Which I understood that you didn't want merged yet, because we would work towards snippets for deployment/ testing. Let me know if there is anything else you feel we need to do to get this PR merged.

repo: Azure/ALZ-Bicep


text:
Update gdnsuppress file

Which issue this PR addresses:
Fixes: https://dev.azure.com/msazure/AzureRedHatOpenShift/_workitems/edit/12613527
What this PR does / why we need it:
It appears that cluster-predeploy.json was renamed and modified to cluster-development-predeploy.json and thus the suppression file no longer worked.  This updates the signature and file name in the .gdnsuppress file so that SDL scans can proceed without error
Test plan for issue:
https://dev.azure.com/msazure/AzureRedHatOpenShift/_build/results?buildId=49042994&view=results
Is there any documentation that needs to be updated for this PR?
N/A

/azp run ci

Green ci - merging

authors: bennerv mikeandescavage

repo: Azure/ARO-RP


text:
feat: add systemd unit for Mariner live patching

What type of PR is this?

/kind feature
What this PR does / why we need it:
Add support for Mariner live patching
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

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

Special notes for your reviewer:
The PR for adding live patching support for Ubuntu has been merged: https://github.com/Azure/AgentBaker/pull/3643
This PR extends the support to Mariner.
Release note:
none

Pull Request Test Coverage Report for Build 7968171137
Details

0 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 79.334%

Totals

Change from base Build 7958024274:
0.02%

Covered Lines:
2288

Relevant Lines:
2884

💛  - Coveralls

authors: coveralls hongbin

repo: Azure/AgentBaker


text:
Credential Error

Describe the bug
WARNING: Retry Count: 1 Caught Exception for Credential Error for Get-AzResource for /subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/user-keyvault
Steps to reproduce

Invoking the Initialize-AzOpsRepository cmdlet

https://github.com/Azure/azure-powershell/pull/12041
https://github.com/Azure/azure-powershell/issues/9448

source: gharchive/issue

repo: Azure/AzOps


text:
feat: Add TTL recommendation for DNS zones

Overview/Summary
This pull request includes several changes to the azure-resources/Network directory, focusing on visibility settings, adding development markers, and new recommendations for DNS zones. The most important changes include making the dnsZones section visible, marking KQL files as under development, and adding recommendations for Time-To-Live (TTL) settings for both public and private DNS zones.
Visibility Settings:

azure-resources/Network/dnsZones/_index.md: Changed geekdocHidden from true to false to make the dnsZones section visible.

Development Markers:

azure-resources/Network/dnsZones/kql/7d09523b-b3c0-403e-b104-d5d46240d683.kql: Added an under-development marker.
azure-resources/Network/privateDnsZones/kql/3538aa48-c40b-455b-a93b-269fe6e65be2.kql: Added an under-development marker.

Recommendations for DNS Zones:

azure-resources/Network/dnsZones/recommendations.yaml: Added a new recommendation to ensure TTL settings for public DNS zones meet RPO targets.
azure-resources/Network/privateDnsZones/recommendations.yaml: Added a new recommendation to ensure TTL settings for private DNS zones meet RPO targets.

Related Issues/Work Items
None
Breaking Changes
None
As part of this pull request I have

[x] Read the Contribution Guide and ensured this PR is compliant with the guide
[x] Checked for duplicate Pull Requests
[x] Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
[x] Ensured my code/branch is up-to-date with the latest changes in the main branch
[x] Ensured PR tests are passing
[x] Performed testing and provided evidence (e.g. screenshot of output) for any changes associated to ARG queries
[x] Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)

@ehaslett, I've updated the guidance per your suggestion.


text:
M2: ASIM Parsers, connector optimizations/enhancements

Required items, please complete
Change(s):

Added ASIM parser for audit and network session schema
Made connector optimizations and added an option to ingest traffic data based on policy decision

Reason for Change(s):

Adding new functionality
Improving scope of solution

Version Updated:

Required only for Detections/Analytic Rule templates

Testing Completed:

See guidance below

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

See guidance below

@ashwinvenkatesha please pull latest repo changes from upstream and check out errors listed in script job for below 4 tests.

e.g.

This is parser with filter params for audit events

This is parser with filter params for network events

This is a different set of parsers with filter params for network events

Manually verified.

@vakohl
This seems like a build pipeline issue, I have ensured to upload *_ingestedlogs.csv

However, the test fails saying
Starting ingestion for sample data present in Parsers/ASimAuditEvent/Parsers/ASimAuditEventIllumioSaaSCore.yaml
Error: An error occurred while trying to get content of Sample Data file located at https://raw.githubusercontent.com/Azure/Azure-Sentinel/fbbd3208270b06c07e867674eb0[30](https://github.com/Azure/Azure-Sentinel/actions/runs/11184278643/job/31094877341?pr=10994#step:8:31)9908c2cf44e/Sample%20Data/ASIM/Illumio_Core_ASimAuditEvent_IngestedLogs.csv: 404: Not Found
Ignoring this Parsers/ASimAuditEvent/Parsers/imAuditEvent.yaml because it is a union parser file
Starting ingestion for sample data present in Parsers/ASimAuditEvent/Parsers/vimAuditEventIllumioSaaSCore.yaml
Error: An error occurred while trying to get content of Sample Data file located at https://raw.githubusercontent.com/Azure/Azure-Sentinel/fbbd3208270b06c07e867674eb0309908c2cf44e/Sample%20Data/ASIM/Illumio_Core_ASimAuditEvent_IngestedLogs.csv: 404: Not Found

For this reason, as a workaround I had added both files
Illumio_Core_ASimAuditEvent_IngestedLogs.csv and Illumio_Core_AuditEvent_IngestedLogs.
For now, il add both types of files to let the tests pass but this the duplicate files need to be resolved.
Please advise.

hi @v-atulyadav @v-prasadboke ,
I've reviewed the ASim parser changes. All changes except once csv related comment is left, once that is resolved, parser changes are approved from my side. Can you please help reviewing the solution specific files in this PR?
@ashwinvenkatesha FYI

As discussed in the call
Ashwin can you please move this PR to draft state

As discussed in the call Ashwin can you please move this PR to draft state

I have made my changes and its ready to be merged.
Please proceed with updating the azuredeploy with master branch link once merged.

authors: ashwinvenkatesha v-prasadboke vakohl

repo: Azure/Azure-Sentinel


text:
Updated Cloudflare solution for bugs

Required items, please complete
Change(s):

Updated AR description, azure storage link and name

Reason for Change(s):

Considering the inconsistency/discrepancy

Version Updated:

Yes, solution version updated

Testing Completed:

See guidance below

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

@v-dvedak, the changes are good, but as discussed should it be merged with the given solutionid?

Hello @v-dvedak do not Merge need to make some changes

authors: v-dvedak v-prasadboke v-sabiraj


text:
Append-AppService-latestTLS and others Microsoft.Web/sites/config

We seems to have a discruptency between the latestTLS Azure Policy and usage of non web sites/config resources.
According to the documentation, the sites/config resource accepts different properties based on the value of the name property.
Therefore, only config/web should be subject to this policy. I could suggest this could be accomplished adding an "id" endsWith 'config/web' condition as well as the minTlsVersion query to avoid reporting other sites/config resource as non compliant.
Thanks for correcting me if i'm missing something here.
References:
https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/config-authsettingsv2
https://github.com/Azure/Enterprise-Scale/blob/0f78874689e21b9cbc48863797fbf077bfd1c4f9/src/resources/Microsoft.Authorization/policyDefinitions/Append-AppService-latestTLS.json#L53

Thanks for raising this @brunolauze.
Just to clarify the problem statement, are you suggesting that L53 of "equals": "Microsoft.Web/sites/config" is not scoped down granularly enough as a type?
Please elaborate as much as possible so we may address this as fast as possible for you 👍

The policy is there by design for a minimum version of TLS to be enabled on resources.
It's also part of the policy initiative here:
Deny or Deploy and append TLS requirements and SSL enforcement on resources without Encryption in transit (azadvertizer.net)
If you need an exemption to this policy, do so by customising your environment accordingly.

authors: JamJarchitect brunolauze

repo: Azure/Enterprise-Scale


text:
Bug Report - Role Assignment to MS Graph Changes

Describe the bug
API calls got migrated to Microsoft Graph so assigning root permission to user is not working
Steps to reproduce
run either

powershell cmdlet : New-AzRoleAssignment -Scope '/' -RoleDefinitionName 'Owner' -ObjectId $user.Id
or bash script : az role assignment create --scope '/' --role 'Owner' --assignee-object-id $(az ad signed-in-user show --query objectId) --assignee-principal-type User

Screenshots

**Related page **
https://github.com/Azure/Enterprise-Scale/blob/main/docs/EnterpriseScale-Setup-azure.md
https://docs.microsoft.com/en-us/answers/questions/433662/user-dont-have-authorization-to-perform-action-39m.html

Hey @hanchoi,
Thanks for raising this issue. I have tested the commands as shown here (https://github.com/Azure/Enterprise-Scale/blob/main/docs/EnterpriseScale-Setup-azure.md) this morning and they work correctly as expected.
From the "Forbidden" error you are seeing; it looks like you have elevated your user logged into the cli/pwsh session as per: https://github.com/Azure/Enterprise-Scale/blob/main/docs/EnterpriseScale-Setup-azure.md#1-elevate-access-to-manage-azure-resources-in-the-directory
Could you try following the elevation as above and logout and back in to the cli/pwsh and try again. If you get the same error please do the following in powershell:
$DebugPreference='Continue'
New-AzRoleAssignment -Scope '/' -RoleDefinitionName 'Owner' -ObjectId $user.Id

You will see a more verbose output and a more descriptive error message in the body returned from the API, like the example shown below (for a different error):

Let us know
Thanks
Jack

Hi Jack, thanks a lot for the response. I think my error msg above was due to my mistake not specifying AzTenant since my account is connected to multiple tenants
Now I found it working after running Set-AzContext
But one thing I found was, the type of (Get-AzContext).Account is User, not UPN. Is this something that module version changed and it should be modified accordingly?

Great news @hanchoi 👍
The guidance here (https://github.com/Azure/Enterprise-Scale/blob/main/docs/EnterpriseScale-Setup-azure.md#2-grant-access-to-user-andor-service-principal-at-root-scope--to-deploy-enterprise-scale-reference-implementation) accounts for SPNs also with different commands for finding the SPNs Object ID that is needed for the RBAC assignment.
As for the Get-AzContext command itself this is not something we look after in ESLZ, we just use it. So would recommend creating an issue on that repo (https://github.com/Azure/azure-powershell) if you wish to take this further on that command.

Thanks a lot for the response @jtracey93, I do understand the limitation of managing the code up to date ;). Let me send an pull request with the working code (for now)


text:
Add metrics for calculating data loss

Checkpoint publisher message sink every 3 hours
Add metrics for read message count in EventProcessorFactory
Add metrics to identify skipped messages due to being old

@monikavar, can you please provide a sample of how those new metrics are going to show up on /metrics endpoint ?

@monikavar, can you please provide a sample of how those new metrics are going to show up on /metrics endpoint ?

# TYPE iiot_event_processor_info gauge
iiot_event_processor_info{id="xxxxxxx-afbc-44cc-bbb8-e9a832ee26d8",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="0",status="opened"} 1
iiot_event_processor_info{id="xxxxxxx-afbc-44cc-bbb8-e9a832ee26d8",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="0",status="created"} 1
iiot_event_processor_info{id="xxxxxxx-f817-47d6-9772-003eb1413bbd",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="1",status="created"} 1
iiot_event_processor_info{id="xxxxxxx-b9a1-4c06-badf-6da3488dcf96",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="3",status="created"} 1
iiot_event_processor_info{id="xxxxxxx-bd9a-4add-8a7b-dadf739c2917",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="2",status="created"} 1
iiot_event_processor_info{id="xxxxxxx-bd9a-4add-8a7b-dadf739c2917",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="2",status="opened"} 1
iiot_event_processor_info{id="xxxxxxx-f817-47d6-9772-003eb1413bbd",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="1",status="opened"} 1
iiot_event_processor_info{id="xxxxxxx-b9a1-4c06-badf-6da3488dcf96",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="3",status="opened"} 1
# HELP iiot_event_processor_message_count number of messages processed
# TYPE iiot_event_processor_message_count gauge
iiot_event_processor_message_count{id="xxxxxxx-b9a1-4c06-badf-6da3488dcf96",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="3",read_timestamp_utc="2020-07-27T06:00:00Z"} 4962
iiot_event_processor_message_count{id="xxxxxxx-afbc-44cc-bbb8-e9a832ee26d8",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="0",read_timestamp_utc="2020-07-27T06:00:00Z"} 897
# HELP iiot_event_processor_old_events number of messages skipped due to being old
# TYPE iiot_event_processor_old_events gauge
iiot_event_processor_old_events{id="xxxxxxx-afbc-44cc-bbb8-e9a832ee26d8",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="0"} 897
iiot_event_processor_old_events{id="xxxxxxx-b9a1-4c06-badf-6da3488dcf96",eventhub_name="eventhub-xxxxxxx",consumer_name="telemetryux",partition_id="3"} 1711

repo: Azure/Industrial-IoT


text:
Not able to map an element defined as Complex of Complex Type in the DataMapper

Describe the Bug with repro steps
Mapping Canvas isn't consistent, it generates random xslt and lml for a complex schema. Though, I fix the lml file, it doesn't generate the required xslt.

Screenshots or Videos
Uploading AzureDataMapperIssue.mp4…
Version

Additional context
No response

TargetCanonical.xsd.txt
EDICustom.IFCSum.xsd.txt
Attached are the xsd for sourceand target

repo: Azure/LogicAppsUX


text:
Error importing the PSDocs.Azure module

Description of the issue
Received this error after installing.
Import-Module : Errors occurred while loading the format data file:
C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml, Error at XPath
/Configuration/ViewDefinitions/View[1] in file C:\Program
Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml: A node is missing from TableControl, ListControl,
WideControl, CustomControl.
C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml, Error at XPath
/Configuration/ViewDefinitions/View[1]/TableControl/TableHeaders in file C:\Program
Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml: The column header definition is not valid; all
headers are discarded.

C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml, Error at XPath
/Configuration/ViewDefinitions/View[1]/TableControl/TableHeaders/TableColumnHeader[1]/Label in file C:\Program
Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml: The resource PSDocs.Resources.ViewStrings in
assembly C:\PSDocs is not found.
At line:1 char:1
+ Import-Module PSDocs.Azure
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Import-Module], RuntimeException
    + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

To Reproduce
Steps to reproduce the issue:
Install-Module -Name 'PSDocs.Azure' -Repository PSGallery;
Import-Module PSDocs.Azure

Expected behaviour
Imported successfully without any error.
Error output
Capture any error messages and or verbose messages with -Verbose.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted
versions.
Import-Module : Errors occurred while loading the format data file:
C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml, Error at XPath
/Configuration/ViewDefinitions/View[1] in file C:\Program
Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml: A node is missing from TableControl, ListControl,
WideControl, CustomControl.
C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml, Error at XPath
/Configuration/ViewDefinitions/View[1]/TableControl/TableHeaders in file C:\Program
Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml: The column header definition is not valid; all
headers are discarded.
C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml, Error at XPath
/Configuration/ViewDefinitions/View[1]/TableControl/TableHeaders/TableColumnHeader[1]/Label in file C:\Program
Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml: The resource PSDocs.Resources.ViewStrings in
assembly C:\PSDocs is not found.
At line:1 char:1
+ Import-Module PSDocs.Azure -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Import-Module], RuntimeException
    + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand

Module in use and version:

Module: PSDocs.Azure
Version: 0.7.0

Captured output from $PSVersionTable:
Name                           Value
----                           -----
PSVersion                      5.1.19041.610
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.610
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional context
Add any other context about the problem here.

@vicperdana That's a little weird. Have you tried PS 7.x?

@vicperdana That's a little weird. Have you tried PS 7.x?

@BernieWhite It imported fine in PS 7.
Get-Culture & PSVersionTable outputs
LCID             Name             DisplayName
----             ----             -----------
3081             en-AU            English (Australia)

Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

@BernieWhite It imported fine in PS 7.
Get-Culture & PSVersionTable outputs
LCID             Name             DisplayName
----             ----             -----------
3081             en-AU            English (Australia)

Name                           Value
----                           -----
PSVersion                      7.0.3
PSEdition                      Core
GitCommitId                    7.0.3
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

@vicperdana Thanks. I can't reproduce it. Can you check if the .dll is blocked for some reason. C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.dll. The verbose output points to it not being loaded for some reason.
Should look like:
Import-Module PSDocs -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted
versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.dll'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml'.
VERBOSE: Populating RepositorySourceLocation property for module PSDocs.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.psm1'.
VERBOSE: Importing function 'Document'.
VERBOSE: Importing function 'Get-PSDocument'.
VERBOSE: Importing function 'Get-PSDocumentHeader'.
VERBOSE: Importing function 'Invoke-PSDocument'.
VERBOSE: Importing function 'New-PSDocumentOption'.

Import-Module PSDocs.Azure -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted
versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.dll'.
VERBOSE: Populating RepositorySourceLocation property for module PSDocs.Azure.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psm1'.
VERBOSE: Importing function 'Get-AzDocTemplateFile'.

@vicperdana Thanks. I can't reproduce it. Can you check if the .dll is blocked for some reason. C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.dll. The verbose output points to it not being loaded for some reason.
Should look like:
Import-Module PSDocs -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted
versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.dll'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program
Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.Format.ps1xml'.
VERBOSE: Populating RepositorySourceLocation property for module PSDocs.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.psm1'.
VERBOSE: Importing function 'Document'.
VERBOSE: Importing function 'Get-PSDocument'.
VERBOSE: Importing function 'Get-PSDocumentHeader'.
VERBOSE: Importing function 'Invoke-PSDocument'.
VERBOSE: Importing function 'New-PSDocumentOption'.

Import-Module PSDocs.Azure -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted
versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.dll'.
VERBOSE: Populating RepositorySourceLocation property for module PSDocs.Azure.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psm1'.
VERBOSE: Importing function 'Get-AzDocTemplateFile'.

Yup, that worked fine. Tested in 5.1 - thanks @BernieWhite
Import-Module PSDocs.Azure -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted
versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.dll'.
VERBOSE: Populating RepositorySourceLocation property for module PSDocs.Azure.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psm1'.
VERBOSE: Importing function 'Get-AzDocTemplateFile'.

Yup, that worked fine. Tested in 5.1 - thanks @BernieWhite
Import-Module PSDocs.Azure -Verbose
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psd1'.
VERBOSE: Cannot verify the Microsoft .NET Framework version 4.7.2 because it is not included in the list of permitted
versions.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.dll'.
VERBOSE: Populating RepositorySourceLocation property for module PSDocs.Azure.
VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\PSDocs.Azure\0.1.0\PSDocs.Azure.psm1'.
VERBOSE: Importing function 'Get-AzDocTemplateFile'.

Just to note that after running the following command - the issue was resolved.  Tested on both PS 5.1 and 7.0.3
Unblock-File 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.dll';

Just to note that after running the following command - the issue was resolved.  Tested on both PS 5.1 and 7.0.3
Unblock-File 'C:\Program Files\WindowsPowerShell\Modules\PSDocs\0.7.0\PSDocs.dll';

authors: BernieWhite vicperdana


text:
Create automated PR workflow to bump providers.json

Create workflow to update providers.json automatically, preferrably with an automated PR from github actions that runs daily using a cron job.
We could do a JSON diff between the current providers.json from the main branch and the REST API response data. For this diff to be reliable, we need to compare compressed JSON with sorted keys.
If we find a change, we can run the ExportProviders task in pipeline.build.ps1 in a new branch checked out from main and raise a PR.

I guess the other option is to run ExportProviders first, then see if any changes were picked up. I just think that could be unreliable since if properties are reordered or whitespace is added, it will count as a change. Probably unlikely this will happen but it could bring up false positivies.

@ArmaanMcleod It's worth monitoring. I'm not noticing to much of that as there is some limited sorting already.

authors: ArmaanMcleod BernieWhite


text:
[PSRule] Integrate PSRule pre-flight checks with GH module validation workflows

Together with PSRule validation checks on PRs and on schedule on the whole repo, checks should also be integrated with each module validation pipeline.
This issue is about integrating checks with GH workflows, e.g., as a dedicated job running in parallel to the static validation and prior to the deployment validation.
A first implementation of this issue for, e.g., the KV module, is hosted by branch hack/topic6

Suggestion: apply the needsfurtherdiscussion label.
OPT1: implement the additional check on all PRs as non blocking
OPT2: implement the additional check on all PRs as blocking only after issue #2151 closure

Question from #2453 : Should we move the ps-rule.yaml from root into utilities/pipelines/staticValidation.
@eriqua and myself discussed this already a little bit and the below notes are the short version:

Root is the default, it is anyway possible to use specific configuration files from custom locations, but that would require to deviate from default and add options to all PSRule actions (now it's only the scheduled pipeline check, it will eventually be integrated also in module pipelines).
Normally that is done for exceptions. So technically feasible but not sure if we should do it.

We should figure out the pros and cons and then come to conclusion. While I personally would like to keep / (root) as clean/empty as possible, I understand that the effort/added code involved to implement this may outwheigh the benefits.

authors: AlexanderSehr eriqua

repo: Azure/ResourceModules


text:
Etcd3 Support

What this PR does / why we need it:
What: This PR enables etcd to use different versions of etcd (via opt in property on KubernetesConfig). If the user does not use set etcdVersion property it will default to current value (version 2.5.2)
**Why((: Encrypting secrets via KeyVault (1.8 EncryptionConfig) requires etcd3 API (api-server settings). Because it uses protobuf and this is not compatible with etcd2 API
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:
@jdumars @seanknox @itowlson
make test fails because i believe it does not load the defaults..

@lachie83  too

@khenidak we got master head clean again I'd merge/rebase and see if CI does better now

@JackQuincy the current PR is rebased. The failed tests happening because the test is not using the same defaulting mechanism used for ./acs-engine generate. The property i added gets defaulted there hence tests are failing

@khenidak cool just wanted to make sure you had the latest changes as they are more recent then 5 hours ago like your most recent update. But it does look like you are failing on tests not deployments/deep tests.

I was able to spin up a single and multi-master cluster without issues.

/lgtm

authors: JackQuincy khenidak lachie83 seanknox

repo: Azure/acs-engine

license: mit

license_source: bigquery


text:
RequestContext changed from optional to required

Describe the bug
As of version @autorest/csharp@3.0.0-beta.20230706.2 the RequestContext parameter was changed from optional to required.
This means all of our code using the generated client is now broken.
Generation command
autorest --version:3.9.3 --input-file=$1 --csharp --output-folder=$2 --use=@autorest/csharp@3.0.0-beta.20230706.2 --verbose
Generated a method signuature
public virtual async Task<Response> CustomersIdAsync(Guid id, RequestContext context)
Version 0706.1, and earlier generate the following method signature
public virtual async Task<Response> CustomersIdAsync(Guid id, RequestContext context = null)
Expected behavior
Is this breaking change expected?

This is expected. I believe you have another method generated as public virtual async Task<Response> CustomersIdAsync(Guid id, CancellationToken cancellationToken = default); If we don't make RequestContext required, compilation will fail when call CustomersIdAsync();

What you are saying makes sense, however none of the generated methods in our clients accept a cancellationToken.
We only end up with the single public virtual async Task<Response> CustomersIdAsync(Guid id, RequestContext context)
Trying this
autorest --version:3.9.6 --input-file=https://mc-factory-dev.eastus2.cloudapp.azure.com/ea/api/swagger/v1/swagger.json --csharp --output-folder=generated --verbose
results in a single method for each endpoint, none of which accept a cancellationToken.

Yeah, you don't have a method ending with CancellationToken because you have a swagger spec. If you try out typespec spec, then there will be that method.
As long as there is a possibility that one day you add that convenience method, we will make RequestContext required even now you don't have it.

Thanks for the information.
Last question then, is there a change-log or release notes or any type of discussion anywhere regarding auto-rest changes?
I will need to lock into specific versions from now on, to avoid sudden breaking changes.

Unfortunately not. We are in beta version which is released several times per day. We are a plugin of autorest so even we have a changelog it will not show up in the autorest repo. We would consider add changelog to autorest.csharp repo after GA or maybe some important beta milestone.

This is expected.

@pshao25, is this really expected? The return type of the convenience method (the one taking CancellationToken) has changed from Response to Response<T>. This means it's a source breaking change.
For context, this is an example of an method and its changes:
// V1
public virtual Response GetDevice(string deviceId, RequestContext context = null);

V2
public virtual Response GetDevice(string deviceId, RequestContext context);
public virtual Response<Device> GetDevice(string deviceId, CancellationToken cancellationToken = default);

I might be misremembering the rules we agreed on, but my mental model is that we wanted to generate required RequestContext parameter in V1 if the method does not have an input model (RequestContent)
cc: @annelo-msft, @m-nash

@KrzysztofCwalina Your memory is correct: we want to generate required RequestContext in v1 (swagger). It is optional now because it is GAed so we added a flag keep-non-overloadable-protocol-signature. In v2 (TypeSpec) customer could still use this flag to make RequestContext optional.  I apologize I didn't realize this library is GAed whan I said "it is expected".
For the document, we have this PR on going.

authors: KrzysztofCwalina MattCosturos pshao25


text:
Modifying test-ib.sh so that ethernet devices are excluded. Also addi…

Modifying test-ib.sh so that ethernet devices are excluded. Also adding a startup service that will check if the nvidia-uvm kernel module is loaded correctly, and load it if it is not. Finally, also adding some python3.8 dependencies that are necessary to make sure add-apt-repository works.
Edit: Adding a workaround for IPoIB naming to the 20.04 image. Also updating the dkms version for Centos-7.x at the request of @abhamidipati0614

azure.azhpc-image failed https://dev.azure.com/hpc-platform-team/hpc-image-val/_build/results?buildId=3660&view=logs&j=55edb413-3e42-51ec-aec8-1bf7ffe492a6&t=6368d010-b137-5c72-4e17-cf37b77ef6d5
Seems not related to this change though. Please double check. I can approve once it's confirmed.

Just checked, failure was not related to changes. You can approve.

azure.azhpc-image failed https://dev.azure.com/hpc-platform-team/hpc-image-val/_build/results?buildId=3660&view=logs&j=55edb413-3e42-51ec-aec8-1bf7ffe492a6&t=6368d010-b137-5c72-4e17-cf37b77ef6d5
Seems not related to this change though. Please double check. I can approve once it's confirmed.

Just checked, failure was not related to changes. You can approve.

Thanks for checking @yakovdyadkin. Can we re-trigger the pipeline again and let it pass?
It's better to merge this PR after it's passed.

repo: Azure/azhpc-images


text:
desktopvirtualization v0.1.1: modify test code to enable codegen end-to-end test

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)
[ ] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

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

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

desktopvirtualization

desktopvirtualization

Hi @jsntcy , would you help to review this? Thanks.

authors: changlong-liu yonzhan

repo: Azure/azure-cli-extensions


text:
{AKS} Clean up outdated resource groups after testing

Add a pipeline to periodically clean up outdated  resource groups after testing.
General Guidelines

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

For new extensions:

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

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

AKS

authors: FumingZhang yonzhan


text:
Remove Codespaces extension

The previous PR, https://github.com/Azure/azure-cli-extensions/pull/2509, was never merged. Here is an updated one to remove the Codespaces extension.

Codespaces

Hi @derekbekoe, any reason to remove this extension?

authors: derekbekoe kairu-ms yonzhan


text:
az create keyvault fails on Visualstudio free subscription

This is autogenerated. Please review and update as needed.
Describe the bug
when trying to create a new keyvault in a RG in WestUS2 the command failed
Command Name
az keyvault create
Errors:
400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
    six.reraise(*sys.exc_info())
...
python3.6/site-packages/msrestazure/azure_active_directory.py, ln 486, in get_msi_token
    result.raise_for_status()
python3.6/site-packages/requests/models.py, ln 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az keyvault create --name {} --resource-group {}

Expected Behavior
Environment Summary
Linux-4.15.0-1098-azure-x86_64-with-debian-stretch-sid (Cloud Shell)
Python 3.6.10
Installer: DEB

azure-cli 2.13.0

Extensions:
ai-examples 0.2.4

Additional Context

hi @mkostersitz could you pls try run az login to workaround? This is a known issue in Cloudshell, detail in #11749

Can we close this as a dupe of https://github.com/Azure/azure-cli/issues/11749

authors: maertendMSFT mkostersitz yungezz

repo: Azure/azure-cli


text:
[Network] add "az network express-route port generate-loa" for generating Letter of Authorization

Resource Provider
Network
Description of Feature or Work Requested
We have updated the Azure-Powershell with a new Cmdlet.
Changes:
Added New-AzExpressRoutePortLOA cmdlet. This cmdlet fetches a pdf document as base64 encoded string in the JSON response from Nfv-RP and saves the pdf on the local machine.
Minimum API Version Required
2020-06-01
Swagger Link
https://github.com/Azure/azure-rest-api-specs/blob/network-june-release/specification/network/resource-manager/Microsoft.Network/stable/2020-06-01/expressRoutePort.json
See the new added endpoint: generateLOA
Target Date:
Feature is already released from Powershell.
Need the parity with az-cli in the next suitable release.

Below is the PR with the powershell changes for the same.

https://github.com/Azure/azure-powershell/pull/12465

Network

authors: amwate neelbhavsar97 yonzhan


text:
"az extension add --name aks-preview" in airgap cloud attempts to connect to aka.ms

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
An execution of "az extension add --name aks-preview" in airgap cloud, a connection attempts to reach out to aka.ms where is public url, it definitely failed.
Are aks-preview features unavailable in airgap cloud and sovereign cloud (mooncake and fairfax)?
Response
Unable to get extension index.

Please ensure you have network connection. Error Detail: HTTPSConnectionPool (host='**aka.ms**', port=443): Max retries exceeded with url: /azure-cli-extension-index-v1 (Caused by NewConnectionError(urllib3.connection.HTTPSConnection object 0x7fc65ca70dd8>: Failed to establish a new connection [Errno -2] Name or service not known.

To Reproduce

Expected behavior

Environment summary
az-cli 2.17.1
Additional context

add @fengzhou-msft to help

@evanlwj please follow https://github.com/Azure/azure-cli/blob/dev/doc/use_cli_in_airgapped_clouds.md#install-extensions as current workaround to install extensions in airgap cloud.

authors: evanlwj fengzhou-msft yungezz


text:
Running 'az aks' with no command or additional arguments attempts to do a delete and throws giant stack trace

Describe the bug
Command Name
az aks
Errors:
The operation 'azure.mgmt.containerservice.v2020_09_01.operations._managed_clusters_operations#ManagedClustersOperations.delete' is invalid.
Traceback (most recent call last):
azure/cli/core/__init__.py, ln 831, in get_op_handler
    op = getattr(op, part)
AttributeError: type object 'ManagedClustersOperations' has no attribute 'delete'

...

azure/cli/core/__init__.py, ln 836, in get_op_handler
    raise ValueError("The operation '{}' is invalid.".format(operation))
ValueError: The operation 'azure.mgmt.containerservice.v2020_09_01.operations._managed_clusters_operations#ManagedClustersOperations.delete' is invalid.

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Freshly installed az cli
az aks

Expected Behavior
Not to throw a giant error stack trace, also apparently trying to do a delete? Why is it trying to do a delete? I just ran az aks.
Environment Summary
Linux-5.10.47-linuxkit-x86_64-with-glibc2.31
Python 3.9.2
Installer: DEB

azure-cli 2.18.0 *

Extensions:
azure-devops 0.19.0

Additional Context

azure-cli 2.18.0 * running on Python 3.9.2 is not maintained by Microsoft. Please see https://github.com/Azure/azure-cli/issues/19640.

@dumez-k Could you please make use of most recent version of CLI and upgrade Python Libraries and let us know if that helps ? Awaiting your reply.

authors: dumez-k jiasli navba-MSFT


text:
Reg Adding new force Deletion Types for: az group delete command

Preconditions

[X] No need to upgrade Python SDK or the Python SDK is ready.

Related command
az group delete --name "RG-veena-test" --force-deletion-types Microsoft.Databricks/workspaces
Resource Provider
Microsoft.Databricks
Description of Feature or Work Requested
We have enabled Resource Deletion Policy for Microsoft.Databricks/workspaces as "Force" and we were being told by ARM team saying after defining this policy delete resource group command should support passing "Microsoft.Databricks/workspaces" as allowed option. But it looks like the delete resource group command has some validation about allowed resource types.  The same operation is working via ARM REST API calls as specified here. We need your team's help to update allowed resource types to include "Microsoft.Databricks/workspaces" as well
az group delete failed : 'Microsoft.Databricks/workspaces' is not a valid value for '--force-deletion-types'. Allowed values: Microsoft.Compute/virtualMachines, Microsoft.Compute/virtualMachineScaleSets.
Minimum API Version Required
N/A
Swagger PR link / SDK link
There is no change required for this in ARM, however there was a change required in DELETE API of Databricks Swagger for this, sharing the latest swagger for Databricks here. As long as the additional resource type is added to allowed types in az group delete command and command sent to ARM, ARM will make sure to pass the forceDeletion parameter with correct values to Databricks RP using correct API version of Databricks RP.
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/databricks/resource-manager/Microsoft.Databricks/stable/2024-05-01/databricks.json
Request Example
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}?forceDeletionTypes=Microsoft.Databricks/workspaces&api-version=2021-04-01
Target Date
2024-05-15
PM Contact
shahjoy@microsoft.com
Engineer Contact
subraman@microsoft.com
Additional context
The only change that is required is to update the additional type "Microsoft.Databricks/workspaces" to be included in the results of the following query in repo
https://github.com/search?q=repo%3AAzure%2Fazure-cli --force-deletion-types &type=code

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

@mvvsubbu Due to the super busy schedule of this sprint, we didn't have the effort to develop this feature in this sprint. Could we schedule it for the next sprint (released at 07-02)?

Would be possible to consider this for release in June? I have already shared code changes as well, where we need to update. Let me know your thoughts on how can we speed up the process

authors: mvvsubbu yonzhan zhoxing-ms


text:
Cannot install azure-cli on Ubuntu Noble - E: Unable to locate package azure-cli

Describe the bug
I execute the following with one command (same behavior if using option two or even what ubuntu suggests to prioritize MS repository for azure cli)
sudo curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [89.7 kB]
Hit:3 https://packages.microsoft.com/repos/azure-cli noble InRelease
Get:4 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7469 B]
Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Get:6 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7462 B]
Hit:7 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Get:8 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 Packages [28.4 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports noble-updates/main Translation-en [9236 B]
Fetched 142 kB in 1s (158 kB/s)
Reading package lists... Done
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apt-transport-https is already the newest version (2.7.14build2).
lsb-release is already the newest version (12.0-2).
gnupg is already the newest version (2.4.4-2ubuntu17).
curl is already the newest version (8.5.0-2ubuntu10.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Get:3 https://packages.microsoft.com/repos/azure-cli noble InRelease [3564 B]
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Hit:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Fetched 3564 B in 1s (4353 B/s)
Reading package lists... Done
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package azure-cli
Related command
sudo curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Errors
E: Unable to locate package azure-cli
Issue script & Debug output
sudo curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Get:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease [89.7 kB]
Hit:3 https://packages.microsoft.com/repos/azure-cli noble InRelease
Get:4 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7469 B]
Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Get:6 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7462 B]
Hit:7 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Get:8 http://ports.ubuntu.com/ubuntu-ports noble-updates/main arm64 Packages [28.4 kB]
Get:9 http://ports.ubuntu.com/ubuntu-ports noble-updates/main Translation-en [9236 B]
Fetched 142 kB in 1s (158 kB/s)
Reading package lists... Done
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
apt-transport-https is already the newest version (2.7.14build2).
lsb-release is already the newest version (12.0-2).
gnupg is already the newest version (2.4.4-2ubuntu17).
curl is already the newest version (8.5.0-2ubuntu10.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Hit:1 http://ports.ubuntu.com/ubuntu-ports noble InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports noble-updates InRelease
Get:3 https://packages.microsoft.com/repos/azure-cli noble InRelease [3564 B]
Hit:4 http://ports.ubuntu.com/ubuntu-ports noble-backports InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports noble-security InRelease
Hit:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Fetched 3564 B in 1s (4353 B/s)
Reading package lists... Done
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-arm64.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-arm64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/microsoft.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package azure-cli
Expected behavior
Azure CLI installed successfully
Environment Summary
no az yet :)
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04 LTS
Release:	24.04
Codename:	noble
Device is Raspberry PI 5 arm64
Additional context
I have tried also manual option (Option2) from here:
https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
also have tried what Ubuntu suggested: https://documentation.ubuntu.com/azure/en/latest/azure-how-to/instances/install-azure-cli/
None of them works as it seems it does not find the package in the repo.
One remark is that https://packages.microsoft.com/repos/azure-cli/dists/noble/main/binary-all/Packages does not return a binary to download as it does for the other versions which makes me think if it is not in the repository

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

Same issue on x86_64...

24.04 is not supported yet.
We'll support it on May 21.

Ah, okay.  Thanks for the update!

still same error... 2024....

Not sure why this issue would be closed if it's still an issue.  It appears that Azure is the only major cloud provider that doesn't support the current version of Ubuntu.  awscli and gcloud both work.  Microsoft "hearts" Linux indeed...  ;)

I'm seeing the same issue as well.

@annapankiewicz  Could please provide the error log?

Sorry for the delay, I'm primary DRI this week. I'll update today with the error log!

Rebuilding the lists fixed this for me. I suspect I had some garbage in my sources from earlier attempts.
sudo rm -rf /var/lib/apt/lists/* && sudo apt-get update

So sudo curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash seems to work fine.

Re-closing, I wasn't able to reproduce correctly on subsequent attempts. I suspect it was something setup-related or with that VM. Thanks!

authors: annapankiewicz bebound cristian-gavril cvpsmith gterminator sei-jmattson yonzhan


text:
Adding a workload profile to existing Container Apps Environment fails

Describe the bug
Adding a workload profile to existing Container Apps Environment fails
Related command
az containerapp env workload-profile add \
  --name -snip- \
  --resource-group -snip- \
  --workload-profile-name consumption \
  --workload-profile-type Consumption \
  --min-nodes 1 \
  --max-nodes 5

Errors
The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not iterable
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.61.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/azure-cli/2.61.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 664, in execute
    raise ex
  File "/usr/local/Cellar/azure-cli/2.61.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 731, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/azure-cli/2.61.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 701, in _run_job
    result = cmd_copy(params)
             ^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/azure-cli/2.61.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 334, in __call__
    return self.handler(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/azure-cli/2.61.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
           ^^^^^^^^^^^^^^^^^^
  File "/usr/local/Cellar/azure-cli/2.61.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/containerapp/custom.py", line 4932, in add_workload_profile
    workload_profiles_lower = [p["name"].lower() for p in workload_profiles]
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

Issue script & Debug output
unrecognized arguments:  --debug

😉
Expected behavior
A workload profile is created and added to the Container Apps Environment.
Environment Summary
azure-cli                         2.61.0

core                              2.61.0
telemetry                          1.1.0

Extensions:
arcdata                           1.5.13
azure-devops                       1.0.1
containerapp                      0.3.52
resource-graph                     2.1.0

Dependencies:
msal                              1.28.0
azure-mgmt-resource               23.1.1

Python location '/usr/local/Cellar/azure-cli/2.61.0/libexec/bin/python'
Extensions directory '/Users/michaeleikelandtt/.azure/cliextensions'

Python (Darwin) 3.11.9 (main, Apr  2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]

Additional context
No response

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

Hi @miceiken Find similar issue #22235.
Issue title	Storage commands failling on Fedora 35 when Python 3.6 is not present
Create time	2022-04-29
Comment number	7
Possible solution: It seems that the error message you are seeing is related to a missing package libpython3.6m.so.1.0()(64bit) which is not included in the RPM's requirement since 2.35.0. One workaround is to specify python36 in the RPM's requirement. Another workaround is to install Azure CLI using pip instead of RPM.
However, since Python 3.6 is now deprecated, the better solution is to build RPMs with the latest Fedora. You can use dnf command to query the package contents.
Please confirm if this resolves your issue.

This does not seem related.

Hi @miceiken
Thanks for reporting this issue, I will take a look.
May I ask what this the result when you execute this command:
az containerapp env show -n {env-name} -g {rg} --query "properties.workloadProfiles"
Thanks

Hi @miceiken
I have checked this error. This is due to your managed environment is not an environment that enable workload profiles.
We don't support adding workload profiles for an environment that doesn't enable workload profiles. The existing environment which not enable workload profiles also not support change to enable.
You can create a new environment enable workload-profiles with following command:
az containerapp env create -g {} -n {} --location {}  --logs-destination none --enable-workload-profiles

authors: Greedygre miceiken yonzhan


text:
Transactional behavior for template deployments

This issue has been brought up internally a few times and again in issue #3574.
If you have an ARM template deployment (such as VM create) and it fails midway through, several resources may have already been created for you. In many cases, this is what you want--you'd tweak your parameters, redeploy the template and achieve your desired end-state without needing to delete those resources or recreate them.
However, it is certainly reasonable that a user would want to have some kind of transactional behavior for a command where, if the command fails, the user can assume they were in the same state they were before the ran the command.
This would be easy for template-based creates. We know what resources we plan to create. We could include a --transaction flag (or something) to signify that if any of the resources fail to deploy, clean up anything that was created.
It might get a little trickier for the generic group deployment create command, but still, conceptually, a --transaction flag makes sense.
Thoughts?

This behavior is not supported by ARM and we cannot build this into CLI itself.

authors: JasonRShaver tjprescott


text:
Maduong/bugfix/282569

see Maduong/bugfix/282569
should not have cal-required label anymore

Hi @thegalah, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.azure.com.

TTYL, AZPRBOT;

authors: azurecla thegalah


text:
[VM] Enhance vm open-port command

Closes #1982.

Breaking Change: Adds two more required parameters: --port and --priority. The old default of * doesn't make sense. Priority was static but now must be specified since the command could be reused.

Can we make priority optional?
If I've just run az vm create and then do az vm open-port, not sure if I'd know what priority to use.

@derekbekoe That would be ideal if it was reasonable to allow.

Can we include an example of a port range in the help for this param?
Will any of these formats work?
1000-5000 (all ports from 1000 to 5000 inclusive)
80,443 (only 80 and 443)

@derekbekoe the problem with defaulting the priority is that you can't have two inbound rules with the same priority. In essence, it would work the first time and then fail the second. Like nsg rule create it will only accept a single port or a range of ports. It will not accept a list (comma separated or otherwise).
I had an implementation that took a space separated list and simply created multiple rules, but then you immediately run into the problem of priority. Without a good heuristic to go by, I stuck with only creating one rule with each call and making priority required.

In essence, it would work the first time and then fail the second

@tjprescott, how the error looks like? If the error is good, failing with using the same default priority would be ok, and people can refer to examples section for help.

@yugangw-msft the error is pretty clear. I'll leave the priority default to 900 then. Thanks for the feedback. :)

authors: derekbekoe lostintangent tjprescott yugangw-msft