text:
Remediate security configurations rules should take account of server role

Some of the rules have expected values that work most of the time but don't work for specific server roles that need exceptions (e.g. when IIS or SQL Server is installed)

Ensure 'Replace a process level token' is set to 'LOCAL SERVICE, NETWORK SERVICE'
Potential impact:  However, if you have installed the Web Server (IIS) Role with Web Services Role Service, you will need to allow the IIS application pool(s) to be granted this User Right Assignment.
EXPECTED VALUE | LOCAL SERVICE, NETWORK SERVICE

'Generate security audits' is set to 'LOCAL SERVICE, NETWORK SERVICE, IIS APPPOOL\DefaultAppPool'
POTENTIAL IMPACT | On most computers, this is the default configuration and there will be no negative impact. However, if you have installed the Web Server (IIS) Role with Web Services Role Service, you will need to allow the IIS application pool(s) to be granted this User Right Assignment.
EXPECTED VALUE | Local Service, Network Service, IIS APPPOOL\DefaultAppPoo

It would be much better if the rule automatically adjusted the expected value to account for the server role. For example, when IIS is installed the expected value should include all the accounts that IIS requires to be present (app pools, IWAM_ etc). Alternatively have variants of the same rule for different server roles (e.g. the above rules have with-IIS and without-IIS variants)
https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/replace-a-process-level-token#potential-impact
While it might be possible to manually create exemption rules (once this is out of preview) to fix this it's much better if this just worked "out of the box" to reduce noise.

Hi @dd8
thanks for posting your feedback. Since this is a product specific feature request, not an issue related to an automation artifact, please create a new post in the Azure Security Center User Voice at https://aka.ms/ASCuservoice. You can also find further engagement options in our GitHub Wiki.

repo: Azure/Azure-Security-Center


text:
Update PulseConnectSecure.txt

Removed extra "," from end of query.  Separated the two versions of the parser namely that the first parser section works with the default PulseSecure format and the second is expecting WebTrends Enhanced Log Format (WELF)
Fixes #
Removed stray comment
Proposed Changes
Clarify format of logs and parser sections

Closing this as I published a new PR against latest master and based on the discussion - https://github.com/Azure/Azure-Sentinel/pull/1294

source: gharchive/pull-request

authors: FlyingBlueMonkey shainw

repo: Azure/Azure-Sentinel

license: MIT

license_type: permissive

license_source: github-api


text:
NXLog FIM Solution v1.0.0

Required items, please complete
Change(s):

Initial submission for NXLog FIM Solution

Reason for Change(s):

Initial submission for NXLog FIM Solution

Version Updated:

No

Testing Completed:

Yes

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

Yes

Hi @v-spadarthi  , please review above PR and provide your feedback accordingly. Thanks

Hi @vicosurge, please provide us sample data. Also add metadata in data connector file. Please refer #link for your reference.

Hey @v-laanjana and @v-atulyadav, I no longer work at NXLog, so this case would have to be taken back to the respective members of the team over there. Thanks.

Hey @vicosurge, can you please tag anyone who can take it forward? thanks.

Hey @vicosurge, can you please tag anyone who can take it forward? thanks.

Hey @vicosurge, can you please tag anyone who can take it forward?

@v-laanjana @v-sabiraj and @v-atulyadav, I have sent a message to the person in charge, I do not work there anymore, so I have no way of knowing which is their username.

Hey @vicosurge, any update whom we need to tag it ?

@v-spadarthi found the username. @techwriter-dev is John Kirch and should be the one looking into this.

@techwriter-dev can you please update ?

@v-laanjana In reply to your most recent discussion:

@techwrtier-dev can you please update?

Since the creator of this pull request ( @vicosurge ) no longer works for NXLog and is no longer a contributor to this Sentinel Solution, I have created pull request #6264 with all the updates that have been requested in this pull request.

