{"id":1657,"date":"2020-04-25T19:37:41","date_gmt":"2020-04-26T00:37:41","guid":{"rendered":"https:\/\/www.ciraltos.com\/?p=1657"},"modified":"2023-03-23T22:21:42","modified_gmt":"2023-03-24T03:21:42","slug":"azure-files-smb-access-with-windows-ad","status":"publish","type":"post","link":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/","title":{"rendered":"Azure Files SMB Access with Windows AD"},"content":{"rendered":"\n<figure class=\"wp-block-image alignleft size-thumbnail\"><img decoding=\"async\" src=\"https:\/\/www.ciraltos.com\/wp-content\/uploads\/2020\/04\/Azure-Storage-Files-150x150.png\" alt=\"Azure Files SMB Access\" class=\"wp-image-1660\"\/><\/figure>\n\n\n\n<p>Azure Files allows you to access file shares in Azure, but\nuntil recently use was restricted to RBAC permission.&nbsp; Azure Files SMB Access for Azure AD Domain Services\nis generally available and support for Windows AD is now in public\npreview.&nbsp; This video goes over how to enable\nAzure Files for SMB access secured with your on-premises Windows AD Directory\nServices.&nbsp; <\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"ast-oembed-container\" style=\"height: 100%;\"><iframe loading=\"lazy\" title=\"Azure Files SMB Access with Windows AD\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/Vm5QXbRPoKI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>This video covers creating a Storage Account, Azure Files Share and set NTFS style premonitions on the files and directories in the share.&nbsp; <\/p>\n\n\n\n<p>Link to the Azure Files Script:<br> <a rel=\"noreferrer noopener\" aria-label=\"https:\/\/github.com\/Azure-Samples\/azure-files-samples\/releases (opens in a new tab)\" href=\"https:\/\/github.com\/Azure-Samples\/azure-files-samples\/releases\" target=\"_blank\">https:\/\/github.com\/Azure-Samples\/azure-files-samples\/releases<\/a><\/p>\n\n\n\n<p>Set Execution Policy:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser <\/pre>\n\n\n\n<p>Copy files:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">.\\CopyToPSPath.ps1<\/pre>\n\n\n\n<p>Import the AzFilesHybrid Module:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Import-Module -Name AzFilesHybrid<\/pre>\n\n\n\n<p>Set the variables:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$SubscriptionId = \"&lt;your-subscription-id-here&gt;\"<br>$ResourceGroupName = \"&lt;resource-group-name-here&gt;\"<br>$StorageAccountName = \"&lt;storage-account-name-here&gt;\"<\/pre>\n\n\n\n<p>Set the session to the Azure Subscription:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Select-AzSubscription -SubscriptionId $SubscriptionId<\/pre>\n\n\n\n<p>Register the storage account with Windows AD:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Join-AzStorageAccountForAuth `<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;-ResourceGroupName $ResourceGroupName `<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;-Name $StorageAccountName `<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;-DomainAccountType \"&lt;ComputerAccount|ServiceLogonAccount&gt;\" `<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;#-OrganizationalUnitName \"&lt;ou-name-here&gt;\" <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   # OR USE A DISTINGUISHED NAME<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;-OrganizationalUnitDistinguishedName \"&lt;ou-distinguishedname-here&gt;\" <\/pre>\n\n\n\n<p>Confirm the settings:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Get the target storage account<br>$storageaccount = Get-AzStorageAccount `<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;-ResourceGroupName $ResourceGroupName `<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;-Name $StorageAccountName<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"># List the directory service of the selected service account\n$storageAccount.AzureFilesIdentityBasedAuth.DirectoryServiceOptions<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"># List the directory domain information if the storage account has enabled<br>#AD DS authentication for file shares<br>$storageAccount.AzureFilesIdentityBasedAuth.ActiveDirectoryProperties<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Azure Files allows you to access file shares in Azure, but until recently use was restricted to RBAC permission.&nbsp; Azure Files SMB Access for Azure AD Domain Services is generally available and support for Windows AD is now in public preview.&nbsp; This video goes over how to enable Azure Files for SMB access secured with &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/\"> <span class=\"screen-reader-text\">Azure Files SMB Access with Windows AD<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3941,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":""},"categories":[2],"tags":[15,9,142,718,717,719,713,663,712,714,715,478,716,595],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Azure Files SMB Access with Windows AD - ciraltos<\/title>\n<meta name=\"description\" content=\"This video goes over how to enable Azure Files for SMB access secured with your Windows AD Directory Services.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Azure Files SMB Access with Windows AD - ciraltos\" \/>\n<meta property=\"og:description\" content=\"This video goes over how to enable Azure Files for SMB access secured with your Windows AD Directory Services.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/\" \/>\n<meta property=\"og:site_name\" content=\"ciraltos\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-26T00:37:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-24T03:21:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Azure-Storage-Files-150x150-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Travis Roberts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:site\" content=\"@ciraltos\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Travis Roberts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/\"},\"author\":{\"name\":\"Travis Roberts\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"headline\":\"Azure Files SMB Access with Windows AD\",\"datePublished\":\"2020-04-26T00:37:41+00:00\",\"dateModified\":\"2023-03-24T03:21:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/\"},\"wordCount\":141,\"commentCount\":23,\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"keywords\":[\"Active Directory\",\"Azure\",\"Azure AD\",\"Azure AD Domani Services\",\"Azure Files Security\",\"File Server\",\"File Share\",\"Kerberos\",\"NTFS\",\"Root Directory\",\"Service Account\",\"SMB\",\"token\",\"Windows AD\"],\"articleSection\":[\"Azure\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/\",\"name\":\"Azure Files SMB Access with Windows AD - ciraltos\",\"isPartOf\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\"},\"datePublished\":\"2020-04-26T00:37:41+00:00\",\"dateModified\":\"2023-03-24T03:21:42+00:00\",\"description\":\"This video goes over how to enable Azure Files for SMB access secured with your Windows AD Directory Services.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/www.ciraltos.com\/staging2\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Azure Files SMB Access with Windows AD\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#website\",\"url\":\"http:\/\/www.ciraltos.com\/staging2\/\",\"name\":\"ciraltos\",\"description\":\"cloud, technology and trends\",\"publisher\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a\",\"name\":\"Travis Roberts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"contentUrl\":\"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png\",\"width\":5657,\"height\":3563,\"caption\":\"Travis Roberts\"},\"logo\":{\"@id\":\"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.ciraltos.com\",\"https:\/\/twitter.com\/ciraltos\"],\"url\":\"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Azure Files SMB Access with Windows AD - ciraltos","description":"This video goes over how to enable Azure Files for SMB access secured with your Windows AD Directory Services.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/","og_locale":"en_US","og_type":"article","og_title":"Azure Files SMB Access with Windows AD - ciraltos","og_description":"This video goes over how to enable Azure Files for SMB access secured with your Windows AD Directory Services.","og_url":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/","og_site_name":"ciraltos","article_published_time":"2020-04-26T00:37:41+00:00","article_modified_time":"2023-03-24T03:21:42+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Azure-Storage-Files-150x150-1.png","type":"image\/png"}],"author":"Travis Roberts","twitter_card":"summary_large_image","twitter_creator":"@ciraltos","twitter_site":"@ciraltos","twitter_misc":{"Written by":"Travis Roberts","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/#article","isPartOf":{"@id":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/"},"author":{"name":"Travis Roberts","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"headline":"Azure Files SMB Access with Windows AD","datePublished":"2020-04-26T00:37:41+00:00","dateModified":"2023-03-24T03:21:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/"},"wordCount":141,"commentCount":23,"publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"keywords":["Active Directory","Azure","Azure AD","Azure AD Domani Services","Azure Files Security","File Server","File Share","Kerberos","NTFS","Root Directory","Service Account","SMB","token","Windows AD"],"articleSection":["Azure"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/","url":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/","name":"Azure Files SMB Access with Windows AD - ciraltos","isPartOf":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#website"},"datePublished":"2020-04-26T00:37:41+00:00","dateModified":"2023-03-24T03:21:42+00:00","description":"This video goes over how to enable Azure Files for SMB access secured with your Windows AD Directory Services.","breadcrumb":{"@id":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.ciraltos.com\/staging2\/azure-files-smb-access-with-windows-ad\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/www.ciraltos.com\/staging2\/"},{"@type":"ListItem","position":2,"name":"Azure Files SMB Access with Windows AD"}]},{"@type":"WebSite","@id":"http:\/\/www.ciraltos.com\/staging2\/#website","url":"http:\/\/www.ciraltos.com\/staging2\/","name":"ciraltos","description":"cloud, technology and trends","publisher":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.ciraltos.com\/staging2\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/25391996d6cddfecd4d257162b7e373a","name":"Travis Roberts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/","url":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","contentUrl":"https:\/\/www.ciraltos.com\/staging2\/wp-content\/uploads\/2023\/03\/Logo-1.png","width":5657,"height":3563,"caption":"Travis Roberts"},"logo":{"@id":"http:\/\/www.ciraltos.com\/staging2\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.ciraltos.com","https:\/\/twitter.com\/ciraltos"],"url":"https:\/\/www.ciraltos.com\/staging2\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/1657"}],"collection":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/comments?post=1657"}],"version-history":[{"count":3,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/1657\/revisions"}],"predecessor-version":[{"id":3948,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/posts\/1657\/revisions\/3948"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media\/3941"}],"wp:attachment":[{"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/media?parent=1657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/categories?post=1657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ciraltos.com\/staging2\/wp-json\/wp\/v2\/tags?post=1657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}