Skip to content

Commit f069342

Browse files
authored
Correct example for AAD (Azure#18914)
JUst add the required protocol in the aad exemple
1 parent 1fd295e commit f069342

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/data/aztables/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ The aztables package supports any of the types that implement the `azcore.TokenC
6767
Use AAD authentication as the credential parameter to authenticate the client:
6868
```go
6969
import (
70+
"fmt"
7071
"os"
7172

7273
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
@@ -78,7 +79,7 @@ func main() {
7879
if !ok {
7980
panic("TABLES_STORAGE_ACCOUNT_NAME could not be found")
8081
}
81-
serviceURL := accountName + ".table.core.windows.net"
82+
serviceURL := fmt.Sprintf("https://%s.table.core.windows.net", accountName)
8283

8384
cred, err := azidentity.NewDefaultAzureCredential(nil)
8485
if err != nil {

0 commit comments

Comments
 (0)