We closed this PR as new PR (pull request #6264 ) has been raised for the same by @techwriter-dev. Thanks

authors: techwriter-dev v-atulyadav v-laanjana v-sabiraj v-spadarthi vicosurge


text:
Update readme.md

Fixes #
-Corrected Link Url

Sorry, I have a duplicate request. I've consolidated the changes in 702


text:
Update network watcher workbook name

Fixes #
Proposed Changes

@preetikr can you please review the changes?

Yes, I'll review @morshabi - assigned to myself

authors: morshabi preetikr


text:
Support Container Instance as a deployment target for AML

Is your feature request related to a problem? Please describe.
AKS deployment and maintenance is quite complicated compared to Azure Container Instances
Describe the solution you'd like
Support Azure Container Instance as a deployment target for AML in the ML landing zone

@hudua - We've chatted about supporting App Service in the past as the model runtime for AML.  How feasible is ACI in the ML archetype?

Yes, ACI is a good idea for the ML archetype. For Azure Container Instance, the preferred route would be deploy to virtual network: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-vnet. Since deployment of ACI requires an image and image source, I would suggest we address this issue as an integration test scenario. Thought?

Please stay tuned...

I'm working on integration test scripts and automation scripts for ML archetype to enable deployment to app service (instead of container instance). There is a well-known limitation that container instance cannot pull from container registry with private endpoint.

We would need to get this limitation lifted before integration.  Do you want to open a technical feedback for ACI engineering to address?

Microsoft internal ticket submitted for this feedback. Focus for now will be to deploy model to App service

d

Edited - re-opened due to accidental user error...

Will close this issue for now. ACI now supports ACR with private endpoint using managed identity, but this doesn't work for ACI inside vnet so not fully supported for the ML landing zone.
Deploy container image from Azure Container Registry using a managed identity - Azure Container Instances | Microsoft Docs

source: gharchive/issue

authors: SenthuranSivananthan hudua mosharafMS

repo: Azure/CanadaPubSecALZ


text:
The renderComponentIntoRoot component encountered an error while loading.

Describe the Bug with repro steps
When opening a large Logic App in the Preview Designer, get an error message and the Logic App will not open. The browser console provides a detailed message with fhe following: "Microsoft_Azure_EMA]  6:14:08 AM renderComponentIntoRoot ReactInternalComponentError: {"message":"Maximum call stack size exceeded","stack":"RangeError: Maximum call stack size exceeded"}"
Workflow JSON
Attached

Screenshots or Videos
Workflow.txt
Browser
Chrome
Additional context
No response

Hi @berellax, this issue was caused because the function to render the nodes in the workflow is getting recursively calling itself too many times, causing a crash. I looked at your workflow definition at it seems that the Switch ActionType node has some errors. Some action nodes inside have the same name as the case, resulting in trying to render itself a lot of time. Specifically, all the else cases of Create_Lead, Update_Contact and Update_Lead. I tried to rename those actions and it seems to work fine.

Create_Lead

Update_Contact

Update_Lead

After all the changes, this is the final result. You can see that the nodes have different names.
Please, if this is still happening after the changes, feel free to reopen and we can have a deeper dive of why its happening for you

authors: berellax ccastrotrejo

repo: Azure/LogicAppsUX


text:
Fix convert_to_markdown

Fix issues convert_to_markdown. See Issue https://github.com/Azure/aml-run/issues/31

@ashishonce Please add a test with mlflow: https://github.com/Azure/MachineLearningNotebooks/tree/master/how-to-use-azureml/track-and-monitor-experiments/using-mlflow/train-remote

@awmatheson @ashishonce  We should also include a test with an empty metrics list.

@marvinbuss This should be good to go now.

authors: awmatheson marvinbuss

repo: Azure/aml-run


text:
Encode DateTime parameters properly

Test: PutComplexPrimitiveDateTime
Description: Put complex types with datetime properties
I believe date needs to be encoded in the format: 2015-05-18T11:38:00-08:00

Done.


text:
Missing AzureResourceProviderNamespaceAttribute

All diagnostic scopes should have 'az.namespace' attribute, make sure the assembly containing **ClientOptions type is marked with AzureResourceProviderNamespaceAttribute.
Since AzureResourceProviderNamespaceAttribute is required, suggest to generate it automatically.

I don't think the correct value is defined in the swagger so the generator is not able to generate it.

authors: erich-wang pakrym


text:
Per-request parameter not taken at method level depending on definition

Describe the issue or request
For the autorest v3: I'm working on a swagger file that defines a per-request parameter of an if-match header, but the if-match value can only be passed to the client at constructor time, not per request. I have a zip file attached with two json files that demonstrate this issue.
In the "swaggerFails.json", the rest client gets generated like the below
private string host;
private string ifMatch;
private ClientDiagnostics _clientDiagnostics;
private HttpPipeline _pipeline;

public SomeOperationRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string host = "", string ifMatch = null) { //saves the ifMatch at the class level }

// The instance method doesn't take the if-match header, but does use the one provided at the constructor level
public virtual Response Delete(string id, CancellationToken cancellationToken = default)

With a small change to the swagger file such that the parameter isn't factored out to the parameters section, I made "swaggerWorks.json"
With this edited swagger, the rest client now looks like the below:
private string host;
private ClientDiagnostics _clientDiagnostics;
private HttpPipeline _pipeline;

/// <summary> Initializes a new instance of SomeOperationRestClient. </summary>
public SomeOperationRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string host = "")
{ //no ifMatch at client level }

// Per method ifMatch headers, as expected
public Response Delete(string id, string ifMatch = null, CancellationToken cancellationToken = default) { ... }

The only difference between the two swagger files is how the parameter is referenced, which I wouldn't expect to cause this kind of code discrepancy.
                "parameters": [
                    {
                        "$ref": "#/parameters/Id"
                    },
                    {
                        "name": "If-Match",
                        "in": "header",
                        "description": "Only perform the operation if the entity's etag matches one of the etags provided or * is provided.",
                        "required": false,
                        "type": "string"
                    }
                ],

vs
                "parameters": [
                    {
                        "$ref": "#/parameters/Id"
                    },
                    {
                        "$ref": "#/parameters/if-match"
                    }
                ],

I encountered this bug working with the track 2 code generator for Azure SDKs, but that generator uses autorest v3, from what I understand. Is this expected behavior?
swaggerFiles.zip

@timtay-microsoft
You are missing the "x-ms-parameter-location": "method" for if-match when you have it defined in the global parameters list. You have it there for Id but not for if-match. When a parameter is defined in the global parameters list, it defaults to client. See documentation here:
https://github.com/Azure/autorest/blob/master/docs/extensions/readme.md#x-ms-parameter-location
Please let me know if this has resolved the problem so I can close this issue. Thank you!

That does seem to do the trick! Thanks, I'll close this issue

authors: MiYanni timtay-microsoft


text:
Collection format is missing in code model

Spec at https://github.com/Azure/autorest.testserver/blob/master/swagger/url.json#L760
    "/paths/array/ArrayPath1%2cbegin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend%2c%2c/{arrayPath}": {
      "get": {
        "operationId": "paths_ArrayCsvInPath",
        "description": "Get an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format",
        "tags": [
          "query Operations"
        ],
        "parameters": [
          {
            "name": "arrayPath",
            "in": "path",
            "required": true,
            "description": "an array of string ['ArrayPath1', 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format",
            "type": "array",
            "items": {
              "type": "string"
            },
            "collectionFormat": "csv"
          }
        ],

generated code model with no csv anywhere to be found. This prevents url tests being generated and tested.

In OAI3 (which we upconvert to) has a style that goes along with the parameter
the supported formats:

style
explode
empty
string
array
object

matrix
false
;color
;color=blue
;color=blue,black,brown
;color=R,100,G,200,B,150

matrix
true
;color
;color=blue
;color=blue;color=black;color=brown
;R=100;G=200;B=150

label
false
.
.blue
.blue.black.brown
.R.100.G.200.B.150

label
true
.
.blue
.blue.black.brown
.R=100.G=200.B=150

form
false
color=
color=blue
color=blue,black,brown
color=R,100,G,200,B,150

form
true
color=
color=blue
color=blue&color=black&color=brown
R=100&G=200&B=150

simple
false
n/a
blue
blue,black,brown
R,100,G,200,B,150

simple
true
n/a
blue
blue,black,brown
R=100,G=200,B=150

spaceDelimited
false
n/a
n/a
blue%20black%20brown
R%20100%20G%20200%20B%20150

pipeDelimited
false
n/a
n/a
blue|black|brown
R|100|G|200

deepObject
true
n/a
n/a
n/a
color[R]=100&color[G]=200&color[B]=150

OAI3 doesn't have tab delimited, but I've added a tabDelimited in the model to support that.
I will add this style to the parameter in the code model

#69 addresses this:
To use this version:
Ensure that you're on @autorest/autorest  3.0.6141 or greater:
npm install -g @autorest/autorest

and then do a --reset and get the specific autorest-core package version 3.0.6162, and the modelerfour 4.2.75
autorest-beta --reset
autorest-beta --version:3.0.6162 --use:@autorest/modelerfour@4.2.75

I see it indeed now

@fearthecowboy found one missing:
https://github.com/Azure/autorest.testserver/blob/e0d8dcad0f06f45ad6ec4416e45b326a139a63ff/swagger/url-multi-collectionFormat.json#L63
CodeModel:

Note that's the only one I found missing so far, I fixed several bugs already :)

Seems to have everything I need now in the code model - is this still an issue for you @lmazuel ?

nope fine

authors: fearthecowboy jianghaolu lmazuel


text:
Allow text/plain responses with 'type: string' schemas

This change addresses issue #352 which reports that a text/plain response with a "type": string schema wasn't coming through in the code model's response list.  It turns out Modelerfour has been excluding this media type, so this PR adds support for it.

Looks good... does this make the generators create an operation that uses a raw string for the body? (ie, not encoding it as a JSON string?)

@fearthecowboy - @iscai-msft just tested it and says that the generated code returns a plain string as expected

authors: daviwil fearthecowboy


text:
Unable to delete IP group asscoiated to non-existing resource

Hi,
When using
> az network ip-group delete -n azure-all -g management-rg (az version 2.5.1 and earlier)
it seems impossible to delete an IP Group that used to be associates to a Azure Firewall Rule set that no longer exist.
Error: IpGroupsHasResourceReferences - IpGroups '/subscriptions/***/resourcegroups/Management-rg/providers/Microsoft.Network/ipGroups/AZURE-ALL' cannot be deleted since there are other Azure Resources using this resource. Subsequently the Resource Group where this IP Group resides can not be deleted neither.
Please advise, because we are stuck on remove old stuff now.
Kind regards, Arjen

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0cacec59-2882-a074-136b-a4a1896e97c1
Version Independent ID: 1c0fbb79-e36c-2e18-0293-67ebff1a53e7
Content: az network ip-group
Content Source: latest/docs-ref-autogen/ext/ip-group/network/ip-group.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

add to S170

add to S172

I ended up with creating some a dummy firewall with identical names, added network rules and deleting them. Atfter this I w2as able to delete the IP group And deleted the dummy firewall.
Kind regards, Arjen

authors: aggerritsen yonzhan

repo: Azure/azure-cli-extensions


text:
[Monitor] az monitor app-insights query: fix for --offset

Fix #1041
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.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/MyronFanQiu/azure-cli-extensions.git@fix-1041-app-insights-offset#subdirectory=src/$EXT&egg=$EXT"

authors: MyronFanQiu azuresdkci


text:
draft extension for aks preview api

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

[x] Have you run ./scripts/ci/test_static.sh locally? (pip install pylint flake8 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.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/zqingqing1/azure-cli-extensions.git@aks-preview#subdirectory=src/$EXT&egg=$EXT"

@williexu Travis CI build failed because of the import error. I am not sure how can I install the package for venv on Travis CI? Can you share me some pointer?

@zqingqing1 you can disable those errors, since those dependencies are brought about by the CLI.

How can I disable the errors?

these errors are coming from pylint, you can disable pylint warnings with a pylint: disable.....

rebase off master

@williexu, do you wanna me to update index.json in a new PR or combine in this PR?

Hi @williexu, please take a look again :)

authors: azuresdkci williexu zqingqing1


text:
[Spring Cloud] Remove preview tag for Spring Cloud Gateway and API portal

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

General Guidelines

[x] 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:

[x] 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 pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

Spring Cloud

authors: ninpan-ms yonzhan


text:
[Communication] add user-agent header for Rooms and Email service clients

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

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 pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

Communication

authors: mayssamm yonzhan


text:
UrnAlias for custom image

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

Describe the bug
I have the following output:
root@Alexey-HP:~# az vm image list --publisher Canonical
You are viewing an offline list of images, use --all to retrieve an up-to-date list
Offer         Publisher    Sku        Urn                                      UrnAlias    Version

UbuntuServer  Canonical    18.04-LTS  Canonical:UbuntuServer:18.04-LTS:latest  UbuntuLTS   latest
root@Alexey-HP:~#
where UrnAlias is UbuntuLTS.
I can create VM using UrnAlias:
az vm create --image UbuntuLTS ...
When I run the same command for my custom images there's no UrnAlias column (output is empty line):
root@Alexey-HP:~# az vm image list --publisher postgres-pro
You are viewing an offline list of images, use --all to retrieve an up-to-date list
root@Alexey-HP:~#
Instead I have to specify '--all' key to get a non-empty output of this command, but in this case the output is long enough.
To Reproduce
See above.
Expected behavior
How can I get UrnAlias column for my custom image?
or is there functionality of image family, so that I can group my custom images and create VM with simple command like az vm create --image UbuntuLTS ... with the latest version of my family image
Environment summary
Install Method (e.g. pip, interactive script, apt-get, Docker, MSI, edge build) / CLI version (az --version) / OS version / Shell Type (e.g. bash, cmd.exe, Bash on Windows)
Additional context
Add any other context about the problem here.

@qwordy Please take care of this issue. Thanks.

pls. have a look at GCP example:
gcloud compute images create $INSTANCE_NAME-image
--family ppro-ent11-centos7 ...
gcloud compute instances create $INSTANCE_NAME-vm
--image-family=ppro-ent11-centos7 ...
when I create custom image I assign it to the image family
when I create VM from the custom image I specify this image family and the latest version of image from this image family is used automatically

Azure CLI will translate alias to urn. All aliases that Azure CLI supports are defined here.
https://github.com/Azure/azure-rest-api-specs/blob/master/arm-compute/quickstart-templates/aliases.json
For the image family, I need to do some investigation.

can I add/change alias or append json file to 'az' command as argument?

Sorry. Currently, Azure CLI doesn't support this feature.

are these aliases only available to select publishers?

authors: MyronFanQiu alexeyshishkin01 jamesongithub qwordy

repo: Azure/azure-cli


text:
trying to upload zip file through azure CLI but it gives "No file to upload"

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az dls fs upload
Errors:
az dls fs upload: error: the following arguments are required: --destination-path

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 dls fs upload --bpdata --source-path {}

Expected Behavior
Environment Summary
Linux-4.15.0-1083-azure-x86_64-with-debian-stretch-sid
Python 3.6.10
Installer: DEB

azure-cli 2.7.0

Additional Context

add to S172

Hi @ArsalanGul, are you working with ADLS Gen1 account?
According to the error message, it seems you forget to provide --destination-path parameter value, could you check your usage again and use --help to see more with examples?

Hi, because there is no response for several days, I will close the PR now and if you still have the problem, feel free to reopen it.

authors: ArsalanGul Juliehzl yonzhan


text:
az monitor scheduled-query list is throwing Cannot deserialize as [Action] error

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

Describe the bug
When we will run command from GitHub Actions az monitor scheduled-query list --debug --subscription ${{ env.SUBSCRIPTION}} -g ${{ env.RESOURCEGROUP }} it will randomally fail because of error message:
msrest.exceptions.DeserializationError: Cannot deserialize as [Action] an object of type <class 'dict'>
To Reproduce
You can run this command via GitHub Actions from GitHub runner ubuntu-latest and it will randomly happened.
Expected behavior
It will list all query alerts from specified subscription and resource group
Environment summary
It's GitHub Action which is set up by this workflow file:
name: audit_alerts

on:
  workflow_dispatch:

jobs:
  # JOB to run all deployments
  fetch:
    runs-on: ubuntu-latest

    outputs:
      alerts: ${{ steps.getlist.outputs.alerts }}
    steps:
    - name: Checkout
      uses: actions/checkout@v2

    - name: Install jq
      run: sudo apt-get install jq

    - name: Install yq
      run: |
        sudo apt install snapd
        sudo snap install yq

    - name: Get List
      id: getlist
      run: |
        jsonlist=$(yq eval "keys" file-filters.yml --tojson)
        echo "::set-output name=alerts::$(echo $jsonlist)"

    - name: Print output
      run: echo ${{ steps.getlist.outputs.alerts }}

    - name: Print output fromJson
      run: echo ${{ fromJson(steps.getlist.outputs.alerts) }}

  audit:
    needs: fetch
    strategy:
      fail-fast: false
      matrix:
        alerts: ${{ fromJSON(needs.fetch.outputs.alerts) }}
    runs-on: ubuntu-latest
    env:
      version: '1.0.0'
      AZURE_STORAGE_CONNECTION_STRING: 'FileEndpoint=https://ncrsaassharedtemplates.file.core.windows.net/;SharedAccessSignature=sv=2019-10-10&ss=bfqt&srt=sco&sp=rwlacupx&se=2030-06-19T17:18:27Z&st=2020-06-19T09:18:27Z&spr=https&sig=oJEEWbshPqHXT4KHpeo62c726%2FZ%2FcUqKRU6KBe3yr78%3D'

    steps:

      - name: Checkout
        uses: actions/checkout@v2

      - name: Install jq
        run: sudo apt-get install jq

      - name: Install yq
        run: |
          sudo apt install snapd
          sudo snap install yq

      - name: Install jsonlint
        run: sudo apt-get install python3-demjson

      - name: Set variables
        run: |
          echo $MATRIX_CONTEXT
          alerts=$(echo $MATRIX_CONTEXT | jq -r '.alerts')
          echo "PRODUCT=$(cut -d'_' -f1 <<<"$alerts")" >> $GITHUB_ENV
          echo "ENVKEY=$(cut -d'_' -f2 <<<"$alerts")" >> $GITHUB_ENV
          echo "LEVEL=$(cut -d'_' -f3 <<<"$alerts")" >> $GITHUB_ENV
          echo "COMPONENT=$(cut -d'_' -f4 <<<"$alerts")" >> $GITHUB_ENV
          echo "RESOURCEGROUP=$(yq eval .$alerts.[].resourcegroup file-filters.yml | grep -v '^null$')" >> $GITHUB_ENV
          echo "SUBSCRIPTION_NAME=$(yq eval .$alerts.[].subscription file-filters.yml | grep -v '^null$')" >> $GITHUB_ENV
        env:
          MATRIX_CONTEXT: ${{ toJSON(matrix) }}

      - name: Lint Json files
        run: |
          for file in ${{ env.PRODUCT }}/${{ env.ENVKEY }}/${{ env.LEVEL }}/${{ env.COMPONENT }}/alerts/*.json ; do jsonlint ${file} ; done
          for file in ${{ env.PRODUCT }}/${{ env.ENVKEY }}/${{ env.LEVEL }}/${{ env.COMPONENT }}/*.json ; do jsonlint ${file} ; done

      - name: AZ login
        run: az login --service-principal -u ${{ secrets.AZ_AD_TERRAFORM_DEPLOYMENT_APP_ID }} -p ${{ secrets.AZ_AD_TERRAFORM_DEPLOYMENT_CLIENT_SECRET }} --tenant ${{ secrets.AZ_AD_TERRAFORM_DEPLOYMENT_TENANT_ID }}

      - name: Get Subscription ID
        run: echo "SUBSCRIPTION=$(az account show --subscription "${{ env.SUBSCRIPTION_NAME}}" | jq -r '.id')" >> $GITHUB_ENV

      - name: Azure alerts audit
        run: |
          az config set extension.use_dynamic_install=yes_without_prompt
          az monitor scheduled-query list --debug --subscription ${{ env.SUBSCRIPTION}} -g ${{ env.RESOURCEGROUP }}

monitor

Thanks for your feedback. After communicate with service team, that's because they are changing the response schema of 2021-02-01-preview version API. I will downgrade api version in next release 2020-05-01-preview asap.

Fixed in 0.3.1

I can confirm that now it works fine. Thanks a lot for help. :-)

authors: kairu-ms pp185214 yonzhan


text:
Updation of CLI for AzureStackHCI

Resource Provider
 AzureStackHCI
Description of Feature or Work Requested

We want to update our CLI based on the swagger. Currently, we have the cli commands for clusters resource, we would like to add for our other resources: arcsettings, extensions as well.
Extension: https://github.com/Azure/azure-cli-extensions/tree/main/src/stack-hci
Minimum API Version Required
 2021-09-01
Swagger Link

https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/stable/2021-09-01
Target Date

31st March, 2022

AzureStackHCI

Hi, is there any update on this?

@priyjain358, I'm working on this and hopefully next week will deliver. : )

authors: necusjz priyjain358 yonzhan


text:
az postgres throws a python error

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az postgres
Errors:
The command failed with an unexpected error. Here is the traceback:
No module named 'psycopg2._psycopg'
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/__init__.py", line 583, in execute
    parsed_args = self.parser.parse_args(args)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/knack/parser.py", line 261, in parse_args
    return super().parse_args(args)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/argparse.py", line 1825, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/parser.py", line 284, in parse_known_args
    self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/argparse.py", line 1858, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/argparse.py", line 2070, in _parse_known_args
    stop_index = consume_positionals(start_index)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/argparse.py", line 2026, in consume_positionals
    take_action(action, args)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/argparse.py", line 1935, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/argparse.py", line 1213, in __call__
    subnamespace, arg_strings = parser.parse_known_args(arg_strings, None)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/parser.py", line 284, in parse_known_args
    self._namespace, self._raw_arguments = super().parse_known_args(args=args, namespace=namespace)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/argparse.py", line 1858, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/argparse.py", line 2095, in _parse_known_args
    self.error(_('the following arguments are required: %s') %
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/parser.py", line 160, in error
    recommender.set_help_examples(self.get_examples(self.prog))
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/parser.py", line 201, in get_examples
    return self.cli_help.get_examples(command,
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/_help.py", line 192, in get_examples
    else self.group_help_cls(self, delimiters, parser)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/knack/help.py", line 253, in __init__
    child.load(options)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/_help.py", line 303, in load
    loader.versioned_load(self, options)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/_help_loaders.py", line 154, in versioned_load
    super(CliHelpFile, help_obj).load(parser)  # pylint:disable=bad-super-call
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/knack/help.py", line 198, in load
    description = getattr(options, 'description', None)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/knack/parser.py", line 241, in __getattribute__
    self.description = self._description() \
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 133, in description_loader
    op = self.get_op_handler(self.op_path)
  File "/usr/local/Cellar/azure-cli/2.33.1/libexec/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
    handler = import_module(mod_to_import)
  File "/usr/local/Cellar/python@3.10/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/Users/muel42/.azure/cliextensions/db-up/azext_db_up/custom.py", line 15, in <module>
    import psycopg2
  File "/Users/muel42/.azure/cliextensions/db-up/psycopg2/__init__.py", line 51, in <module>
    from psycopg2._psycopg import (                     # noqa
ModuleNotFoundError: No module named 'psycopg2._psycopg'

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 postgres

Expected Behavior
Environment Summary
macOS-12.2.1-x86_64-i386-64bit, Darwin 21.3.0
Python 3.10.2
Installer: HOMEBREW

azure-cli 2.33.1

Extensions:
account 0.2.1
db-up 0.2.2

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

route to CXP team

@kurt-mueller-osumc Could you please share which subcommand you are using when running with az postgres ?


text:
az aks pod-identity command failure

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks pod-identity list
Errors:
The command failed with an unexpected error. Here is the traceback:
cannot import name 'map_azure_error_to_cli_error' from 'azure.cli.command_modules.acs._helpers' (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\command_modules\acs\_helpers.pyc)
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 556, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/__init__.py", line 517, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 313, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/commands.py", line 104, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
  File "importlib\__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\stalla\.azure\cliextensions\aks-preview\azext_aks_preview\custom.py", line 105, in <module>
    from ._helpers import (
  File "C:\Users\stalla\.azure\cliextensions\aks-preview\azext_aks_preview\_helpers.py", line 7, in <module>
    from azure.cli.command_modules.acs._helpers import map_azure_error_to_cli_error
ImportError: cannot import name 'map_azure_error_to_cli_error' from 'azure.cli.command_modules.acs._helpers' (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\command_modules\acs\_helpers.pyc)

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 aks pod-identity list --help

Expected Behavior
Environment Summary
Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.32.0 *

Extensions:
aks-preview 0.5.70

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

route to CXP team

@Sri-Talla Can you please upgrade to the latest version of az cli 2.39.0

authors: RakeshMohanMSFT Sri-Talla yonzhan


text:
az vmss reimage --ids parse error on v 2.45

hi,
sinsce upgrade from v2.44 to v2.45 the following errors are now happneing
command executed: az vmss reimage --ids /subscriptions/XXXX/resourceGroups/XXXX/providers/Microsoft.Compute/virtualMachineScaleSets/XXXX/virtualMachines/9999
before
{
"azure-cli": "2.44.1",
"azure-cli-core": "2.44.1",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
}
after
{
"azure-cli": "2.45.0",
"azure-cli-core": "2.45.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
}
error message:
(InvalidParameter) The provided instanceId 9 is not an active Virtual Machine Scale Set VM instanceId.
Code: InvalidParameter
Message: The provided instanceId 9 is not an active Virtual Machine Scale Set VM instanceId.
Target: instanceIds
seems to be reading only the first number char of the number.
OS: Ubuntu 20.04.5 LTS

@zhoxing-ms for awareness

@marchesir Could you please send the debug log (add --debug parameter) to me? My email address is Zhou.Xing@microsoft.com

azclidebug.txt
hi @zhoxing-ms  iv attached the debug log but have redacted account info but not insatnce id
what i can see is this:
cli.knack.cli: Command arguments: ['vmss', 'reimage', '--ids', '/subscriptions/XXXX/resourceGroups/XXXX/providers/Microsoft.Compute/virtualMachineScaleSets/XXXX/virtualMachines/100', '--no-wait', '--debug']
so 100 is passed in but when the azure api call is made its cut it from the requst:
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/XXXX/resourceGroups/XXXX/providers/Microsoft.Compute/virtualMachineScaleSets/XXXX/virtualMachines/1/reimage?api-version=2022-11-01' cli.azure.cli.core.sdk.policies: Request method: 'POST' cli.azure.cli.core.sdk.policies: Request headers: cli.azure.cli.core.sdk.policies:     'Content-Type': 'application/json' cli.azure.cli.core.sdk.policies:     'Accept': 'application/json' cli.azure.cli.core.sdk.policies:     'x-ms-client-request-id': 'e3631833-b8ee-11ed-a79d-65179efe07a4' cli.azure.cli.core.sdk.policies:     'CommandName': 'vmss reimage' cli.azure.cli.core.sdk.policies:     'ParameterSetName': '--ids --no-wait --debug' cli.azure.cli.core.sdk.policies:     'User-Agent': 'AZURECLI/2.45.0 (DEB) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.10.8 (Linux-5.15.0-1033-azure-x86_64-with-glibc2.31)'
thanks

@marchesir Please note that the --ids parameter should pass in the resource id of VMSS instead of the VM instance id from a VMSS. If you need to pass in the VM instance id, you should use parameter --instance-ids, such as:
az vmss reimage --instance-ids 100 --ids {VMSS_resource_id}

hi @zhoxing-ms
i am passing in the full resource id, this works perfect on v2.44 without any code updates but breaks on v2.45.
here iam passing the full resource id
az vmss reimage --ids /subscriptions/XXXX/resourceGroups/XXXX/providers/Microsoft.Compute/virtualMachineScaleSets/XXXX/virtualMachines/9999
as can be seen in the logs its cutting instance number, iv tried with double quotes ("") but the same issue.
i know i can use --instance-ids to pass just the number and yes this works fine on both versions but i need the full resource id option.

this is a clear bug that needs addressing
i have workaround by using v2.44
my current codebase uses full resource id to avoid complex parsing

its not my call but for now i will pin my codebase to v2.44 but hopfully this issue will be resolved and i can upgrade at some point.  if the azure cli has updates the way full resource id is passed fine but iv checked the change logs and cant seee anyhting mentioned.

@marchesir Sorry, I can't reproduce this issue in my local environment at present
In fact, I found that if the --ids is a VM instance id under a VMSS, CLI will directly reimage the entire VMSS with ignoring the VM instance id.
For example:
cli.knack.cli: Command arguments: ['vmss', 'reimage', '--ids', '/subscriptions/{subscription_id}/resourceGroups/zhoxing-test/providers/Microsoft.Compute/virtualMachineScaleSets/zhoxing-test/virtualMachines/100', '--debug']
...
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/zhoxing-test/providers/Microsoft.Compute/virtualMachineScaleSets/zhoxing-test/reimage?api-version=2022-11-01'

So the behavior of my local CLI is different from what you described, I'm not sure whether it is caused by some differences in our usage.
Could you please provide me with the complete debug logs for CLI version 2.45.0 and 2.44.1? If you are concerned about the sensitive information, please send them to me by email, My email address is Zhou.Xing@microsoft.com, Thank you

hi @zhoxing-ms
iv attached 2 logs with all commands ran on each version, iv retacted some account info as this is being run inside a coperate environment.
so the commands are not run as indiviual user:

ssh into vm on Azure VMSS
az login to managed identity
get vm respource id
run reimage command

all i can see im running 100% same setup only difference id the azure cli version. the az cli is being run on azure vm.
all these details can be seen in the logs:
using v2.44.1 --> works fine
azcli_good.txt
using v2.45.0 --> has parsing errror
azcli_error.txt
so v2.45.0 clearly is cutting part of the instance id, not sure why, havent updated anything apart from azure cli unless the cli depends on something external within the OS.
so what i can see in logs is this:
cli.knack.cli: Command arguments: ['vmss', 'reimage', '--ids', '/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss}/virtualMachines/107', '--no-wait', '--debug']
This looks good and then when the API call is made its been cut
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/{rg}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss}/virtualMachines/1/reimage?api-version=2022-11-01'
thanks again for help

@marchesir Sorry, I still cannot reproduce your problem after referring to your process.
The behavior of cutting instance id is strange, this command had not added similar logic before.
Could you please upgrade CLI to the latest version 2.46.0 and try again?

hi @zhoxing-ms
thanks for update, so i tried v2.46 and works fine so will close issue. no idea what was causing it.
thanks for you help much appreciated. im guessing was an edge case but what was causing it will remain a mystery

authors: marchesir yonzhan zhoxing-ms


text:
az storage account check-name -n stgteststorageaccountthat fails with SubscriptionNotFound when the subscription exists

Describe the bug
trying to run the command
❯ az storage account check-name -n stgteststorageaccountthat
responds with the following error
(SubscriptionNotFound) Subscription  was not found.
Code: SubscriptionNotFound
Message: Subscription  was not found.
the above command works as expected when run in another subscription
the subscription is a subscription managed by another tenant

Related command
az storage account check-name -n stgteststorageaccountthat
Errors

Issue script & Debug output
❯ az storage account check-name -n stgteststorageaccountt --debug
cli.knack.cli: Command arguments: ['storage', 'account', 'check-name', '-n', 'stgteststorageaccountt', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7fb65982f010>, <function OutputProducer.on_global_arguments at 0x7fb6597824d0>, <function CLIQuery.on_global_arguments at 0x7fb6595a79a0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'storage': ['azure.cli.command_modules.storage']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: storage                   0.038        58       272
cli.azure.cli.core: Total (1)                 0.038        58       272
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name                  Load Time    Groups  Commands  Directory
cli.azure.cli.core: Total (0)                 0.000         0         0
cli.azure.cli.core: Loaded 58 groups, 272 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : storage account check-name
cli.azure.cli.core: Command table: storage account check-name
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7fb6582be7a0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/fredrik/.azure/commands/2023-09-20.11-59-35.storage_account_check-name.6568.log'.
az_command_data_logger: command args: storage account check-name -n {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7fb6580aae60>]
cli.azure.cli.core.profiles._shared: Traceback (most recent call last):
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/core/profiles/_shared.py", line 655, in _get_attr
op = getattr(op, part)
AttributeError: module 'azure.mgmt.storage.v2022_09_01.models' has no attribute 'ActiveDirectoryPropertiesAccountType'
cli.azure.cli.core.profiles._shared: Traceback (most recent call last):
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/core/profiles/_shared.py", line 655, in _get_attr
op = getattr(op, part)
AttributeError: module 'azure.mgmt.storage.v2022_09_01.models' has no attribute 'ListKeyExpand'
cli.azure.cli.core.profiles._shared: Traceback (most recent call last):
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/core/profiles/_shared.py", line 655, in _get_attr
op = getattr(op, part)
AttributeError: module 'azure.mgmt.storage.v2022_09_01.models' has no attribute 'CorsRuleAllowedMethodsItem'
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7fb6580d4ca0>, <function register_cache_arguments..add_cache_arguments at 0x7fb6580d4dc0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7fb659782560>, <function CLIQuery.handle_query_parameter at 0x7fb6595a7a30>, <function register_ids_argument..parse_ids_arguments at 0x7fb6580d4d30>]
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=StorageManagementClient
cli.azure.cli.core.auth.persistence: build_persistence: location='/home/fredrik/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /home/fredrik/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/hidden1/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/hidden/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/hidden/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/hidden/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/hidden/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/hidden/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/hidden/kerberos', 'tenant_region_scope': 'NA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? False
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 78902d53-b909-4840-975b-9833673bfd0f
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/hidden/providers/Microsoft.Storage/checkNameAvailability?api-version=2022-09-01'
cli.azure.cli.core.sdk.policies: Request method: 'POST'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies:     'Content-Type': 'application/json'
cli.azure.cli.core.sdk.policies:     'Content-Length': '79'
cli.azure.cli.core.sdk.policies:     'Accept': 'application/json'
cli.azure.cli.core.sdk.policies:     'x-ms-client-request-id': '67165ef4-579c-11ee-ac4b-00155dbaef7f'
cli.azure.cli.core.sdk.policies:     'CommandName': 'storage account check-name'
cli.azure.cli.core.sdk.policies:     'ParameterSetName': '-n --debug'
cli.azure.cli.core.sdk.policies:     'User-Agent': 'AZURECLI/2.52.0 (PIP) azsdk-python-azure-mgmt-storage/21.0.0 Python/3.10.11 (Linux-5.15.90.1-microsoft-standard-WSL2-x86_64-with-glibc2.31)'
cli.azure.cli.core.sdk.policies:     'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: {"name": "stgteststorageaccountt", "type": "Microsoft.Storage/storageAccounts"}
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "POST /subscriptions/hidden/providers/Microsoft.Storage/checkNameAvailability?api-version=2022-09-01 HTTP/1.1" 404 118
cli.azure.cli.core.sdk.policies: Response status: 404
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies:     'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies:     'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies:     'Content-Length': '118'
cli.azure.cli.core.sdk.policies:     'Content-Type': 'application/json'
cli.azure.cli.core.sdk.policies:     'Expires': '-1'
cli.azure.cli.core.sdk.policies:     'x-ms-request-id': '9edada86-a1dc-4a59-b596-403ac16931ad'
cli.azure.cli.core.sdk.policies:     'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies:     'Server': 'Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0'
cli.azure.cli.core.sdk.policies:     'x-ms-ratelimit-remaining-subscription-reads': '11995'
cli.azure.cli.core.sdk.policies:     'x-ms-correlation-request-id': '8d6a2218-b029-460f-a211-b0f081f47ad6'
cli.azure.cli.core.sdk.policies:     'x-ms-routing-request-id': 'SWEDENSOUTH:20230920T095935Z:8d6a2218-b029-460f-a211-b0f081f47ad6'
cli.azure.cli.core.sdk.policies:     'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies:     'Date': 'Wed, 20 Sep 2023 09:59:35 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"error":{"code":"SubscriptionNotFound","message":"Subscription hidden was not found."}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/command_modules/storage/operations/account.py", line 22, in check_name_availability
return client.check_name_availability(account_name)
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/core/tracing/decorator.py", line 76, in wrapper_use_tracer
return func(*args, **kwargs)
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/mgmt/storage/v2022_09_01/operations/_storage_accounts_operations.py", line 704, in check_name_availability
map_error(status_code=response.status_code, response=response, error_map=error_map)
File "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/core/exceptions.py", line 109, in map_error
raise error
azure.core.exceptions.ResourceNotFoundError: (SubscriptionNotFound) Subscription hidden was not found.
Code: SubscriptionNotFound
Message: Subscription hidden was not found.
cli.azure.cli.core.azclierror: (SubscriptionNotFound) Subscription hidden was not found.
Code: SubscriptionNotFound
Message: Subscription hidden was not found.
az_command_data_logger: (SubscriptionNotFound) Subscription hidden was not found.
Code: SubscriptionNotFound
Message: Subscription hidden was not found.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7fb6582be9e0>]
az_command_data_logger: exit code: 3
cli.main: Command ran in 0.965 seconds (init: 0.169, invoke: 0.796)
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 3683 in cache
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/bin/python3.10 /home/fredrik/.pyenv/versions/3.10.11/envs/btpy/lib/python3.10/site-packages/azure/cli/telemetry/init.py /home/fredrik/.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.
Expected behavior
❯ az storage account check-name -n stgteststorageaccountt
{
"message": null,
"nameAvailable": true,
"reason": null
}
Environment Summary
❯ az --version
azure-cli                         2.52.0
core                              2.52.0
telemetry                          1.1.0
Extensions:
account                            0.2.5
Dependencies:
msal                            1.24.0b1
azure-mgmt-resource             23.1.0b2
Python location '/home/fredrik/.pyenv/versions/3.10.11/envs/btpy/bin/python3.10'
Extensions directory '/home/fredrik/.azure/cliextensions'
Python (Linux) 3.10.11 (main, May  2 2023, 16:44:34) [GCC 9.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response

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

Hi @svenna, since the subscription is in another tenant, it is probably why it is raising this error. Can you use az login --tenant "tenantid" to login to the other tenant? Thanks.

authors: calvinhzy svenna yonzhan


text:
az functionapp app up | In in-line help, provide list of azCLI reference commands being executed

Describe the bug
Customers are asking what Azure CLI reference commands are being executed by our az ... up commands.  Doc writers are also requesting this information when they must replicate Azure CLI docs with Azure PowerShell commands. Although the reference list might change based on the parameters being passed, we need clarity in our in-line help and resulting autogenerated reference content.
Reference command link: https://learn.microsoft.com/en-us/cli/azure/functionapp/app?view=azure-cli-latest#az-functionapp-app-up
Current description: Deploy to Azure Functions via GitHub actions.
REQUEST: Please modify this description to list each Azure CLI reference command that "up" can/is executing.
Possible impacted source code file (where this description is found):
https://github.com/azure/deploy-to-azure-cli-extension/blob/master/deploy-to-azure/azext_deploy_to_azure/dev/functionapp/help.py
Related command
az functionapp app up
Errors
n/a
Issue script & Debug output
n/a
Expected behavior
n/a
Environment Summary
Azure CLI 2.58.0
Additional context
No response

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

@AnatoliB, @Francisco-Gamino, @shreyabatra4:
Can we resolve this issue by putting a sentence in the short or long summary that states something like "Run this command with the --debug parameter to see the API calls and parameters values being used."?
This avoids a lengthy long-summary property, but tells the customer how to find the answer for themselves.

authors: dbradish-microsoft yonzhan


text:
[Trusted launch VMs] Gen1 VM to Trusted launch upgrade support

Preconditions

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

Related command
az vm update --security-type
Resource Provider
Microsoft.Compute/virtualMachines
Description of Feature or Work Requested
Azure Gen1 VM to Trusted launch Upgrade
Virtual machine API now supports upgrade of existing Azure Gen1 VMs to Trusted launch in private preview (AFEC Name: Gen1ToTLMigrationPreview).
ASK: Request to unblock az vm update command to set --security-type to TrustedLaunch if VM is Gen1 VM. This will allow customers to upgrade their Gen1 VMs to Trusted launch using CLI.
az vm update

Current behavior
Requested behavior

User runs following command:az vm update -n win2019vm01 -g testrg --security-type TrustedLaunchUser receives following errorTrusted Launch security configuration can be enabled only with Azure Gen2 VMs. Please visit https://learn.microsoft.com/en-us/azure/virtual-machines/trusted-launch for more details
User runs following command:az vm update -n win2019vm01 -g testrg --security-type TrustedLaunchCLI accepts the request. CLI sets --enable-secure-boot and --enable-vtpm to true by default unless specified by user.CLI sends VM update with following attributes: securityType: TrustedLaunchSecureBoot: true (or user provided value)vTPM: true (or user provided value)If required AFEC Gen1ToTLMigrationPreview is registered for subscription, API will execute control plane operation and update following VM properties:HyperVGeneration: v2securityType: TrustedLaunchsecureBoot: as per default/user valuevTPM: as per default/user valueElse API returns error response as operation not supported for given subscription.CLI returns API response and update VM JSON to end user.

NOTE

Gen1 to Trusted launch upgrade requires multiple data-plane operations as pre-requisites. Please refer to documentation for more details.
AFEC Gen1ToTLMigrationPreview is currently set to private, i.e., engineering team needs to on-board subscription manually. This AFEC will be made public during public preview release.
--enable-secure-boot and --enable-vtpm should be set to true by default. User provided values take precedence over defaults.

Minimum API Version Required
2023-07-01
Swagger PR link / SDK link
NA
Request Example
NA
Target Date
2024-06-30
PM Contact
ajkundna
Engineer Contact
poaggar
Additional context
Gen1 to Trusted launch upgrade support is currently in private preview.
Public preview is tentatively targeted for July 2024 release.

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

@AjKundnani Sorry, as this sprint is already fully planned, could we schedule it in the next sprint? The estimated release time is 08-06, does it meet your expectations?

Target Date
2024-06-30

@AjKundnani Sorry, as this sprint is already fully planned, could we schedule it in the next sprint? The estimated release time is 08-06, does it meet your expectations?

@zhoxing-ms - That works, thanks.

authors: AjKundnani yonzhan zhoxing-ms


text:
[Test] CI Output cluttered with Coverage information

Recently I have noticed that when a CI build fails, the output is filled with pages and pages of code coverage statistics.  These are not in any way helpful as they are never the cause of the build failure. This was not the behavior until recently so we should revert whatever change introduced this along with #3878.

Add to sprint 18. Low priority.

Fixed in #3955

authors: tjprescott troydai


text:
too many 503 error responses

Describe the bug
Trying to complete step 2 of lesson "Deploy Azure Container Registry"
Getting error
The command failed with an unexpected error. Here is the traceback:
Error occurred in request., RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/d8d7d557-f63d-4391-ad9c-1593aae7c077/resourceGroups/19b3e42b-8aac-463e-b202-d1bd80ed1171/providers/Microsoft.ContainerRegistry/registries/myregistry?api-version=2017-10-01 (Caused by ResponseError('too many 503 error responses',))
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 731, inurlopen
body_pos=body_pos, **response_kw)
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 731, inurlopen
body_pos=body_pos, **response_kw)
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 731, inurlopen
body_pos=body_pos, **response_kw)
File "/opt/az/lib/python3.6/site-packages/urllib3/connectionpool.py", line 711, inurlopen
retries = retries.increment(method, url, response=response, _pool=self)
File "/opt/az/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/d8d7d557-f63d-4391-ad9c-1593aae7c077/resourceGroups/19b3e42b-8aac-463e-b202-d1bd80ed1171/providers/Microsoft.ContainerRegistry/registries/myregistry?api-version=2017-10-01 (Caused by ResponseError('too many 503 error responses',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/msrest/universal_http/requests.py", line137, in send
**kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/adapters.py", line 507, in send
raise RetryError(e, request=request)
requests.exceptions.RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/d8d7d557-f63d-4391-ad9c-1593aae7c077/resourceGroups/19b3e42b-8aac-463e-b202-d1bd80ed1171/providers/Microsoft.ContainerRegistry/registries/myregistry?api-version=2017-10-01 (Caused by ResponseError('toomany 503 error responses',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 351, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 409, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 402, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 379, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 171, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/init.py", line 451, in default_command_handler
return op(**command_args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/acr/custom.py", line 104, in acr_create
return client.create(resource_group_name, registry_name, registry)
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/containerregistry/v2018_09_01/operations/registries_operations.py", line 351, in create
**operation_config
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/containerregistry/v2018_09_01/operations/registries_operations.py", line 300, in _create_initial
response = self._client.send(request, stream=False, **operation_config)
File "/opt/az/lib/python3.6/site-packages/msrest/service_client.py", line 336, in send
pipeline_response = self.config.pipeline.run(request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/pipeline/init.py", line 197, in run
return first_node.send(pipeline_request, **kwargs)  # type: ignore
File "/opt/az/lib/python3.6/site-packages/msrest/pipeline/init.py", line 150, in send
response = self.next.send(request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/pipeline/requests.py", line 72, in send
return self.next.send(request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/pipeline/requests.py", line 137, in send
return self.next.send(request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/pipeline/init.py", line 150, in send
response = self.next.send(request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/pipeline/requests.py", line 193, in send
self.driver.send(request.http_request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/universal_http/requests.py", line328, in send
return super(RequestsHTTPSender, self).send(request, **requests_kwargs)
File "/opt/az/lib/python3.6/site-packages/msrest/universal_http/requests.py", line140, in send
raise_with_traceback(ClientRequestError, msg, err)
File "/opt/az/lib/python3.6/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/opt/az/lib/python3.6/site-packages/msrest/universal_http/requests.py", line137, in send
**kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/opt/az/lib/python3.6/site-packages/requests/adapters.py", line 507, in send
raise RetryError(e, request=request)
msrest.exceptions.ClientRequestError: Error occurred in request., RetryError: HTTPSConnectionPool(host='management.azure.com', port=443): Max retries exceeded with url: /subscriptions/d8d7d557-f63d-4391-ad9c-1593aae7c077/resourceGroups/19b3e42b-8aac-463e-b202-d1bd80ed1171/providers/Microsoft.ContainerRegistry/registries/myregistry?api-version=2017-10-01 (Caused by ResponseError('too many 503 error responses',))
To Reproduce
in the Azure cloud shell run following:
$ ACR_NAME=myregistry
$ az acr create --resource-group 19b3e42b-8aac-463e-b202-d1bd80ed1171 --name $ACR_NAME --sku Premium
Expected behavior
output
Environment summary
Additional context
Add any other context about the problem here.

I found the problem... I suspect the name of the registry was not unique. You need to input a unique registry name.
However, error message is of no help in this case.


text:
[Profile] az login: Refine warning messages

Refine and unify the warning messages for
MFA tenants (#12516)

The following tenants require Multi-Factor Authentication (MFA). Use 'az login --tenant TENANT_ID' to explicitly login to a tenant.
da086fa3-023f-4500-bf56-0f19d3065440 'Inbarck Labs'
...

Empty tenants (#2929)

The following tenants doesn't contain accessible subscriptions. Use 'az login --allow-no-subscriptions' to have tenant level access.
3f85f91a-b450-4dbb-b0f5-703606d9161f 'Contoso'
...

Multi-tenant subscriptions (#11886)

Subscription 95350823-1b99-4afd-92f8-b1d6db6f7ab2 'Visual Studio Enterprise' can be accessed from tenants 72f988bf-86f1-41af-91ab-2d7cd011db47(default) and 2b8e6bbc-631a-4bf6-b0c6-d4947b3c79dd. To select a specific tenant when accessing this subscription, use 'az login --tenant TENANT_ID'.

⚠ azure-mgmt-resource SDK version is temporarily locked due to missing properties added in https://github.com/Azure/azure-rest-api-specs/pull/8384

add to S167

authors: jiasli yonzhan


text:
[ARO] Add enhancements as well as route table checking permissions

Description

The updates here are the latest development features to be added to Azure Red Hat OpenShift az cli client.

enhanced permissions validation
logging improvements
type checking

Testing Guide

None
These are teh enhancements that we use for our Azure cli in the github.com/Azure/ARO-RP repository.
History Notes

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

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

@jim-minter @mjudeikis @ehashman  Updates to ARO CLI extension.

@jim-minter, updated the PR to include the requested changes.
I have fixed the spacing in the _help.py file.  It looks like there are still some differences like the OpenShift being inserted into the different help sections.  I'd recommend that the next step would be to port these changes locally so that we have fewer differences in the future.  This would be a good time to do so.

ARO

@kwoodson from the CI test failures, it looks like you might need to rerecord the tests as part of this PR

@kwoodson Could you solve the CI failure first?

@haroldrandom, I'll look into the CI failures.

The command that enabled updating the current tests:
. env/bin/activate
azdev test aro --live

@haroldrandom Were these the files required?  I see that it is still failing.
[gw6] [ 11%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_helpers.py::TestGenerateRandomIdHelper::test_random_id_length
[gw7] [ 22%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_helpers.py::TestGenerateRandomIdHelper::test_random_id_is_alpha_num
[gw8] [ 33%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_helpers.py::TestGenerateRandomIdHelper::test_random_id_starts_with_letter
[gw4] [ 44%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_commands.py::AroScenarioTests::test_aro_show
[gw2] [ 55%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_commands.py::AroScenarioTests::test_aro_list
[gw5] [ 66%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_commands.py::AroScenarioTests::test_aro_update
[gw3] [ 77%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_commands.py::AroScenarioTests::test_aro_list_credentials
[gw0] [ 88%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_commands.py::AroScenarioTests::test_aro_create
[gw1] [100%] PASSED src/azure-cli/azure/cli/command_modules/aro/tests/latest/test_aro_commands.py::AroScenarioTests::test_aro_delete

======== 9 passed, 1 warning in 3051.90s (0:50:51) ========

I believe CI is failing because #13086 has not yet landed. UUID generation does not look stable from the failure results.

@kwoodson @ehashman the diff I am trying to minimise is diff -uNr -x '*.pyc' -x vendored_sdks -x tests src/azure-cli/azure/cli/command_modules/aro ~/go/src/github.com/Azure/ARO-RP/python/az/aro/azext_aro/ | less

Thanks for the helpful context and feedback @jim-minter
@petrkotas's PR has now merged, so this will need to be rebased. I suggest we close this PR and open a new one, WDYT @kwoodson ?

@ehashman sgtm

@kwoodson is there a new PR for this?

@jim-minter I have added the new PR here https://github.com/Azure/azure-cli/pull/14533

authors: ehashman haroldrandom jim-minter kwoodson yonzhan


text:
[Network] Fix bug while updateing flow-log when its subproperty network_watcher_flow_analytics_configuration is None

Description

Fix https://github.com/Azure/azure-cli/issues/14996
Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

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

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

Network

authors: haroldrandom yonzhan


text:
{AKS} Remove deprecated pre-process functions for sp

Related command

Remove the deprecated pre-process functions for sp. May refer to PR #22361.
Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

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

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

AKS

Cherry-picked to https://github.com/Azure/azure-cli/pull/22432

authors: FumingZhang jiasli yonzhan


text:
{CI} Test Check Run Error

Related command

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

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

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

CI


text:
azure-vnet.json.lock left with empty content

What happened:
Sometimes azure-vnet.json.lock left with empty content, which make all following cni calls fail with error:
2020/12/29 06:01:54 [4844] Num bytes read from lock file is 0
Here is the logs
k.zip
How to reproduce it:
It happens randomly,
Orchestrator and Version (e.g. Kubernetes, Docker):
AKS 1.19
Operating System (Linux/Windows):
Windows
Kernel:
10.0.17763.1577

@AbelHu @daschott
FYI
Issue reproduced with azure cni 1.2.2
All logs here(including azure cni config)
k.zip

It seems like that the file azure-vnet.json.lock is not protected properly. I think that we need azure container networking team's help.

Do you know who can help? This has been reported for a long time.

You are right to file the issue in this repo. We will also ping container networking team to fix it ASAP. cc @keikhara

@aanandr   Can you please take a look at this issue? thanks,.

Tagging Neha - @neaggarwMS

Issue not seen recently.

authors: AbelHu aanandr keikhara zhiweiv

repo: Azure/azure-container-networking


text:
Remember where to install aps for Remote App

I have followed this: "Create a Azure RemoteApp image based on an Azure virtual machine" and it didn't work for me because I have installed the app in the wrong place. Please, change it.

@lizap - Could you follow up?

I'm not exactly sure what to update. When you say that you installed the app in the wrong place, what does that mean?

authors: asensionacher lizap tysonn

repo: Azure/azure-content


text:
Edit hdinsight-storm-deploy-monitor-topology.md

Edit complete. Also sending this info to Larry:
Broken link (appears twice in the doc):
Get started using HDInsight Tools for Visual Studio (http://azure.microsoft.com/en-us/documentation/articles/hdinsight-hadoop-visual-studio-tools-getting-started/)

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

It looks like you're working at Microsoft (v-diree). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

Looks good. I've fixed the links and will send up in another PR today.

authors: Blackmist ClarityQueen azurecla


text:
Update billing-subscription-transfer.md

Added new functionality

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

It looks like you're working at Microsoft (adpick). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

@adpick - thanks very much for your contribution!
@genlin - FYI. @adpick is a MSFT employee.

authors: BryanLa adpick azurecla


text:
OperationCanceledException: Fixes lost CancellationToken on CosmosOperationCanceledException

Pull Request Template
Description
internal CosmosOperationCanceledException constructor lost cancellationToken of original exception
Type of change

[x] Bug fix (non-breaking change which fixes an issue)

Closing issues
To automatically close an issue: closes #IssueNumber

/azp run

/azp run


text:
AI Integration: Adds cosmetic fixes

Description
This PR contains below changes:

Coverting StatusCode and SubstatusCode as Int from string.

Renamed hashed_machine_id to machine_id

Remove "information not available" message and set null instead.

On GatewayMode create "Internal" type of Activity otherwise "client" type pf Activity. (Verified by @lmolkova )

Type of change

[] Bug fix (non-breaking change which fixes an issue)

/azp run


text:
[Issue]  503 when running up on template with func

I'm seeing this when running up on a template with func in it.  I think it is because we try to deploy to a function before the zip deploy endpoint is ready.
I believe we need to have a retry here.
Error: deploying service: deploying service api package: POST https://func-api-rwhhjrs4jzmkg.scm.azurewebsites.net/api/zipdeploy
--------------------------------------------------------------------------------
RESPONSE 503: 503 Site Unavailable
ERROR CODE UNAVAILABLE
--------------------------------------------------------------------------------
The service is unavailable.
--------------------------------------------------------------------------------

Also, since the previous provision step is not truly done. The subsequent deploys are failing since the services are not fully up and running yet.

It will be good if we can we also look at other deploy scenarios/hosts which might potentially return 5XX error codes for adding retries.
It will also be good to look at how we can add post-validations to the provision step and fail provision if the post-validations don't succeed.

For such deploy operations, it will be good to have such abstractions as part of the Go SDK itself.

Is the below fix good enough or should we make additional fixes across different deployment types?

https://github.com/Azure/azure-dev/pull/1051

I have not seen this issue since that fix was implemented.  Will close and reopen if we see it again.

repo: Azure/azure-dev


text:
Remove deprecated flag

Remove deprecated flag that was missed in #1143

Azure Dev CLI Install Instructions
Install scripts
MacOS/Linux

May elevate using sudo on some platforms and configurations

bash:
curl -fsSL https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/uninstall-azd.sh | bash;
curl -fsSL https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/install-azd.sh | bash -s -- --base-url https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230 --version '' --verbose

pwsh:
Invoke-RestMethod 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/uninstall-azd.ps1' -OutFile uninstall-azd.ps1; ./uninstall-azd.ps1
Invoke-RestMethod 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/install-azd.ps1' -OutFile install-azd.ps1; ./install-azd.ps1 -BaseUrl 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230' -Version '' -Verbose

Windows
powershell -c "Set-ExecutionPolicy Bypass Process; irm 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/uninstall-azd.ps1' > uninstall-azd.ps1; ./uninstall-azd.ps1;"
powershell -c "Set-ExecutionPolicy Bypass Process; irm 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/install-azd.ps1' > install-azd.ps1; ./install-azd.ps1 -BaseUrl 'https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230' -Version '' -Verbose;"

Standalone Binary

Linux - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/azd-linux-amd64.tar.gz
MacOS - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/azd-darwin-amd64.zip
Windows - https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/1230/azd-windows-amd64.zip

Container
docker run -it azdevcliextacr.azurecr.io/azure-dev:pr-1230

authors: azure-sdk weikanglim