Skip to content

Conversation

@v-huizhu2
Copy link
Member

This request was denied due to internal policy. Local authentication methods are not allowed.
Add issues #47487
#47372

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

- Added @disabled annotation to testBeginCreateWithFileShareVolume
- Included reason for disabling: internal policy denies local auth methods
- Preserved existing @DoNotRecord annotation and skipInPlayback setting
- Add storage account creation and key retrieval for file share testing
- Integrate Azure file share volume configuration with existing storage credentials
- Include ShareServiceClientBuilder for file endpoint management
- Remove @disabled annotation to activate file share volume tests
- Add storage manager initialization in test base class
- Update container group volume definition to use existing Azure file share
…rations

- Added testBeginCreateWithEmptyDirectoryVolume method
- Disabled testBeginCreateWithFileShareVolume due to internal policy restrictions
- Updated volume configuration logic to use withEmptyDirectoryVolume instead of manual volume definition
- Added proper annotations for test recording and policy compliance
- Implemented container group creation with virtual network and volume mounting
- Added assertions for volume count validation
…ence

Removed outdated comment about Azure Storage SMB mounting with managed
identity and updated the test documentation to reflect current behavior.
The test now properly references the Azure documentation for container
instances volume mounting.
Update the assets tag from a0e5cc2e29 to bd0493a9b7 in
azure-resourcemanager-containerinstance module
…e tests

- Removed storage account creation logic from ContainerGroupTest
- Eliminated unused StorageManager dependency from ContainerInstanceManagementTest
- Cleaned up related imports and fields that were no longer needed
- Simplified test setup by removing unnecessary storage account initialization
Update the assets tag in assets.json from bd0493a9b7 to cade898991
for azure-resourcemanager-containerinstance package.
- Removed unused Azure identity imports (AzureAuthorityHosts, ClientSecretCredential, DefaultAzureCredentialBuilder)
- Removed unused storage related imports (StorageAccount, StorageAccountKey, ShareServiceAsyncClient, ShareServiceClientBuilder)
Copilot AI review requested due to automatic review settings January 6, 2026 08:39
@github-actions github-actions bot added the Mgmt This issue is related to a management-plane library. label Jan 6, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes live test failures in the containerinstance management library caused by Azure policy restrictions on local authentication methods for Azure Storage file shares. The fix involves disabling the failing test and adding a replacement test that uses an empty directory volume instead.

  • Disabled testBeginCreateWithFileShareVolume test due to Azure policy preventing local authentication methods
  • Added new testBeginCreateWithEmptyDirectoryVolume test to maintain test coverage for volume mounting functionality
  • Updated test recordings (assets.json)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
ContainerGroupTest.java Added @Disabled annotation to failing file share test with explanation, added new test for empty directory volume, and reordered imports alphabetically
assets.json Updated test recording tag to include new test recordings

…src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java

Co-authored-by: Copilot <[email protected]>
…src/test/java/com/azure/resourcemanager/containerinstance/ContainerGroupTest.java

Co-authored-by: Xiaofei Cao <[email protected]>
@v-huizhu2 v-huizhu2 merged commit fc81201 into Azure:main Jan 8, 2026
18 checks passed
@v-huizhu2 v-huizhu2 deleted the mgmt_livetests_containerinstance_resourcehealth branch January 8, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management-plane library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants