Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Get the CORS Allowed Origins from a Cosmos DB account using PowerShell to an array variable
$corsAllowedOrigins = (Get-CosmosDbAccount `
-Name 'dsrcosmosdbtest' `
-ResourceGroupName 'dsrcosmosdbtest-rgp').Properties.Cors.AllowedOrigins -split ','
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment