New York (CNN Business) Kroger is tapping Microsoft to help create grocery stores of the future, and keep up with Amazon and Walmart.

The two companies announced a partnership on Monday that will bring digital shelves, price tags, and advertisements to two pilot stores in Ohio and Washington State, near each company's headquarters.

The stores are designed to make it easier for customers and workers to navigate the stores, saving shoppers time and Kroger money.

Kroger has been partnering with companies such as Nuro, Ocado, and Walgreens as it aims to speed up grocery delivery and pickup, and experiment with digital tools to support its network of physical stores.

The grocery chain is trying to give shoppers—who are increasingly browsing and buying everything from consumer electronics to breakfast cereal online—more reasons to visit physical stores.

Read More