Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subscriptionId field to AzureResource model #10042

Merged
merged 3 commits into from
Jul 13, 2020

Conversation

ityankel
Copy link
Contributor

@ityankel ityankel commented Jul 6, 2020

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

  • Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
    • adding/removing APIs.
    • adding/removing properties.
    • adding/removing API-version.
    • adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

  • If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
    Please follow the link to find more details on API review process.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Jul 6, 2020

[Staging] Swagger Validation Report

️✔️BreakingChange [Detail]
 There are no breaking changes. 
️✔️LintDiff [Detail]
 Validation passes for LintDiff. 
️✔️Avocado [Detail]
 Validation passes for Avocado. 
Posted by Swagger Pipeline | How to fix these errors?

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jul 6, 2020

azure-sdk-for-js - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from 02ba83e with merge commit 58eea31. SDK Automation 13.0.17.20200619.4
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jul 6, 2020

azure-sdk-for-net - Release

️✔️ succeeded [Logs] [Expand Details]
  • ️✔️ Generate from 02ba83e with merge commit 58eea31. SDK Automation 13.0.17.20200619.4
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
    [AutoRest] realpath(): Permission denied
  • ️✔️Microsoft.Azure.Management.SecurityInsights [View full logs]  [Release SDK Changes]
      No Artifact Generated.

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Jul 6, 2020

    Azure CLI Extension Generation - Release

    • Installation instruction for service securityinsight [Preview Changes]
      az extension add --source=https://sdkautomation.blob.core.windows.net/sdkautomation-pipeline/Azure/azure-rest-api-specs/10042/azure-cli-extensions/Azure/azure-cli-extensions/securityinsight/sentinel-0.1.0-py3-none-any.whl
    ️✔️ succeeded [Logs] [Expand Details]
    • ️✔️ Generate from 02ba83e with merge commit 58eea31. Azure CLI Automation 13.0.17.20200619.4
      [AutoRest] WARNING (PreCheck/AllOfWhenYouMeantRef): Schema 'AwsCloudTrailDataConnectorDataTypes-logs' is using an 'allOf' instead of a $ref. This creates a wasteful anonymous type when generating code.
      [AutoRest] WARNING (PreCheck/AllOfWhenYouMeantRef): Schema 'OfficeDataConnectorDataTypes-exchange' is using an 'allOf' instead of a $ref. This creates a wasteful anonymous type when generating code.
      [AutoRest] WARNING (PreCheck/AllOfWhenYouMeantRef): Schema 'OfficeDataConnectorDataTypes-sharePoint' is using an 'allOf' instead of a $ref. This creates a wasteful anonymous type when generating code.
      [AutoRest] WARNING (PreCheck/AllOfWhenYouMeantRef): Schema 'TIDataConnectorDataTypes-indicators' is using an 'allOf' instead of a $ref. This creates a wasteful anonymous type when generating code.
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'ActionsList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'AlertRuleTemplatesList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'AlertRulesList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'BookmarkList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'CloudError' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'DataConnectorList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'IncidentCommentList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'IncidentList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'OfficeConsentList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'Operation' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'OperationsList' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'Resource' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'ResourceWithEtag' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'ErrorResponse' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/SchemaMissingType): The schema 'ErrorAdditionalInfo' with an undefined type and decalared properties is a bit ambigious. This has been auto-corrected to 'type:object'
      [AutoRest] WARNING (PreCheck/PropertyRedeclarationWarning): Schema 'MCASDataConnectorDataTypes' has a property 'alerts' that is already declared the parent schema 'AlertsDataTypeOfDataConnector' but isn't significantly different. The property has been removed from MCASDataConnectorDataTypes
      [AutoRest] WARNING (): cli.auto-parameter-hidden is not true, skip visibility cleaner
      [AutoRest] 
      [AutoRest] NO TEST SCENARIO PROVIDED - DEFAULT WILL BE USED
      [AutoRest] ADD FOLLOWING SECTION TO readme.cli.md FILE TO MODIFY IT
      [AutoRest] --------------------------------------------------------
      [AutoRest]   test-scenario:
      [AutoRest]     - name: /Actions/get/Get all actions of alert rule.
      [AutoRest]     - name: /AlertRuleTemplates/get/Get alert rule template by Id.
      [AutoRest]     - name: /AlertRuleTemplates/get/Get all alert rule templates.
      [AutoRest]     - name: /AlertRules/put/Creates or updates a Fusion alert rule.
      [AutoRest]     - name: /AlertRules/put/Creates or updates a MicrosoftSecurityIncidentCreation rule.
      [AutoRest]     - name: /AlertRules/put/Creates or updates a Scheduled alert rule.
      [AutoRest]     - name: /AlertRules/put/Creates or updates an action of alert rule.
      [AutoRest]     - name: /AlertRules/get/Get a Fusion alert rule.
      [AutoRest]     - name: /AlertRules/get/Get a MicrosoftSecurityIncidentCreation rule.
      [AutoRest]     - name: /AlertRules/get/Get a Scheduled alert rule.
      [AutoRest]     - name: /AlertRules/get/Get all alert rules.
      [AutoRest]     - name: /AlertRules/get/Get an action of alert rule.
      [AutoRest]     - name: /Bookmarks/put/Creates or updates a bookmark.
      [AutoRest]     - name: /Bookmarks/get/Get a bookmark.
      [AutoRest]     - name: /Bookmarks/get/Get all bookmarks.
      [AutoRest]     - name: /DataConnectors/put/Creates or updates an Office365 data connector.
      [AutoRest]     - name: /DataConnectors/get/Get a ASC data connector.
      [AutoRest]     - name: /DataConnectors/get/Get a MCAS data connector.
      [AutoRest]     - name: /DataConnectors/get/Get a MDATP data connector
      [AutoRest]     - name: /DataConnectors/get/Get a TI data connector.
      [AutoRest]     - name: /DataConnectors/get/Get all data connectors.
      [AutoRest]     - name: /DataConnectors/get/Get an AAD data connector.
      [AutoRest]     - name: /DataConnectors/get/Get an AATP data connector.
      [AutoRest]     - name: /DataConnectors/get/Get an AwsCloudTrail data connector.
      [AutoRest]     - name: /DataConnectors/get/Get an Office365 data connector.
      [AutoRest]     - name: /IncidentComments/put/Creates an incident comment.
      [AutoRest]     - name: /IncidentComments/get/Get all incident comments.
      [AutoRest]     - name: /IncidentComments/get/Get an incident comment.
      [AutoRest]     - name: /Incidents/put/Creates or updates an incident.
      [AutoRest]     - name: /Incidents/get/Get all incidents.
      [AutoRest]     - name: /Incidents/get/Get an incident.
      [AutoRest]     - name: /AlertRules/delete/Delete an alert rule.
      [AutoRest]     - name: /AlertRules/delete/Delete an action of alert rule.
      [AutoRest]     - name: /Bookmarks/delete/Delete a bookmark.
      [AutoRest]     - name: /DataConnectors/delete/Delete an Office365 data connector.
      [AutoRest]     - name: /Incidents/delete/Delete an incident.
      [AutoRest] --------------------------------------------------------
    • ️✔️securityinsight [View full logs]  [Release Azure CLI Changes]

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Jul 6, 2020

    azure-sdk-for-python - Release

    ⚠️ warning [Logs] [Expand Details]
    • ⚠️ Generate from 02ba83e with merge commit 58eea31. SDK Automation 13.0.17.20200619.4
      [azure-mgmt-securityinsight][ChangeLog] WARNING: Failed to generate ChangeLog.
    • ⚠️azure-mgmt-securityinsight [View full logs]  [Release SDK Changes]
      [build_conf] INFO:packaging_tools:Building template azure-mgmt-securityinsight
      [build_conf] INFO:packaging_tools.conf:Build default conf for azure-mgmt-securityinsight
      [build_conf] INFO:packaging_tools:Template done azure-mgmt-securityinsight
      [build_package] /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      [build_package]   warnings.warn(msg)
      [build_package] warning: no files found matching '*.py' under directory 'tests'
      [build_package] warning: no files found matching '*.yaml' under directory 'tests'
      [build_package] /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      [build_package]   warnings.warn(msg)
      [build_package] warning: no files found matching '*.py' under directory 'tests'
      [build_package] warning: no files found matching '*.yaml' under directory 'tests'
      [breaking_change_setup] Ignoring mock: markers 'python_version <= "2.7"' don't match your environment
      Not exact 2 reports found:
      Not generating changelog.
      [ChangeLog] WARNING: Failed to generate ChangeLog.

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Jul 6, 2020

    Trenton Generation - Release

    No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Jul 6, 2020

    azure-sdk-for-java - Release

    No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Jul 6, 2020

    azure-sdk-for-go - Release

    ️✔️ succeeded [Logs] [Expand Details]

    @ityankel ityankel marked this pull request as ready for review July 6, 2020 14:55
    @xseeseesee
    Copy link
    Contributor

    @ityankel Can you please check if you can do the fix and pass CIs? Thanks.

    cc: @akning-ms

    @ityankel
    Copy link
    Contributor Author

    ityankel commented Jul 7, 2020

    @ityankel Can you please check if you can do the fix and pass CIs? Thanks.

    cc: @akning-ms

    @xccc-msft, I looked at the failed builds and they don't appear to be relevant to my changes as far as I can tell. The errors there are about missing permissions and about a property called 'alerts' which isn't part of the only definition I changed here

    @akning-ms
    Copy link
    Contributor

    @nullMDR to help take a look

    @PhoenixHe-NV
    Copy link
    Contributor

    @qiaozha @changlong-liu Could you please help to verify why do we have such autorest failure?

    [AutoRest] FATAL: System.InvalidOperationException: Found incompatible property types Object, for property 'alerts' in schema inheritance chain
    [AutoRest] FATAL: python/imodeler1 - FAILED

    @changlong-liu
    Copy link
    Member

    hi @ityankel , could you try to rebase to latest master? something fixed 2 days ago

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @openapi-sdkautomation
    Copy link

    openapi-sdkautomation bot commented Jul 10, 2020

    azure-sdk-for-python-track2 - Release

    No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

    @ityankel
    Copy link
    Contributor Author

    hi @ityankel , could you try to rebase to latest master? something fixed 2 days ago

    Thanks @changlong-liu! I merged with master and now all the automated checks are passing except SDK Python that fails due to "Error in the pull function. The remote end hung up unexpectedly" which sounds like an issue with the check itself

    @changlong-liu
    Copy link
    Member

    /azp run automation - sdk

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @changlong-liu
    Copy link
    Member

    hi @ityankel, it seems to be a temporary error, a re-run fixed it.

    @xseeseesee xseeseesee merged commit 58eea31 into Azure:master Jul 13, 2020
    00Kai0 pushed a commit to 00Kai0/azure-rest-api-specs that referenced this pull request Oct 12, 2020
    * Add subscriptionId field to AzureResource entity
    
    * wip
    @ityankel ityankel deleted the feature/ityankel/azureResource branch November 17, 2020 11:14
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    8 participants