
{"id":64,"date":"2023-06-01T08:49:26","date_gmt":"2023-06-01T07:49:26","guid":{"rendered":"https:\/\/ishooscode.com\/?p=64"},"modified":"2023-06-01T09:12:16","modified_gmt":"2023-06-01T08:12:16","slug":"save-data-in-azure-cosmosdb-collection","status":"publish","type":"post","link":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/","title":{"rendered":"Save data in Azure CosmosDb collection using powershell scripts"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this article, we are going to demonstrate how we can use PowerShell scripts to save data in Azure CosmosDb collection from a file leveraging\u00a0<a href=\"https:\/\/github.com\/PlagueHO\/CosmosDB\" target=\"_blank\" rel=\"noreferrer noopener\">CosmosDb<\/a>\u00a0PowerShell package<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/f4n3x6c5.stackpathcdn.com\/article\/pushing-data-to-cosmosdb-from-azure-pipeline-using-powershell\/Images\/PowershellToCosmosFlow.PNG\" alt=\"Save data in Azure CosmosDb collection\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">CosmosDb is a&nbsp;fully managed, nosql, non relational database which allows us to store data durably with several ACID configurations. Microsoft guarantees speed at any scale<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s get started and write the code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#region param\n&#91;CmdletBinding()]\nparam (\n\t&#91;Parameter(Mandatory = $false)]\n\t&#91;string]$resourceGroup = \"\",\n\n\t&#91;Parameter(Mandatory = $false)]\n\t&#91;string]$database = \"\",\n\n\t&#91;Parameter(Mandatory = $false)]\n\t&#91;string]$cosmosAccount = \"\",\n\n\t&#91;Parameter(Mandatory = $false)]\n\t&#91;string]$filePath = \"..\/file.json\"\n)\n#endregion param\n\nFunction UpdateCosmosDb\n{\n\t$User = \"Azure-userId\"\n\t$PWord = ConvertTo-SecureString -String \"Password\" -AsPlainText -Force\n\t$tenant = \"Azure Tenant Id\"\n\t$subscription = \"cAzure Subscription Id\"\n\t$Credential = New-Object -TypeName \"System.Management.Automation.PSCredential\" -ArgumentList $User,$PWord\n\tConnect-AzAccount -Credential $Credential -Tenant $tenant -Subscription $subscription #Login into your azure account\n\n\t$module = Get-InstalledModule -Name 'CosmosDB'\n\tif($module -ne $null)\n\t{\n\t\twrite-host \"module CosmosDB avaiable\"\n\t}\n\telse\n\t{\n\t\twrite-host \"module CosmosDB not avaiable download in progress\"\n\t\tInstall-Module -Name CosmosDB -AllowClobber -force\n\t}\n\t$items = Get-Content -path $filePath -Encoding UTF8 -Raw | ConvertFrom-Json\n\t$cosmosDbContext = New-CosmosDbContext -Account $cosmosAccount -Database $database -ResourceGroup $resourceGroup\n\tforeach($item in $items)\n\t{\n\t\t$id = $item.id\n\t\t$item | Add-Member -NotePropertyName id -NotePropertyValue $id #creates new property in josn\n\t\t$document = $item | ConvertTo-Json #converts the object into json\n\t\t$query = \"SELECT c.id FROM c WHERE c.id = '$id'\"\n\t\twrite-host $query\n\t\t$existingDocument = Get-CosmosDbDocument -Context $cosmosDbContext -CollectionId 'ContainerId' -Query $query\n\t\tif($existingDocument -ne $null)\n\t\t{\n\t\t\twrite-host \"Remove $document\"\n\t\t\tRemove-CosmosDbDocument -Context $cosmosDbContext -CollectionId 'ContainerId' -PartitionKey \"$id\" -Id \"$id\"\n\t\t}\n\t\twrite-host \"New $document\"\n\t\tNew-CosmosDbDocument -Context $cosmosDbContext -CollectionId 'ContainerId' -DocumentBody $document -PartitionKey \"$id\"\n\t}\n}\nUpdateCosmosDb<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><ins>Note<\/ins><\/strong><br>If you are executing the above PowerShell in Azure pipeline with let&#8217;s say contributor role then you don&#8217;t need to perform Line No. 20 to 26<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep coding<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cheers<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we are going to demonstrate how we can use PowerShell scripts to save data in Azure CosmosDb collection from a file leveraging\u00a0CosmosDb\u00a0PowerShell package CosmosDb is a&nbsp;fully managed, nosql, non relational database which allows us to store data durably with several ACID configurations. Microsoft guarantees speed at any scale Let&#8217;s get started and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":65,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"wpai_generated_summary":"","wpai_tts_display_audio":true,"footnotes":""},"categories":[21],"tags":[6,7,10,9,8],"class_list":["post-64","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-azure","tag-azure","tag-cosmosdb","tag-microsoft-azure","tag-pipeline","tag-powershell"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"ishooagarwal@gmail.com\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ishoo&#039;s Code -\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Save data in Azure CosmosDb collection using powershell scripts - Ishoo&#039;s Code\" \/>\n\t\t<meta property=\"og:description\" content=\"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-06-01T07:49:26+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-06-01T08:12:16+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Save data in Azure CosmosDb collection using powershell scripts - Ishoo&#039;s Code\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#blogposting\",\"name\":\"Save data in Azure CosmosDb collection using powershell scripts - Ishoo's Code\",\"headline\":\"Save data in Azure CosmosDb collection using powershell scripts\",\"author\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/author\\\/ishooagarwalgmail-com\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/ishooscode.com\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/CosmosDb.png\",\"width\":346,\"height\":347,\"caption\":\"Push Data To Azure CosmosDb From Using PowerShell\"},\"datePublished\":\"2023-06-01T08:49:26+01:00\",\"dateModified\":\"2023-06-01T09:12:16+01:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#webpage\"},\"articleSection\":\"Microsoft Azure, Azure, CosmosDb, Microsoft Azure, Pipeline, Powershell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ishooscode.com\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/category\\\/microsoft-azure\\\/#listItem\",\"name\":\"Microsoft Azure\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/category\\\/microsoft-azure\\\/#listItem\",\"position\":2,\"name\":\"Microsoft Azure\",\"item\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/category\\\/microsoft-azure\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#listItem\",\"name\":\"Save data in Azure CosmosDb collection using powershell scripts\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#listItem\",\"position\":3,\"name\":\"Save data in Azure CosmosDb collection using powershell scripts\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/category\\\/microsoft-azure\\\/#listItem\",\"name\":\"Microsoft Azure\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/#person\",\"name\":\"ishooagarwal@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0ea4396d285fbb3d9c79bf9c2073c85d136b778750ab18d6edb4f53eb3ee18a9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"ishooagarwal@gmail.com\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/author\\\/ishooagarwalgmail-com\\\/#author\",\"url\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/author\\\/ishooagarwalgmail-com\\\/\",\"name\":\"ishooagarwal@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0ea4396d285fbb3d9c79bf9c2073c85d136b778750ab18d6edb4f53eb3ee18a9?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"ishooagarwal@gmail.com\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#webpage\",\"url\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/\",\"name\":\"Save data in Azure CosmosDb collection using powershell scripts - Ishoo's Code\",\"description\":\"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/author\\\/ishooagarwalgmail-com\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/author\\\/ishooagarwalgmail-com\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/ishooscode.com\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/CosmosDb.png\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#mainImage\",\"width\":346,\"height\":347,\"caption\":\"Push Data To Azure CosmosDb From Using PowerShell\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/index.php\\\/2023\\\/06\\\/01\\\/save-data-in-azure-cosmosdb-collection\\\/#mainImage\"},\"datePublished\":\"2023-06-01T08:49:26+01:00\",\"dateModified\":\"2023-06-01T09:12:16+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ishooscode.com\\\/#website\",\"url\":\"https:\\\/\\\/ishooscode.com\\\/\",\"name\":\"ishooscode.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/ishooscode.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Save data in Azure CosmosDb collection using powershell scripts - Ishoo's Code","description":"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |","canonical_url":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#blogposting","name":"Save data in Azure CosmosDb collection using powershell scripts - Ishoo's Code","headline":"Save data in Azure CosmosDb collection using powershell scripts","author":{"@id":"https:\/\/ishooscode.com\/index.php\/author\/ishooagarwalgmail-com\/#author"},"publisher":{"@id":"https:\/\/ishooscode.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/ishooscode.com\/wp-content\/uploads\/2023\/06\/CosmosDb.png","width":346,"height":347,"caption":"Push Data To Azure CosmosDb From Using PowerShell"},"datePublished":"2023-06-01T08:49:26+01:00","dateModified":"2023-06-01T09:12:16+01:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#webpage"},"isPartOf":{"@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#webpage"},"articleSection":"Microsoft Azure, Azure, CosmosDb, Microsoft Azure, Pipeline, Powershell"},{"@type":"BreadcrumbList","@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/ishooscode.com\/#listItem","position":1,"name":"Home","item":"https:\/\/ishooscode.com\/","nextItem":{"@type":"ListItem","@id":"https:\/\/ishooscode.com\/index.php\/category\/microsoft-azure\/#listItem","name":"Microsoft Azure"}},{"@type":"ListItem","@id":"https:\/\/ishooscode.com\/index.php\/category\/microsoft-azure\/#listItem","position":2,"name":"Microsoft Azure","item":"https:\/\/ishooscode.com\/index.php\/category\/microsoft-azure\/","nextItem":{"@type":"ListItem","@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#listItem","name":"Save data in Azure CosmosDb collection using powershell scripts"},"previousItem":{"@type":"ListItem","@id":"https:\/\/ishooscode.com\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#listItem","position":3,"name":"Save data in Azure CosmosDb collection using powershell scripts","previousItem":{"@type":"ListItem","@id":"https:\/\/ishooscode.com\/index.php\/category\/microsoft-azure\/#listItem","name":"Microsoft Azure"}}]},{"@type":"Person","@id":"https:\/\/ishooscode.com\/#person","name":"ishooagarwal@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/0ea4396d285fbb3d9c79bf9c2073c85d136b778750ab18d6edb4f53eb3ee18a9?s=96&d=mm&r=g","width":96,"height":96,"caption":"ishooagarwal@gmail.com"}},{"@type":"Person","@id":"https:\/\/ishooscode.com\/index.php\/author\/ishooagarwalgmail-com\/#author","url":"https:\/\/ishooscode.com\/index.php\/author\/ishooagarwalgmail-com\/","name":"ishooagarwal@gmail.com","image":{"@type":"ImageObject","@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/0ea4396d285fbb3d9c79bf9c2073c85d136b778750ab18d6edb4f53eb3ee18a9?s=96&d=mm&r=g","width":96,"height":96,"caption":"ishooagarwal@gmail.com"}},{"@type":"WebPage","@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#webpage","url":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/","name":"Save data in Azure CosmosDb collection using powershell scripts - Ishoo's Code","description":"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/ishooscode.com\/#website"},"breadcrumb":{"@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#breadcrumblist"},"author":{"@id":"https:\/\/ishooscode.com\/index.php\/author\/ishooagarwalgmail-com\/#author"},"creator":{"@id":"https:\/\/ishooscode.com\/index.php\/author\/ishooagarwalgmail-com\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/ishooscode.com\/wp-content\/uploads\/2023\/06\/CosmosDb.png","@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#mainImage","width":346,"height":347,"caption":"Push Data To Azure CosmosDb From Using PowerShell"},"primaryImageOfPage":{"@id":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/#mainImage"},"datePublished":"2023-06-01T08:49:26+01:00","dateModified":"2023-06-01T09:12:16+01:00"},{"@type":"WebSite","@id":"https:\/\/ishooscode.com\/#website","url":"https:\/\/ishooscode.com\/","name":"ishooscode.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/ishooscode.com\/#person"}}]},"og:locale":"en_US","og:site_name":"Ishoo's Code -","og:type":"article","og:title":"Save data in Azure CosmosDb collection using powershell scripts - Ishoo's Code","og:description":"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |","og:url":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/","article:published_time":"2023-06-01T07:49:26+00:00","article:modified_time":"2023-06-01T08:12:16+00:00","twitter:card":"summary_large_image","twitter:title":"Save data in Azure CosmosDb collection using powershell scripts - Ishoo's Code","twitter:description":"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |"},"aioseo_meta_data":{"post_id":"64","title":null,"description":"Save data in Azure CosmosDb collection | Automated CosmosDb transfer | Azure pipeline | Power shell | Powershell | CosmosDb | Azure Cosmos Db |","keywords":[],"keyphrases":{"focus":{"keyphrase":"Save data in Azure CosmosDb","score":94,"analysis":{"keyphraseInTitle":{"score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"score":9,"maxScore":9,"error":0},"keyphraseLength":{"score":6,"maxScore":9,"error":1,"length":5},"keyphraseInURL":{"score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"score":9,"maxScore":9,"error":0},"keyphraseInSubHeadings":[],"keyphraseInImageAlt":{"score":9,"maxScore":9,"error":0}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":0,"frequency":"default","local_seo":null,"limit_modified_date":true,"created":"2023-06-01 07:49:26","updated":"2026-11-03 09:44:09","focus_keyword":"Save data in Azure CosmosDb","additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ishooscode.com\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/ishooscode.com\/index.php\/category\/microsoft-azure\/\" title=\"Microsoft Azure\">Microsoft Azure<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSave data in Azure CosmosDb collection using powershell scripts\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/ishooscode.com\/"},{"label":"Microsoft Azure","link":"https:\/\/ishooscode.com\/index.php\/category\/microsoft-azure\/"},{"label":"Save data in Azure CosmosDb collection using powershell scripts","link":"https:\/\/ishooscode.com\/index.php\/2023\/06\/01\/save-data-in-azure-cosmosdb-collection\/"}],"_links":{"self":[{"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/posts\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/comments?post=64"}],"version-history":[{"count":3,"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions"}],"predecessor-version":[{"id":157,"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/posts\/64\/revisions\/157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/media\/65"}],"wp:attachment":[{"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/media?parent=64"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/categories?post=64"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ishooscode.com\/index.php\/wp-json\/wp\/v2\/tags?post=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}